/**
 * Copyright (c) 2005 - 2010, James Auldridge
 * All rights reserved.
 *
 * Licensed under the BSD, MIT, and GPL (your choice!) Licenses:
 *  http://code.google.com/p/cookies/wiki/License
 *
 */
function ClusterIcon(t,e){t.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.cluster_=t,this.className_=t.getMarkerClusterer().getClusterClass(),this.styles_=e,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(t.getMap())}function Cluster(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinimumClusterSize(),this.averageCenter_=t.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,t.getStyles())}function MarkerClusterer(t,e,n){this.extend(MarkerClusterer,google.maps.OverlayView),e=e||[],n=n||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=n.gridSize||60,this.minClusterSize_=n.minimumClusterSize||2,this.maxZoom_=n.maxZoom||null,this.styles_=n.styles||[],this.title_=n.title||"",this.zoomOnClick_=!0,void 0!==n.zoomOnClick&&(this.zoomOnClick_=n.zoomOnClick),this.averageCenter_=!1,void 0!==n.averageCenter&&(this.averageCenter_=n.averageCenter),this.ignoreHidden_=!1,void 0!==n.ignoreHidden&&(this.ignoreHidden_=n.ignoreHidden),this.enableRetinaIcons_=!1,void 0!==n.enableRetinaIcons&&(this.enableRetinaIcons_=n.enableRetinaIcons),this.imagePath_=n.imagePath||MarkerClusterer.IMAGE_PATH,this.imageExtension_=n.imageExtension||MarkerClusterer.IMAGE_EXTENSION,this.imageSizes_=n.imageSizes||MarkerClusterer.IMAGE_SIZES,this.calculator_=n.calculator||MarkerClusterer.CALCULATOR,this.batchSize_=n.batchSize||MarkerClusterer.BATCH_SIZE,this.batchSizeIE_=n.batchSizeIE||MarkerClusterer.BATCH_SIZE_IE,this.clusterClass_=n.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(e,!0),this.setMap(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{},jaaulde.utils.cookies=function(){var t,e,n,o,i={expiresAt:null,path:"/",domain:null,secure:!1};return t=function(t){var e,n;return"object"!=typeof t||null===t?e=i:(e={expiresAt:i.expiresAt,path:i.path,domain:i.domain,secure:i.secure},"object"==typeof t.expiresAt&&t.expiresAt instanceof Date?e.expiresAt=t.expiresAt:"number"==typeof t.hoursToLive&&0!==t.hoursToLive&&(n=new Date,n.setTime(n.getTime()+60*t.hoursToLive*60*1e3),e.expiresAt=n),"string"==typeof t.path&&""!==t.path&&(e.path=t.path),"string"==typeof t.domain&&""!==t.domain&&(e.domain=t.domain),t.secure===!0&&(e.secure=t.secure)),e},e=function(e){return e=t(e),("object"==typeof e.expiresAt&&e.expiresAt instanceof Date?"; expires="+e.expiresAt.toGMTString():"")+"; path="+e.path+("string"==typeof e.domain?"; domain="+e.domain:"")+(e.secure===!0?"; secure":"")},n=function(){var t,e,n,o,i,r={},s=document.cookie.split(";");for(t=0;t<s.length;t+=1){e=s[t].split("="),n=e[0].replace(/^\s*/,"").replace(/\s*$/,"");try{o=decodeURIComponent(e[1])}catch(a){o=e[1]}if("object"==typeof JSON&&null!==JSON&&"function"==typeof JSON.parse)try{i=o,o=JSON.parse(o)}catch(l){o=i}r[n]=o}return r},o=function(){},o.prototype.get=function(t){var e,o,i=n();if("string"==typeof t)e="undefined"!=typeof i[t]?i[t]:null;else if("object"==typeof t&&null!==t){e={};for(o in t)e[t[o]]="undefined"!=typeof i[t[o]]?i[t[o]]:null}else e=i;return e},o.prototype.filter=function(t){var e,o={},i=n();"string"==typeof t&&(t=new RegExp(t));for(e in i)e.match(t)&&(o[e]=i[e]);return o},o.prototype.set=function(t,n,o){if(("object"!=typeof o||null===o)&&(o={}),"undefined"==typeof n||null===n)n="",o.hoursToLive=-8760;else if("string"!=typeof n){if("object"!=typeof JSON||null===JSON||"function"!=typeof JSON.stringify)throw new Error("cookies.set() received non-string value and could not serialize.");n=JSON.stringify(n)}var i=e(o);document.cookie=t+"="+encodeURIComponent(n)+i},o.prototype.del=function(t,e){var n,o={};("object"!=typeof e||null===e)&&(e={}),"boolean"==typeof t&&t===!0?o=this.get():"string"==typeof t&&(o[t]=!0);for(n in o)"string"==typeof n&&""!==n&&this.set(n,null,e)},o.prototype.test=function(){var t=!1,e="cT",n="data";return this.set(e,n),this.get(e)===n&&(this.del(e),t=!0),t},o.prototype.setOptions=function(e){"object"!=typeof e&&(e=null),i=t(e)},new o}(),function(){window.jQuery&&!function(t){t.cookies=jaaulde.utils.cookies;var e={cookify:function(e){return this.each(function(){var n,o,i,r=["name","id"],s=t(this);for(n in r)if(!isNaN(n)&&(o=s.attr(r[n]),"string"==typeof o&&""!==o)){s.is(":checkbox, :radio")?s.attr("checked")&&(i=s.val()):i=s.is(":input")?s.val():s.html(),("string"!=typeof i||""===i)&&(i=null),t.cookies.set(o,i,e);break}})},cookieFill:function(){return this.each(function(){var e,n,o,i,r=["name","id"],s=t(this);for(n=function(){return e=r.pop(),!!e};n();)if(o=s.attr(e),"string"==typeof o&&""!==o){i=t.cookies.get(o),null!==i&&(s.is(":checkbox, :radio")?s.val()===i?s.attr("checked","checked"):s.removeAttr("checked"):s.is(":input")?s.val(i):s.html(i));break}})},cookieBind:function(e){return this.each(function(){var n=t(this);n.cookieFill().change(function(){n.cookify(e)})})}};t.each(e,function(e){t.fn[e]=this})}(window.jQuery)}(),/*! jQuery UI - v1.8.20 - 2012-04-30
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.core.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
function(t,e){function n(e,n){var i=e.nodeName.toLowerCase();if("area"===i){var r,s=e.parentNode,a=s.name;return e.href&&a&&"map"===s.nodeName.toLowerCase()?(r=t("img[usemap=#"+a+"]")[0],!!r&&o(r)):!1}return(/input|select|textarea|button|object/.test(i)?!e.disabled:"a"==i?e.href||n:n)&&o(e)}function o(e){return!t(e).parents().andSelf().filter(function(){return"hidden"===t.curCSS(this,"visibility")||t.expr.filters.hidden(this)}).length}t.ui=t.ui||{},t.ui.version||(t.extend(t.ui,{version:"1.8.20",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),t.fn.extend({propAttr:t.fn.prop||t.fn.attr,_focus:t.fn.focus,focus:function(e,n){return"number"==typeof e?this.each(function(){var o=this;setTimeout(function(){t(o).focus(),n&&n.call(o)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;return e=t.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.curCSS(this,"position",1))&&/(auto|scroll)/.test(t.curCSS(this,"overflow",1)+t.curCSS(this,"overflow-y",1)+t.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.curCSS(this,"overflow",1)+t.curCSS(this,"overflow-y",1)+t.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(n){if(n!==e)return this.css("zIndex",n);if(this.length)for(var o,i,r=t(this[0]);r.length&&r[0]!==document;){if(o=r.css("position"),("absolute"===o||"relative"===o||"fixed"===o)&&(i=parseInt(r.css("zIndex"),10),!isNaN(i)&&0!==i))return i;r=r.parent()}return 0},disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.each(["Width","Height"],function(n,o){function i(e,n,o,i){return t.each(r,function(){n-=parseFloat(t.curCSS(e,"padding"+this,!0))||0,o&&(n-=parseFloat(t.curCSS(e,"border"+this+"Width",!0))||0),i&&(n-=parseFloat(t.curCSS(e,"margin"+this,!0))||0)}),n}var r="Width"===o?["Left","Right"]:["Top","Bottom"],s=o.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+o]=function(n){return n===e?a["inner"+o].call(this):this.each(function(){t(this).css(s,i(this,n)+"px")})},t.fn["outer"+o]=function(e,n){return"number"!=typeof e?a["outer"+o].call(this,e):this.each(function(){t(this).css(s,i(this,e,!0,n)+"px")})}}),t.extend(t.expr[":"],{data:function(e,n,o){return!!t.data(e,o[3])},focusable:function(e){return n(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var o=t.attr(e,"tabindex"),i=isNaN(o);return(i||o>=0)&&n(e,!i)}}),t(function(){var e=document.body,n=e.appendChild(n=document.createElement("div"));n.offsetHeight,t.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),t.support.minHeight=100===n.offsetHeight,t.support.selectstart="onselectstart"in n,e.removeChild(n).style.display="none"}),t.extend(t.ui,{plugin:{add:function(e,n,o){var i=t.ui[e].prototype;for(var r in o)i.plugins[r]=i.plugins[r]||[],i.plugins[r].push([n,o[r]])},call:function(t,e,n){var o=t.plugins[e];if(o&&t.element[0].parentNode)for(var i=0;i<o.length;i++)t.options[o[i][0]]&&o[i][1].apply(t.element,n)}},contains:function(t,e){return document.compareDocumentPosition?16&t.compareDocumentPosition(e):t!==e&&t.contains(e)},hasScroll:function(e,n){if("hidden"===t(e).css("overflow"))return!1;var o=n&&"left"===n?"scrollLeft":"scrollTop",i=!1;return e[o]>0?!0:(e[o]=1,i=e[o]>0,e[o]=0,i)},isOverAxis:function(t,e,n){return t>e&&e+n>t},isOver:function(e,n,o,i,r,s){return t.ui.isOverAxis(e,o,r)&&t.ui.isOverAxis(n,i,s)}}))}(jQuery),/*! jQuery UI - v1.8.20 - 2012-04-30
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.widget.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
function(t,e){if(t.cleanData){var n=t.cleanData;t.cleanData=function(e){for(var o,i=0;null!=(o=e[i]);i++)try{t(o).triggerHandler("remove")}catch(r){}n(e)}}else{var o=t.fn.remove;t.fn.remove=function(e,n){return this.each(function(){return n||(!e||t.filter(e,[this]).length)&&t("*",this).add([this]).each(function(){try{t(this).triggerHandler("remove")}catch(e){}}),o.call(t(this),e,n)})}}t.widget=function(e,n,o){var i,r=e.split(".")[0];e=e.split(".")[1],i=r+"-"+e,o||(o=n,n=t.Widget),t.expr[":"][i]=function(n){return!!t.data(n,e)},t[r]=t[r]||{},t[r][e]=function(t,e){arguments.length&&this._createWidget(t,e)};var s=new n;s.options=t.extend(!0,{},s.options),t[r][e].prototype=t.extend(!0,s,{namespace:r,widgetName:e,widgetEventPrefix:t[r][e].prototype.widgetEventPrefix||e,widgetBaseClass:i},o),t.widget.bridge(e,t[r][e])},t.widget.bridge=function(n,o){t.fn[n]=function(i){var r="string"==typeof i,s=Array.prototype.slice.call(arguments,1),a=this;return i=!r&&s.length?t.extend.apply(null,[!0,i].concat(s)):i,r&&"_"===i.charAt(0)?a:(this.each(r?function(){var o=t.data(this,n),r=o&&t.isFunction(o[i])?o[i].apply(o,s):o;return r!==o&&r!==e?(a=r,!1):void 0}:function(){var e=t.data(this,n);e?e.option(i||{})._init():t.data(this,n,new o(i,this))}),a)}},t.Widget=function(t,e){arguments.length&&this._createWidget(t,e)},t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(e,n){t.data(n,this.widgetName,this),this.element=t(n),this.options=t.extend(!0,{},this.options,this._getCreateOptions(),e);var o=this;this.element.bind("remove."+this.widgetName,function(){o.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){return t.metadata&&t.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(n,o){var i=n;if(0===arguments.length)return t.extend({},this.options);if("string"==typeof n){if(o===e)return this.options[n];i={},i[n]=o}return this._setOptions(i),this},_setOptions:function(e){var n=this;return t.each(e,function(t,e){n._setOption(t,e)}),this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",e),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(e,n,o){var i,r,s=this.options[e];if(o=o||{},n=t.Event(n),n.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],r=n.originalEvent,r)for(i in r)i in n||(n[i]=r[i]);return this.element.trigger(n,o),!(t.isFunction(s)&&s.call(this.element[0],n,o)===!1||n.isDefaultPrevented())}}}(jQuery),/*! jQuery UI - v1.8.20 - 2012-04-30
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.mouse.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(n){return!0===t.data(n.target,e.widgetName+".preventClickEvent")?(t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var o=this,i=1==n.which,r="string"==typeof this.options.cancel&&n.target.nodeName?t(n.target).closest(this.options.cancel).length:!1;return i&&!r&&this._mouseCapture(n)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){o.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=this._mouseStart(n)!==!1,!this._mouseStarted)?(n.preventDefault(),!0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return o._mouseMove(t)},this._mouseUpDelegate=function(t){return o._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,!0)):!0}},_mouseMove:function(e){return!t.browser.msie||document.documentMode>=9||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target==this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),/*! jQuery UI - v1.8.20 - 2012-04-30
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.position.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
function(t){t.ui=t.ui||{};var e=/left|center|right/,n=/top|center|bottom/,o="center",i={},r=t.fn.position,s=t.fn.offset;t.fn.position=function(s){if(!s||!s.of)return r.apply(this,arguments);s=t.extend({},s);var a,l,u,c=t(s.of),h=c[0],p=(s.collision||"flip").split(" "),f=s.offset?s.offset.split(" "):[0,0];return 9===h.nodeType?(a=c.width(),l=c.height(),u={top:0,left:0}):h.setTimeout?(a=c.width(),l=c.height(),u={top:c.scrollTop(),left:c.scrollLeft()}):h.preventDefault?(s.at="left top",a=l=0,u={top:s.of.pageY,left:s.of.pageX}):(a=c.outerWidth(),l=c.outerHeight(),u=c.offset()),t.each(["my","at"],function(){var t=(s[this]||"").split(" ");1===t.length&&(t=e.test(t[0])?t.concat([o]):n.test(t[0])?[o].concat(t):[o,o]),t[0]=e.test(t[0])?t[0]:o,t[1]=n.test(t[1])?t[1]:o,s[this]=t}),1===p.length&&(p[1]=p[0]),f[0]=parseInt(f[0],10)||0,1===f.length&&(f[1]=f[0]),f[1]=parseInt(f[1],10)||0,"right"===s.at[0]?u.left+=a:s.at[0]===o&&(u.left+=a/2),"bottom"===s.at[1]?u.top+=l:s.at[1]===o&&(u.top+=l/2),u.left+=f[0],u.top+=f[1],this.each(function(){var e,n=t(this),r=n.outerWidth(),c=n.outerHeight(),h=parseInt(t.curCSS(this,"marginLeft",!0))||0,d=parseInt(t.curCSS(this,"marginTop",!0))||0,v=r+h+(parseInt(t.curCSS(this,"marginRight",!0))||0),g=c+d+(parseInt(t.curCSS(this,"marginBottom",!0))||0),m=t.extend({},u);"right"===s.my[0]?m.left-=r:s.my[0]===o&&(m.left-=r/2),"bottom"===s.my[1]?m.top-=c:s.my[1]===o&&(m.top-=c/2),i.fractions||(m.left=Math.round(m.left),m.top=Math.round(m.top)),e={left:m.left-h,top:m.top-d},t.each(["left","top"],function(n,o){t.ui.position[p[n]]&&t.ui.position[p[n]][o](m,{targetWidth:a,targetHeight:l,elemWidth:r,elemHeight:c,collisionPosition:e,collisionWidth:v,collisionHeight:g,offset:f,my:s.my,at:s.at})}),t.fn.bgiframe&&n.bgiframe(),n.offset(t.extend(m,{using:s.using}))})},t.ui.position={fit:{left:function(e,n){var o=t(window),i=n.collisionPosition.left+n.collisionWidth-o.width()-o.scrollLeft();e.left=i>0?e.left-i:Math.max(e.left-n.collisionPosition.left,e.left)},top:function(e,n){var o=t(window),i=n.collisionPosition.top+n.collisionHeight-o.height()-o.scrollTop();e.top=i>0?e.top-i:Math.max(e.top-n.collisionPosition.top,e.top)}},flip:{left:function(e,n){if(n.at[0]!==o){var i=t(window),r=n.collisionPosition.left+n.collisionWidth-i.width()-i.scrollLeft(),s="left"===n.my[0]?-n.elemWidth:"right"===n.my[0]?n.elemWidth:0,a="left"===n.at[0]?n.targetWidth:-n.targetWidth,l=-2*n.offset[0];e.left+=n.collisionPosition.left<0?s+a+l:r>0?s+a+l:0}},top:function(e,n){if(n.at[1]!==o){var i=t(window),r=n.collisionPosition.top+n.collisionHeight-i.height()-i.scrollTop(),s="top"===n.my[1]?-n.elemHeight:"bottom"===n.my[1]?n.elemHeight:0,a="top"===n.at[1]?n.targetHeight:-n.targetHeight,l=-2*n.offset[1];e.top+=n.collisionPosition.top<0?s+a+l:r>0?s+a+l:0}}}},t.offset.setOffset||(t.offset.setOffset=function(e,n){/static/.test(t.curCSS(e,"position"))&&(e.style.position="relative");var o=t(e),i=o.offset(),r=parseInt(t.curCSS(e,"top",!0),10)||0,s=parseInt(t.curCSS(e,"left",!0),10)||0,a={top:n.top-i.top+r,left:n.left-i.left+s};"using"in n?n.using.call(e,a):o.css(a)},t.fn.offset=function(e){var n=this[0];return n&&n.ownerDocument?e?this.each(function(){t.offset.setOffset(this,e)}):s.call(this):null}),function(){var e,n,o,r,s,a=document.getElementsByTagName("body")[0],l=document.createElement("div");e=document.createElement(a?"div":"body"),o={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},a&&t.extend(o,{position:"absolute",left:"-1000px",top:"-1000px"});for(var u in o)e.style[u]=o[u];e.appendChild(l),n=a||document.documentElement,n.insertBefore(e,n.firstChild),l.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",r=t(l).offset(function(t,e){return e}).offset(),e.innerHTML="",n.removeChild(e),s=r.top+r.left+(a?2e3:0),i.fractions=s>21&&22>s}()}(jQuery),/*! jQuery UI - v1.8.20 - 2012-04-30
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.draggable.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
function(t){t.widget("ui.draggable",t.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){"original"==this.options.helper&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function(){return this.element.data("draggable")?(this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this):void 0},_mouseCapture:function(e){var n=this.options;return this.helper||n.disabled||t(e.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(e),this.handle?(n.iframeFix&&t(n.iframeFix===!0?"iframe":n.iframeFix).each(function(){t('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),n.containment&&this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,n){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!n){var o=this._uiHash();if(this._trigger("drag",e,o)===!1)return this._mouseUp({}),!1;this.position=o.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=!1;t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1);for(var o=this.element[0],i=!1;o&&(o=o.parentNode);)o==document&&(i=!0);if(!i&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!n||"valid"==this.options.revert&&n||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)){var r=this;t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",e)!==!1&&r._clear()})}else this._trigger("stop",e)!==!1&&this._clear();return!1},_mouseUp:function(e){return this.options.iframeFix===!0&&t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){var n=this.options.handle&&t(this.options.handle,this.element).length?!1:!0;return t(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(n=!0)}),n},_createHelper:function(e){var n=this.options,o=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e])):"clone"==n.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"==n.appendTo?this.element[0].parentNode:n.appendTo),o[0]!=this.element[0]&&!/(fixed|absolute)/.test(o.css("position"))&&o.css("position","absolute"),o},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.browser.msie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),("document"==e.containment||"window"==e.containment)&&(this.containment=["document"==e.containment?0:t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==e.containment?0:t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==e.containment?0:t(window).scrollLeft())+t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==e.containment?0:t(window).scrollTop())+(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||e.containment.constructor==Array)e.containment.constructor==Array&&(this.containment=e.containment);else{var n=t(e.containment),o=n[0];if(!o)return;var i=(n.offset(),"hidden"!=t(o).css("overflow"));this.containment=[(parseInt(t(o).css("borderLeftWidth"),10)||0)+(parseInt(t(o).css("paddingLeft"),10)||0),(parseInt(t(o).css("borderTopWidth"),10)||0)+(parseInt(t(o).css("paddingTop"),10)||0),(i?Math.max(o.scrollWidth,o.offsetWidth):o.offsetWidth)-(parseInt(t(o).css("borderLeftWidth"),10)||0)-(parseInt(t(o).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(i?Math.max(o.scrollHeight,o.offsetHeight):o.offsetHeight)-(parseInt(t(o).css("borderTopWidth"),10)||0)-(parseInt(t(o).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=n}},_convertPositionTo:function(e,n){n||(n=this.position);var o="absolute"==e?1:-1,i=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),r=/(html|body)/i.test(i[0].tagName);return{top:n.top+this.offset.relative.top*o+this.offset.parent.top*o-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():r?0:i.scrollTop())*o),left:n.left+this.offset.relative.left*o+this.offset.parent.left*o-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():r?0:i.scrollLeft())*o)}},_generatePosition:function(e){var n=this.options,o="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(o[0].tagName),r=e.pageX,s=e.pageY;if(this.originalPosition){var a;if(this.containment){if(this.relative_container){var l=this.relative_container.offset();a=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]}else a=this.containment;e.pageX-this.offset.click.left<a[0]&&(r=a[0]+this.offset.click.left),e.pageY-this.offset.click.top<a[1]&&(s=a[1]+this.offset.click.top),e.pageX-this.offset.click.left>a[2]&&(r=a[2]+this.offset.click.left),e.pageY-this.offset.click.top>a[3]&&(s=a[3]+this.offset.click.top)}if(n.grid){var u=n.grid[1]?this.originalPageY+Math.round((s-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY;s=a&&(u-this.offset.click.top<a[1]||u-this.offset.click.top>a[3])?u-this.offset.click.top<a[1]?u+n.grid[1]:u-n.grid[1]:u;var c=n.grid[0]?this.originalPageX+Math.round((r-this.originalPageX)/n.grid[0])*n.grid[0]:this.originalPageX;r=a&&(c-this.offset.click.left<a[0]||c-this.offset.click.left>a[2])?c-this.offset.click.left<a[0]?c+n.grid[0]:c-n.grid[0]:c}}return{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():i?0:o.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():i?0:o.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,n,o){return o=o||this._uiHash(),t.ui.plugin.call(this,e,[n,o]),"drag"==e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,n,o)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.extend(t.ui.draggable,{version:"1.8.20"}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n){var o=t(this).data("draggable"),i=o.options,r=t.extend({},n,{item:o.element});o.sortables=[],t(i.connectToSortable).each(function(){var n=t.data(this,"sortable");n&&!n.options.disabled&&(o.sortables.push({instance:n,shouldRevert:n.options.revert}),n.refreshPositions(),n._trigger("activate",e,r))})},stop:function(e,n){var o=t(this).data("draggable"),i=t.extend({},n,{item:o.element});t.each(o.sortables,function(){this.instance.isOver?(this.instance.isOver=0,o.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"==o.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,i))})},drag:function(e,n){var o=t(this).data("draggable"),i=this;t.each(o.sortables,function(){this.instance.positionAbs=o.positionAbs,this.instance.helperProportions=o.helperProportions,this.instance.offset.click=o.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(i).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return n.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=o.offset.click.top,this.instance.offset.click.left=o.offset.click.left,this.instance.offset.parent.left-=o.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=o.offset.parent.top-this.instance.offset.parent.top,o._trigger("toSortable",e),o.dropped=this.instance.element,o.currentItem=o.element,this.instance.fromOutside=o),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),o._trigger("fromSortable",e),o.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),n=t(this).data("draggable").options;e.css("cursor")&&(n._cursor=e.css("cursor")),e.css("cursor",n.cursor)},stop:function(){var e=t(this).data("draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n){var o=t(n.helper),i=t(this).data("draggable").options;o.css("opacity")&&(i._opacity=o.css("opacity")),o.css("opacity",i.opacity)},stop:function(e,n){var o=t(this).data("draggable").options;o._opacity&&t(n.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("draggable");e.scrollParent[0]!=document&&"HTML"!=e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var n=t(this).data("draggable"),o=n.options,i=!1;n.scrollParent[0]!=document&&"HTML"!=n.scrollParent[0].tagName?(o.axis&&"x"==o.axis||(n.overflowOffset.top+n.scrollParent[0].offsetHeight-e.pageY<o.scrollSensitivity?n.scrollParent[0].scrollTop=i=n.scrollParent[0].scrollTop+o.scrollSpeed:e.pageY-n.overflowOffset.top<o.scrollSensitivity&&(n.scrollParent[0].scrollTop=i=n.scrollParent[0].scrollTop-o.scrollSpeed)),o.axis&&"y"==o.axis||(n.overflowOffset.left+n.scrollParent[0].offsetWidth-e.pageX<o.scrollSensitivity?n.scrollParent[0].scrollLeft=i=n.scrollParent[0].scrollLeft+o.scrollSpeed:e.pageX-n.overflowOffset.left<o.scrollSensitivity&&(n.scrollParent[0].scrollLeft=i=n.scrollParent[0].scrollLeft-o.scrollSpeed))):(o.axis&&"x"==o.axis||(e.pageY-t(document).scrollTop()<o.scrollSensitivity?i=t(document).scrollTop(t(document).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<o.scrollSensitivity&&(i=t(document).scrollTop(t(document).scrollTop()+o.scrollSpeed))),o.axis&&"y"==o.axis||(e.pageX-t(document).scrollLeft()<o.scrollSensitivity?i=t(document).scrollLeft(t(document).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<o.scrollSensitivity&&(i=t(document).scrollLeft(t(document).scrollLeft()+o.scrollSpeed)))),i!==!1&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("draggable"),n=e.options;e.snapElements=[],t(n.snap.constructor!=String?n.snap.items||":data(draggable)":n.snap).each(function(){var n=t(this),o=n.offset();this!=e.element[0]&&e.snapElements.push({item:this,width:n.outerWidth(),height:n.outerHeight(),top:o.top,left:o.left})})},drag:function(e,n){for(var o=t(this).data("draggable"),i=o.options,r=i.snapTolerance,s=n.offset.left,a=s+o.helperProportions.width,l=n.offset.top,u=l+o.helperProportions.height,c=o.snapElements.length-1;c>=0;c--){var h=o.snapElements[c].left,p=h+o.snapElements[c].width,f=o.snapElements[c].top,d=f+o.snapElements[c].height;if(s>h-r&&p+r>s&&l>f-r&&d+r>l||s>h-r&&p+r>s&&u>f-r&&d+r>u||a>h-r&&p+r>a&&l>f-r&&d+r>l||a>h-r&&p+r>a&&u>f-r&&d+r>u){if("inner"!=i.snapMode){var v=Math.abs(f-u)<=r,g=Math.abs(d-l)<=r,m=Math.abs(h-a)<=r,y=Math.abs(p-s)<=r;v&&(n.position.top=o._convertPositionTo("relative",{top:f-o.helperProportions.height,left:0}).top-o.margins.top),g&&(n.position.top=o._convertPositionTo("relative",{top:d,left:0}).top-o.margins.top),m&&(n.position.left=o._convertPositionTo("relative",{top:0,left:h-o.helperProportions.width}).left-o.margins.left),y&&(n.position.left=o._convertPositionTo("relative",{top:0,left:p}).left-o.margins.left)}var b=v||g||m||y;if("outer"!=i.snapMode){var v=Math.abs(f-l)<=r,g=Math.abs(d-u)<=r,m=Math.abs(h-s)<=r,y=Math.abs(p-a)<=r;v&&(n.position.top=o._convertPositionTo("relative",{top:f,left:0}).top-o.margins.top),g&&(n.position.top=o._convertPositionTo("relative",{top:d-o.helperProportions.height,left:0}).top-o.margins.top),m&&(n.position.left=o._convertPositionTo("relative",{top:0,left:h}).left-o.margins.left),y&&(n.position.left=o._convertPositionTo("relative",{top:0,left:p-o.helperProportions.width}).left-o.margins.left)}!o.snapElements[c].snapping&&(v||g||m||y||b)&&o.options.snap.snap&&o.options.snap.snap.call(o.element,e,t.extend(o._uiHash(),{snapItem:o.snapElements[c].item})),o.snapElements[c].snapping=v||g||m||y||b}else o.snapElements[c].snapping&&o.options.snap.release&&o.options.snap.release.call(o.element,e,t.extend(o._uiHash(),{snapItem:o.snapElements[c].item})),o.snapElements[c].snapping=!1}}}),t.ui.plugin.add("draggable","stack",{start:function(){var e=t(this).data("draggable").options,n=t.makeArray(t(e.stack)).sort(function(e,n){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(n).css("zIndex"),10)||0)});if(n.length){var o=parseInt(n[0].style.zIndex)||0;t(n).each(function(t){this.style.zIndex=o+t}),this[0].style.zIndex=o+n.length}}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n){var o=t(n.helper),i=t(this).data("draggable").options;o.css("zIndex")&&(i._zIndex=o.css("zIndex")),o.css("zIndex",i.zIndex)},stop:function(e,n){var o=t(this).data("draggable").options;o._zIndex&&t(n.helper).css("zIndex",o._zIndex)}})}(jQuery),/*! jQuery UI - v1.8.20 - 2012-04-30
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.droppable.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
function(t){t.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var e=this.options,n=e.accept;this.isover=0,this.isout=1,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var e=t.ui.ddmanager.droppables[this.options.scope],n=0;n<e.length;n++)e[n]==this&&e.splice(n,1);return this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable"),this},_setOption:function(e,n){"accept"==e&&(this.accept=t.isFunction(n)?n:function(t){return t.is(n)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),n&&this._trigger("activate",e,this.ui(n))},_deactivate:function(e){var n=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),n&&this._trigger("deactivate",e,this.ui(n))},_over:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!=this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(n)))},_out:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!=this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(n)))},_drop:function(e,n){var o=n||t.ui.ddmanager.current;if(!o||(o.currentItem||o.element)[0]==this.element[0])return!1;var i=!1;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"droppable");return e.options.greedy&&!e.options.disabled&&e.options.scope==o.options.scope&&e.accept.call(e.element[0],o.currentItem||o.element)&&t.ui.intersect(o,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(i=!0,!1):void 0}),i?!1:this.accept.call(this.element[0],o.currentItem||o.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(o)),this.element):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.extend(t.ui.droppable,{version:"1.8.20"}),t.ui.intersect=function(e,n,o){if(!n.offset)return!1;var i=(e.positionAbs||e.position.absolute).left,r=i+e.helperProportions.width,s=(e.positionAbs||e.position.absolute).top,a=s+e.helperProportions.height,l=n.offset.left,u=l+n.proportions.width,c=n.offset.top,h=c+n.proportions.height;switch(o){case"fit":return i>=l&&u>=r&&s>=c&&h>=a;case"intersect":return l<i+e.helperProportions.width/2&&r-e.helperProportions.width/2<u&&c<s+e.helperProportions.height/2&&a-e.helperProportions.height/2<h;case"pointer":var p=(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,f=(e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top,d=t.ui.isOver(f,p,c,l,n.proportions.height,n.proportions.width);return d;case"touch":return(s>=c&&h>=s||a>=c&&h>=a||c>s&&a>h)&&(i>=l&&u>=i||r>=l&&u>=r||l>i&&r>u);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,n){var o=t.ui.ddmanager.droppables[e.options.scope]||[],i=n?n.type:null,r=(e.currentItem||e.element).find(":data(droppable)").andSelf();t:for(var s=0;s<o.length;s++)if(!(o[s].options.disabled||e&&!o[s].accept.call(o[s].element[0],e.currentItem||e.element))){for(var a=0;a<r.length;a++)if(r[a]==o[s].element[0]){o[s].proportions.height=0;continue t}o[s].visible="none"!=o[s].element.css("display"),o[s].visible&&("mousedown"==i&&o[s]._activate.call(o[s],n),o[s].offset=o[s].element.offset(),o[s].proportions={width:o[s].element[0].offsetWidth,height:o[s].element[0].offsetHeight})}},drop:function(e,n){var o=!1;return t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance)&&(o=this._drop.call(this,n)||o),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,n)))}),o},dragStart:function(e,n){e.element.parents(":not(body,html)").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)})},drag:function(e,n){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,n),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var o=t.ui.intersect(e,this,this.options.tolerance),i=o||1!=this.isover?o&&0==this.isover?"isover":null:"isout";if(i){var r;if(this.options.greedy){var s=this.element.parents(":data(droppable):eq(0)");s.length&&(r=t.data(s[0],"droppable"),r.greedyChild="isover"==i?1:0)}r&&"isover"==i&&(r.isover=0,r.isout=1,r._out.call(r,n)),this[i]=1,this["isout"==i?"isover":"isout"]=0,this["isover"==i?"_over":"_out"].call(this,n),r&&"isout"==i&&(r.isout=0,r.isover=1,r._over.call(r,n))}}})},dragStop:function(e,n){e.element.parents(":not(body,html)").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}}}(jQuery),/*! jQuery UI - v1.8.20 - 2012-04-30
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.autocomplete.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
function(t){var e=0;t.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var e,n=this,o=this.element[0].ownerDocument;this.isMultiLine=this.element.is("textarea"),this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(o){if(!n.options.disabled&&!n.element.propAttr("readOnly")){e=!1;var i=t.ui.keyCode;switch(o.keyCode){case i.PAGE_UP:n._move("previousPage",o);break;case i.PAGE_DOWN:n._move("nextPage",o);break;case i.UP:n._keyEvent("previous",o);break;case i.DOWN:n._keyEvent("next",o);break;case i.ENTER:case i.NUMPAD_ENTER:n.menu.active&&(e=!0,o.preventDefault());case i.TAB:if(!n.menu.active)return;n.menu.select(o);break;case i.ESCAPE:n.element.val(n.term),n.close(o);break;default:clearTimeout(n.searching),n.searching=setTimeout(function(){n.term!=n.element.val()&&(n.selectedItem=null,n.search(null,o))},n.options.delay)}}}).bind("keypress.autocomplete",function(t){e&&(e=!1,t.preventDefault())}).bind("focus.autocomplete",function(){n.options.disabled||(n.selectedItem=null,n.previous=n.element.val())}).bind("blur.autocomplete",function(t){n.options.disabled||(clearTimeout(n.searching),n.closing=setTimeout(function(){n.close(t),n._change(t)},150))}),this._initSource(),this.menu=t("<ul></ul>").addClass("ui-autocomplete").appendTo(t(this.options.appendTo||"body",o)[0]).mousedown(function(e){var o=n.menu.element[0];t(e.target).closest(".ui-menu-item").length||setTimeout(function(){t(document).one("mousedown",function(e){e.target!==n.element[0]&&e.target!==o&&!t.ui.contains(o,e.target)&&n.close()})},1),setTimeout(function(){clearTimeout(n.closing)},13)}).menu({focus:function(t,e){var o=e.item.data("item.autocomplete");!1!==n._trigger("focus",t,{item:o})&&/^key/.test(t.originalEvent.type)&&n.element.val(o.value)},selected:function(t,e){var i=e.item.data("item.autocomplete"),r=n.previous;n.element[0]!==o.activeElement&&(n.element.focus(),n.previous=r,setTimeout(function(){n.previous=r,n.selectedItem=i},1)),!1!==n._trigger("select",t,{item:i})&&n.element.val(i.value),n.term=n.element.val(),n.close(t),n.selectedItem=i},blur:function(){n.menu.element.is(":visible")&&n.element.val()!==n.term&&n.element.val(n.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),t.fn.bgiframe&&this.menu.element.bgiframe(),n.beforeunloadHandler=function(){n.element.removeAttr("autocomplete")},t(window).bind("beforeunload",n.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),t(window).unbind("beforeunload",this.beforeunloadHandler),t.Widget.prototype.destroy.call(this)},_setOption:function(e,n){t.Widget.prototype._setOption.apply(this,arguments),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(t(n||"body",this.element[0].ownerDocument)[0]),"disabled"===e&&n&&this.xhr&&this.xhr.abort()},_initSource:function(){var e,n,o=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(n,o){o(t.ui.autocomplete.filter(e,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,i){o.xhr&&o.xhr.abort(),o.xhr=t.ajax({url:n,data:e,dataType:"json",success:function(t){i(t)},error:function(){i([])}})}):this.source=this.options.source},search:function(t,e){return t=null!=t?t:this.element.val(),this.term=this.element.val(),t.length<this.options.minLength?this.close(e):(clearTimeout(this.closing),this._trigger("search",e)!==!1?this._search(t):void 0)},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.source({term:t},this._response())},_response:function(){var t=this,n=++e;return function(o){n===e&&t.__response(o),t.pending--,t.pending||t.element.removeClass("ui-autocomplete-loading")}},__response:function(t){!this.options.disabled&&t&&t.length?(t=this._normalize(t),this._suggest(t),this._trigger("open")):this.close()},close:function(t){clearTimeout(this.closing),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",t))},_change:function(t){this.previous!==this.element.val()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var n=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(n,e),this.menu.deactivate(),this.menu.refresh(),n.show(),this._resizeMenu(),n.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(new t.Event("mouseover"))},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,n){var o=this;t.each(n,function(t,n){o._renderItem(e,n)})},_renderItem:function(e,n){return t("<li></li>").data("item.autocomplete",n).append(t("<a></a>").text(n.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.first()&&/^previous/.test(t)||this.menu.last()&&/^next/.test(t)?(this.element.val(this.term),void this.menu.deactivate()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(e,n){var o=new RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,function(t){return o.test(t.label||t.value||t)})}})}(jQuery),function(t){t.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(n){t(n.target).closest(".ui-menu-item a").length&&(n.preventDefault(),e.select(n))}),this.refresh()},refresh:function(){var e=this,n=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");n.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(n){e.activate(n,t(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(t,e){if(this.deactivate(),this.hasScroll()){var n=e.offset().top-this.element.offset().top,o=this.element.scrollTop(),i=this.element.height();0>n?this.element.scrollTop(o+n):n>=i&&this.element.scrollTop(o+n-i+e.height())}this.active=e.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",t,{item:e})},deactivate:function(){this.active&&(this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null)},next:function(t){this.move("next",".ui-menu-item:first",t)},previous:function(t){this.move("prev",".ui-menu-item:last",t)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(t,e,n){if(!this.active)return void this.activate(n,this.element.children(e));var o=this.active[t+"All"](".ui-menu-item").eq(0);o.length?this.activate(n,o):this.activate(n,this.element.children(e))},nextPage:function(e){if(this.hasScroll()){if(!this.active||this.last())return void this.activate(e,this.element.children(".ui-menu-item:first"));var n=this.active.offset().top,o=this.element.height(),i=this.element.children(".ui-menu-item").filter(function(){var e=t(this).offset().top-n-o+t(this).height();return 10>e&&e>-10});i.length||(i=this.element.children(".ui-menu-item:last")),this.activate(e,i)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll()){if(!this.active||this.first())return void this.activate(e,this.element.children(".ui-menu-item:last"));var n=this.active.offset().top,o=this.element.height(),i=this.element.children(".ui-menu-item").filter(function(){var e=t(this).offset().top-n+o-t(this).height();return 10>e&&e>-10});i.length||(i=this.element.children(".ui-menu-item:first")),this.activate(e,i)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[t.fn.prop?"prop":"attr"]("scrollHeight")},select:function(t){this._trigger("selected",t,{item:this.active})}})}(jQuery),/*! jQuery UI - v1.8.20 - 2012-04-30
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.slider.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
function(t){var e=5;t.widget("ui.slider",t.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var n=this,o=this.options,i=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),r="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",s=o.values&&o.values.length||1,a=[];this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(o.disabled?" ui-slider-disabled ui-disabled":"")),this.range=t([]),o.range&&(o.range===!0&&(o.values||(o.values=[this._valueMin(),this._valueMin()]),o.values.length&&2!==o.values.length&&(o.values=[o.values[0],o.values[0]])),this.range=t("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===o.range||"max"===o.range?" ui-slider-range-"+o.range:"")));for(var l=i.length;s>l;l+=1)a.push(r);this.handles=i.add(t(a.join("")).appendTo(n.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click(function(t){t.preventDefault()}).hover(function(){o.disabled||t(this).addClass("ui-state-hover")},function(){t(this).removeClass("ui-state-hover")}).focus(function(){o.disabled?t(this).blur():(t(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),t(this).addClass("ui-state-focus"))}).blur(function(){t(this).removeClass("ui-state-focus")}),this.handles.each(function(e){t(this).data("index.ui-slider-handle",e)}),this.handles.keydown(function(o){var i,r,s,a,l=t(this).data("index.ui-slider-handle");if(!n.options.disabled){switch(o.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(o.preventDefault(),!n._keySliding&&(n._keySliding=!0,t(this).addClass("ui-state-active"),i=n._start(o,l),i===!1))return}switch(a=n.options.step,r=s=n.options.values&&n.options.values.length?n.values(l):n.value(),o.keyCode){case t.ui.keyCode.HOME:s=n._valueMin();break;case t.ui.keyCode.END:s=n._valueMax();break;case t.ui.keyCode.PAGE_UP:s=n._trimAlignValue(r+(n._valueMax()-n._valueMin())/e);break;case t.ui.keyCode.PAGE_DOWN:s=n._trimAlignValue(r-(n._valueMax()-n._valueMin())/e);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(r===n._valueMax())return;s=n._trimAlignValue(r+a);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(r===n._valueMin())return;s=n._trimAlignValue(r-a)}n._slide(o,l,s)}}).keyup(function(e){var o=t(this).data("index.ui-slider-handle");n._keySliding&&(n._keySliding=!1,n._stop(e,o),n._change(e,o),t(this).removeClass("ui-state-active"))}),this._refreshValue(),this._animateOff=!1},destroy:function(){return this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"),this._mouseDestroy(),this},_mouseCapture:function(e){var n,o,i,r,s,a,l,u,c,h=this.options;return h.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},o=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,s=this,this.handles.each(function(e){var n=Math.abs(o-s.values(e));i>n&&(i=n,r=t(this),a=e)}),h.range===!0&&this.values(1)===h.min&&(a+=1,r=t(this.handles[a])),l=this._start(e,a),l===!1?!1:(this._mouseSliding=!0,s._handleIndex=a,r.addClass("ui-state-active").focus(),u=r.offset(),c=!t(e.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:e.pageX-u.left-r.width()/2,top:e.pageY-u.top-r.height()/2-(parseInt(r.css("borderTopWidth"),10)||0)-(parseInt(r.css("borderBottomWidth"),10)||0)+(parseInt(r.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,o),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,o,i,r;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),o=n/e,o>1&&(o=1),0>o&&(o=0),"vertical"===this.orientation&&(o=1-o),i=this._valueMax()-this._valueMin(),r=this._valueMin()+o*i,this._trimAlignValue(r)},_start:function(t,e){var n={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._trigger("start",t,n)},_slide:function(t,e,n){var o,i,r;this.options.values&&this.options.values.length?(o=this.values(e?0:1),2===this.options.values.length&&this.options.range===!0&&(0===e&&n>o||1===e&&o>n)&&(n=o),n!==this.values(e)&&(i=this.values(),i[e]=n,r=this._trigger("slide",t,{handle:this.handles[e],value:n,values:i}),o=this.values(e?0:1),r!==!1&&this.values(e,n,!0))):n!==this.value()&&(r=this._trigger("slide",t,{handle:this.handles[e],value:n}),r!==!1&&this.value(n))},_stop:function(t,e){var n={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._trigger("stop",t,n)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var n={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(e),n.values=this.values()),this._trigger("change",t,n)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(e,n){var o,i,r;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),this._change(null,e),void 0;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(o=this.options.values,i=arguments[0],r=0;r<o.length;r+=1)o[r]=this._trimAlignValue(i[r]),this._change(null,r);this._refreshValue()},_setOption:function(e,n){var o,i=0;switch(t.isArray(this.options.values)&&(i=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"disabled":n?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),o=0;i>o;o+=1)this._change(null,o);this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,n,o;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);for(n=this.options.values.slice(),o=0;o<n.length;o+=1)n[o]=this._trimAlignValue(n[o]);return n},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,o=t-n;return 2*Math.abs(n)>=e&&(o+=n>0?e:-e),parseFloat(o.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,n,o,i,r,s=this.options.range,a=this.options,l=this,u=this._animateOff?!1:a.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(o){e=(l.values(o)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=e+"%",t(this).stop(1,1)[u?"animate":"css"](c,a.animate),l.options.range===!0&&("horizontal"===l.orientation?(0===o&&l.range.stop(1,1)[u?"animate":"css"]({left:e+"%"},a.animate),1===o&&l.range[u?"animate":"css"]({width:e-n+"%"},{queue:!1,duration:a.animate})):(0===o&&l.range.stop(1,1)[u?"animate":"css"]({bottom:e+"%"},a.animate),1===o&&l.range[u?"animate":"css"]({height:e-n+"%"},{queue:!1,duration:a.animate}))),n=e}):(o=this.value(),i=this._valueMin(),r=this._valueMax(),e=r!==i?(o-i)/(r-i)*100:0,c["horizontal"===l.orientation?"left":"bottom"]=e+"%",this.handle.stop(1,1)[u?"animate":"css"](c,a.animate),"min"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:e+"%"},a.animate),"max"===s&&"horizontal"===this.orientation&&this.range[u?"animate":"css"]({width:100-e+"%"},{queue:!1,duration:a.animate}),"min"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:e+"%"},a.animate),"max"===s&&"vertical"===this.orientation&&this.range[u?"animate":"css"]({height:100-e+"%"},{queue:!1,duration:a.animate}))}}),t.extend(t.ui.slider,{version:"1.8.20"})}(jQuery),/*! jQuery UI - v1.8.20 - 2012-04-30
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.core.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
jQuery.effects||function(t,e){function n(e){var n;return e&&e.constructor==Array&&3==e.length?e:(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)]:(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))?[2.55*parseFloat(n[1]),2.55*parseFloat(n[2]),2.55*parseFloat(n[3])]:(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))?[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]:(n=/rgba\(0, 0, 0, 0\)/.exec(e))?u.transparent:u[t.trim(e).toLowerCase()]}function o(e,o){var i;do{if(i=t.curCSS(e,o),""!=i&&"transparent"!=i||t.nodeName(e,"body"))break;o="backgroundColor"}while(e=e.parentNode);return n(i)}function i(){var t,e,n=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(var i=n.length;i--;)t=n[i],"string"==typeof n[t]&&(e=t.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()}),o[e]=n[t]);else for(t in n)"string"==typeof n[t]&&(o[t]=n[t]);return o}function r(e){var n,o;for(n in e)o=e[n],(null==o||t.isFunction(o)||n in h||/scrollbar/.test(n)||!/color/i.test(n)&&isNaN(parseFloat(o)))&&delete e[n];return e}function s(t,e){var n,o={_:0};for(n in e)t[n]!=e[n]&&(o[n]=e[n]);return o}function a(e,n,o,i){return"object"==typeof e&&(i=n,o=null,n=e,e=n.effect),t.isFunction(n)&&(i=n,o=null,n={}),("number"==typeof n||t.fx.speeds[n])&&(i=o,o=n,n={}),t.isFunction(o)&&(i=o,o=null),n=n||{},o=o||n.duration,o=t.fx.off?0:"number"==typeof o?o:o in t.fx.speeds?t.fx.speeds[o]:t.fx.speeds._default,i=i||n.complete,[e,n,o,i]}function l(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects[e]?!1:!0}t.effects={},t.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(e,i){t.fx.step[i]=function(t){t.colorInit||(t.start=o(t.elem,i),t.end=n(t.end),t.colorInit=!0),t.elem.style[i]="rgb("+Math.max(Math.min(parseInt(t.pos*(t.end[0]-t.start[0])+t.start[0],10),255),0)+","+Math.max(Math.min(parseInt(t.pos*(t.end[1]-t.start[1])+t.start[1],10),255),0)+","+Math.max(Math.min(parseInt(t.pos*(t.end[2]-t.start[2])+t.start[2],10),255),0)+")"}});var u={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},c=["add","remove","toggle"],h={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.effects.animateClass=function(e,n,o,a){return t.isFunction(o)&&(a=o,o=null),this.queue(function(){var l,u=t(this),h=u.attr("style")||" ",p=r(i.call(this)),f=u.attr("class")||"";t.each(c,function(t,n){e[n]&&u[n+"Class"](e[n])}),l=r(i.call(this)),u.attr("class",f),u.animate(s(p,l),{queue:!1,duration:n,easing:o,complete:function(){t.each(c,function(t,n){e[n]&&u[n+"Class"](e[n])}),"object"==typeof u.attr("style")?(u.attr("style").cssText="",u.attr("style").cssText=h):u.attr("style",h),a&&a.apply(this,arguments),t.dequeue(this)}})})},t.fn.extend({_addClass:t.fn.addClass,addClass:function(e,n,o,i){return n?t.effects.animateClass.apply(this,[{add:e},n,o,i]):this._addClass(e)},_removeClass:t.fn.removeClass,removeClass:function(e,n,o,i){return n?t.effects.animateClass.apply(this,[{remove:e},n,o,i]):this._removeClass(e)},_toggleClass:t.fn.toggleClass,toggleClass:function(n,o,i,r,s){return"boolean"==typeof o||o===e?i?t.effects.animateClass.apply(this,[o?{add:n}:{remove:n},i,r,s]):this._toggleClass(n,o):t.effects.animateClass.apply(this,[{toggle:n},o,i,r])},switchClass:function(e,n,o,i,r){return t.effects.animateClass.apply(this,[{add:n,remove:e},o,i,r])}}),t.extend(t.effects,{version:"1.8.20",save:function(t,e){for(var n=0;n<e.length;n++)null!==e[n]&&t.data("ec.storage."+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n=0;n<e.length;n++)null!==e[n]&&t.css(e[n],t.data("ec.storage."+e[n]))},setMode:function(t,e){return"toggle"==e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var n,o;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":o=0;break;case"center":o=.5;break;case"right":o=1;break;default:o=t[1]/e.width}return{x:o,y:n}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var n={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},o=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i=document.activeElement;return e.wrap(o),(e[0]===i||t.contains(e[0],i))&&t(i).focus(),o=e.parent(),"static"==e.css("position")?(o.css({position:"relative"}),e.css({position:"relative"})):(t.extend(n,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,o){n[o]=e.css(o),isNaN(parseInt(n[o],10))&&(n[o]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),o.css(n).show()},removeWrapper:function(e){var n,o=document.activeElement;return e.parent().is(".ui-effects-wrapper")?(n=e.parent().replaceWith(e),(e[0]===o||t.contains(e[0],o))&&t(o).focus(),n):e},setTransition:function(e,n,o,i){return i=i||{},t.each(n,function(t,n){var r=e.cssUnit(n);r[0]>0&&(i[n]=r[0]*o+r[1])}),i}}),t.fn.extend({effect:function(e){var n=a.apply(this,arguments),o={options:n[1],duration:n[2],callback:n[3]},i=o.options.mode,r=t.effects[e];return t.fx.off||!r?i?this[i](o.duration,o.callback):this.each(function(){o.callback&&o.callback.call(this)}):r.call(this,o)},_show:t.fn.show,show:function(t){if(l(t))return this._show.apply(this,arguments);var e=a.apply(this,arguments);return e[1].mode="show",this.effect.apply(this,e)},_hide:t.fn.hide,hide:function(t){if(l(t))return this._hide.apply(this,arguments);var e=a.apply(this,arguments);return e[1].mode="hide",this.effect.apply(this,e)},__toggle:t.fn.toggle,toggle:function(e){if(l(e)||"boolean"==typeof e||t.isFunction(e))return this.__toggle.apply(this,arguments);var n=a.apply(this,arguments);return n[1].mode="toggle",this.effect.apply(this,n)},cssUnit:function(e){var n=this.css(e),o=[];return t.each(["em","px","%","pt"],function(t,e){n.indexOf(e)>0&&(o=[parseFloat(n),e])}),o}}),t.easing.jswing=t.easing.swing,t.extend(t.easing,{def:"easeOutQuad",swing:function(e,n,o,i,r){return t.easing[t.easing.def](e,n,o,i,r)},easeInQuad:function(t,e,n,o,i){return o*(e/=i)*e+n},easeOutQuad:function(t,e,n,o,i){return-o*(e/=i)*(e-2)+n},easeInOutQuad:function(t,e,n,o,i){return(e/=i/2)<1?o/2*e*e+n:-o/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,o,i){return o*(e/=i)*e*e+n},easeOutCubic:function(t,e,n,o,i){return o*((e=e/i-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,o,i){return(e/=i/2)<1?o/2*e*e*e+n:o/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,o,i){return o*(e/=i)*e*e*e+n},easeOutQuart:function(t,e,n,o,i){return-o*((e=e/i-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,o,i){return(e/=i/2)<1?o/2*e*e*e*e+n:-o/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,o,i){return o*(e/=i)*e*e*e*e+n},easeOutQuint:function(t,e,n,o,i){return o*((e=e/i-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,o,i){return(e/=i/2)<1?o/2*e*e*e*e*e+n:o/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,o,i){return-o*Math.cos(e/i*(Math.PI/2))+o+n},easeOutSine:function(t,e,n,o,i){return o*Math.sin(e/i*(Math.PI/2))+n},easeInOutSine:function(t,e,n,o,i){return-o/2*(Math.cos(Math.PI*e/i)-1)+n},easeInExpo:function(t,e,n,o,i){return 0==e?n:o*Math.pow(2,10*(e/i-1))+n},easeOutExpo:function(t,e,n,o,i){return e==i?n+o:o*(-Math.pow(2,-10*e/i)+1)+n},easeInOutExpo:function(t,e,n,o,i){return 0==e?n:e==i?n+o:(e/=i/2)<1?o/2*Math.pow(2,10*(e-1))+n:o/2*(-Math.pow(2,-10*--e)+2)+n},easeInCirc:function(t,e,n,o,i){return-o*(Math.sqrt(1-(e/=i)*e)-1)+n},easeOutCirc:function(t,e,n,o,i){return o*Math.sqrt(1-(e=e/i-1)*e)+n},easeInOutCirc:function(t,e,n,o,i){return(e/=i/2)<1?-o/2*(Math.sqrt(1-e*e)-1)+n:o/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,o,i){var r=1.70158,s=0,a=o;if(0==e)return n;if(1==(e/=i))return n+o;if(s||(s=.3*i),a<Math.abs(o)){a=o;var r=s/4}else var r=s/(2*Math.PI)*Math.asin(o/a);return-(a*Math.pow(2,10*(e-=1))*Math.sin(2*(e*i-r)*Math.PI/s))+n},easeOutElastic:function(t,e,n,o,i){var r=1.70158,s=0,a=o;if(0==e)return n;if(1==(e/=i))return n+o;if(s||(s=.3*i),a<Math.abs(o)){a=o;var r=s/4}else var r=s/(2*Math.PI)*Math.asin(o/a);return a*Math.pow(2,-10*e)*Math.sin(2*(e*i-r)*Math.PI/s)+o+n},easeInOutElastic:function(t,e,n,o,i){var r=1.70158,s=0,a=o;if(0==e)return n;if(2==(e/=i/2))return n+o;if(s||(s=.3*i*1.5),a<Math.abs(o)){a=o;var r=s/4}else var r=s/(2*Math.PI)*Math.asin(o/a);return 1>e?-.5*a*Math.pow(2,10*(e-=1))*Math.sin(2*(e*i-r)*Math.PI/s)+n:a*Math.pow(2,-10*(e-=1))*Math.sin(2*(e*i-r)*Math.PI/s)*.5+o+n},easeInBack:function(t,n,o,i,r,s){return s==e&&(s=1.70158),i*(n/=r)*n*((s+1)*n-s)+o},easeOutBack:function(t,n,o,i,r,s){return s==e&&(s=1.70158),i*((n=n/r-1)*n*((s+1)*n+s)+1)+o},easeInOutBack:function(t,n,o,i,r,s){return s==e&&(s=1.70158),(n/=r/2)<1?i/2*n*n*(((s*=1.525)+1)*n-s)+o:i/2*((n-=2)*n*(((s*=1.525)+1)*n+s)+2)+o},easeInBounce:function(e,n,o,i,r){return i-t.easing.easeOutBounce(e,r-n,0,i,r)+o},easeOutBounce:function(t,e,n,o,i){return(e/=i)<1/2.75?7.5625*o*e*e+n:2/2.75>e?o*(7.5625*(e-=1.5/2.75)*e+.75)+n:2.5/2.75>e?o*(7.5625*(e-=2.25/2.75)*e+.9375)+n:o*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(e,n,o,i,r){return r/2>n?.5*t.easing.easeInBounce(e,2*n,0,i,r)+o:.5*t.easing.easeOutBounce(e,2*n-r,0,i,r)+.5*i+o}})}(jQuery),function(){function t(t,e,n){n=(n||0)-1;for(var o=t?t.length:0;++n<o;)if(t[n]===e)return n;return-1}function e(e,n){var o=typeof n;if(e=e.l,"boolean"==o||null==n)return e[n]?0:-1;"number"!=o&&"string"!=o&&(o="object");var i="number"==o?n:m+n;return e=(e=e[o])&&e[i],"object"==o?e&&-1<t(e,n)?0:-1:e?0:-1}function n(t){var e=this.l,n=typeof t;if("boolean"==n||null==t)e[t]=!0;else{"number"!=n&&"string"!=n&&(n="object");var o="number"==n?t:m+t,e=e[n]||(e[n]={});"object"==n?(e[o]||(e[o]=[])).push(t):e[o]=!0}}function o(t){return t.charCodeAt(0)}function i(t,e){var n=t.m,o=e.m;if(n!==o){if(n>o||"undefined"==typeof n)return 1;if(o>n||"undefined"==typeof o)return-1}return t.n-e.n}function r(t){var e=-1,o=t.length,i=t[0],r=t[o/2|0],s=t[o-1];if(i&&"object"==typeof i&&r&&"object"==typeof r&&s&&"object"==typeof s)return!1;for(i=l(),i["false"]=i["null"]=i["true"]=i.undefined=!1,r=l(),r.k=t,r.l=i,r.push=n;++e<o;)r.push(t[e]);return r}function s(t){return"\\"+Y[t]}function a(){return d.pop()||[]}function l(){return v.pop()||{k:null,l:null,m:null,"false":!1,n:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,o:null}}function u(t){t.length=0,d.length<b&&d.push(t)}function c(t){var e=t.l;e&&c(e),t.k=t.l=t.m=t.object=t.number=t.string=t.o=null,v.length<b&&v.push(t)}function h(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);var o=-1;n=n-e||0;for(var i=Array(0>n?0:n);++o<n;)i[o]=t[e+o];return i}function p(n){function d(t){if(!t||dn.call(t)!=L)return!1;var e=t.valueOf,n="function"==typeof e&&(n=An(e))&&An(n);return n?t==n||An(t)==n:ge(t)}function v(t,e,n){if(!t||!W[typeof t])return t;e=e&&"undefined"==typeof n?e:ie(e,n,3);for(var o=-1,i=W[typeof t]&&zn(t),r=i?i.length:0;++o<r&&(n=i[o],!1!==e(t[n],n,t)););return t}function b(t,e,n){var o;if(!t||!W[typeof t])return t;e=e&&"undefined"==typeof n?e:ie(e,n,3);for(o in t)if(!1===e(t[o],o,t))break;return t}function Y(t,e,n){var o,i=t,r=i;if(!i)return r;for(var s=arguments,a=0,l="number"==typeof n?2:s.length;++a<l;)if((i=s[a])&&W[typeof i])for(var u=-1,c=W[typeof i]&&zn(i),h=c?c.length:0;++u<h;)o=c[u],"undefined"==typeof r[o]&&(r[o]=i[o]);return r}function X(t,e,n){var o,i=t,r=i;if(!i)return r;var s=arguments,a=0,l="number"==typeof n?2:s.length;if(l>3&&"function"==typeof s[l-2])var u=ie(s[--l-1],s[l--],2);else l>2&&"function"==typeof s[l-1]&&(u=s[--l]);for(;++a<l;)if((i=s[a])&&W[typeof i])for(var c=-1,h=W[typeof i]&&zn(i),p=h?h.length:0;++c<p;)o=h[c],r[o]=u?u(r[o],i[o]):i[o];return r}function q(t){var e,n=[];if(!t||!W[typeof t])return n;for(e in t)jn.call(t,e)&&n.push(e);return n}function K(t){return t&&"object"==typeof t&&!Hn(t)&&jn.call(t,"__wrapped__")?t:new te(t)}function te(t,e){this.__chain__=!!e,this.__wrapped__=t}function ee(t){function e(){if(o){var t=o.slice();_n.apply(t,arguments)}if(this instanceof e){var r=oe(n.prototype),t=n.apply(r,t||arguments);return _e(t)?t:r}return n.apply(i,t||arguments)}var n=t[0],o=t[2],i=t[4];return Ln(e,t),e}function ne(t,e,n,o,i){if(n){var r=n(t);if("undefined"!=typeof r)return r}if(!_e(t))return t;var s=dn.call(t);if(!Q[s])return t;var l=Dn[s];switch(s){case F:case N:return new l(+t);case R:case z:return new l(t);case H:return r=l(t.source,x.exec(t)),r.lastIndex=t.lastIndex,r}if(s=Hn(t),e){var c=!o;o||(o=a()),i||(i=a());for(var p=o.length;p--;)if(o[p]==t)return i[p];r=s?l(t.length):{}}else r=s?h(t):X({},t);return s&&(jn.call(t,"index")&&(r.index=t.index),jn.call(t,"input")&&(r.input=t.input)),e?(o.push(t),i.push(r),(s?Pe:v)(t,function(t,s){r[s]=ne(t,e,n,o,i)}),c&&(u(o),u(i)),r):r}function oe(t){return _e(t)?En(t):{}}function ie(t,e,n){if("function"!=typeof t)return Ze;if("undefined"==typeof e||!("prototype"in t))return t;var o=t.__bindData__;if("undefined"==typeof o&&(Rn.funcNames&&(o=!t.name),o=o||!Rn.funcDecomp,!o)){var i=bn.call(t);Rn.funcNames||(o=!C.test(i)),o||(o=O.test(i),Ln(t,o))}if(!1===o||!0!==o&&1&o[1])return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,i){return t.call(e,n,o,i)};case 4:return function(n,o,i,r){return t.call(e,n,o,i,r)}}return Ge(t,e)}function re(t){function e(){var t=l?s:this;if(i){var d=i.slice();_n.apply(d,arguments)}return(r||c)&&(d||(d=h(arguments)),r&&_n.apply(d,r),c&&d.length<a)?(o|=16,re([n,p?o:-4&o,d,null,s,a])):(d||(d=arguments),u&&(n=t[f]),this instanceof e?(t=oe(n.prototype),d=n.apply(t,d),_e(d)?d:t):n.apply(t,d))}var n=t[0],o=t[1],i=t[2],r=t[3],s=t[4],a=t[5],l=1&o,u=2&o,c=4&o,p=8&o,f=n;return Ln(e,t),e}function se(n,o){var i=-1,s=ve(),a=n?n.length:0,l=a>=y&&s===t,u=[];if(l){var h=r(o);h?(s=e,o=h):l=!1}for(;++i<a;)h=n[i],0>s(o,h)&&u.push(h);return l&&c(o),u}function ae(t,e,n,o){o=(o||0)-1;for(var i=t?t.length:0,r=[];++o<i;){var s=t[o];if(s&&"object"==typeof s&&"number"==typeof s.length&&(Hn(s)||ye(s))){e||(s=ae(s,e,n));var a=-1,l=s.length,u=r.length;for(r.length+=l;++a<l;)r[u++]=s[a]}else n||r.push(s)}return r}function le(t,e,n,o,i,r){if(n){var s=n(t,e);if("undefined"!=typeof s)return!!s}if(t===e)return 0!==t||1/t==1/e;if(t===t&&!(t&&W[typeof t]||e&&W[typeof e]))return!1;if(null==t||null==e)return t===e;var l=dn.call(t),c=dn.call(e);if(l==I&&(l=L),c==I&&(c=L),l!=c)return!1;switch(l){case F:case N:return+t==+e;case R:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case H:case z:return t==un(e)}if(c=l==B,!c){var h=jn.call(t,"__wrapped__"),p=jn.call(e,"__wrapped__");if(h||p)return le(h?t.__wrapped__:t,p?e.__wrapped__:e,n,o,i,r);if(l!=L)return!1;if(l=t.constructor,h=e.constructor,l!=h&&!(we(l)&&l instanceof l&&we(h)&&h instanceof h)&&"constructor"in t&&"constructor"in e)return!1}for(h=!i,i||(i=a()),r||(r=a()),l=i.length;l--;)if(i[l]==t)return r[l]==e;var f=0,s=!0;if(i.push(t),r.push(e),c){if(l=t.length,f=e.length,s=f==t.length,!s&&!o)return s;for(;f--;)if(c=l,h=e[f],o)for(;c--&&!(s=le(t[c],h,n,o,i,r)););else if(!(s=le(t[f],h,n,o,i,r)))break;return s}return b(e,function(e,a,l){return jn.call(l,a)?(f++,s=jn.call(t,a)&&le(t[a],e,n,o,i,r)):void 0}),s&&!o&&b(t,function(t,e,n){return jn.call(n,e)?s=-1<--f:void 0}),h&&(u(i),u(r)),s}function ue(t,e,n,o,i){(Hn(e)?Pe:v)(e,function(e,r){var s,a,l=e,u=t[r];if(e&&((a=Hn(e))||d(e))){for(l=o.length;l--;)if(s=o[l]==e){u=i[l];break}if(!s){var c;n&&(l=n(u,e),c="undefined"!=typeof l)&&(u=l),c||(u=a?Hn(u)?u:[]:d(u)?u:{}),o.push(e),i.push(u),c||ue(u,e,n,o,i)}}else n&&(l=n(u,e),"undefined"==typeof l&&(l=e)),"undefined"!=typeof l&&(u=l);t[r]=u})}function ce(t,e){return t+yn(Nn()*(e-t+1))}function he(n,o,i){var s=-1,l=ve(),h=n?n.length:0,p=[],f=!o&&h>=y&&l===t,d=i||f?a():p;if(f){var v=r(d);v?(l=e,d=v):(f=!1,d=i?d:(u(d),p))}for(;++s<h;){var v=n[s],g=i?i(v,s,n):v;(o?!s||d[d.length-1]!==g:0>l(d,g))&&((i||f)&&d.push(g),p.push(v))}return f?(u(d.k),c(d)):i&&u(d),p}function pe(t){return function(e,n,o){var i={};n=K.createCallback(n,o,3),o=-1;var r=e?e.length:0;if("number"==typeof r)for(;++o<r;){var s=e[o];t(i,s,n(s,o,e),e)}else v(e,function(e,o,r){t(i,e,n(e,o,r),r)});return i}}function fe(t,e,n,o,i,r){var s=1&e,a=4&e,l=16&e,u=32&e;if(!(2&e||we(t)))throw new cn;l&&!n.length&&(e&=-17,l=n=!1),u&&!o.length&&(e&=-33,u=o=!1);var c=t&&t.__bindData__;return c&&!0!==c?(c=c.slice(),!s||1&c[1]||(c[4]=i),!s&&1&c[1]&&(e|=8),!a||4&c[1]||(c[5]=r),l&&_n.apply(c[2]||(c[2]=[]),n),u&&_n.apply(c[3]||(c[3]=[]),o),c[1]|=e,fe.apply(null,c)):(1==e||17===e?ee:re)([t,e,n,o,i,r])}function de(t){return Qn[t]}function ve(){var e=(e=K.indexOf)===ze?t:e;return e}function ge(t){var e,n;return t&&dn.call(t)==L&&(e=t.constructor,!we(e)||e instanceof e)?(b(t,function(t,e){n=e}),"undefined"==typeof n||jn.call(t,n)):!1}function me(t){return Vn[t]}function ye(t){return t&&"object"==typeof t&&"number"==typeof t.length&&dn.call(t)==I||!1}function be(t,e,n){var o=zn(t),i=o.length;for(e=ie(e,n,3);i--&&(n=o[i],!1!==e(t[n],n,t)););return t}function Ae(t){var e=[];return b(t,function(t,n){we(t)&&e.push(n)}),e.sort()}function je(t){for(var e=-1,n=zn(t),o=n.length,i={};++e<o;){var r=n[e];i[t[r]]=r}return i}function we(t){return"function"==typeof t}function _e(t){return!(!t||!W[typeof t])}function ke(t){return"number"==typeof t||t&&"object"==typeof t&&dn.call(t)==R||!1}function xe(t){return"string"==typeof t||t&&"object"==typeof t&&dn.call(t)==z||!1}function Ce(t){for(var e=-1,n=zn(t),o=n.length,i=tn(o);++e<o;)i[e]=t[n[e]];return i}function Te(t,e,n){var o=-1,i=ve(),r=t?t.length:0,s=!1;return n=(0>n?In(0,r+n):n)||0,Hn(t)?s=-1<i(t,e,n):"number"==typeof r?s=-1<(xe(t)?t.indexOf(e,n):i(t,e,n)):v(t,function(t){return++o<n?void 0:!(s=t===e)}),s}function Ee(t,e,n){var o=!0;e=K.createCallback(e,n,3),n=-1;var i=t?t.length:0;if("number"==typeof i)for(;++n<i&&(o=!!e(t[n],n,t)););else v(t,function(t,n,i){return o=!!e(t,n,i)});return o}function Se(t,e,n){var o=[];e=K.createCallback(e,n,3),n=-1;var i=t?t.length:0;if("number"==typeof i)for(;++n<i;){var r=t[n];e(r,n,t)&&o.push(r)}else v(t,function(t,n,i){e(t,n,i)&&o.push(t)});return o}function Oe(t,e,n){e=K.createCallback(e,n,3),n=-1;var o=t?t.length:0;if("number"!=typeof o){var i;return v(t,function(t,n,o){return e(t,n,o)?(i=t,!1):void 0}),i}for(;++n<o;){var r=t[n];if(e(r,n,t))return r}}function Pe(t,e,n){var o=-1,i=t?t.length:0;if(e=e&&"undefined"==typeof n?e:ie(e,n,3),"number"==typeof i)for(;++o<i&&!1!==e(t[o],o,t););else v(t,e);return t}function Me(t,e,n){var o=t?t.length:0;if(e=e&&"undefined"==typeof n?e:ie(e,n,3),"number"==typeof o)for(;o--&&!1!==e(t[o],o,t););else{var i=zn(t),o=i.length;v(t,function(t,n,r){return n=i?i[--o]:--o,e(r[n],n,r)})}return t}function Ie(t,e,n){var o=-1,i=t?t.length:0;if(e=K.createCallback(e,n,3),"number"==typeof i)for(var r=tn(i);++o<i;)r[o]=e(t[o],o,t);else r=[],v(t,function(t,n,i){r[++o]=e(t,n,i)});return r}function Be(t,e,n){var i=-1/0,r=i;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&Hn(t)){n=-1;for(var s=t.length;++n<s;){var a=t[n];a>r&&(r=a)}}else e=null==e&&xe(t)?o:K.createCallback(e,n,3),Pe(t,function(t,n,o){n=e(t,n,o),n>i&&(i=n,r=t)});return r}function Fe(t,e){var n=-1,o=t?t.length:0;if("number"==typeof o)for(var i=tn(o);++n<o;)i[n]=t[n][e];return i||Ie(t,e)}function Ne(t,e,n,o){if(!t)return n;var i=3>arguments.length;e=K.createCallback(e,o,4);var r=-1,s=t.length;if("number"==typeof s)for(i&&(n=t[++r]);++r<s;)n=e(n,t[r],r,t);else v(t,function(t,o,r){n=i?(i=!1,t):e(n,t,o,r)});return n}function De(t,e,n,o){var i=3>arguments.length;return e=K.createCallback(e,o,4),Me(t,function(t,o,r){n=i?(i=!1,t):e(n,t,o,r)}),n}function Re(t){var e=-1,n=t?t.length:0,o=tn("number"==typeof n?n:0);return Pe(t,function(t){var n=ce(0,++e);o[e]=o[n],o[n]=t}),o}function Le(t,e,n){var o;e=K.createCallback(e,n,3),n=-1;var i=t?t.length:0;if("number"==typeof i)for(;++n<i&&!(o=e(t[n],n,t)););else v(t,function(t,n,i){return!(o=e(t,n,i))});return!!o}function He(t,e,n){var o=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var r=-1;for(e=K.createCallback(e,n,3);++r<i&&e(t[r],r,t);)o++}else if(o=e,null==o||n)return t?t[0]:f;return h(t,0,Bn(In(0,o),i))}function ze(e,n,o){if("number"==typeof o){var i=e?e.length:0;o=0>o?In(0,i+o):o||0}else if(o)return o=Ve(e,n),e[o]===n?o:-1;return t(e,n,o)}function Qe(t,e,n){if("number"!=typeof e&&null!=e){var o=0,i=-1,r=t?t.length:0;for(e=K.createCallback(e,n,3);++i<r&&e(t[i],i,t);)o++}else o=null==e||n?1:In(0,e);return h(t,o)}function Ve(t,e,n,o){var i=0,r=t?t.length:i;for(n=n?K.createCallback(n,o,1):Ze,e=n(e);r>i;)o=i+r>>>1,n(t[o])<e?i=o+1:r=o;return i}function Ue(t,e,n,o){return"boolean"!=typeof e&&null!=e&&(o=n,n="function"!=typeof e&&o&&o[e]===t?null:e,e=!1),null!=n&&(n=K.createCallback(n,o,3)),he(t,e,n)}function We(){for(var t=1<arguments.length?arguments:arguments[0],e=-1,n=t?Be(Fe(t,"length")):0,o=tn(0>n?0:n);++e<n;)o[e]=Fe(t,e);return o}function Ye(t,e){for(var n=-1,o=t?t.length:0,i={};++n<o;){var r=t[n];e?i[r]=e[n]:r&&(i[r[0]]=r[1])}return i}function Ge(t,e){return 2<arguments.length?fe(t,17,h(arguments,2),null,e):fe(t,1,null,null,e)}function Xe(t,e,n){function o(){c&&mn(c),s=c=h=f,(v||d!==e)&&(p=wn(),a=t.apply(u,r),c||s||(r=u=null))}function i(){var n=e-(wn()-l);n>0?c=kn(i,n):(s&&mn(s),n=h,s=c=h=f,n&&(p=wn(),a=t.apply(u,r),c||s||(r=u=null)))}var r,s,a,l,u,c,h,p=0,d=!1,v=!0;if(!we(t))throw new cn;if(e=In(0,e)||0,!0===n)var g=!0,v=!1;else _e(n)&&(g=n.leading,d="maxWait"in n&&(In(e,n.maxWait)||0),v="trailing"in n?n.trailing:v);return function(){if(r=arguments,l=wn(),u=this,h=v&&(c||!g),!1===d)var n=g&&!c;else{s||g||(p=l);var f=d-(l-p),m=0>=f;m?(s&&(s=mn(s)),p=l,a=t.apply(u,r)):s||(s=kn(o,f))}return m&&c?c=mn(c):c||e===d||(c=kn(i,e)),n&&(m=!0,a=t.apply(u,r)),!m||c||s||(r=u=null),a}}function qe(t){if(!we(t))throw new cn;var e=h(arguments,1);return kn(function(){t.apply(f,e)},1)}function Ze(t){return t}function Je(t,e){var n=t,o=!e||we(n);e||(n=te,e=t,t=K),Pe(Ae(e),function(i){var r=t[i]=e[i];o&&(n.prototype[i]=function(){var e=this.__wrapped__,o=[e];return _n.apply(o,arguments),o=r.apply(t,o),e&&"object"==typeof e&&e===o?this:(o=new n(o),o.__chain__=this.__chain__,o)})})}function $e(){}function Ke(){return this.__wrapped__}n=n?$.defaults(G.Object(),n,$.pick(G,M)):G;var tn=n.Array,en=n.Boolean,nn=n.Date,on=n.Function,rn=n.Math,sn=n.Number,an=n.Object,ln=n.RegExp,un=n.String,cn=n.TypeError,hn=[],pn=an.prototype,fn=n._,dn=pn.toString,vn=ln("^"+un(dn).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),gn=rn.ceil,mn=n.clearTimeout,yn=rn.floor,bn=on.prototype.toString,An=vn.test(An=an.getPrototypeOf)&&An,jn=pn.hasOwnProperty,wn=vn.test(wn=nn.now)&&wn||function(){return+new nn},_n=hn.push,kn=n.setTimeout,xn=hn.splice,Cn="function"==typeof(Cn=J&&Z&&J.setImmediate)&&!vn.test(Cn)&&Cn,Tn=function(){try{var t={},e=vn.test(e=an.defineProperty)&&e,n=e(t,t,t)&&e}catch(o){}return n}(),En=vn.test(En=an.create)&&En,Sn=vn.test(Sn=tn.isArray)&&Sn,On=n.isFinite,Pn=n.isNaN,Mn=vn.test(Mn=an.keys)&&Mn,In=rn.max,Bn=rn.min,Fn=n.parseInt,Nn=rn.random,Dn={};Dn[B]=tn,Dn[F]=en,Dn[N]=nn,Dn[D]=on,Dn[L]=an,Dn[R]=sn,Dn[H]=ln,Dn[z]=un,te.prototype=K.prototype;var Rn=K.support={};Rn.funcDecomp=!vn.test(n.a)&&O.test(p),Rn.funcNames="string"==typeof on.name,K.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:T,variable:"",imports:{_:K}},En||(oe=function(){function t(){}return function(e){if(_e(e)){t.prototype=e;var o=new t;t.prototype=null}return o||n.Object()}}());var Ln=Tn?function(t,e){U.value=e,Tn(t,"__bindData__",U)}:$e,Hn=Sn||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&dn.call(t)==B||!1},zn=Mn?function(t){return _e(t)?Mn(t):[]}:q,Qn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Vn=je(Qn),Un=ln("("+zn(Vn).join("|")+")","g"),Wn=ln("["+zn(Qn).join("")+"]","g"),Yn=pe(function(t,e,n){jn.call(t,n)?t[n]++:t[n]=1}),Gn=pe(function(t,e,n){(jn.call(t,n)?t[n]:t[n]=[]).push(e)}),Xn=pe(function(t,e,n){t[n]=e});Cn&&(qe=function(t){if(!we(t))throw new cn;return Cn.apply(n,arguments)});var qn=8==Fn(A+"08")?Fn:function(t,e){return Fn(xe(t)?t.replace(E,""):t,e||0)};return K.after=function(t,e){if(!we(e))throw new cn;return function(){return 1>--t?e.apply(this,arguments):void 0}},K.assign=X,K.at=function(t){for(var e=arguments,n=-1,o=ae(e,!0,!1,1),e=e[2]&&e[2][e[1]]===t?1:o.length,i=tn(e);++n<e;)i[n]=t[o[n]];return i},K.bind=Ge,K.bindAll=function(t){for(var e=1<arguments.length?ae(arguments,!0,!1,1):Ae(t),n=-1,o=e.length;++n<o;){var i=e[n];t[i]=fe(t[i],1,null,null,t)}return t},K.bindKey=function(t,e){return 2<arguments.length?fe(e,19,h(arguments,2),null,t):fe(e,3,null,null,t)},K.chain=function(t){return t=new te(t),t.__chain__=!0,t},K.compact=function(t){for(var e=-1,n=t?t.length:0,o=[];++e<n;){var i=t[e];i&&o.push(i)}return o},K.compose=function(){for(var t=arguments,e=t.length;e--;)if(!we(t[e]))throw new cn;return function(){for(var e=arguments,n=t.length;n--;)e=[t[n].apply(this,e)];return e[0]}},K.countBy=Yn,K.create=function(t,e){var n=oe(t);return e?X(n,e):n},K.createCallback=function(t,e,n){var o=typeof t;if(null==t||"function"==o)return ie(t,e,n);if("object"!=o)return function(e){return e[t]};var i=zn(t),r=i[0],s=t[r];return 1!=i.length||s!==s||_e(s)?function(e){for(var n=i.length,o=!1;n--&&(o=le(e[i[n]],t[i[n]],null,!0)););return o}:function(t){return t=t[r],s===t&&(0!==s||1/s==1/t)}},K.curry=function(t,e){return e="number"==typeof e?e:+e||t.length,fe(t,4,null,null,null,e)},K.debounce=Xe,K.defaults=Y,K.defer=qe,K.delay=function(t,e){if(!we(t))throw new cn;var n=h(arguments,2);return kn(function(){t.apply(f,n)},e)},K.difference=function(t){return se(t,ae(arguments,!0,!0,1))},K.filter=Se,K.flatten=function(t,e,n,o){return"boolean"!=typeof e&&null!=e&&(o=n,n="function"!=typeof e&&o&&o[e]===t?null:e,e=!1),null!=n&&(t=Ie(t,n,o)),ae(t,e)},K.forEach=Pe,K.forEachRight=Me,K.forIn=b,K.forInRight=function(t,e,n){var o=[];b(t,function(t,e){o.push(e,t)});var i=o.length;for(e=ie(e,n,3);i--&&!1!==e(o[i--],o[i],t););return t},K.forOwn=v,K.forOwnRight=be,K.functions=Ae,K.groupBy=Gn,K.indexBy=Xn,K.initial=function(t,e,n){var o=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var r=i;for(e=K.createCallback(e,n,3);r--&&e(t[r],r,t);)o++}else o=null==e||n?1:e||o;return h(t,0,Bn(In(0,i-o),i))},K.intersection=function(n){for(var o=arguments,i=o.length,s=-1,l=a(),h=-1,p=ve(),f=n?n.length:0,d=[],v=a();++s<i;){var g=o[s];l[s]=p===t&&(g?g.length:0)>=y&&r(s?o[s]:v)}t:for(;++h<f;){var m=l[0],g=n[h];if(0>(m?e(m,g):p(v,g))){for(s=i,(m||v).push(g);--s;)if(m=l[s],0>(m?e(m,g):p(o[s],g)))continue t;d.push(g)}}for(;i--;)(m=l[i])&&c(m);return u(l),u(v),d},K.invert=je,K.invoke=function(t,e){var n=h(arguments,2),o=-1,i="function"==typeof e,r=t?t.length:0,s=tn("number"==typeof r?r:0);return Pe(t,function(t){s[++o]=(i?e:t[e]).apply(t,n)}),s},K.keys=zn,K.map=Ie,K.max=Be,K.memoize=function(t,e){function n(){var o=n.cache,i=e?e.apply(this,arguments):m+arguments[0];return jn.call(o,i)?o[i]:o[i]=t.apply(this,arguments)}if(!we(t))throw new cn;return n.cache={},n},K.merge=function(t){var e=arguments,n=2;if(!_e(t))return t;if("number"!=typeof e[2]&&(n=e.length),n>3&&"function"==typeof e[n-2])var o=ie(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(o=e[--n]);for(var e=h(arguments,1,n),i=-1,r=a(),s=a();++i<n;)ue(t,e[i],o,r,s);return u(r),u(s),t},K.min=function(t,e,n){var i=1/0,r=i;if("function"!=typeof e&&n&&n[e]===t&&(e=null),null==e&&Hn(t)){n=-1;for(var s=t.length;++n<s;){var a=t[n];r>a&&(r=a)}}else e=null==e&&xe(t)?o:K.createCallback(e,n,3),Pe(t,function(t,n,o){n=e(t,n,o),i>n&&(i=n,r=t)});return r},K.omit=function(t,e,n){var o={};if("function"!=typeof e){var i=[];b(t,function(t,e){i.push(e)});for(var i=se(i,ae(arguments,!0,!1,1)),r=-1,s=i.length;++r<s;){var a=i[r];o[a]=t[a]}}else e=K.createCallback(e,n,3),b(t,function(t,n,i){e(t,n,i)||(o[n]=t)});return o},K.once=function(t){var e,n;if(!we(t))throw new cn;return function(){return e?n:(e=!0,n=t.apply(this,arguments),t=null,n)}},K.pairs=function(t){for(var e=-1,n=zn(t),o=n.length,i=tn(o);++e<o;){var r=n[e];i[e]=[r,t[r]]}return i},K.partial=function(t){return fe(t,16,h(arguments,1))},K.partialRight=function(t){return fe(t,32,null,h(arguments,1))},K.pick=function(t,e,n){var o={};if("function"!=typeof e)for(var i=-1,r=ae(arguments,!0,!1,1),s=_e(t)?r.length:0;++i<s;){var a=r[i];a in t&&(o[a]=t[a])}else e=K.createCallback(e,n,3),b(t,function(t,n,i){e(t,n,i)&&(o[n]=t)});return o},K.pluck=Fe,K.pull=function(t){for(var e=arguments,n=0,o=e.length,i=t?t.length:0;++n<o;)for(var r=-1,s=e[n];++r<i;)t[r]===s&&(xn.call(t,r--,1),i--);return t},K.range=function(t,e,n){t=+t||0,n="number"==typeof n?n:+n||1,null==e&&(e=t,t=0);var o=-1;e=In(0,gn((e-t)/(n||1)));for(var i=tn(e);++o<e;)i[o]=t,t+=n;return i},K.reject=function(t,e,n){return e=K.createCallback(e,n,3),Se(t,function(t,n,o){return!e(t,n,o)})},K.remove=function(t,e,n){var o=-1,i=t?t.length:0,r=[];for(e=K.createCallback(e,n,3);++o<i;)n=t[o],e(n,o,t)&&(r.push(n),xn.call(t,o--,1),i--);return r},K.rest=Qe,K.shuffle=Re,K.sortBy=function(t,e,n){var o=-1,r=t?t.length:0,s=tn("number"==typeof r?r:0);for(e=K.createCallback(e,n,3),Pe(t,function(t,n,i){var r=s[++o]=l();r.m=e(t,n,i),r.n=o,r.o=t}),r=s.length,s.sort(i);r--;)t=s[r],s[r]=t.o,c(t);return s},K.tap=function(t,e){return e(t),t},K.throttle=function(t,e,n){var o=!0,i=!0;if(!we(t))throw new cn;return!1===n?o=!1:_e(n)&&(o="leading"in n?n.leading:o,i="trailing"in n?n.trailing:i),V.leading=o,V.maxWait=e,V.trailing=i,Xe(t,e,V)},K.times=function(t,e,n){t=-1<(t=+t)?t:0;var o=-1,i=tn(t);for(e=ie(e,n,1);++o<t;)i[o]=e(o);return i},K.toArray=function(t){return t&&"number"==typeof t.length?h(t):Ce(t)},K.transform=function(t,e,n,o){var i=Hn(t);if(null==n)if(i)n=[];else{var r=t&&t.constructor;n=oe(r&&r.prototype)}return e&&(e=K.createCallback(e,o,4),(i?Pe:v)(t,function(t,o,i){return e(n,t,o,i)})),n},K.union=function(){return he(ae(arguments,!0,!0))},K.uniq=Ue,K.values=Ce,K.where=Se,K.without=function(t){return se(t,h(arguments,1))},K.wrap=function(t,e){return fe(e,16,[t])},K.zip=We,K.zipObject=Ye,K.collect=Ie,K.drop=Qe,K.each=Pe,K.eachRight=Me,K.extend=X,K.methods=Ae,K.object=Ye,K.select=Se,K.tail=Qe,K.unique=Ue,K.unzip=We,Je(K),K.clone=function(t,e,n,o){return"boolean"!=typeof e&&null!=e&&(o=n,n=e,e=!1),ne(t,e,"function"==typeof n&&ie(n,o,1))},K.cloneDeep=function(t,e,n){return ne(t,!0,"function"==typeof e&&ie(e,n,1))},K.contains=Te,K.escape=function(t){return null==t?"":un(t).replace(Wn,de)},K.every=Ee,K.find=Oe,K.findIndex=function(t,e,n){var o=-1,i=t?t.length:0;for(e=K.createCallback(e,n,3);++o<i;)if(e(t[o],o,t))return o;return-1},K.findKey=function(t,e,n){var o;return e=K.createCallback(e,n,3),v(t,function(t,n,i){return e(t,n,i)?(o=n,!1):void 0}),o},K.findLast=function(t,e,n){var o;return e=K.createCallback(e,n,3),Me(t,function(t,n,i){return e(t,n,i)?(o=t,!1):void 0}),o},K.findLastIndex=function(t,e,n){var o=t?t.length:0;for(e=K.createCallback(e,n,3);o--;)if(e(t[o],o,t))return o;return-1},K.findLastKey=function(t,e,n){var o;return e=K.createCallback(e,n,3),be(t,function(t,n,i){return e(t,n,i)?(o=n,!1):void 0}),o},K.has=function(t,e){return t?jn.call(t,e):!1},K.identity=Ze,K.indexOf=ze,K.isArguments=ye,K.isArray=Hn,K.isBoolean=function(t){return!0===t||!1===t||t&&"object"==typeof t&&dn.call(t)==F||!1},K.isDate=function(t){return t&&"object"==typeof t&&dn.call(t)==N||!1},K.isElement=function(t){return t&&1===t.nodeType||!1},K.isEmpty=function(t){var e=!0;if(!t)return e;var n=dn.call(t),o=t.length;return n==B||n==z||n==I||n==L&&"number"==typeof o&&we(t.splice)?!o:(v(t,function(){return e=!1
}),e)},K.isEqual=function(t,e,n,o){return le(t,e,"function"==typeof n&&ie(n,o,2))},K.isFinite=function(t){return On(t)&&!Pn(parseFloat(t))},K.isFunction=we,K.isNaN=function(t){return ke(t)&&t!=+t},K.isNull=function(t){return null===t},K.isNumber=ke,K.isObject=_e,K.isPlainObject=d,K.isRegExp=function(t){return t&&"object"==typeof t&&dn.call(t)==H||!1},K.isString=xe,K.isUndefined=function(t){return"undefined"==typeof t},K.lastIndexOf=function(t,e,n){var o=t?t.length:0;for("number"==typeof n&&(o=(0>n?In(0,o+n):Bn(n,o-1))+1);o--;)if(t[o]===e)return o;return-1},K.mixin=Je,K.noConflict=function(){return n._=fn,this},K.noop=$e,K.parseInt=qn,K.random=function(t,e,n){var o=null==t,i=null==e;return null==n&&("boolean"==typeof t&&i?(n=t,t=1):i||"boolean"!=typeof e||(n=e,i=!0)),o&&i&&(e=1),t=+t||0,i?(e=t,t=0):e=+e||0,n||t%1||e%1?(n=Nn(),Bn(t+n*(e-t+parseFloat("1e-"+((n+"").length-1))),e)):ce(t,e)},K.reduce=Ne,K.reduceRight=De,K.result=function(t,e){if(t){var n=t[e];return we(n)?t[e]():n}},K.runInContext=p,K.size=function(t){var e=t?t.length:0;return"number"==typeof e?e:zn(t).length},K.some=Le,K.sortedIndex=Ve,K.template=function(t,e,n){var o=K.templateSettings;t=un(t||""),n=Y({},n,o);var i,r=Y({},n.imports,o.imports),o=zn(r),r=Ce(r),a=0,l=n.interpolate||S,u="__p+='",l=ln((n.escape||S).source+"|"+l.source+"|"+(l===T?k:S).source+"|"+(n.evaluate||S).source+"|$","g");t.replace(l,function(e,n,o,r,l,c){return o||(o=r),u+=t.slice(a,c).replace(P,s),n&&(u+="'+__e("+n+")+'"),l&&(i=!0,u+="';"+l+";\n__p+='"),o&&(u+="'+((__t=("+o+"))==null?'':__t)+'"),a=c+e.length,e}),u+="';",l=n=n.variable,l||(n="obj",u="with("+n+"){"+u+"}"),u=(i?u.replace(j,""):u).replace(w,"$1").replace(_,"$1;"),u="function("+n+"){"+(l?"":n+"||("+n+"={});")+"var __t,__p='',__e=_.escape"+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+u+"return __p}";try{var c=on(o,"return "+u).apply(f,r)}catch(h){throw h.source=u,h}return e?c(e):(c.source=u,c)},K.unescape=function(t){return null==t?"":un(t).replace(Un,me)},K.uniqueId=function(t){var e=++g;return un(null==t?"":t)+e},K.all=Ee,K.any=Le,K.detect=Oe,K.findWhere=Oe,K.foldl=Ne,K.foldr=De,K.include=Te,K.inject=Ne,v(K,function(t,e){K.prototype[e]||(K.prototype[e]=function(){var e=[this.__wrapped__],n=this.__chain__;return _n.apply(e,arguments),e=t.apply(K,e),n?new te(e,n):e})}),K.first=He,K.last=function(t,e,n){var o=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var r=i;for(e=K.createCallback(e,n,3);r--&&e(t[r],r,t);)o++}else if(o=e,null==o||n)return t?t[i-1]:f;return h(t,In(0,i-o))},K.sample=function(t,e,n){return t&&"number"!=typeof t.length&&(t=Ce(t)),null==e||n?t?t[ce(0,t.length-1)]:f:(t=Re(t),t.length=Bn(In(0,e),t.length),t)},K.take=He,K.head=He,v(K,function(t,e){var n="sample"!==e;K.prototype[e]||(K.prototype[e]=function(e,o){var i=this.__chain__,r=t(this.__wrapped__,e,o);return i||null!=e&&(!o||n&&"function"==typeof e)?new te(r,i):r})}),K.VERSION="2.3.0",K.prototype.chain=function(){return this.__chain__=!0,this},K.prototype.toString=function(){return un(this.__wrapped__)},K.prototype.value=Ke,K.prototype.valueOf=Ke,Pe(["join","pop","shift"],function(t){var e=hn[t];K.prototype[t]=function(){var t=this.__chain__,n=e.apply(this.__wrapped__,arguments);return t?new te(n,t):n}}),Pe(["push","reverse","sort","unshift"],function(t){var e=hn[t];K.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),Pe(["concat","slice","splice"],function(t){var e=hn[t];K.prototype[t]=function(){return new te(e.apply(this.__wrapped__,arguments),this.__chain__)}}),K}var f,d=[],v=[],g=0,m=+new Date+"",y=75,b=40,A=" 	\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",j=/\b__p\+='';/g,w=/\b(__p\+=)''\+/g,_=/(__e\(.*?\)|\b__t\))\+'';/g,k=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,x=/\w*$/,C=/^\s*function[ \n\r\t]+\w/,T=/<%=([\s\S]+?)%>/g,E=RegExp("^["+A+"]*0+(?=.$)"),S=/($^)/,O=/\bthis\b/,P=/['\n\r\t\u2028\u2029\\]/g,M="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),I="[object Arguments]",B="[object Array]",F="[object Boolean]",N="[object Date]",D="[object Function]",R="[object Number]",L="[object Object]",H="[object RegExp]",z="[object String]",Q={};Q[D]=!1,Q[I]=Q[B]=Q[F]=Q[N]=Q[R]=Q[L]=Q[H]=Q[z]=!0;var V={leading:!1,maxWait:0,trailing:!1},U={configurable:!1,enumerable:!1,value:null,writable:!1},W={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},Y={"\\":"\\","'":"'","\n":"n","\r":"r","	":"t","\u2028":"u2028","\u2029":"u2029"},G=W[typeof window]&&window||this,X=W[typeof exports]&&exports&&!exports.nodeType&&exports,q=W[typeof module]&&module&&!module.nodeType&&module,Z=q&&q.exports===X&&X,J=W[typeof global]&&global;!J||J.global!==J&&J.window!==J||(G=J);var $=p();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(G._=$,define(function(){return $})):X&&q?Z?(q.exports=$)._=$:X._=$:G._=$}.call(this),function(t,e){if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(n,o,i){t.Backbone=e(t,i,n,o)});else if("undefined"!=typeof exports){var n=require("underscore");e(t,exports,n)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,n,o){{var i=t.Backbone,r=[],s=(r.push,r.slice);r.splice}e.VERSION="1.1.2",e.$=o,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,n){if(!u(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var o=this._events[t]||(this._events[t]=[]);return o.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,o){if(!u(this,"once",t,[e,o])||!e)return this;var i=this,r=n.once(function(){i.off(t,r),e.apply(this,arguments)});return r._callback=e,this.on(t,r,o)},off:function(t,e,o){var i,r,s,a,l,c,h,p;if(!this._events||!u(this,"off",t,[e,o]))return this;if(!t&&!e&&!o)return this._events=void 0,this;for(a=t?[t]:n.keys(this._events),l=0,c=a.length;c>l;l++)if(t=a[l],s=this._events[t]){if(this._events[t]=i=[],e||o)for(h=0,p=s.length;p>h;h++)r=s[h],(e&&e!==r.callback&&e!==r.callback._callback||o&&o!==r.context)&&i.push(r);i.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=s.call(arguments,1);if(!u(this,"trigger",t,e))return this;var n=this._events[t],o=this._events.all;return n&&c(n,e),o&&c(o,arguments),this},stopListening:function(t,e,o){var i=this._listeningTo;if(!i)return this;var r=!e&&!o;o||"object"!=typeof e||(o=this),t&&((i={})[t._listenId]=t);for(var s in i)t=i[s],t.off(e,o,this),(r||n.isEmpty(t._events))&&delete this._listeningTo[s];return this}},l=/\s+/,u=function(t,e,n,o){if(!n)return!0;if("object"==typeof n){for(var i in n)t[e].apply(t,[i,n[i]].concat(o));return!1}if(l.test(n)){for(var r=n.split(l),s=0,a=r.length;a>s;s++)t[e].apply(t,[r[s]].concat(o));return!1}return!0},c=function(t,e){var n,o=-1,i=t.length,r=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++o<i;)(n=t[o]).callback.call(n.ctx);return;case 1:for(;++o<i;)(n=t[o]).callback.call(n.ctx,r);return;case 2:for(;++o<i;)(n=t[o]).callback.call(n.ctx,r,s);return;case 3:for(;++o<i;)(n=t[o]).callback.call(n.ctx,r,s,a);return;default:for(;++o<i;)(n=t[o]).callback.apply(n.ctx,e);return}},h={listenTo:"on",listenToOnce:"once"};n.each(h,function(t,e){a[e]=function(e,o,i){var r=this._listeningTo||(this._listeningTo={}),s=e._listenId||(e._listenId=n.uniqueId("l"));return r[s]=e,i||"object"!=typeof o||(i=this),e[t](o,i,this),this}}),a.bind=a.on,a.unbind=a.off,n.extend(e,a);var p=e.Model=function(t,e){var o=t||{};e||(e={}),this.cid=n.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(o=this.parse(o,e)||{}),o=n.defaults({},o,n.result(this,"defaults")),this.set(o,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(p.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,o){var i,r,s,a,l,u,c,h;if(null==t)return this;if("object"==typeof t?(r=t,o=e):(r={})[t]=e,o||(o={}),!this._validate(r,o))return!1;s=o.unset,l=o.silent,a=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=n.clone(this.attributes),this.changed={}),h=this.attributes,c=this._previousAttributes,this.idAttribute in r&&(this.id=r[this.idAttribute]);for(i in r)e=r[i],n.isEqual(h[i],e)||a.push(i),n.isEqual(c[i],e)?delete this.changed[i]:this.changed[i]=e,s?delete h[i]:h[i]=e;if(!l){a.length&&(this._pending=o);for(var p=0,f=a.length;f>p;p++)this.trigger("change:"+a[p],this,h[a[p]],o)}if(u)return this;if(!l)for(;this._pending;)o=this._pending,this._pending=!1,this.trigger("change",this,o);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var o in this.attributes)e[o]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?n.clone(this.changed):!1;var e,o=!1,i=this._changing?this._previousAttributes:this.attributes;for(var r in t)n.isEqual(i[r],e=t[r])||((o||(o={}))[r]=e);return o},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=this,o=t.success;return t.success=function(n){return e.set(e.parse(n,t),t)?(o&&o(e,n,t),void e.trigger("sync",e,n,t)):!1},D(this,t),this.sync("read",this,t)},save:function(t,e,o){var i,r,s,a=this.attributes;if(null==t||"object"==typeof t?(i=t,o=e):(i={})[t]=e,o=n.extend({validate:!0},o),i&&!o.wait){if(!this.set(i,o))return!1}else if(!this._validate(i,o))return!1;i&&o.wait&&(this.attributes=n.extend({},a,i)),void 0===o.parse&&(o.parse=!0);var l=this,u=o.success;return o.success=function(t){l.attributes=a;var e=l.parse(t,o);return o.wait&&(e=n.extend(i||{},e)),n.isObject(e)&&!l.set(e,o)?!1:(u&&u(l,t,o),void l.trigger("sync",l,t,o))},D(this,o),r=this.isNew()?"create":o.patch?"patch":"update","patch"===r&&(o.attrs=i),s=this.sync(r,this,o),i&&o.wait&&(this.attributes=a),s},destroy:function(t){t=t?n.clone(t):{};var e=this,o=t.success,i=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(n){(t.wait||e.isNew())&&i(),o&&o(e,n,t),e.isNew()||e.trigger("sync",e,n,t)},this.isNew())return t.success(),!1;D(this,t);var r=this.sync("delete",this,t);return t.wait||i(),r},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||N();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var o=this.validationError=this.validate(t,e)||null;return o?(this.trigger("invalid",this,o,n.extend(e,{validationError:o})),!1):!0}});var f=["keys","values","pairs","invert","pick","omit"];n.each(f,function(t){p.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.attributes),n[t].apply(n,e)}});var d=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},v={add:!0,remove:!0,merge:!0},g={add:!0,remove:!1};n.extend(d.prototype,a,{model:p,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,g))},remove:function(t,e){var o=!n.isArray(t);t=o?[t]:n.clone(t),e||(e={});var i,r,s,a;for(i=0,r=t.length;r>i;i++)a=t[i]=this.get(t[i]),a&&(delete this._byId[a.id],delete this._byId[a.cid],s=this.indexOf(a),this.models.splice(s,1),this.length--,e.silent||(e.index=s,a.trigger("remove",a,this,e)),this._removeReference(a,e));return o?t[0]:t},set:function(t,e){e=n.defaults({},e,v),e.parse&&(t=this.parse(t,e));var o=!n.isArray(t);t=o?t?[t]:[]:n.clone(t);var i,r,s,a,l,u,c,h=e.at,f=this.model,d=this.comparator&&null==h&&e.sort!==!1,g=n.isString(this.comparator)?this.comparator:null,m=[],y=[],b={},A=e.add,j=e.merge,w=e.remove,_=!d&&A&&w?[]:!1;for(i=0,r=t.length;r>i;i++){if(l=t[i]||{},s=l instanceof p?a=l:l[f.prototype.idAttribute||"id"],u=this.get(s))w&&(b[u.cid]=!0),j&&(l=l===a?a.attributes:l,e.parse&&(l=u.parse(l,e)),u.set(l,e),d&&!c&&u.hasChanged(g)&&(c=!0)),t[i]=u;else if(A){if(a=t[i]=this._prepareModel(l,e),!a)continue;m.push(a),this._addReference(a,e)}a=u||a,!_||!a.isNew()&&b[a.id]||_.push(a),b[a.id]=!0}if(w){for(i=0,r=this.length;r>i;++i)b[(a=this.models[i]).cid]||y.push(a);y.length&&this.remove(y,e)}if(m.length||_&&_.length)if(d&&(c=!0),this.length+=m.length,null!=h)for(i=0,r=m.length;r>i;i++)this.models.splice(h+i,0,m[i]);else{_&&(this.models.length=0);var k=_||m;for(i=0,r=k.length;r>i;i++)this.models.push(k[i])}if(c&&this.sort({silent:!0}),!e.silent){for(i=0,r=m.length;r>i;i++)(a=m[i]).trigger("add",a,this,e);(c||_&&_.length)&&this.trigger("sort",this,e)}return o?t[0]:t},reset:function(t,e){e||(e={});for(var o=0,i=this.models.length;i>o;o++)this._removeReference(this.models[o],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return s.apply(this.models,arguments)},get:function(t){return null==t?void 0:this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return n.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var n in t)if(t[n]!==e.get(n))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return n.invoke(this.models,"get",t)},fetch:function(t){t=t?n.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=t.success,o=this;return t.success=function(n){var i=t.reset?"reset":"set";o[i](n,t),e&&e(o,n,t),o.trigger("sync",o,n,t)},D(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?n.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var o=this,i=e.success;return e.success=function(t,n){e.wait&&o.add(t,e),i&&i(t,n,e)},t.save(null,e),t},parse:function(t){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof p)return t;e=e?n.clone(e):{},e.collection=this;var o=new this.model(t,e);return o.validationError?(this.trigger("invalid",this,o.validationError,e),!1):o},_addReference:function(t){this._byId[t.cid]=t,null!=t.id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,o){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,o),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var m=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];n.each(m,function(t){d.prototype[t]=function(){var e=s.call(arguments);return e.unshift(this.models),n[t].apply(n,e)}});var y=["groupBy","countBy","sortBy","indexBy"];n.each(y,function(t){d.prototype[t]=function(e,o){var i=n.isFunction(e)?e:function(t){return t.get(e)};return n[t](this.models,i,o)}});var b=e.View=function(t){this.cid=n.uniqueId("view"),t||(t={}),n.extend(this,n.pick(t,j)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},A=/^(\S+)\s*(.*)$/,j=["model","collection","el","id","attributes","className","tagName","events"];n.extend(b.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,n){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],n!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=n.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var o=t[e];if(n.isFunction(o)||(o=this[t[e]]),o){var i=e.match(A),r=i[1],s=i[2];o=n.bind(o,this),r+=".delegateEvents"+this.cid,""===s?this.$el.on(r,o):this.$el.on(r,s,o)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t["class"]=n.result(this,"className"));var o=e.$("<"+n.result(this,"tagName")+">").attr(t);this.setElement(o,!1)}}}),e.sync=function(t,o,i){var r=_[t];n.defaults(i||(i={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:r,dataType:"json"};if(i.url||(s.url=n.result(o,"url")||N()),null!=i.data||!o||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(i.attrs||o.toJSON(i))),i.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),i.emulateHTTP&&("PUT"===r||"DELETE"===r||"PATCH"===r)){s.type="POST",i.emulateJSON&&(s.data._method=r);var a=i.beforeSend;i.beforeSend=function(t){return t.setRequestHeader("X-HTTP-Method-Override",r),a?a.apply(this,arguments):void 0}}"GET"===s.type||i.emulateJSON||(s.processData=!1),"PATCH"===s.type&&w&&(s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=i.xhr=e.ajax(n.extend(s,i));return o.trigger("request",o,l,i),l};var w=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),_={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var k=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},x=/\((.*?)\)/g,C=/(\(\?)?:\w+/g,T=/\*\w+/g,E=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(k.prototype,a,{initialize:function(){},route:function(t,o,i){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(o)&&(i=o,o=""),i||(i=this[o]);var r=this;return e.history.route(t,function(n){var s=r._extractParameters(t,n);r.execute(i,s),r.trigger.apply(r,["route:"+o].concat(s)),r.trigger("route",o,s),e.history.trigger("route",r,o,s)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(E,"\\$&").replace(x,"(?:$1)?").replace(C,function(t,e){return e?t:"([^/?]+)"}).replace(T,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var o=t.exec(e).slice(1);return n.map(o,function(t,e){return e===o.length-1?t||null:t?decodeURIComponent(t):null})}});var S=e.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},O=/^[#\/]|\s+$/g,P=/^\/+|\/+$/g,M=/msie [\w.]+/,I=/\/$/,B=/#.*$/;S.started=!1,n.extend(S.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(I,"");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(O,"")},start:function(t){if(S.started)throw new Error("Backbone.history has already been started");S.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var o=this.getFragment(),i=document.documentMode,r=M.exec(navigator.userAgent.toLowerCase())&&(!i||7>=i);if(this.root=("/"+this.root+"/").replace(P,"/"),r&&this._wantsHashChange){var s=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=s.hide().appendTo("body")[0].contentWindow,this.navigate(o)}this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!r?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=o;var a=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&a.hash&&(this.fragment=this.getHash().replace(O,""),this.history.replaceState({},document.title,this.root+this.fragment))}return this.options.silent?void 0:this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),S.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(){var t=this.getFragment();return t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment?!1:(this.iframe&&this.navigate(t),void this.loadUrl())},loadUrl:function(t){return t=this.fragment=this.getFragment(t),n.any(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})},navigate:function(t,e){if(!S.started)return!1;e&&e!==!0||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||""));if(t=t.replace(B,""),this.fragment!==t){if(this.fragment=t,""===t&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var o=t.href.replace(/(javascript:|#).*$/,"");t.replace(o+"#"+e)}else t.hash="#"+e}}),e.history=new S;var F=function(t,e){var o,i=this;o=t&&n.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},n.extend(o,i,e);var r=function(){this.constructor=o};return r.prototype=i.prototype,o.prototype=new r,t&&n.extend(o.prototype,t),o.__super__=i.prototype,o};p.extend=d.extend=k.extend=b.extend=S.extend=F;var N=function(){throw new Error('A "url" property or function must be specified')},D=function(t,e){var n=e.error;e.error=function(o){n&&n(t,o,e),t.trigger("error",t,o,e)}};return e}),ClusterIcon.prototype.onAdd=function(){var t,e,n=this;this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){e=t}),google.maps.event.addDomListener(this.div_,"mousedown",function(){t=!0,e=!1}),google.maps.event.addDomListener(this.div_,"click",function(o){if(t=!1,!e){var i,r,s=n.cluster_.getMarkerClusterer();google.maps.event.trigger(s,"click",n.cluster_),google.maps.event.trigger(s,"clusterclick",n.cluster_),s.getZoomOnClick()&&(r=s.getMaxZoom(),i=n.cluster_.getBounds(),s.getMap().fitBounds(i),setTimeout(function(){s.getMap().fitBounds(i),null!==r&&s.getMap().getZoom()>r&&s.getMap().setZoom(r+1)},100)),o.cancelBubble=!0,o.stopPropagation&&o.stopPropagation()}}),google.maps.event.addDomListener(this.div_,"mouseover",function(){var t=n.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseover",n.cluster_)}),google.maps.event.addDomListener(this.div_,"mouseout",function(){var t=n.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"mouseout",n.cluster_)})},ClusterIcon.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},ClusterIcon.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},ClusterIcon.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},ClusterIcon.prototype.show=function(){if(this.div_){var t="",e=this.backgroundPosition_.split(" "),n=parseInt(e[0].replace(/^\s+|\s+$/g,""),10),o=parseInt(e[1].replace(/^\s+|\s+$/g,""),10),i=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(i),t="<img src='"+this.url_+"' style='position: absolute; top: "+o+"px; left: "+n+"px; ",this.cluster_.getMarkerClusterer().enableRetinaIcons_||(t+="clip: rect("+-1*o+"px, "+(-1*n+this.width_)+"px, "+(-1*o+this.height_)+"px, "+-1*n+"px);"),t+="'>",this.div_.innerHTML=t+"<div style='position: absolute;top: "+this.anchorText_[0]+"px;left: "+this.anchorText_[1]+"px;color: "+this.textColor_+";font-size: "+this.textSize_+"px;font-family: "+this.fontFamily_+";font-weight: "+this.fontWeight_+";font-style: "+this.fontStyle_+";text-decoration: "+this.textDecoration_+";text-align: center;width: "+this.width_+"px;line-height:"+this.height_+"px;'>"+this.sums_.text+"</div>",this.div_.title="undefined"==typeof this.sums_.title||""===this.sums_.title?this.cluster_.getMarkerClusterer().getTitle():this.sums_.title,this.div_.style.display=""}this.visible_=!0},ClusterIcon.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e);var n=this.styles_[e];this.url_=n.url,this.height_=n.height,this.width_=n.width,this.anchorText_=n.anchorText||[0,0],this.anchorIcon_=n.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=n.textColor||"black",this.textSize_=n.textSize||11,this.textDecoration_=n.textDecoration||"none",this.fontWeight_=n.fontWeight||"bold",this.fontStyle_=n.fontStyle||"normal",this.fontFamily_=n.fontFamily||"Arial,sans-serif",this.backgroundPosition_=n.backgroundPosition||"0 0"},ClusterIcon.prototype.setCenter=function(t){this.center_=t},ClusterIcon.prototype.createCss=function(t){var e=[];return e.push("cursor: pointer;"),e.push("position: absolute; top: "+t.y+"px; left: "+t.x+"px;"),e.push("width: "+this.width_+"px; height: "+this.height_+"px;"),e.join("")},ClusterIcon.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x-=this.anchorIcon_[1],e.y-=this.anchorIcon_[0],e.x=parseInt(e.x,10),e.y=parseInt(e.y,10),e},Cluster.prototype.getSize=function(){return this.markers_.length},Cluster.prototype.getMarkers=function(){return this.markers_},Cluster.prototype.getCenter=function(){return this.center_},Cluster.prototype.getMap=function(){return this.map_},Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_},Cluster.prototype.getBounds=function(){var t,e=new google.maps.LatLngBounds(this.center_,this.center_),n=this.getMarkers();for(t=0;t<n.length;t++)e.extend(n[t].getPosition());return e},Cluster.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},Cluster.prototype.addMarker=function(t){var e,n,o;if(this.isMarkerAlreadyAdded_(t))return!1;if(this.center_){if(this.averageCenter_){var i=this.markers_.length+1,r=(this.center_.lat()*(i-1)+t.getPosition().lat())/i,s=(this.center_.lng()*(i-1)+t.getPosition().lng())/i;this.center_=new google.maps.LatLng(r,s),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();if(t.isAdded=!0,this.markers_.push(t),n=this.markers_.length,o=this.markerClusterer_.getMaxZoom(),null!==o&&this.map_.getZoom()>o)t.getMap()!==this.map_&&t.setMap(this.map_);else if(n<this.minClusterSize_)t.getMap()!==this.map_&&t.setMap(this.map_);else if(n===this.minClusterSize_)for(e=0;n>e;e++)this.markers_[e].setMap(null);else t.setMap(null);return this.updateIcon_(),!0},Cluster.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},Cluster.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},Cluster.prototype.updateIcon_=function(){var t=this.markers_.length,e=this.markerClusterer_.getMaxZoom();if(null!==e&&this.map_.getZoom()>e)return void this.clusterIcon_.hide();if(t<this.minClusterSize_)return void this.clusterIcon_.hide();var n=this.markerClusterer_.getStyles().length,o=this.markerClusterer_.getCalculator()(this.markers_,n);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(o),this.clusterIcon_.show()},Cluster.prototype.isMarkerAlreadyAdded_=function(t){var e;if(this.markers_.indexOf)return-1!==this.markers_.indexOf(t);for(e=0;e<this.markers_.length;e++)if(t===this.markers_[e])return!0;return!1},MarkerClusterer.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){t.resetViewport_(!1),(this.getZoom()===(this.get("minZoom")||0)||this.getZoom()===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){t.redraw_()})]},MarkerClusterer.prototype.onRemove=function(){var t;for(t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();for(this.clusters_=[],t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},MarkerClusterer.prototype.draw=function(){},MarkerClusterer.prototype.setupStyles_=function(){var t,e;if(!(this.styles_.length>0))for(t=0;t<this.imageSizes_.length;t++)e=this.imageSizes_[t],this.styles_.push({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:e,width:e})},MarkerClusterer.prototype.fitMapToMarkers=function(){var t,e=this.getMarkers(),n=new google.maps.LatLngBounds;for(t=0;t<e.length;t++)n.extend(e[t].getPosition());this.getMap().fitBounds(n)},MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_},MarkerClusterer.prototype.setGridSize=function(t){this.gridSize_=t},MarkerClusterer.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},MarkerClusterer.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_},MarkerClusterer.prototype.setMaxZoom=function(t){this.maxZoom_=t},MarkerClusterer.prototype.getStyles=function(){return this.styles_},MarkerClusterer.prototype.setStyles=function(t){this.styles_=t},MarkerClusterer.prototype.getTitle=function(){return this.title_},MarkerClusterer.prototype.setTitle=function(t){this.title_=t},MarkerClusterer.prototype.getZoomOnClick=function(){return this.zoomOnClick_},MarkerClusterer.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},MarkerClusterer.prototype.getAverageCenter=function(){return this.averageCenter_},MarkerClusterer.prototype.setAverageCenter=function(t){this.averageCenter_=t
},MarkerClusterer.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},MarkerClusterer.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},MarkerClusterer.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},MarkerClusterer.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},MarkerClusterer.prototype.getImageExtension=function(){return this.imageExtension_},MarkerClusterer.prototype.setImageExtension=function(t){this.imageExtension_=t},MarkerClusterer.prototype.getImagePath=function(){return this.imagePath_},MarkerClusterer.prototype.setImagePath=function(t){this.imagePath_=t},MarkerClusterer.prototype.getImageSizes=function(){return this.imageSizes_},MarkerClusterer.prototype.setImageSizes=function(t){this.imageSizes_=t},MarkerClusterer.prototype.getCalculator=function(){return this.calculator_},MarkerClusterer.prototype.setCalculator=function(t){this.calculator_=t},MarkerClusterer.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},MarkerClusterer.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},MarkerClusterer.prototype.getClusterClass=function(){return this.clusterClass_},MarkerClusterer.prototype.setClusterClass=function(t){this.clusterClass_=t},MarkerClusterer.prototype.getMarkers=function(){return this.markers_},MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length},MarkerClusterer.prototype.getClusters=function(){return this.clusters_},MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length},MarkerClusterer.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw_()},MarkerClusterer.prototype.addMarkers=function(t,e){var n;for(n in t)t.hasOwnProperty(n)&&this.pushMarkerTo_(t[n]);e||this.redraw_()},MarkerClusterer.prototype.pushMarkerTo_=function(t){if(t.getDraggable()){var e=this;google.maps.event.addListener(t,"dragend",function(){e.ready_&&(this.isAdded=!1,e.repaint())})}t.isAdded=!1,this.markers_.push(t)},MarkerClusterer.prototype.removeMarker=function(t,e){var n=this.removeMarker_(t);return!e&&n&&this.repaint(),n},MarkerClusterer.prototype.removeMarkers=function(t,e){var n,o,i=!1;for(n=0;n<t.length;n++)o=this.removeMarker_(t[n]),i=i||o;return!e&&i&&this.repaint(),i},MarkerClusterer.prototype.removeMarker_=function(t){var e,n=-1;if(this.markers_.indexOf)n=this.markers_.indexOf(t);else for(e=0;e<this.markers_.length;e++)if(t===this.markers_[e]){n=e;break}return-1===n?!1:(t.setMap(null),this.markers_.splice(n,1),!0)},MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},MarkerClusterer.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){var e;for(e=0;e<t.length;e++)t[e].remove()},0)},MarkerClusterer.prototype.getExtendedBounds=function(t){var e=this.getProjection(),n=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),o=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),i=e.fromLatLngToDivPixel(n);i.x+=this.gridSize_,i.y-=this.gridSize_;var r=e.fromLatLngToDivPixel(o);r.x-=this.gridSize_,r.y+=this.gridSize_;var s=e.fromDivPixelToLatLng(i),a=e.fromDivPixelToLatLng(r);return t.extend(s),t.extend(a),t},MarkerClusterer.prototype.redraw_=function(){this.createClusters_(0)},MarkerClusterer.prototype.resetViewport_=function(t){var e,n;for(e=0;e<this.clusters_.length;e++)this.clusters_[e].remove();for(this.clusters_=[],e=0;e<this.markers_.length;e++)n=this.markers_[e],n.isAdded=!1,t&&n.setMap(null)},MarkerClusterer.prototype.distanceBetweenPoints_=function(t,e){var n=6371,o=(e.lat()-t.lat())*Math.PI/180,i=(e.lng()-t.lng())*Math.PI/180,r=Math.sin(o/2)*Math.sin(o/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2),s=2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r)),a=n*s;return a},MarkerClusterer.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},MarkerClusterer.prototype.addToClosestCluster_=function(t){var e,n,o,i,r=4e4,s=null;for(e=0;e<this.clusters_.length;e++)o=this.clusters_[e],i=o.getCenter(),i&&(n=this.distanceBetweenPoints_(i,t.getPosition()),r>n&&(r=n,s=o));s&&s.isMarkerInClusterBounds(t)?s.addMarker(t):(o=new Cluster(this),o.addMarker(t),this.clusters_.push(o))},MarkerClusterer.prototype.createClusters_=function(t){var e,n,o,i=this;if(this.ready_){0===t&&(google.maps.event.trigger(this,"clusteringbegin",this),"undefined"!=typeof this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),o=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));var r=this.getExtendedBounds(o),s=Math.min(t+this.batchSize_,this.markers_.length);for(e=t;s>e;e++)n=this.markers_[e],!n.isAdded&&this.isMarkerInBounds_(n,r)&&(!this.ignoreHidden_||this.ignoreHidden_&&n.getVisible())&&this.addToClosestCluster_(n);s<this.markers_.length?this.timerRefStatic=setTimeout(function(){i.createClusters_(s)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},MarkerClusterer.prototype.extend=function(t,e){return function(t){var e;for(e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},MarkerClusterer.CALCULATOR=function(t,e){for(var n=0,o="",i=t.length.toString(),r=i;0!==r;)r=parseInt(r/10,10),n++;return n=Math.min(n,e),{text:i,index:n,title:o}},MarkerClusterer.BATCH_SIZE=2e3,MarkerClusterer.BATCH_SIZE_IE=500,MarkerClusterer.IMAGE_PATH="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m",MarkerClusterer.IMAGE_EXTENSION="png",MarkerClusterer.IMAGE_SIZES=[53,56,66,78,90],/**
 * jQuery Guid v1.0.0-1
 * Requires jQuery 1.2.6+ (Not tested with earlier versions).
 * Copyright (c) 2010 Aaron E. [jquery at happinessinmycheeks dot com] 
 * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 *  Usage:
 *    jQuery.Guid.Value() // Returns value of internal Guid. If no guid has been specified, returns a new one (value is then stored internally).
 *    jQuery.Guid.New() // Returns a new Guid and sets it's value internally. Also accepts GUID, Sets it internally.
 *    jQuery.Guid.Empty() // Returns an empty Guid 00000000-0000-0000-0000-000000000000.
 *    jQuery.Guid.IsEmpty() // Returns boolean. True if empty/undefined/blank/null.
 *    jQuery.Guid.IsValid() // Returns boolean. True valid guid, false if not.
 *    jQuery.Guid.Set() // Retrns Guid. Sets Guid to user specified Guid, if invalid, returns an empty guid.
 *
 */
jQuery.extend({Guid:{Set:function(){var t;return 1==arguments.length&&(t=this.IsValid(arguments[0])?arguments[0]:this.Empty()),$(this).data("value",t),t},Empty:function(){return"00000000-0000-0000-0000-000000000000"},IsEmpty:function(t){return t==this.Empty()||"undefined"==typeof t||null==t||""==t},IsValid:function(t){return rGx=new RegExp("\\b(?:[A-F0-9]{8})(?:-[A-F0-9]{4}){3}-(?:[A-F0-9]{12})\\b"),null!=rGx.exec(t)},New:function(){if(1==arguments.length&&this.IsValid(arguments[0]))return $(this).data("value",arguments[0]),value=arguments[0],value;for(var t,e=[],n=new RegExp("[2345]"),o=0;8>o;o++)t=(65536*(1+Math.random())|0).toString(16).substring(1),null!=n.exec(o.toString())&&(3==o&&(t="6"+t.substr(1,3)),e.push("-")),e.push(t.toUpperCase());return value=e.join(""),$(this).data("value",value),value},Value:function(){if($(this).data("value"))return $(this).data("value");var t=this.New();return $(this).data("value",t),t}}})(),/*
* ThisLife jOdometer (1.0) // 2011.09.19
*
* A branch of the original jOdometer plugin:
* jOdometer (1.0) // 2008.03.17 // <http://www.frontendmatters.com/projects/jquery-plugins/>
* Copyright (c) 2008 TrafficBroker <http://www.trafficbroker.co.uk>
* Licensed under GPL and MIT licenses
* @author    Suso Guez (Jesus Carrera Rodriguez) <suso.guez@frontendmatters.com>
*/
function(t){t.fn.jOdometer=function(e){return e=t.extend({},t.fn.jOdometer.defaults,e),this.each(function(){function n(e){for(i=String(e).split("."),integers=i[0],p=integers.length-1,f=0;f<u.length;f++)oldDigit=a[f],a[f]=integers.charAt(p),""==a[f]&&(a[f]="0"),o(t(".jodometer_integer_"+f,r),parseInt(a[f]),parseInt(oldDigit)),p--}function o(t,n,o){n!=o&&(t.stop(),0==n?t.animate({marginTop:10*e.heightNumber*-1+s},e.speed,e.easing).animate({marginTop:s},1,"linear"):o>n?t.animate({marginTop:10*e.heightNumber*-1+s},e.speed*((10-o)/10),"linear").animate({marginTop:s},1,"linear").animate({marginTop:n*e.heightNumber*-1+s},e.speed*o/10,e.easing):t.animate({marginTop:n*e.heightNumber*-1+s},e.speed,e.easing))}t(this).bind("setNumber",function(t,e){n(e)});var i,r=t(this),s=-e.heightNumber,a=(parseFloat(e.counterStart),[]),l=[],u=String(e.counterStart),c="-"==u.charAt(0),h="9<br>0<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>0<br>1<br>.<br>_";if(c)for(var p=0,f=u.length-1;f>-1;f--)l[f]=u.charAt(f),t(this).append('<div class="separator"></div><div style="margin-top:'+14*e.heightNumber*-1+'px;" class="number jodometer_integer_'+f+'" alt="Integer '+(f+1)+'">'+h+"</div>"),p++})},t.fn.jOdometer.defaults={counterStart:"0000.00",counterEnd:!1,delayTime:1e3,increment:.01,speed:500,easing:"swing",numbersImage:"/images/jodometer-numbers.png",heightNumber:31,widthNumber:14,offsetRight:0,spaceNumbers:0,widthDot:10}}(jQuery),function(t){function e(e){t.fn.cycle.debug&&n(e)}function n(){}function o(e,n,o){var i=t(e).data("cycle.opts"),r=!!e.cyclePause;r&&i.paused?i.paused(e,i,n,o):!r&&i.resumed&&i.resumed(e,i,n,o)}function i(e,i,r){function a(e,o,i){if(!e&&o===!0){var r=t(i).data("cycle.opts");if(!r)return n("options not found, can not resume"),!1;i.cycleTimeout&&(clearTimeout(i.cycleTimeout),i.cycleTimeout=0),h(r.elements,r,1,!r.backwards)}}if(void 0==e.cycleStop&&(e.cycleStop=0),(void 0===i||null===i)&&(i={}),i.constructor==String){switch(i){case"destroy":case"stop":var l=t(e).data("cycle.opts");return l?(e.cycleStop++,e.cycleTimeout&&clearTimeout(e.cycleTimeout),e.cycleTimeout=0,l.elements&&t(l.elements).stop(),t(e).removeData("cycle.opts"),"destroy"==i&&s(l),!1):!1;case"toggle":return e.cyclePause=1===e.cyclePause?0:1,a(e.cyclePause,r,e),o(e),!1;case"pause":return e.cyclePause=1,o(e),!1;case"resume":return e.cyclePause=0,a(!1,r,e),o(e),!1;case"prev":case"next":var l=t(e).data("cycle.opts");return l?(t.fn.cycle[i](l),!1):(n('options not found, "prev/next" ignored'),!1);default:i={fx:i}}return i}if(i.constructor==Number){var u=i;return(i=t(e).data("cycle.opts"))?0>u||u>=i.elements.length?(n("invalid slide index: "+u),!1):(i.nextSlide=u,e.cycleTimeout&&(clearTimeout(e.cycleTimeout),e.cycleTimeout=0),"string"==typeof r&&(i.oneTimeFx=r),h(i.elements,i,1,u>=i.currSlide),!1):(n("options not found, can not advance slide"),!1)}return i}function r(e,n){if(!t.support.opacity&&n.cleartype&&e.style.filter)try{e.style.removeAttribute("filter")}catch(o){}}function s(e){e.next&&t(e.next).unbind(e.prevNextEvent),e.prev&&t(e.prev).unbind(e.prevNextEvent),(e.pager||e.pagerAnchorBuilder)&&t.each(e.pagerAnchors||[],function(){this.unbind().remove()}),e.pagerAnchors=null,e.destroy&&e.destroy(e)}function a(e,i,s,a,p){var f=t.extend({},t.fn.cycle.defaults,a||{},t.metadata?e.metadata():t.meta?e.data():{}),m=t.isFunction(e.data)?e.data(f.metaAttr):null;m&&(f=t.extend(f,m)),f.autostop&&(f.countdown=f.autostopCount||s.length);var y=e[0];if(e.data("cycle.opts",f),f.$cont=e,f.stopCount=y.cycleStop,f.elements=s,f.before=f.before?[f.before]:[],f.after=f.after?[f.after]:[],!t.support.opacity&&f.cleartype&&f.after.push(function(){r(this,f)}),f.continuous&&f.after.push(function(){h(s,f,0,!f.backwards)}),l(f),t.support.opacity||!f.cleartype||f.cleartypeNoBg||g(i),"static"==e.css("position")&&e.css("position","relative"),f.width&&e.width(f.width),f.height&&"auto"!=f.height&&e.height(f.height),f.startingSlide?f.startingSlide=parseInt(f.startingSlide,10):f.backwards&&(f.startingSlide=s.length-1),f.random){f.randomMap=[];for(var b=0;b<s.length;b++)f.randomMap.push(b);f.randomMap.sort(function(){return Math.random()-.5}),f.randomIndex=1,f.startingSlide=f.randomMap[1]}else f.startingSlide>=s.length&&(f.startingSlide=0);f.currSlide=f.startingSlide||0;var A=f.startingSlide;i.css({position:"absolute",top:0,left:0}).hide().each(function(e){var n;n=f.backwards?A?A>=e?s.length+(e-A):A-e:s.length-e:A?e>=A?s.length-(e-A):A-e:s.length-e,t(this).css("z-index",n)}),t(s[A]).css("opacity",1).show(),r(s[A],f),f.fit&&(f.aspect?i.each(function(){var e=t(this),n=f.aspect===!0?e.width()/e.height():f.aspect;f.width&&e.width()!=f.width&&(e.width(f.width),e.height(f.width/n)),f.height&&e.height()<f.height&&(e.height(f.height),e.width(f.height*n))}):(f.width&&i.width(f.width),f.height&&"auto"!=f.height&&i.height(f.height))),!f.center||f.fit&&!f.aspect||i.each(function(){var e=t(this);e.css({"margin-left":f.width?(f.width-e.width())/2+"px":0,"margin-top":f.height?(f.height-e.height())/2+"px":0})}),!f.center||f.fit||f.slideResize||i.each(function(){var e=t(this);e.css({"margin-left":f.width?(f.width-e.width())/2+"px":0,"margin-top":f.height?(f.height-e.height())/2+"px":0})});var j=f.containerResize&&!e.innerHeight();if(j){for(var w=0,_=0,k=0;k<s.length;k++){var x=t(s[k]),C=x[0],T=x.outerWidth(),E=x.outerHeight();T||(T=C.offsetWidth||C.width||x.attr("width")),E||(E=C.offsetHeight||C.height||x.attr("height")),w=T>w?T:w,_=E>_?E:_}w>0&&_>0&&e.css({width:w+"px",height:_+"px"})}var S=!1;if(f.pause&&e.hover(function(){S=!0,this.cyclePause++,o(y,!0)},function(){S&&this.cyclePause--,o(y,!0)}),u(f)===!1)return!1;var O=!1;if(a.requeueAttempts=a.requeueAttempts||0,i.each(function(){var e=t(this);if(this.cycleH=f.fit&&f.height?f.height:e.height()||this.offsetHeight||this.height||e.attr("height")||0,this.cycleW=f.fit&&f.width?f.width:e.width()||this.offsetWidth||this.width||e.attr("width")||0,e.is("img")){var o=t.browser.msie&&28==this.cycleW&&30==this.cycleH&&!this.complete,i=t.browser.mozilla&&34==this.cycleW&&19==this.cycleH&&!this.complete,r=t.browser.opera&&(42==this.cycleW&&19==this.cycleH||37==this.cycleW&&17==this.cycleH)&&!this.complete,s=0==this.cycleH&&0==this.cycleW&&!this.complete;if(o||i||r||s){if(p.s&&f.requeueOnImageNotLoaded&&++a.requeueAttempts<100)return n(a.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){t(p.s,p.c).cycle(a)},f.requeueTimeout),O=!0,!1;n("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0}),O)return!1;if(f.cssBefore=f.cssBefore||{},f.cssAfter=f.cssAfter||{},f.cssFirst=f.cssFirst||{},f.animIn=f.animIn||{},f.animOut=f.animOut||{},i.not(":eq("+A+")").css(f.cssBefore),t(i[A]).css(f.cssFirst),f.timeout){f.timeout=parseInt(f.timeout,10),f.speed.constructor==String&&(f.speed=t.fx.speeds[f.speed]||parseInt(f.speed,10)),f.sync||(f.speed=f.speed/2);for(var P="none"==f.fx?0:"shuffle"==f.fx?500:250;f.timeout-f.speed<P;)f.timeout+=f.speed}if(f.easing&&(f.easeIn=f.easeOut=f.easing),f.speedIn||(f.speedIn=f.speed),f.speedOut||(f.speedOut=f.speed),f.slideCount=s.length,f.currSlide=f.lastSlide=A,f.random?(++f.randomIndex==s.length&&(f.randomIndex=0),f.nextSlide=f.randomMap[f.randomIndex]):f.nextSlide=f.backwards?0==f.startingSlide?s.length-1:f.startingSlide-1:f.startingSlide>=s.length-1?0:f.startingSlide+1,!f.multiFx){var M=t.fn.cycle.transitions[f.fx];if(t.isFunction(M))M(e,i,f);else if("custom"!=f.fx&&!f.multiFx)return n("unknown transition: "+f.fx,"; slideshow terminating"),!1}var I=i[A];return f.skipInitializationCallbacks||(f.before.length&&f.before[0].apply(I,[I,I,f,!0]),f.after.length&&f.after[0].apply(I,[I,I,f,!0])),f.next&&t(f.next).bind(f.prevNextEvent,function(){return d(f,1)}),f.prev&&t(f.prev).bind(f.prevNextEvent,function(){return d(f,0)}),(f.pager||f.pagerAnchorBuilder)&&v(s,f),c(f,s),f}function l(e){e.original={before:[],after:[]},e.original.cssBefore=t.extend({},e.cssBefore),e.original.cssAfter=t.extend({},e.cssAfter),e.original.animIn=t.extend({},e.animIn),e.original.animOut=t.extend({},e.animOut),t.each(e.before,function(){e.original.before.push(this)}),t.each(e.after,function(){e.original.after.push(this)})}function u(o){var i,r,s=t.fn.cycle.transitions;if(o.fx.indexOf(",")>0){for(o.multiFx=!0,o.fxs=o.fx.replace(/\s*/g,"").split(","),i=0;i<o.fxs.length;i++){var a=o.fxs[i];r=s[a],r&&s.hasOwnProperty(a)&&t.isFunction(r)||(n("discarding unknown transition: ",a),o.fxs.splice(i,1),i--)}if(!o.fxs.length)return n("No valid transitions named; slideshow terminating."),!1}else if("all"==o.fx){o.multiFx=!0,o.fxs=[];for(p in s)r=s[p],s.hasOwnProperty(p)&&t.isFunction(r)&&o.fxs.push(p)}if(o.multiFx&&o.randomizeEffects){var l=Math.floor(20*Math.random())+30;for(i=0;l>i;i++){var u=Math.floor(Math.random()*o.fxs.length);o.fxs.push(o.fxs.splice(u,1)[0])}e("randomized fx sequence: ",o.fxs)}return!0}function c(e,n){e.addSlide=function(o,i){var r=t(o),s=r[0];e.autostopCount||e.countdown++,n[i?"unshift":"push"](s),e.els&&e.els[i?"unshift":"push"](s),e.slideCount=n.length,r.css("position","absolute"),r[i?"prependTo":"appendTo"](e.$cont),i&&(e.currSlide++,e.nextSlide++),t.support.opacity||!e.cleartype||e.cleartypeNoBg||g(r),e.fit&&e.width&&r.width(e.width),e.fit&&e.height&&"auto"!=e.height&&r.height(e.height),s.cycleH=e.fit&&e.height?e.height:r.height(),s.cycleW=e.fit&&e.width?e.width:r.width(),r.css(e.cssBefore),(e.pager||e.pagerAnchorBuilder)&&t.fn.cycle.createPagerAnchor(n.length-1,s,t(e.pager),n,e),t.isFunction(e.onAddSlide)?e.onAddSlide(r):r.hide()}}function h(n,o,i,r){if(i&&o.busy&&o.manualTrump&&(e("manualTrump in go(), stopping active transition"),t(n).stop(!0,!0),o.busy=0),o.busy)return void e("transition active, ignoring new tx request");var s=o.$cont[0],a=n[o.currSlide],l=n[o.nextSlide];if(s.cycleStop==o.stopCount&&(0!==s.cycleTimeout||i)){if(!i&&!s.cyclePause&&!o.bounce&&(o.autostop&&--o.countdown<=0||o.nowrap&&!o.random&&o.nextSlide<o.currSlide))return void(o.end&&o.end(o));var u=!1;if((i||!s.cyclePause)&&o.nextSlide!=o.currSlide){u=!0;var c=o.fx;a.cycleH=a.cycleH||t(a).height(),a.cycleW=a.cycleW||t(a).width(),l.cycleH=l.cycleH||t(l).height(),l.cycleW=l.cycleW||t(l).width(),o.multiFx&&(r&&(void 0==o.lastFx||++o.lastFx>=o.fxs.length)?o.lastFx=0:!r&&(void 0==o.lastFx||--o.lastFx<0)&&(o.lastFx=o.fxs.length-1),c=o.fxs[o.lastFx]),o.oneTimeFx&&(c=o.oneTimeFx,o.oneTimeFx=null),t.fn.cycle.resetState(o,c),o.before.length&&t.each(o.before,function(t,e){s.cycleStop==o.stopCount&&e.apply(l,[a,l,o,r])});var p=function(){o.busy=0,t.each(o.after,function(t,e){s.cycleStop==o.stopCount&&e.apply(l,[a,l,o,r])})};e("tx firing("+c+"); currSlide: "+o.currSlide+"; nextSlide: "+o.nextSlide),o.busy=1,o.fxFn?o.fxFn(a,l,o,p,r,i&&o.fastOnEvent):t.isFunction(t.fn.cycle[o.fx])?t.fn.cycle[o.fx](a,l,o,p,r,i&&o.fastOnEvent):t.fn.cycle.custom(a,l,o,p,r,i&&o.fastOnEvent)}if(u||o.nextSlide==o.currSlide)if(o.lastSlide=o.currSlide,o.random)o.currSlide=o.nextSlide,++o.randomIndex==n.length&&(o.randomIndex=0),o.nextSlide=o.randomMap[o.randomIndex],o.nextSlide==o.currSlide&&(o.nextSlide=o.currSlide==o.slideCount-1?0:o.currSlide+1);else if(o.backwards){var d=o.nextSlide-1<0;d&&o.bounce?(o.backwards=!o.backwards,o.nextSlide=1,o.currSlide=0):(o.nextSlide=d?n.length-1:o.nextSlide-1,o.currSlide=d?0:o.nextSlide+1)}else{var d=o.nextSlide+1==n.length;d&&o.bounce?(o.backwards=!o.backwards,o.nextSlide=n.length-2,o.currSlide=n.length-1):(o.nextSlide=d?0:o.nextSlide+1,o.currSlide=d?n.length-1:o.nextSlide-1)}u&&o.pager&&o.updateActivePagerLink(o.pager,o.currSlide,o.activePagerClass);var v=0;o.timeout&&!o.continuous?v=f(n[o.currSlide],n[o.nextSlide],o,r):o.continuous&&s.cyclePause&&(v=10),v>0&&(s.cycleTimeout=setTimeout(function(){h(n,o,0,!o.backwards)},v))}}function f(t,n,o,i){if(o.timeoutFn){for(var r=o.timeoutFn.call(t,t,n,o,i);"none"!=o.fx&&r-o.speed<250;)r+=o.speed;if(e("calculated timeout: "+r+"; speed: "+o.speed),r!==!1)return r}return o.timeout}function d(e,n){var o=n?1:-1,i=e.elements,r=e.$cont[0],s=r.cycleTimeout;if(s&&(clearTimeout(s),r.cycleTimeout=0),e.random&&0>o)e.randomIndex--,-2==--e.randomIndex?e.randomIndex=i.length-2:-1==e.randomIndex&&(e.randomIndex=i.length-1),e.nextSlide=e.randomMap[e.randomIndex];else if(e.random)e.nextSlide=e.randomMap[e.randomIndex];else if(e.nextSlide=e.currSlide+o,e.nextSlide<0){if(e.nowrap)return!1;e.nextSlide=i.length-1}else if(e.nextSlide>=i.length){if(e.nowrap)return!1;e.nextSlide=0}var a=e.onPrevNextEvent||e.prevNextClick;return t.isFunction(a)&&a(o>0,e.nextSlide,i[e.nextSlide]),h(i,e,1,n),!1}function v(e,n){var o=t(n.pager);t.each(e,function(i,r){t.fn.cycle.createPagerAnchor(i,r,o,e,n)}),n.updateActivePagerLink(n.pager,n.startingSlide,n.activePagerClass)}function g(n){function o(t){return t=parseInt(t,10).toString(16),t.length<2?"0"+t:t}function i(e){for(;e&&"html"!=e.nodeName.toLowerCase();e=e.parentNode){var n=t.css(e,"background-color");if(n&&n.indexOf("rgb")>=0){var i=n.match(/\d+/g);return"#"+o(i[0])+o(i[1])+o(i[2])}if(n&&"transparent"!=n)return n}return"#ffffff"}e("applying clearType background-color hack"),n.each(function(){t(this).css("background-color",i(this))})}var m="2.9995";void 0==t.support&&(t.support={opacity:!t.browser.msie}),t.expr[":"].paused=function(t){return t.cyclePause},t.fn.cycle=function(o,r){var s={s:this.selector,c:this.context};return 0===this.length&&"stop"!=o?!t.isReady&&s.s?(n("DOM not ready, queuing slideshow"),t(function(){t(s.s,s.c).cycle(o,r)}),this):(n("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this):this.each(function(){var l=i(this,o,r);if(l!==!1){l.updateActivePagerLink=l.updateActivePagerLink||t.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0;var u=t(this),c=l.slideExpr?t(l.slideExpr,this):u.children(),p=c.get(),d=a(u,c,p,l,s);if(d!==!1){if(p.length<2)return void n("terminating; too few slides: "+p.length);var v=d.continuous?10:f(p[d.currSlide],p[d.nextSlide],d,!d.backwards);v&&(v+=d.delay||0,10>v&&(v=10),e("first timeout: "+v),this.cycleTimeout=setTimeout(function(){h(p,d,0,!l.backwards)},v))}}})},t.fn.cycle.resetState=function(e,n){n=n||e.fx,e.before=[],e.after=[],e.cssBefore=t.extend({},e.original.cssBefore),e.cssAfter=t.extend({},e.original.cssAfter),e.animIn=t.extend({},e.original.animIn),e.animOut=t.extend({},e.original.animOut),e.fxFn=null,t.each(e.original.before,function(){e.before.push(this)}),t.each(e.original.after,function(){e.after.push(this)});var o=t.fn.cycle.transitions[n];t.isFunction(o)&&o(e.$cont,t(e.elements),e)},t.fn.cycle.updateActivePagerLink=function(e,n,o){t(e).each(function(){t(this).children().removeClass(o).eq(n).addClass(o)})},t.fn.cycle.next=function(t){d(t,1)},t.fn.cycle.prev=function(t){d(t,0)},t.fn.cycle.createPagerAnchor=function(n,i,r,s,a){var l;if(t.isFunction(a.pagerAnchorBuilder)?(l=a.pagerAnchorBuilder(n,i),e("pagerAnchorBuilder("+n+", el) returned: "+l)):l='<a href="#">'+(n+1)+"</a>",l){var u=t(l);if(0===u.parents("body").length){var c=[];r.length>1?(r.each(function(){var e=u.clone(!0);t(this).append(e),c.push(e[0])}),u=t(c)):u.appendTo(r)}a.pagerAnchors=a.pagerAnchors||[],a.pagerAnchors.push(u);var p=function(e){e.preventDefault(),a.nextSlide=n;var o=a.$cont[0],i=o.cycleTimeout;i&&(clearTimeout(i),o.cycleTimeout=0);var r=a.onPagerEvent||a.pagerClick;t.isFunction(r)&&r(a.nextSlide,s[a.nextSlide]),h(s,a,1,a.currSlide<n)};/mouseenter|mouseover/i.test(a.pagerEvent)?u.hover(p,function(){}):u.bind(a.pagerEvent,p),/^click/.test(a.pagerEvent)||a.allowPagerClickBubble||u.bind("click.cycle",function(){return!1});var f=a.$cont[0],d=!1;a.pauseOnPagerHover&&u.hover(function(){d=!0,f.cyclePause++,o(f,!0,!0)},function(){d&&f.cyclePause--,o(f,!0,!0)})}},t.fn.cycle.hopsFromLast=function(t,e){var n,o=t.lastSlide,i=t.currSlide;return n=e?i>o?i-o:t.slideCount-o:o>i?o-i:o+t.slideCount-i},t.fn.cycle.commonReset=function(e,n,o,i,r,s){t(o.elements).not(e).hide(),"undefined"==typeof o.cssBefore.opacity&&(o.cssBefore.opacity=1),o.cssBefore.display="block",o.slideResize&&i!==!1&&n.cycleW>0&&(o.cssBefore.width=n.cycleW),o.slideResize&&r!==!1&&n.cycleH>0&&(o.cssBefore.height=n.cycleH),o.cssAfter=o.cssAfter||{},o.cssAfter.display="none",t(e).css("zIndex",o.slideCount+(s===!0?1:0)),t(n).css("zIndex",o.slideCount+(s===!0?0:1))},t.fn.cycle.custom=function(e,n,o,i,r,s){var a=t(e),l=t(n),u=o.speedIn,c=o.speedOut,h=o.easeIn,p=o.easeOut;l.css(o.cssBefore),s&&(u=c="number"==typeof s?s:1,h=p=null);var f=function(){l.animate(o.animIn,u,h,function(){i()})};a.animate(o.animOut,c,p,function(){a.css(o.cssAfter),o.sync||f()}),o.sync&&f()},t.fn.cycle.transitions={fade:function(e,n,o){n.not(":eq("+o.currSlide+")").css("opacity",0),o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o),o.cssBefore.opacity=0}),o.animIn={opacity:1},o.animOut={opacity:0},o.cssBefore={top:0,left:0}}},t.fn.cycle.ver=function(){return m},t.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animOut:null,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!t.support.opacity,cleartypeNoBg:!1,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!1,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.empty",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),/*!
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version:	 2.73
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
function(t){t.fn.cycle.transitions.none=function(e,n,o){o.fxFn=function(e,n,o,i){t(n).show(),t(e).hide(),i()}},t.fn.cycle.transitions.fadeout=function(e,n,o){n.not(":eq("+o.currSlide+")").css({display:"block",opacity:1}),o.before.push(function(e,n,o,i,r,s){t(e).css("zIndex",o.slideCount+(!s==!0?1:0)),t(n).css("zIndex",o.slideCount+(!s==!0?0:1))}),o.animIn.opacity=1,o.animOut.opacity=0,o.cssBefore.opacity=1,o.cssBefore.display="block",o.cssAfter.zIndex=0},t.fn.cycle.transitions.scrollUp=function(e,n,o){e.css("overflow","hidden"),o.before.push(t.fn.cycle.commonReset);var i=e.height();o.cssBefore.top=i,o.cssBefore.left=0,o.cssFirst.top=0,o.animIn.top=0,o.animOut.top=-i},t.fn.cycle.transitions.scrollDown=function(e,n,o){e.css("overflow","hidden"),o.before.push(t.fn.cycle.commonReset);var i=e.height();o.cssFirst.top=0,o.cssBefore.top=-i,o.cssBefore.left=0,o.animIn.top=0,o.animOut.top=i},t.fn.cycle.transitions.scrollLeft=function(e,n,o){e.css("overflow","hidden"),o.before.push(t.fn.cycle.commonReset);var i=e.width();o.cssFirst.left=0,o.cssBefore.left=i,o.cssBefore.top=0,o.animIn.left=0,o.animOut.left=0-i},t.fn.cycle.transitions.scrollRight=function(e,n,o){e.css("overflow","hidden"),o.before.push(t.fn.cycle.commonReset);var i=e.width();o.cssFirst.left=0,o.cssBefore.left=-i,o.cssBefore.top=0,o.animIn.left=0,o.animOut.left=i},t.fn.cycle.transitions.scrollHorz=function(e,n,o){e.css("overflow","hidden").width(),o.before.push(function(e,n,o,i){o.rev&&(i=!i),t.fn.cycle.commonReset(e,n,o),o.cssBefore.left=i?n.cycleW-1:1-n.cycleW,o.animOut.left=i?-e.cycleW:e.cycleW}),o.cssFirst.left=0,o.cssBefore.top=0,o.animIn.left=0,o.animOut.top=0},t.fn.cycle.transitions.scrollVert=function(e,n,o){e.css("overflow","hidden"),o.before.push(function(e,n,o,i){o.rev&&(i=!i),t.fn.cycle.commonReset(e,n,o),o.cssBefore.top=i?1-n.cycleH:n.cycleH-1,o.animOut.top=i?e.cycleH:-e.cycleH}),o.cssFirst.top=0,o.cssBefore.left=0,o.animIn.top=0,o.animOut.left=0},t.fn.cycle.transitions.slideX=function(e,n,o){o.before.push(function(e,n,o){t(o.elements).not(e).hide(),t.fn.cycle.commonReset(e,n,o,!1,!0),o.animIn.width=n.cycleW}),o.cssBefore.left=0,o.cssBefore.top=0,o.cssBefore.width=0,o.animIn.width="show",o.animOut.width=0},t.fn.cycle.transitions.slideY=function(e,n,o){o.before.push(function(e,n,o){t(o.elements).not(e).hide(),t.fn.cycle.commonReset(e,n,o,!0,!1),o.animIn.height=n.cycleH}),o.cssBefore.left=0,o.cssBefore.top=0,o.cssBefore.height=0,o.animIn.height="show",o.animOut.height=0},t.fn.cycle.transitions.shuffle=function(e,n,o){var i,r=e.css("overflow","visible").width();for(n.css({left:0,top:0}),o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!0,!0,!0)}),o.speedAdjusted||(o.speed=o.speed/2,o.speedAdjusted=!0),o.random=0,o.shuffle=o.shuffle||{left:-r,top:15},o.els=[],i=0;i<n.length;i++)o.els.push(n[i]);for(i=0;i<o.currSlide;i++)o.els.push(o.els.shift());o.fxFn=function(e,n,o,i,r){o.rev&&(r=!r);var s=t(r?e:n);t(n).css(o.cssBefore);var a=o.slideCount;s.animate(o.shuffle,o.speedIn,o.easeIn,function(){for(var n=t.fn.cycle.hopsFromLast(o,r),l=0;n>l;l++)r?o.els.push(o.els.shift()):o.els.unshift(o.els.pop());if(r)for(var u=0,c=o.els.length;c>u;u++)t(o.els[u]).css("z-index",c-u+a);else{var h=t(e).css("z-index");s.css("z-index",parseInt(h,10)+1+a)}s.animate({left:0,top:0},o.speedOut,o.easeOut,function(){t(r?this:e).hide(),i&&i()})})},t.extend(o.cssBefore,{display:"block",opacity:1,top:0,left:0})},t.fn.cycle.transitions.turnUp=function(e,n,o){o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!0,!1),o.cssBefore.top=n.cycleH,o.animIn.height=n.cycleH,o.animOut.width=n.cycleW}),o.cssFirst.top=0,o.cssBefore.left=0,o.cssBefore.height=0,o.animIn.top=0,o.animOut.height=0},t.fn.cycle.transitions.turnDown=function(e,n,o){o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!0,!1),o.animIn.height=n.cycleH,o.animOut.top=e.cycleH}),o.cssFirst.top=0,o.cssBefore.left=0,o.cssBefore.top=0,o.cssBefore.height=0,o.animOut.height=0},t.fn.cycle.transitions.turnLeft=function(e,n,o){o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!1,!0),o.cssBefore.left=n.cycleW,o.animIn.width=n.cycleW}),o.cssBefore.top=0,o.cssBefore.width=0,o.animIn.left=0,o.animOut.width=0},t.fn.cycle.transitions.turnRight=function(e,n,o){o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!1,!0),o.animIn.width=n.cycleW,o.animOut.left=e.cycleW}),t.extend(o.cssBefore,{top:0,left:0,width:0}),o.animIn.left=0,o.animOut.width=0},t.fn.cycle.transitions.zoom=function(e,n,o){o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!1,!1,!0),o.cssBefore.top=n.cycleH/2,o.cssBefore.left=n.cycleW/2,t.extend(o.animIn,{top:0,left:0,width:n.cycleW,height:n.cycleH}),t.extend(o.animOut,{width:0,height:0,top:e.cycleH/2,left:e.cycleW/2})}),o.cssFirst.top=0,o.cssFirst.left=0,o.cssBefore.width=0,o.cssBefore.height=0},t.fn.cycle.transitions.fadeZoom=function(e,n,o){o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!1,!1),o.cssBefore.left=n.cycleW/2,o.cssBefore.top=n.cycleH/2,t.extend(o.animIn,{top:0,left:0,width:n.cycleW,height:n.cycleH})}),o.cssBefore.width=0,o.cssBefore.height=0,o.animOut.opacity=0},t.fn.cycle.transitions.blindX=function(e,n,o){var i=e.css("overflow","hidden").width();o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o),o.animIn.width=n.cycleW,o.animOut.left=e.cycleW}),o.cssBefore.left=i,o.cssBefore.top=0,o.animIn.left=0,o.animOut.left=i},t.fn.cycle.transitions.blindY=function(e,n,o){var i=e.css("overflow","hidden").height();o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o),o.animIn.height=n.cycleH,o.animOut.top=e.cycleH}),o.cssBefore.top=i,o.cssBefore.left=0,o.animIn.top=0,o.animOut.top=i},t.fn.cycle.transitions.blindZ=function(e,n,o){var i=e.css("overflow","hidden").height(),r=e.width();o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o),o.animIn.height=n.cycleH,o.animOut.top=e.cycleH}),o.cssBefore.top=i,o.cssBefore.left=r,o.animIn.top=0,o.animIn.left=0,o.animOut.top=i,o.animOut.left=r},t.fn.cycle.transitions.growX=function(e,n,o){o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!1,!0),o.cssBefore.left=this.cycleW/2,o.animIn.left=0,o.animIn.width=this.cycleW,o.animOut.left=0}),o.cssBefore.top=0,o.cssBefore.width=0},t.fn.cycle.transitions.growY=function(e,n,o){o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!0,!1),o.cssBefore.top=this.cycleH/2,o.animIn.top=0,o.animIn.height=this.cycleH,o.animOut.top=0}),o.cssBefore.height=0,o.cssBefore.left=0},t.fn.cycle.transitions.curtainX=function(e,n,o){o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!1,!0,!0),o.cssBefore.left=n.cycleW/2,o.animIn.left=0,o.animIn.width=this.cycleW,o.animOut.left=e.cycleW/2,o.animOut.width=0}),o.cssBefore.top=0,o.cssBefore.width=0},t.fn.cycle.transitions.curtainY=function(e,n,o){o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!0,!1,!0),o.cssBefore.top=n.cycleH/2,o.animIn.top=0,o.animIn.height=n.cycleH,o.animOut.top=e.cycleH/2,o.animOut.height=0}),o.cssBefore.height=0,o.cssBefore.left=0},t.fn.cycle.transitions.cover=function(e,n,o){var i=o.direction||"left",r=e.css("overflow","hidden").width(),s=e.height();o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o),"right"==i?o.cssBefore.left=-r:"up"==i?o.cssBefore.top=s:"down"==i?o.cssBefore.top=-s:o.cssBefore.left=r}),o.animIn.left=0,o.animIn.top=0,o.cssBefore.top=0,o.cssBefore.left=0},t.fn.cycle.transitions.uncover=function(e,n,o){var i=o.direction||"left",r=e.css("overflow","hidden").width(),s=e.height();o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!0,!0,!0),"right"==i?o.animOut.left=r:"up"==i?o.animOut.top=-s:"down"==i?o.animOut.top=s:o.animOut.left=-r}),o.animIn.left=0,o.animIn.top=0,o.cssBefore.top=0,o.cssBefore.left=0},t.fn.cycle.transitions.toss=function(e,n,o){var i=e.css("overflow","visible").width(),r=e.height();o.before.push(function(e,n,o){t.fn.cycle.commonReset(e,n,o,!0,!0,!0),o.animOut.left||o.animOut.top?o.animOut.opacity=0:t.extend(o.animOut,{left:2*i,top:-r/2,opacity:0})}),o.cssBefore.left=0,o.cssBefore.top=0,o.animIn.left=0},t.fn.cycle.transitions.wipe=function(e,n,o){var i=e.css("overflow","hidden").width(),r=e.height();o.cssBefore=o.cssBefore||{};var s;if(o.clip)if(/l2r/.test(o.clip))s="rect(0px 0px "+r+"px 0px)";else if(/r2l/.test(o.clip))s="rect(0px "+i+"px "+r+"px "+i+"px)";else if(/t2b/.test(o.clip))s="rect(0px "+i+"px 0px 0px)";else if(/b2t/.test(o.clip))s="rect("+r+"px "+i+"px "+r+"px 0px)";else if(/zoom/.test(o.clip)){var a=parseInt(r/2,10),l=parseInt(i/2,10);s="rect("+a+"px "+l+"px "+a+"px "+l+"px)"}o.cssBefore.clip=o.cssBefore.clip||s||"rect(0px 0px 0px 0px)";var u=o.cssBefore.clip.match(/(\d+)/g),c=parseInt(u[0],10),h=parseInt(u[1],10),p=parseInt(u[2],10),f=parseInt(u[3],10);o.before.push(function(e,n,o){if(e!=n){var s=t(e),a=t(n);t.fn.cycle.commonReset(e,n,o,!0,!0,!1),o.cssAfter.display="block";var l=1,u=parseInt(o.speedIn/13,10)-1;!function d(){var t=c?c-parseInt(l*(c/u),10):0,e=f?f-parseInt(l*(f/u),10):0,n=r>p?p+parseInt(l*((r-p)/u||1),10):r,o=i>h?h+parseInt(l*((i-h)/u||1),10):i;a.css({clip:"rect("+t+"px "+o+"px "+n+"px "+e+"px)"}),l++<=u?setTimeout(d,13):s.css("display","none")}()}}),t.extend(o.cssBefore,{display:"block",opacity:1,top:0,left:0}),o.animIn={left:0},o.animOut={left:0}}}(jQuery),function(){var t,e=[].slice;t={pick:function(){var t,n,o,i,r,s,a,l;for(t=1<=arguments.length?e.call(arguments,0):[],s=this.models,l=[],n=0,o=s.length;o>n;n++)i=s[n],r=i.attributes,a={},_.each(_.flatten(arguments),function(t){return t in r?a[t]=r[t]:void 0}),l.push(a);return l}},$.extend(Backbone.Collection.prototype,t)}.call(this),function(){var t,e,n;Backbone.Controller=function(){return this.initialize.apply(this,arguments),this},_.extend(Backbone.Controller.prototype,Backbone.Events,{initialize:function(){}}),t=function(){},n=function(e,n,o){var i;return i=void 0,i=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return e.apply(this,arguments)},_.extend(i,e),t.prototype=e.prototype,i.prototype=new t,n&&_.extend(i.prototype,n),o&&_.extend(i,o),i.prototype.constructor=i,i.__super__=e.prototype,i},e=function(t,e){var o;return o=n(this,t,e),o.extend=this.extend,o},Backbone.Controller.extend=e}.call(this),function(t){function e(e){p.parent||(p.parent=t('<div id="'+e.id+'"><h3></h3><div class="tooltip-body"></div><div class="url"></div></div>').appendTo(document.body).hide(),t.fn.bgiframe&&p.parent.bgiframe(),p.title=t("h3",p.parent),p.body=t("div.tooltip-body",p.parent),p.url=t("div.url",p.parent))}function n(e){return t.data(e,"tooltip")}function o(e){n(this).delay?h=setTimeout(r,n(this).delay):r(),d=!!n(this).track,t(document.body).bind("mousemove",s),s(e)}function i(){if(!t.tooltip.blocked&&this!=u&&(this.tooltipText||n(this).bodyHandler)){if(u=this,c=this.tooltipText,n(this).bodyHandler){p.title.hide();var e=n(this).bodyHandler.call(this);e.nodeType||e.jquery?p.body.empty().append(e):p.body.html(e),p.body.show()}else if(n(this).showBody){var i=c.split(n(this).showBody);p.title.html(i.shift()).show(),p.body.empty();for(var r,s=0;r=i[s];s++)s>0&&p.body.append("<br/>"),p.body.append(r);p.body.hideWhenEmpty()}else p.title.html(c).show(),p.body.hide();n(this).showURL&&t(this).url()?p.url.html(t(this).url().replace("http://","")).show():p.url.hide(),p.parent.addClass(n(this).extraClass),n(this).fixPNG&&p.parent.fixPNG(),o.apply(this,arguments)}}function r(){h=null,f&&t.fn.bgiframe||!n(u).fade?p.parent.show():p.parent.is(":animated")?p.parent.stop().show().fadeTo(n(u).fade,u.tOpacity):p.parent.is(":visible")?p.parent.fadeTo(n(u).fade,u.tOpacity):p.parent.fadeIn(n(u).fade),s()}function s(e){if(!(t.tooltip.blocked||e&&"OPTION"==e.target.tagName)){if(!d&&p.parent.is(":visible")&&t(document.body).unbind("mousemove",s),null==u)return void t(document.body).unbind("mousemove",s);if(!n(u))return t(document.body).unbind("mousemove",s),void p.parent.hide();p.parent.removeClass("viewport-right").removeClass("viewport-bottom");var o=p.parent[0].offsetLeft,i=p.parent[0].offsetTop;if(e){o=e.pageX+n(u).left,i=e.pageY+n(u).top;var r="auto";n(u).positionLeft&&(r=t(window).width()-o,o="auto"),p.parent.css({left:o,right:r,top:i})}var l=a(),c=p.parent[0];l.x+l.cx<c.offsetLeft+c.offsetWidth&&(o-=c.offsetWidth+20+n(u).left,!n(u).allowWindowOverflow&&0>o&&(o=0),p.parent.css({left:o+"px"}).addClass("viewport-right")),l.y+l.cy<c.offsetTop+c.offsetHeight&&(i-=c.offsetHeight+20+n(u).top,!n(u).allowWindowOverflow&&0>i&&(i=0),p.parent.css({top:i+"px"}).addClass("viewport-bottom"))}}function a(){return{x:t(window).scrollLeft(),y:t(window).scrollTop(),cx:t(window).width(),cy:t(window).height()}}function l(){function e(){p.parent.removeClass(o.extraClass).hide().css("opacity","")}if(!t.tooltip.blocked){h&&clearTimeout(h),u=null;var o=n(this);f&&t.fn.bgiframe||!o.fade?e():p.parent.is(":animated")?p.parent.stop().fadeTo(o.fade,0,e):p.parent.stop().fadeOut(o.fade,e),n(this).fixPNG&&p.parent.unfixPNG()}}var u,c,h,p={},f=t.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),d=!1;t.tooltip={blocked:!1,defaults:{delay:200,fade:!1,showURL:!0,extraClass:"",top:15,left:15,allowWindowOverflow:!0,id:"tooltip"},block:function(){t.tooltip.blocked=!t.tooltip.blocked}},t.fn.extend({tooltip:function(n){return n=t.extend({},t.tooltip.defaults,n),e(n),this.each(function(){t.data(this,"tooltip",n),this.tOpacity=p.parent.css("opacity"),this.tooltipText=this.title,t(this).removeAttr("title"),this.alt=""}).mouseover(i).mouseout(l).click(l)},fixPNG:f?function(){return this.each(function(){var e=t(this).css("backgroundImage");e.match(/^url\(["']?(.*\.png)["']?\)$/i)&&(e=RegExp.$1,t(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+e+"')"}).each(function(){var e=t(this).css("position");"absolute"!=e&&"relative"!=e&&t(this).css("position","relative")}))})}:function(){return this},unfixPNG:f?function(){return this.each(function(){t(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){t(this)[t(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}})}(jQuery),function(t){t.fn.autogrow=function(){return this.filter("textarea").each(function(){var e=t(this),n=e.height(),o=(e.css("lineHeight"),t("<div></div>").css({position:"absolute",top:-1e4,left:-1e4,width:t(this).width(),fontSize:e.css("fontSize"),fontFamily:e.css("fontFamily"),lineHeight:e.css("lineHeight"),resize:"none"}).appendTo(document.body)),i=function(){var e=this.value.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&/g,"&amp;").replace(/\n/g,"<br/>");o.html(e),t(this).css("height",Math.max(o.height()+20,n))};t(this).change(i).keyup(i).keydown(i),i.apply(this)}),this}}(jQuery),function(t){t.fn.externalInterface=function(t){return this.each(function(){if("undefined"!=typeof t.method)try{if("undefined"!=typeof t.args)var e=this[t.method](t.args);else var e=this[t.method]();"undefined"!=typeof t.success&&t.success(e)}catch(n){"undefined"!=typeof t.error&&t.error(n)}}),this}}(jQuery),function(){var t,e,n,o,i;t=function(t,e){var n,o,i;this.$el=$(t),this.options=$.extend({},$.fn.shorthand.defaults,e),o=this.options;for(n in o)i=o[n],this[n]=i;return delete this.options,this.$menu=$(this.menu)[this.method](this.parent),this.init(),this},t.prototype={init:function(){return this.bind(),this.lookup()},destroy:function(){return this.$el.removeData(),this.unbind(),this.$menu.remove(),this.$el.get(0).shorthand=null,this.$el=null},select:function(t){var e,n,o,i,r,s,a,l,u,c;return n=this.$menu.children().first(),o=null,n.length&&(r=this.caseSensitive?n.data().value:null!=(a=n.data().value)?a.toLowerCase():void 0,s=this.caseSensitive?this.$el.val():this.$el.val().toLowerCase(),e=this.$menu.find("."+this.activeClass),e.length&&(i=this.caseSensitive?e.data().value:null!=(l=e.data().value)?l.toLowerCase():void 0),(t||this.shown&&(r===s||i===s))&&(o=e,o.length||(o=n))),o?(c=o.data("value"),c&&(c=c.trim()),this.shown&&c&&this.$el.val(c),c&&c.toLowerCase()===this.$el.val().toLowerCase()&&this.$el.data(o.data())):this.$el.data({value:this.$el.val()}),this.selectCallback&&this.$el.val()&&this.selectCallback(this.$el),this.hide(),null!=(u=this.$el)?u.removeData():void 0},updateSource:function(t){return this.source=t,this},show:function(){var t;if(!this.shown)return t=$.extend({},this.$el.offset(),{height:this.$el[0].offsetHeight}),this.parent===$.fn.shorthand.defaults.parent&&this.$menu.css({zIndex:999,position:"absolute",top:t.top+t.height,left:t.left}),this.$menu.addClass(this["class"]).show(),this.shown=!0,this},hide:function(t){var e;return null==t&&(t=!1),null!=(e=this.$menu)&&e.hide(),this.shown=!1,t&&"function"==typeof this.noMatches&&this.noMatches(),this},lookup:function(){var t,e;return e=this,this.query=/MSIE (\d+\.\d+);/.test(navigator.userAgent)?this.$el.val().replace("Person, Place or Tag",""):this.$el.val(),this.query.trimLeft&&(this.query=this.query.trimLeft()),this.query||this.showAllForNoQuery?(t=$.grep(this.source,function(t){return e.matcher(t)?t:void 0}),this.sorted||(t=this.sorter(t)),t.length?(-1!==this.num&&(t=t.slice(0,this.num)),this.render(t).show()):(this.shown&&this.hide(!0),"function"==typeof this.noMatches?this.noMatches():void 0)):(this.shown&&this.hide(!0),"function"==typeof this.noMatches?this.noMatches():void 0)},matcher:function(t){var e,n,o,i,r,s;if(t="object"!=typeof t?t:t[this.value],i=!1,o=this.caseSensitive?this.query:this.query.toLowerCase(),o=o.replace(/(\_|\-)/g," "),t){for(t=t.replace(/(\_|\-)/g," "),s=t.split(" "),e=0,n=s.length;n>e&&(r=s[e],this.caseSensitive||(r=r.toLowerCase()),!(i=-1===~r.indexOf(o)));e++);this.caseSensitive||(t=t.toLowerCase()),i||(i=-1===~t.indexOf(o))}return i},sorter:function(t){var e,n,o,i,r;for(e=[],o=[],n=[];i=t.shift();)r="object"!=typeof i?i:i[this.value],r.toLowerCase().indexOf(this.query.toLowerCase())?~r.indexOf(this.query)?o.push(i):n.push(i):e.push(i);return e.concat(o,n)},highlighter:function(t){var o;return o="object"!=typeof t?t:t[this.value],o=e(o),o.replace(new RegExp("(\\b"+n(this.query)+")","ig"),function(t,e){return"<strong>"+e+"</strong>"})},render:function(t){return this.template?(this.renderTemplate(t),_.defer(function(t){return function(){return t.lazyLoadThumbnails()}}(this))):this.renderStatic(t),this},renderStatic:function(t){var e,n,o,i;return n=function(){var n,r,s;for(s=[],n=0,r=t.length;r>n;n++)o=t[n],i="object"!=typeof o?o:o[this.value],e=$(this.item).data("value",i),e.data("item",o),e.find("a").html(this.highlighter(i)),s.push(e[0]);return s}.call(this),this.$menu.html(n)},renderTemplate:function(t){var e,n,i,r;return n=function(){var n,s,a;for(a=[],n=0,s=t.length;s>n;n++)i=t[n],r="object"!=typeof i?i:i[this.value],e=$(o(this.template,i)).data("value",r),e.data("item",i),e.find("a").html(this.highlighter(r)),a.push(e[0]);return a}.call(this),this.$menu.html(n)},next:function(){var t,e,n;return n=this.activeClass,t=this.$menu.find("."+n).removeClass(n),e=t.next(),!e.length&&t.length?this.$el.val(this.query):(e.length||(e=this.$menu.children().first()),this.$el.val(e.data().value),e.addClass(n),this.scrollIntoView(e))},prev:function(){var t,e,n;return n=this.activeClass,t=this.$menu.find("."+n).removeClass(n),e=t.prev(),!e.length&&t.length?this.$el.val(this.query):(e.length||(e=this.$menu.children().last()),this.$el.val(e.data().value),e.addClass(n),this.scrollIntoView(e))},scrollIntoView:function(t){var e,n,o,i;return n=t.offset().top-this.parent.offset().top,e=t.height(),o=this.parent.height(),i=this.parent.scrollTop(),n>=o?this.parent.scrollTop(i+e+(n-o)):0>n?this.parent.scrollTop(i+n):void 0},scroll:function(){return clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(_.bind(this.lazyLoadThumbnails,this),200)},lazyLoadThumbnails:function(){var t,e,n,o,i,r,s,a,l,u;for(a=this.$menu.children(),l=[],o=0,i=a.length;i>o;o++)if(n=a[o],t=$(n),s=t.outerHeight()+this.$el.offset().top,u=t.offset().top+s,r=this.parent.outerHeight()+s,u>=0&&t.offset().top<=r)t.data("loaded")?l.push(void 0):(t.data("loaded",!0),e=n.querySelector(".row_avatar"),l.push(e?e.style.backgroundImage="url("+$(e).data("img")+")":void 0));else{if(t.offset().top>r)break;l.push(void 0)}return l},bind:function(){return this.proxyScroll=$.proxy(this.scroll,this),this.proxyBlur=$.proxy(this.blur,this),this.proxyKeydown=$.proxy(this.keypress,this),this.proxyKeyup=$.proxy(this.keyup,this),this.$el.on("blur",this.proxyBlur).on("keydown",this.proxyKeydown).on("keyup",this.proxyKeyup),this.parent.on("scroll",this.proxyScroll),this.proxyClick=$.proxy(this.click,this),this.proxyMouseenter=$.proxy(this.mouseenter,this),this.proxyMouseleave=$.proxy(this.mouseleave,this),this.$menu.on("click",this.proxyClick).on("mouseenter","li",this.proxyMouseenter).on("mouseleave",this.proxyMouseleave)},unbind:function(){return this.$el.off("blur",this.proxyBlur).off("keydown",this.proxyKeydown).off("keyup",this.proxyKeyup),this.$menu.off("click",this.proxyClick).off("mouseenter","li",this.proxyMouseenter).off("mouseleave",this.proxyMouseleave),this.parent.off("scroll",this.proxyScroll)},keyup:function(t){switch(t.keyCode){case 8:case 9:case 13:case 16:case 17:case 18:case 38:case 40:case 91:break;case 27:return this.blur(t);default:return this.lookup()}},keypress:function(t){if(this.shown)switch(t.keyCode){case 8:return t.metaKey||t.altKey?this.hide():setTimeout(function(t){return function(){return t.lookup()}}(this),16);case 9:return this.select(!0),t.preventDefault();case 13:if(this.select(t.metaKey),this.$el.val().length)return t.preventDefault();break;case 38:return this.prev(),t.preventDefault();case 40:return this.next(),t.preventDefault()}else switch(t.keyCode){case 8:if(!t.metaKey&&!t.altKey)return setTimeout(function(t){return function(){return t.lookup()}}(this),16);break;case 9:return this.select(),t.preventDefault();case 13:return this.select(),t.preventDefault()}},blur:function(){var t;return t=this,setTimeout(function(){return t.hide()},t.blurTimeout)},click:function(){return this.select(!0),!1},mouseenter:function(t){var e,n,o,i,r,s;for(e=this.activeClass,r=this.$menu.children(),o=0,i=r.length;i>o;o++)n=r[o],n.classList.contains(e)&&n.classList.remove(e);return s=$(t.currentTarget).find(".name").text().trim(),t.currentTarget.classList.add(e)},mouseleave:function(){var t,e,n,o,i,r;for(t=this.activeClass,i=this.$menu.children(),r=[],n=0,o=i.length;o>n;n++)e=i[n],r.push(e.classList.contains(t)?e.classList.remove(t):void 0);return r}},$.fn.shorthand=function(e){return this.each(function(){var n;return this.shorthand?void 0:(n=new t(this,e),this.shorthand=n)}),this},$.fn.shorthand.defaults={source:[{j:"hi",url:"http://placekitten.com/27/27"},{j:"no",url:"http://placekitten.com/28/28"},{j:"nooop",url:"http://placekitten.com/50/50"},{j:"chuckbomination",url:"http://placekitten.com/60/60"},{j:"chucktastic",url:"http://placekitten.com/70/70"},{j:"chucktasta",url:"http://placekitten.com/27/27"}],parent:$("body"),"class":"suggestions",num:4,menu:'<ul class="typeahead shorthand dropdown-menu"></ul>',item:'<li class="item"><img src="http://placekitten.com/27/27" class="avatar" /><a class="name"></a></li>',template:'<li class="item"><img src="<%= url  %>" class="avatar" /><a class="name"></a></li>',value:"j",method:"appendTo",shown:!1,sorted:!0,blurTimeout:150,activeClass:"active",caseSensitive:!1,showAllForNoQuery:!1},$.fn.shorthand.Constructor=t,e=function(t){return(""+t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},n=function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},i={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},o=function(t,n){var o,r,s;return null==n&&(n={}),o=i,n._escape=e,s="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+t.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(o.escape||noMatch,function(t,e){return"',_escape("+unescape(e)+"),'"}).replace(o.interpolate||noMatch,function(t,e){return"',"+unescape(e)+",'"}).replace(o.evaluate||noMatch,function(t,e){return"');"+unescape(e).replace(/[\r\n\t]/g," ")+";__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');",r=new Function("obj","_",s),n?r(n):function(t){return r.call(this,t)}}}.call(this);var swfobject=function(){function t(){if(!V){try{var t=N.getElementsByTagName("body")[0].appendChild(g("span"));t.parentNode.removeChild(t)}catch(e){return}V=!0;for(var n=L.length,o=0;n>o;o++)L[o]()}}function e(t){V?t():L[L.length]=t}function n(t){if(typeof F.addEventListener!=E)F.addEventListener("load",t,!1);else if(typeof N.addEventListener!=E)N.addEventListener("load",t,!1);else if(typeof F.attachEvent!=E)m(F,"onload",t);else if("function"==typeof F.onload){var e=F.onload;F.onload=function(){e(),t()}}else F.onload=t}function o(){R?i():r()}function i(){var t=N.getElementsByTagName("body")[0],e=g(S);e.setAttribute("type",M);var n=t.appendChild(e);if(n){var o=0;!function(){if(typeof n.GetVariable!=E){var i=n.GetVariable("$version");i&&(i=i.split(" ")[1].split(","),Y.pv=[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10)])}else if(10>o)return o++,void setTimeout(arguments.callee,10);t.removeChild(e),n=null,r()}()}else r()}function r(){var t=H.length;if(t>0)for(var e=0;t>e;e++){var n=H[e].id,o=H[e].callbackFn,i={success:!1,id:n};if(Y.pv[0]>0){var r=v(n);if(r)if(!y(H[e].swfVersion)||Y.wk&&Y.wk<312)if(H[e].expressInstall&&a()){var c={};c.data=H[e].expressInstall,c.width=r.getAttribute("width")||"0",c.height=r.getAttribute("height")||"0",r.getAttribute("class")&&(c.styleclass=r.getAttribute("class")),r.getAttribute("align")&&(c.align=r.getAttribute("align"));for(var h={},p=r.getElementsByTagName("param"),f=p.length,d=0;f>d;d++)"movie"!=p[d].getAttribute("name").toLowerCase()&&(h[p[d].getAttribute("name")]=p[d].getAttribute("value"));l(c,h,n,o)}else u(r),o&&o(i);else A(n,!0),o&&(i.success=!0,i.ref=s(n),o(i))}else if(A(n,!0),o){var g=s(n);g&&typeof g.SetVariable!=E&&(i.success=!0,i.ref=g),o(i)}}}function s(t){var e=null,n=v(t);if(n&&"OBJECT"==n.nodeName)if(typeof n.SetVariable!=E)e=n;else{var o=n.getElementsByTagName(S)[0];o&&(e=o)}return e}function a(){return!U&&y("6.0.65")&&(Y.win||Y.mac)&&!(Y.wk&&Y.wk<312)}function l(t,e,n,o){U=!0,k=o||null,x={success:!1,id:n};var i=v(n);if(i){"OBJECT"==i.nodeName?(w=c(i),_=null):(w=i,_=n),t.id=I,(typeof t.width==E||!/%$/.test(t.width)&&parseInt(t.width,10)<310)&&(t.width="310"),(typeof t.height==E||!/%$/.test(t.height)&&parseInt(t.height,10)<137)&&(t.height="137"),N.title=N.title.slice(0,47)+" - Flash Player Installation";var r=Y.ie&&Y.win?"ActiveX":"PlugIn",s="MMredirectURL="+F.location.toString().replace(/&/g,"%26")+"&MMplayerType="+r+"&MMdoctitle="+N.title;if(typeof e.flashvars!=E?e.flashvars+="&"+s:e.flashvars=s,Y.ie&&Y.win&&4!=i.readyState){var a=g("div");n+="SWFObjectNew",a.setAttribute("id",n),i.parentNode.insertBefore(a,i),i.style.display="none",function(){4==i.readyState?i.parentNode.removeChild(i):setTimeout(arguments.callee,10)}()}h(t,e,n)}}function u(t){if(Y.ie&&Y.win&&4!=t.readyState){var e=g("div");t.parentNode.insertBefore(e,t),e.parentNode.replaceChild(c(t),e),t.style.display="none",function(){4==t.readyState?t.parentNode.removeChild(t):setTimeout(arguments.callee,10)}()}else t.parentNode.replaceChild(c(t),t)}function c(t){var e=g("div");if(Y.win&&Y.ie)e.innerHTML=t.innerHTML;else{var n=t.getElementsByTagName(S)[0];if(n){var o=n.childNodes;if(o)for(var i=o.length,r=0;i>r;r++)1==o[r].nodeType&&"PARAM"==o[r].nodeName||8==o[r].nodeType||e.appendChild(o[r].cloneNode(!0))}}return e}function h(t,e,n){var o,i=v(n);if(Y.wk&&Y.wk<312)return o;if(i)if(typeof t.id==E&&(t.id=n),Y.ie&&Y.win){var r="";for(var s in t)t[s]!=Object.prototype[s]&&("data"==s.toLowerCase()?e.movie=t[s]:"styleclass"==s.toLowerCase()?r+=' class="'+t[s]+'"':"classid"!=s.toLowerCase()&&(r+=" "+s+'="'+t[s]+'"'));var a="";for(var l in e)e[l]!=Object.prototype[l]&&(a+='<param name="'+l+'" value="'+e[l]+'" />');i.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+r+">"+a+"</object>",z[z.length]=t.id,o=v(t.id)}else{var u=g(S);u.setAttribute("type",M);for(var c in t)t[c]!=Object.prototype[c]&&("styleclass"==c.toLowerCase()?u.setAttribute("class",t[c]):"classid"!=c.toLowerCase()&&u.setAttribute(c,t[c]));for(var h in e)e[h]!=Object.prototype[h]&&"movie"!=h.toLowerCase()&&p(u,h,e[h]);i.parentNode.replaceChild(u,i),o=u}return o}function p(t,e,n){var o=g("param");o.setAttribute("name",e),o.setAttribute("value",n),t.appendChild(o)}function f(t){var e=v(t);e&&"OBJECT"==e.nodeName&&(Y.ie&&Y.win?(e.style.display="none",function(){4==e.readyState?d(t):setTimeout(arguments.callee,10)}()):e.parentNode.removeChild(e))}function d(t){var e=v(t);if(e){for(var n in e)"function"==typeof e[n]&&(e[n]=null);e.parentNode.removeChild(e)}}function v(t){var e=null;try{e=N.getElementById(t)}catch(n){}return e}function g(t){return N.createElement(t)}function m(t,e,n){t.attachEvent(e,n),Q[Q.length]=[t,e,n]}function y(t){var e=Y.pv,n=t.split(".");return n[0]=parseInt(n[0],10),n[1]=parseInt(n[1],10)||0,n[2]=parseInt(n[2],10)||0,e[0]>n[0]||e[0]==n[0]&&e[1]>n[1]||e[0]==n[0]&&e[1]==n[1]&&e[2]>=n[2]?!0:!1}function b(t,e,n,o){if(!Y.ie||!Y.mac){var i=N.getElementsByTagName("head")[0];if(i){var r=n&&"string"==typeof n?n:"screen";if(o&&(C=null,T=null),!C||T!=r){var s=g("style");s.setAttribute("type","text/css"),s.setAttribute("media",r),C=i.appendChild(s),Y.ie&&Y.win&&typeof N.styleSheets!=E&&N.styleSheets.length>0&&(C=N.styleSheets[N.styleSheets.length-1]),T=r}Y.ie&&Y.win?C&&typeof C.addRule==S&&C.addRule(t,e):C&&typeof N.createTextNode!=E&&C.appendChild(N.createTextNode(t+" {"+e+"}"))}}}function A(t,e){if(W){var n=e?"visible":"hidden";V&&v(t)?v(t).style.visibility=n:b("#"+t,"visibility:"+n)}}function j(t){var e=/[\\\"<>\.;]/,n=null!=e.exec(t);return n&&typeof encodeURIComponent!=E?encodeURIComponent(t):t}{var w,_,k,x,C,T,E="undefined",S="object",O="Shockwave Flash",P="ShockwaveFlash.ShockwaveFlash",M="application/x-shockwave-flash",I="SWFObjectExprInst",B="onreadystatechange",F=window,N=document,D=navigator,R=!1,L=[o],H=[],z=[],Q=[],V=!1,U=!1,W=!0,Y=function(){var t=typeof N.getElementById!=E&&typeof N.getElementsByTagName!=E&&typeof N.createElement!=E,e=D.userAgent.toLowerCase(),n=D.platform.toLowerCase(),o=/win/.test(n?n:e),i=/mac/.test(n?n:e),r=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,s=!1,a=[0,0,0],l=null;if(typeof D.plugins!=E&&typeof D.plugins[O]==S)l=D.plugins[O].description,!l||typeof D.mimeTypes!=E&&D.mimeTypes[M]&&!D.mimeTypes[M].enabledPlugin||(R=!0,s=!1,l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),a[0]=parseInt(l.replace(/^(.*)\..*$/,"$1"),10),a[1]=parseInt(l.replace(/^.*\.(.*)\s.*$/,"$1"),10),a[2]=/[a-zA-Z]/.test(l)?parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof F.ActiveXObject!=E)try{var u=new ActiveXObject(P);u&&(l=u.GetVariable("$version"),l&&(s=!0,l=l.split(" ")[1].split(","),a=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]))}catch(c){}return{w3:t,pv:a,wk:r,ie:s,win:o,mac:i}}();!function(){Y.w3&&((typeof N.readyState!=E&&"complete"==N.readyState||typeof N.readyState==E&&(N.getElementsByTagName("body")[0]||N.body))&&t(),V||(typeof N.addEventListener!=E&&N.addEventListener("DOMContentLoaded",t,!1),Y.ie&&Y.win&&(N.attachEvent(B,function(){"complete"==N.readyState&&(N.detachEvent(B,arguments.callee),t())}),F==top&&!function(){if(!V){try{N.documentElement.doScroll("left")}catch(e){return void setTimeout(arguments.callee,0)}t()}}()),Y.wk&&!function(){return V?void 0:/loaded|complete/.test(N.readyState)?void t():void setTimeout(arguments.callee,0)}(),n(t)))}(),function(){Y.ie&&Y.win&&window.attachEvent("onunload",function(){for(var t=Q.length,e=0;t>e;e++)Q[e][0].detachEvent(Q[e][1],Q[e][2]);for(var n=z.length,o=0;n>o;o++)f(z[o]);for(var i in Y)Y[i]=null;Y=null;for(var r in swfobject)swfobject[r]=null;swfobject=null})}()}return{registerObject:function(t,e,n,o){if(Y.w3&&t&&e){var i={};i.id=t,i.swfVersion=e,i.expressInstall=n,i.callbackFn=o,H[H.length]=i,A(t,!1)}else o&&o({success:!1,id:t})},getObjectById:function(t){return Y.w3?s(t):void 0},embedSWF:function(t,n,o,i,r,s,u,c,p,f){var d={success:!1,id:n};Y.w3&&!(Y.wk&&Y.wk<312)&&t&&n&&o&&i&&r?(A(n,!1),e(function(){o+="",i+="";var e={};if(p&&typeof p===S)for(var v in p)e[v]=p[v];e.data=t,e.width=o,e.height=i;var g={};if(c&&typeof c===S)for(var m in c)g[m]=c[m];if(u&&typeof u===S)for(var b in u)typeof g.flashvars!=E?g.flashvars+="&"+b+"="+u[b]:g.flashvars=b+"="+u[b];if(y(r)){var j=h(e,g,n);e.id==n&&A(n,!0),d.success=!0,d.ref=j}else{if(s&&a())return e.data=s,void l(e,g,n,f);A(n,!0)}f&&f(d)})):f&&f(d)},switchOffAutoHideShow:function(){W=!1},ua:Y,getFlashPlayerVersion:function(){return{major:Y.pv[0],minor:Y.pv[1],release:Y.pv[2]}
},hasFlashPlayerVersion:y,createSWF:function(t,e,n){return Y.w3?h(t,e,n):void 0},showExpressInstall:function(t,e,n,o){Y.w3&&a()&&l(t,e,n,o)},removeSWF:function(t){Y.w3&&f(t)},createCSS:function(t,e,n,o){Y.w3&&b(t,e,n,o)},addDomLoadEvent:e,addLoadEvent:n,getQueryParamValue:function(t){var e=N.location.search||N.location.hash;if(e){if(/\?/.test(e)&&(e=e.split("?")[1]),null==t)return j(e);for(var n=e.split("&"),o=0;o<n.length;o++)if(n[o].substring(0,n[o].indexOf("="))==t)return j(n[o].substring(n[o].indexOf("=")+1))}return""},expressInstallCallback:function(){if(U){var t=v(I);t&&w&&(t.parentNode.replaceChild(w,t),_&&(A(_,!0),Y.ie&&Y.win&&(w.style.display="block")),k&&k(x)),U=!1}}}}();/*!
 * Bowser - a browser detector
 * https://github.com/ded/bowser
 * MIT License | (c) Dustin Diaz 2015
 */
!function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):this[t]=e()}("bowser",function(){function t(t){function n(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}function o(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var i,r=n(/(ipod|iphone|ipad)/i).toLowerCase(),s=/like android/i.test(t),a=!s&&/android/i.test(t),l=/CrOS/.test(t),u=/silk/i.test(t),c=/sailfish/i.test(t),h=/tizen/i.test(t),p=/(web|hpw)os/i.test(t),f=/windows phone/i.test(t),d=!f&&/windows/i.test(t),v=!r&&!u&&/macintosh/i.test(t),g=!a&&!c&&!h&&!p&&/linux/i.test(t),m=n(/edge\/(\d+(\.\d+)?)/i),y=n(/version\/(\d+(\.\d+)?)/i),b=/tablet/i.test(t),A=!b&&/[^-]mobi/i.test(t);/opera|opr/i.test(t)?i={name:"Opera",opera:e,version:y||n(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:e,version:y||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:f?(i={name:"Windows Phone",windowsphone:e},m?(i.msedge=e,i.version=m):(i.msie=e,i.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:e,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:l?i={name:"Chrome",chromeos:e,chromeBook:e,chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(t)?i={name:"Microsoft Edge",msedge:e,version:m}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:r?(i={name:"iphone"==r?"iPhone":"ipad"==r?"iPad":"iPod"},y&&(i.version=y)):c?i={name:"Sailfish",sailfish:e,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:e,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(t)?(i={name:"Firefox",firefox:e,version:n(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=e)):u?i={name:"Amazon Silk",silk:e,version:n(/silk\/(\d+(\.\d+)?)/i)}:a?i={name:"Android",version:y}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:e,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",blackberry:e,version:y||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:p?(i={name:"WebOS",webos:e,version:y||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=e)):i=/bada/i.test(t)?{name:"Bada",bada:e,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:h?{name:"Tizen",tizen:e,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||y}:/safari/i.test(t)?{name:"Safari",safari:e,version:y}:{name:n(/^(.*)\/(.*) /),version:o(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(i.name=i.name||"Webkit",i.webkit=e,!i.version&&y&&(i.version=y)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=e,i.version=i.version||n(/gecko\/(\d+(\.\d+)?)/i)),i.msedge||!a&&!i.silk?r?(i[r]=e,i.ios=e):d?i.windows=e:v?i.mac=e:g&&(i.linux=e):i.android=e;var j="";i.windowsphone?j=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):r?(j=n(/os (\d+([_\s]\d+)*) like mac os x/i),j=j.replace(/[_\s]/g,".")):a?j=n(/android[ \/-](\d+(\.\d+)*)/i):i.webos?j=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?j=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?j=n(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(j=n(/tizen[\/\s](\d+(\.\d+)*)/i)),j&&(i.osversion=j);var w=j.split(".")[0];return b||"ipad"==r||a&&(3==w||4==w&&!A)||i.silk?i.tablet=e:(A||"iphone"==r||"ipod"==r||a||i.blackberry||i.webos||i.bada)&&(i.mobile=e),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.chrome&&i.version>=20||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1?i.a=e:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6?i.c=e:i.x=e,i}var e=!0,n=t("undefined"!=typeof navigator?navigator.userAgent:"");return n.test=function(t){for(var e=0;e<t.length;++e){var o=t[e];if("string"==typeof o&&o in n)return!0}return!1},n._detect=t,n}),!function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,".video-js .vjs-big-play-button,.video-js .vjs-captions-button,.video-js .vjs-chapters-button,.video-js .vjs-control.vjs-close-button,.video-js .vjs-fullscreen-control,.video-js .vjs-mouse-display,.video-js .vjs-mute-control,.video-js .vjs-mute-control.vjs-vol-0,.video-js .vjs-mute-control.vjs-vol-1,.video-js .vjs-mute-control.vjs-vol-2,.video-js .vjs-play-control,.video-js .vjs-play-control.vjs-playing,.video-js .vjs-play-progress,.video-js .vjs-subtitles-button,.video-js .vjs-volume-level,.video-js .vjs-volume-menu-button,.video-js .vjs-volume-menu-button.vjs-vol-0,.video-js .vjs-volume-menu-button.vjs-vol-1,.video-js .vjs-volume-menu-button.vjs-vol-2,.video-js.vjs-fullscreen .vjs-fullscreen-control,.vjs-icon-audio-description,.vjs-icon-cancel,.vjs-icon-captions,.vjs-icon-chapters,.vjs-icon-circle,.vjs-icon-circle-inner-circle,.vjs-icon-circle-outline,.vjs-icon-cog,.vjs-icon-facebook,.vjs-icon-fullscreen-enter,.vjs-icon-fullscreen-exit,.vjs-icon-gplus,.vjs-icon-hd,.vjs-icon-linkedin,.vjs-icon-pause,.vjs-icon-pinterest,.vjs-icon-play,.vjs-icon-play-circle,.vjs-icon-replay,.vjs-icon-spinner,.vjs-icon-square,.vjs-icon-subtitles,.vjs-icon-tumblr,.vjs-icon-twitter,.vjs-icon-volume-high,.vjs-icon-volume-low,.vjs-icon-volume-mid,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js,.vjs-no-js{color:#fff;background-color:#000}.video-js .vjs-big-play-button:before,.video-js .vjs-control,.video-js .vjs-control:before,.vjs-menu li,.vjs-no-js{text-align:center}.video-js .vjs-big-play-button:before,.video-js .vjs-control:before,.video-js .vjs-modal-dialog,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}@font-face{font-family:VideoJS;src:url(font/VideoJS.eot?#iefix) format(\"eot\")}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,[encoded data, 4844 characters]) format(\"woff\"),url(data:application/x-font-ttf;charset=utf-8;base64,[encoded data, 7488 characters]) format(\"truetype\");font-weight:400;font-style:normal}.video-js .vjs-big-play-button:before,.video-js .vjs-play-control:before,.vjs-icon-play:before{content:'\\f101'}.vjs-icon-play-circle:before{content:'\\f102'}.video-js .vjs-play-control.vjs-playing:before,.vjs-icon-pause:before{content:'\\f103'}.video-js .vjs-mute-control.vjs-vol-0:before,.video-js .vjs-volume-menu-button.vjs-vol-0:before,.vjs-icon-volume-mute:before{content:'\\f104'}.video-js .vjs-mute-control.vjs-vol-1:before,.video-js .vjs-volume-menu-button.vjs-vol-1:before,.vjs-icon-volume-low:before{content:'\\f105'}.video-js .vjs-mute-control.vjs-vol-2:before,.video-js .vjs-volume-menu-button.vjs-vol-2:before,.vjs-icon-volume-mid:before{content:'\\f106'}.video-js .vjs-mute-control:before,.video-js .vjs-volume-menu-button:before,.vjs-icon-volume-high:before{content:'\\f107'}.video-js .vjs-fullscreen-control:before,.vjs-icon-fullscreen-enter:before{content:'\\f108'}.video-js.vjs-fullscreen .vjs-fullscreen-control:before,.vjs-icon-fullscreen-exit:before{content:'\\f109'}.vjs-icon-square:before{content:'\\f10a'}.vjs-icon-spinner:before{content:'\\f10b'}.video-js .vjs-subtitles-button:before,.vjs-icon-subtitles:before{content:'\\f10c'}.video-js .vjs-captions-button:before,.vjs-icon-captions:before{content:'\\f10d'}.video-js .vjs-chapters-button:before,.vjs-icon-chapters:before{content:'\\f10e'}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:'\\f10f'}.vjs-icon-cog:before{content:'\\f110'}.video-js .vjs-mouse-display:before,.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before{content:'\\f111'}.vjs-icon-circle-outline:before{content:'\\f112'}.vjs-icon-circle-inner-circle:before{content:'\\f113'}.vjs-icon-hd:before{content:'\\f114'}.video-js .vjs-control.vjs-close-button:before,.vjs-icon-cancel:before{content:'\\f115'}.vjs-icon-replay:before{content:'\\f116'}.vjs-icon-facebook:before{content:'\\f117'}.vjs-icon-gplus:before{content:'\\f118'}.vjs-icon-linkedin:before{content:'\\f119'}.vjs-icon-twitter:before{content:'\\f11a'}.vjs-icon-tumblr:before{content:'\\f11b'}.vjs-icon-pinterest:before{content:'\\f11c'}.vjs-icon-audio-description:before{content:'\\f11d'}.video-js{display:block;vertical-align:top;box-sizing:border-box;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js .vjs-tech,.video-js.vjs-fill{width:100%;height:100%}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js .vjs-tech{position:absolute;top:0;left:0}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen{width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;font-size:18px;font-family:Arial,Helvetica,sans-serif;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66A8CC}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.5em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2B333F;background-color:rgba(43,51,63,.7);-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.75em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{outline:0;border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);-webkit-transition:all 0s;-moz-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;overflow:visible;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.vjs-menu-button{cursor:pointer}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;overflow:auto}.vjs-scrubbing .vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-transform:lowercase}.vjs-menu li:focus,.vjs-menu li:hover{outline:0;background-color:#73859f;background-color:rgba(115,133,159,.5)}.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2B333F}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2B333F;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup:hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.video-js .vjs-menu-button-inline.vjs-slider-active{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2B333F;background-color:rgba(43,51,63,.7)}.vjs-has-started .vjs-control-bar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}@media \\0screen{.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:\"\"}}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{outline:0;position:relative;margin:0;padding:0;height:100%;width:4em;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.video-js .vjs-control:before{font-size:1.8em;line-height:1.67}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;min-width:4em}.vjs-live .vjs-progress-control{display:none}.video-js .vjs-progress-holder{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s;height:.3em}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.666666666666666666em}.video-js .vjs-progress-control:hover .vjs-mouse-display:after,.video-js .vjs-progress-control:hover .vjs-play-progress:after{display:block;font-size:.6em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:.3em;margin:0;padding:0;width:0;left:0;top:0}.video-js .vjs-mouse-display:before{display:none}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{position:absolute;top:-.333333333333333em;right:-.5em;font-size:.9em}.video-js .vjs-mouse-display:after,.video-js .vjs-play-progress:after{display:none;position:absolute;top:-3.4em;right:-1.5em;font-size:.9em;color:#000;content:attr(data-current-time);padding:6px 8px 8px;background-color:#fff;background-color:rgba(255,255,255,.8);-webkit-border-radius:.3em;-moz-border-radius:.3em;border-radius:.3em}.video-js .vjs-play-progress:after,.video-js .vjs-play-progress:before{z-index:1}.video-js .vjs-load-progress{background:#bfc7d3;background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:#fff;background:rgba(115,133,159,.75)}.video-js.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display,.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display:after{visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display,.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display:after{display:none}.video-js .vjs-progress-control .vjs-mouse-display:after{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{outline:0;position:relative;cursor:pointer;padding:0;margin:0 .45em;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control,.video-js .vjs-volume-menu-button{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.video-js .vjs-volume-control{width:5em;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.vjs-menu-button-popup.vjs-volume-menu-button .vjs-menu{display:block;width:0;height:0;border-top-color:transparent}.vjs-menu-button-popup.vjs-volume-menu-button-vertical .vjs-menu{left:.5em;height:8em}.vjs-menu-button-popup.vjs-volume-menu-button-horizontal .vjs-menu{left:-2em}.vjs-menu-button-popup.vjs-volume-menu-button .vjs-menu-content{height:0;width:0;overflow-x:hidden;overflow-y:hidden}.vjs-volume-menu-button-vertical .vjs-lock-showing .vjs-menu-content,.vjs-volume-menu-button-vertical.vjs-slider-active .vjs-menu-content,.vjs-volume-menu-button-vertical:focus .vjs-menu-content,.vjs-volume-menu-button-vertical:hover .vjs-menu-content{height:8em;width:2.9em}.vjs-volume-menu-button-horizontal .vjs-lock-showing .vjs-menu-content,.vjs-volume-menu-button-horizontal .vjs-slider-active .vjs-menu-content,.vjs-volume-menu-button-horizontal:focus .vjs-menu-content,.vjs-volume-menu-button-horizontal:hover .vjs-menu-content{height:2.9em;width:8em}.vjs-volume-menu-button.vjs-menu-button-inline .vjs-menu-content{background-color:transparent!important}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-poster img{display:block;vertical-align:middle;margin:0 auto;max-height:100%;padding:0;width:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-controls-disabled .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-live .vjs-time-divider,.vjs-no-flex .vjs-current-time,.vjs-no-flex .vjs-duration{display:none}.video-js .vjs-time-control{-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-time-divider{display:none;line-height:3em}.video-js .vjs-play-control{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em;background-color:#000;background-color:rgba(0,0,0,.5)}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{-moz-transform:translateY(-3em);-ms-transform:translateY(-3em);-o-transform:translateY(-3em);-webkit-transform:translateY(-3em);transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{-moz-transform:translateY(-1.5em);-ms-transform:translateY(-1.5em);-o-transform:translateY(-1.5em);-webkit-transform:translateY(-1.5em);transform:translateY(-1.5em)}.video-js .vjs-fullscreen-control{cursor:pointer;-webkit-box-flex:none;-moz-box-flex:none;-webkit-flex:none;-ms-flex:none;flex:none}.vjs-playback-rate .vjs-playback-rate-value{font-size:1.5em;line-height:2;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:'X';font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:\"\";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:#fff transparent transparent}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-spin{100%{transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%,100%,20%,60%{border-top-color:#73859f}35%{border-top-color:#fff}}@-webkit-keyframes vjs-spinner-fade{0%,100%,20%,60%{border-top-color:#73859f}35%{border-top-color:#fff}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-custom-control-spacer{-webkit-box-flex:auto;-moz-box-flex:auto;-webkit-flex:auto;-ms-flex:auto;flex:auto}.video-js.vjs-layout-tiny:not(.vjs-fullscreen).vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-volume-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-progress-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-control,.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-menu-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-captions-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-chapters-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-current-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-duration,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-mute-control,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-playback-rate,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-remaining-time,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-subtitles-button,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-time-divider,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-control,.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-menu-button{display:none}.vjs-caption-settings{position:relative;top:1em;background-color:#2B333F;background-color:rgba(43,51,63,.75);color:#fff;margin:0 auto;padding:.5em;height:15em;font-size:12px;width:40em}.vjs-caption-settings .vjs-tracksettings{top:0;bottom:2em;left:0;right:0;position:absolute;overflow:auto}.vjs-caption-settings .vjs-tracksettings-colors,.vjs-caption-settings .vjs-tracksettings-font{float:left}.vjs-caption-settings .vjs-tracksettings-colors:after,.vjs-caption-settings .vjs-tracksettings-controls:after,.vjs-caption-settings .vjs-tracksettings-font:after{clear:both}.vjs-caption-settings .vjs-tracksettings-controls{position:absolute;bottom:1em;right:1em}.vjs-caption-settings .vjs-tracksetting{margin:5px;padding:3px;min-height:40px}.vjs-caption-settings .vjs-tracksetting label{display:block;width:100px;margin-bottom:5px}.vjs-caption-settings .vjs-tracksetting span{display:inline;margin-left:5px}.vjs-caption-settings .vjs-tracksetting>div{margin-bottom:5px;min-height:20px}.vjs-caption-settings .vjs-tracksetting>div:last-child{margin-bottom:0;padding-bottom:0;min-height:0}.vjs-caption-settings label>input{margin-right:10px}.vjs-caption-settings input[type=button]{width:40px;height:40px}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:-webkit-linear-gradient(-90deg,rgba(0,0,0,.8),rgba(255,255,255,0));background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0))}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}"),function(t,e){var n=t.createElement("style");
if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,".vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar{background-color:#000;background-color:rgba(0,0,0,.7);bottom:0;height:51px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-progress-control{top:-5px;background-color:#000;background-color:rgba(0,0,0,.7)}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-progress-control:hover{top:-7px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-progress-control .vjs-progress-holder{margin:0}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-progress-control .vjs-progress-holder .vjs-load-progress,.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-progress-control .vjs-progress-holder .vjs-play-progress{border-radius:0;-moz-border-radius:0;-webkit-border-radius:0}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-current-time,.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-duration{margin-top:12px}@media (max-width:768px){.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar{height:42px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-progress-control{background-color:#000}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-current-time,.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-duration{margin-top:11px}}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-current-time{margin-left:20px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-duration{margin-right:20px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-volume-menu-button .vjs-menu,.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu{padding-top:22px}@media (max-width:512px){.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar{height:34px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-play-control:before{font-size:11px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-current-time,.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-duration{margin-top:9px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-current-time{margin-left:14px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-duration{margin-right:10px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-volume-menu-button .vjs-menu,.vjs-afterglow-skin.afterglow-skin-dark .vjs-control-bar .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu{padding-top:14pxpx}}.vjs-afterglow-skin.afterglow-skin-dark .vjs-control:before{margin-top:5px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-top-control-bar{right:20px;top:16px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-top-control-bar .vjs-button{background-color:#000;background-color:rgba(0,0,0,.7);width:32px;height:32px;border-radius:50px;-moz-border-radius:50px;-webkit-border-radius:50px;margin-left:7px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-top-control-bar .vjs-button:before{margin-top:-1px;font-size:15px;line-height:16px}@media (max-width:768px){.vjs-afterglow-skin.afterglow-skin-dark .vjs-top-control-bar{top:14px;right:16px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-top-control-bar .vjs-button{width:28px;height:28px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-top-control-bar .vjs-button:before{font-size:14px;line-height:15px;margin-top:-2px}}@media (max-width:512px){.vjs-afterglow-skin.afterglow-skin-dark .vjs-top-control-bar .vjs-button{width:24px;height:24px}.vjs-afterglow-skin.afterglow-skin-dark .vjs-top-control-bar .vjs-button:before{font-size:12px;line-height:13px;margin-top:0}}.vjs-afterglow-skin.afterglow-skin-dark.vjs-youtube.vjs-has-started.vjs-paused .vjs-control-bar{right:0;background-color:#000}"),function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,'@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300);.vjs-afterglow-skin.vjs-has-started .vjs-control-bar,.vjs-afterglow-skin.vjs-has-started .vjs-top-control-bar{-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s}@font-face{font-family:afterglow-icon;src:url(data:font/truetype;charset=utf-8;base64,[encoded data, 4896 characters]) format(\'truetype\');font-weight:400;font-style:normal}.vjs-afterglow-skin{overflow:hidden;color:#fff}.vjs-afterglow-skin :focus,.vjs-afterglow-skin:focus{outline:0}.vjs-afterglow-skin video{background-color:#000}.vjs-afterglow-skin .vjs-slider{outline:0;position:relative;cursor:pointer;padding:0;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;margin:0 30px;background-color:#fff;background-color:rgba(255,255,255,.1)}@media (max-width:768px){.vjs-afterglow-skin .vjs-slider{margin:0 20px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-slider{margin:0 12px}}.vjs-afterglow-skin .vjs-slider:hover{margin:0 30px}@media (max-width:768px){.vjs-afterglow-skin .vjs-slider:hover{margin:0 20px}}.vjs-afterglow-skin .vjs-slider:focus{-webkit-box-shadow:0 0 2em #fff;-moz-box-shadow:0 0 2em #fff;box-shadow:0 0 2em #fff}.vjs-afterglow-skin .vjs-slider-handle{position:absolute;left:0;top:0;display:none}.vjs-afterglow-skin .vjs-play-progress:before{display:none!important;height:0;width:0;font-size:.9em}.vjs-afterglow-skin .vjs-progress-control .vjs-mouse-display,.vjs-afterglow-skin .vjs-progress-control:hover .vjs-mouse-display,.vjs-afterglow-skin .vjs-progress-control:hover .vjs-play-progress:after{display:none}.vjs-afterglow-skin .vjs-control-bar{display:none;position:absolute;bottom:16px;left:0;right:0;height:33px;font-family:\'Open Sans\';color:rgba(255,255,255,.9);background-color:#000;background-color:rgba(0,0,0,0)}@media (max-width:768px){.vjs-afterglow-skin .vjs-control-bar{bottom:7px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-slider:hover{margin:0 12px}.vjs-afterglow-skin .vjs-control-bar{bottom:0}}.vjs-afterglow-skin .vjs-control-bar .div{opacity:.9}.vjs-afterglow-skin .vjs-control-bar .div:hover{opacity:1}.vjs-afterglow-skin.vjs-has-started .vjs-control-bar{display:block;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-afterglow-skin.vjs-has-started.vjs-ended .vjs-control-bar,.vjs-afterglow-skin.vjs-has-started.vjs-ended .vjs-top-control-bar{display:block;visibility:hidden;opacity:0}.vjs-afterglow-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{display:block;visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-afterglow-skin.vjs-controls-disabled .vjs-control-bar,.vjs-afterglow-skin.vjs-error .vjs-control-bar,.vjs-afterglow-skin.vjs-error .vjs-top-control-bar,.vjs-afterglow-skin.vjs-using-native-controls .vjs-control-bar{display:none}.vjs-afterglow-skin.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}@media \\0screen{.vjs-afterglow-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:""}}.vjs-afterglow-skin .vjs-control{outline:0;position:relative;float:left;text-align:center;margin:0;padding:0;height:40px;width:auto}.vjs-afterglow-skin .vjs-control.vjs-captions-button.vjs-control,.vjs-afterglow-skin .vjs-control.vjs-subtitles-button.vjs-control{width:40px}@media (max-width:768px){.vjs-afterglow-skin .vjs-control{height:30px}.vjs-afterglow-skin .vjs-control.vjs-captions-button.vjs-control,.vjs-afterglow-skin .vjs-control.vjs-subtitles-button.vjs-control{width:30px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-control.vjs-captions-button.vjs-control,.vjs-afterglow-skin .vjs-control.vjs-subtitles-button.vjs-control{width:20px}}.vjs-afterglow-skin .vjs-control:before{font-family:afterglow-icon;font-size:17px;line-height:18px;padding-top:10px;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;opacity:.9;text-shadow:0 0 0 rgba(255,255,255,0)}@media (max-width:768px){.vjs-afterglow-skin .vjs-control:before{font-size:13px;line-height:13px;padding-top:9px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-control:before{font-size:11px;line-height:11px;padding-top:6px}}.vjs-afterglow-skin .vjs-control:focus:before,.vjs-afterglow-skin .vjs-control:hover:before{text-shadow:0 0 5px rgba(255,255,255,.6);opacity:1}.vjs-afterglow-skin .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-afterglow-skin .vjs-play-control{width:50px;cursor:pointer;position:absolute;left:50%;margin-left:-25px}@media (max-width:512px){.vjs-afterglow-skin .vjs-play-control{position:relative;left:auto;margin-left:0;width:25px}}.vjs-afterglow-skin .vjs-play-control:before{content:"\\e602";margin-left:1px;font-size:22px}@media (max-width:768px){.vjs-afterglow-skin .vjs-play-control:before{font-size:20px;line-height:22px;top:-5px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-play-control:before{font-size:10px;line-height:10px;top:0}}.vjs-afterglow-skin.vjs-playing .vjs-play-control:before{content:"\\e60a"}.vjs-afterglow-skin .vjs-playback-rate .vjs-playback-rate-value{font-size:1.5em;line-height:2;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;text-shadow:1px 1px 1px rgba(0,0,0,.5)}.vjs-afterglow-skin .vjs-playback-rate .vjs-playback-rate-value.vjs-menu-button .vjs-menu .vjs-menu-content{width:30px;left:15px;list-style:none}.vjs-afterglow-skin .vjs-mute-control,.vjs-afterglow-skin .vjs-volume-menu-button{cursor:pointer;float:right;width:auto;padding-left:32px;margin-left:10px}.vjs-afterglow-skin .vjs-mute-control:before,.vjs-afterglow-skin .vjs-volume-menu-button:before{content:"\\e605";cursor:pointer}.vjs-afterglow-skin .vjs-mute-control.vjs-vol-0:before,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-vol-0:before{content:"\\e603"}.vjs-afterglow-skin .vjs-mute-control.vjs-vol-1:before,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-vol-1:before{content:"\\e606"}.vjs-afterglow-skin .vjs-mute-control.vjs-vol-2:before,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-vol-2:before{content:"\\e607"}@media (max-width:512px){.vjs-afterglow-skin .vjs-mute-control,.vjs-afterglow-skin .vjs-volume-menu-button{height:26px;padding-left:27px}}.vjs-afterglow-skin .vjs-volume-control{float:right}.vjs-afterglow-skin .vjs-volume-level{position:absolute;top:0;left:0;height:4px;width:100%;background-color:#fff;border-radius:4px}.vjs-afterglow-skin .vjs-volume-menu-button .vjs-menu,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu{display:block;width:0;height:10px;border-top-color:transparent;position:relative;padding-left:0;top:0;padding-top:17px;padding-bottom:17px;left:0;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-afterglow-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu .vjs-menu-content{height:10px;width:0;float:right;left:0;box-shadow:none;background:0 0;position:relative;bottom:auto;overflow:hidden;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu{width:74px}@media (max-width:768px){.vjs-afterglow-skin .vjs-mute-control,.vjs-afterglow-skin .vjs-volume-menu-button{margin-left:0}.vjs-afterglow-skin .vjs-volume-menu-button .vjs-menu,.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu{left:0;padding-top:13px;padding-bottom:12px}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu{padding-left:5px;padding-right:5px;width:50px}}@media (max-width:500px){.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu{display:none}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu.vjs-lock-showing,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu.vjs-lock-showing{display:none!important}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-menu-content,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content{display:none}}.vjs-afterglow-skin .vjs-volume-bar .vjs-volume-handle:before,.vjs-afterglow-skin .vjs-volume-bar .vjs-volume-level:before,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-handle:before,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level:before{display:none}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-menu-content,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content{height:10px;width:61px;bottom:0;left:0;float:none;box-shadow:none;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}@media (max-width:768px){.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-menu-content,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content{width:41px;left:-5px}.vjs-afterglow-skin .vjs-volume-bar,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal{width:0}}.vjs-afterglow-skin .vjs-volume-bar,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal{width:0;left:1px;height:5px;margin:0;background-color:rgba(255,255,255,.3);border-radius:5px;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-afterglow-skin .vjs-volume-bar .vjs-volume-handle,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-handle{width:0;height:0;left:100%}.vjs-afterglow-skin .vjs-volume-bar .vjs-volume-level,.vjs-afterglow-skin .vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{height:4px;border-radius:4px}.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-volume-bar.vjs-slider-horizontal,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-volume-bar.vjs-slider-horizontal{width:60px}@media (max-width:768px){.vjs-afterglow-skin .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-volume-bar.vjs-slider-horizontal,.vjs-afterglow-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-volume-bar.vjs-slider-horizontal{width:40px}}.vjs-afterglow-skin .vjs-menu-button-popup .vjs-menu{position:relative;float:right}.vjs-afterglow-skin .vjs-progress-control{position:absolute;left:0;right:0;width:auto;height:5px;top:-9px;-webkit-transition:all .3s;-moz-transition:all .3s;-o-transition:all .3s;transition:all .3s}.vjs-afterglow-skin .vjs-progress-control:hover{top:-11px;height:9px;-webkit-transition:all 0s;-moz-transition:all 0s;-o-transition:all 0s;transition:all 0s}@media (max-width:768px){.vjs-afterglow-skin .vjs-progress-control:hover{top:-9px;height:7px}}.vjs-afterglow-skin:hover .vjs-progress-control{-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-afterglow-skin .vjs-progress-holder{height:100%}.vjs-afterglow-skin .vjs-progress-holder .vjs-load-progress,.vjs-afterglow-skin .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0;left:0;top:0;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px}.vjs-afterglow-skin .vjs-progress-holder .vjs-load-progress div,.vjs-afterglow-skin.vjs-live .vjs-progress-control,.vjs-afterglow-skin.vjs-live .vjs-time-controls,.vjs-afterglow-skin.vjs-live .vjs-time-divider{display:none}.vjs-afterglow-skin .vjs-play-progress{background-color:#fff;box-shadow:0 0 5px rgba(255,255,255,.6);-moz-box-shadow:0 0 5px rgba(255,255,255,.6);-webkit-box-shadow:0 0 5px rgba(255,255,255,.6)}.vjs-afterglow-skin .vjs-load-progress{background:#646464;background:rgba(255,255,255,.2)}.vjs-afterglow-skin .vjs-load-progress div{background:#787878;background:rgba(255,255,255,.2)}.vjs-afterglow-skin .vjs-seek-handle{width:10px;height:100%}.vjs-afterglow-skin.vjs-live .vjs-live-display{display:block}.vjs-afterglow-skin .vjs-live-display{display:none;font-size:1em;line-height:3em}.vjs-afterglow-skin .vjs-time-controls{font-size:22px}.vjs-afterglow-skin .vjs-current-time,.vjs-afterglow-skin .vjs-duration{height:23px;position:relative;float:left;margin-top:7px;padding:0;font-weight:100;font-size:21px;line-height:22px;display:block;width:auto}@media (max-width:768px){.vjs-afterglow-skin .vjs-current-time,.vjs-afterglow-skin .vjs-duration{font-size:17px;line-height:17px}}.vjs-afterglow-skin.vjs-no-flex .vjs-current-time,.vjs-afterglow-skin.vjs-no-flex .vjs-duration{display:block}.vjs-afterglow-skin .vjs-current-time{margin-left:30px}@media (max-width:768px){.vjs-afterglow-skin .vjs-current-time{margin-left:20px}}.vjs-afterglow-skin .vjs-duration{float:right;text-align:right;margin-right:30px;padding-left:10px}@media (max-width:768px){.vjs-afterglow-skin .vjs-duration{margin-right:20px;padding-left:6px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-current-time,.vjs-afterglow-skin .vjs-duration{font-size:14px;line-height:14px;margin-top:5px}.vjs-afterglow-skin .vjs-current-time{margin-left:12px}.vjs-afterglow-skin .vjs-duration{margin-right:12px;padding-left:2px}}.vjs-afterglow-skin .vjs-remaining-time{display:none;float:right}.vjs-afterglow-skin .vjs-time-divider{float:left;line-height:3em}.vjs-afterglow-skin .vjs-top-control-bar{width:auto;height:auto;text-align:right;position:absolute;right:26px;top:13px;display:none;opacity:0}@media (max-width:768px){.vjs-afterglow-skin .vjs-top-control-bar{top:10px;right:18px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-top-control-bar{top:6px;right:10px}}.vjs-afterglow-skin .vjs-top-control-bar .vjs-control{width:20px;height:30px;text-align:right;line-height:13px;font-size:13px;cursor:pointer;opacity:.9;margin-left:20px}@media (max-width:768px){.vjs-afterglow-skin .vjs-top-control-bar .vjs-control{font-size:9px;line-height:9px;margin-left:5px}}.vjs-afterglow-skin .vjs-top-control-bar .vjs-control:hover{opacity:1}.vjs-afterglow-skin .vjs-top-control-bar .vjs-fullscreen-control:before{content:"\\e608"}.vjs-afterglow-skin .vjs-top-control-bar .vjs-lightbox-close-button:before{content:"\\e601"}.vjs-afterglow-skin.vjs-fullscreen .vjs-top-control-bar .vjs-fullscreen-control:before{content:"\\e609"}.vjs-afterglow-skin.vjs-has-started .vjs-top-control-bar{display:block;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-afterglow-skin.vjs-has-started .vjs-top-control-bar .vjs-control{opacity:.9;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-afterglow-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-top-control-bar{display:block;visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-afterglow-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-top-control-bar .vjs-control{opacity:.9}.vjs-afterglow-skin .vjs-big-play-button{display:block;z-index:2;position:absolute;width:80px;height:80px;text-align:center;vertical-align:middle;cursor:pointer;top:50%;left:50%;margin-left:-40px;margin-top:-40px;border:none;background:0 0;visibility:visible;opacity:1;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-afterglow-skin.vjs-controls-disabled .vjs-big-play-button{display:none}.vjs-afterglow-skin.vjs-has-started .vjs-big-play-button{display:none;opacity:0}.vjs-afterglow-skin.vjs-has-started.vjs-ended .vjs-big-play-button{display:block;visibility:visible;opacity:1}.vjs-afterglow-skin.vjs-using-native-controls .vjs-big-play-button{display:block}.vjs-afterglow-skin .vjs-big-play-button:focus,.vjs-afterglow-skin:hover .vjs-big-play-button{outline:0;border:none;background:0 0;-webkit-transition:all 0s;-moz-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-afterglow-skin.vjs-seeking .vjs-big-play-button,.vjs-afterglow-skin.vjs-waiting .vjs-big-play-button{display:none;-webkit-animation:spin 1.5s infinite linear;-moz-animation:spin 1.5s infinite linear;-o-animation:spin 1.5s infinite linear;animation:spin 1.5s infinite linear}.vjs-afterglow-skin .vjs-big-play-button:before{content:"\\e602";font-family:afterglow-icon;line-height:80px;font-size:80px;text-shadow:0 0 5px #000;text-shadow:0 0 5px rgba(0,0,0,.6);text-align:center;position:absolute;left:0;width:100%;height:100%}@media (max-width:768px){.vjs-afterglow-skin .vjs-big-play-button:before{font-size:60px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-big-play-button:before{font-size:40px}}.vjs-afterglow-skin .vjs-error-display,.vjs-afterglow-skin.vjs-error .vjs-big-play-button{display:none}.vjs-afterglow-skin.vjs-error .vjs-error-display{display:block;position:absolute;left:0;top:0;width:100%;height:100%}.vjs-afterglow-skin .vjs-error .vjs-error-display:before{content:\'\'}.vjs-afterglow-skin .vjs-error-display div{position:absolute;bottom:40px;right:0;left:0;font-family:\'Open Sans\',Helvetica light,Helvetica,sans-serif;font-size:16px;text-align:center;padding:3px;background:#000;background:rgba(0,0,0,.5)}.vjs-afterglow-skin .vjs-error-display a,.vjs-afterglow-skin .vjs-error-display a:visited{color:#F4A460}.vjs-afterglow-skin .vjs-loading-spinner{position:absolute;top:50%;left:50%;width:32px;height:32px;margin-left:-16px;margin-top:-16px;clear:both;border:3px solid rgba(255,255,255,.1);border-top:3px rgba(255,255,255,.95) solid;border-radius:50%;-webkit-animation:spCircRot 1.6s infinite linear;animation:spCircRot 1.6s infinite linear}.vjs-afterglow-skin .vjs-loading-spinner:after,.vjs-afterglow-skin .vjs-loading-spinner:before{content:none;border:0}.vjs-afterglow-skin .vjs-seeking .vjs-loading-spinner,.vjs-afterglow-skin .vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:spin 1.5s infinite linear;-moz-animation:spin 1.5s infinite linear;-o-animation:spin 1.5s infinite linear;animation:spin 1.5s infinite linear}.vjs-afterglow-skin .vjs-error .vjs-loading-spinner{display:none;-webkit-animation:none;-moz-animation:none;-o-animation:none;animation:none}@-moz-keyframes spin{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0)}100%{-o-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}.vjs-afterglow-skin .vjs-menu-button{float:right;cursor:pointer}.vjs-afterglow-skin .vjs-menu-button.vjs-menu-button-inline{width:auto}.vjs-afterglow-skin .vjs-menu-button.vjs-menu-button-inline:before{width:30px}.vjs-afterglow-skin .vjs-menu{display:none;position:relative;bottom:auto;left:-85px;width:0;height:0;margin-bottom:0}@media (max-width:768px){.vjs-afterglow-skin .vjs-menu{left:-75px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-menu{left:-70px}}.vjs-afterglow-skin .vjs-menu-button .vjs-menu .vjs-menu-content{display:block;padding:0 0 70px;margin:0;position:absolute;bottom:-50px;width:100px;max-height:none;overflow:auto;left:12px;font-family:\'Open Sans\',Helvetica Light,Helvetica,sans-serif;background:0 0}@media (max-width:768px){.vjs-afterglow-skin .vjs-menu-button .vjs-menu .vjs-menu-content{left:12px;bottom:-40px;padding-bottom:60px}}@media (max-width:512px){.vjs-afterglow-skin .vjs-menu-button .vjs-menu .vjs-menu-content{left:11px;bottom:-30px;padding-bottom:50px}}.vjs-afterglow-skin .vjs-control-content .vjs-menu.vjs-lock-showing,.vjs-afterglow-skin .vjs-menu-button:hover .vjs-control-content .vjs-menu{display:block}.vjs-afterglow-skin.vjs-scrubbing .vjs-menu-button:hover .vjs-control-content .vjs-menu{display:none}.vjs-afterglow-skin .vjs-menu-button ul li{list-style:none;margin:0;padding:0 5px;line-height:16px;font-size:14px;text-align:center;text-transform:lowercase;opacity:.7;text-shadow:0 0 0 rgba(255,255,255,0)}.vjs-afterglow-skin .vjs-menu-button ul li.vjs-selected,.vjs-afterglow-skin .vjs-menu-button ul li.vjs-selected:focus,.vjs-afterglow-skin .vjs-menu-button ul li.vjs-selected:hover,.vjs-afterglow-skin .vjs-menu-button ul li:focus,.vjs-afterglow-skin .vjs-menu-button ul li:hover{text-shadow:0 0 5px rgba(255,255,255,.6);opacity:1;background:0 0;color:#fff}.vjs-afterglow-skin .vjs-menu-button ul li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:afterglow}.vjs-afterglow-skin .vjs-subtitles-button:before{content:"\\e60d"}.vjs-afterglow-skin .vjs-captions-button:before{content:"\\e600"}.vjs-afterglow-skin video::-webkit-media-text-track-container{bottom:40px;-webkit-transition:all .3s;-moz-transition:all .3s;-o-transition:all .3s;transition:all .3s}@media (max-width:768px){.vjs-afterglow-skin video::-webkit-media-text-track-container{bottom:20px}}.vjs-afterglow-skin video::-webkit-media-text-track-background{background-color:rgba(0,0,0,.5);border-radius:3px;padding:10px 14px}.vjs-afterglow-skin video::-webkit-media-text-track-display{color:#fff;font-family:Open Sans,Georgia;font-size:16px;padding:5px 10px 8px}@media (max-width:768px){.vjs-afterglow-skin video::-webkit-media-text-track-display{font-size:14px}}@media (max-width:512px){.vjs-afterglow-skin video::-webkit-media-text-track-container{bottom:10px}.vjs-afterglow-skin video::-webkit-media-text-track-display{font-size:11px}}.vjs-afterglow-skin.vjs-user-active video::-webkit-media-text-track-container{bottom:70px}@media (max-width:768px){.vjs-afterglow-skin.vjs-user-active video::-webkit-media-text-track-container{bottom:40px}}.vjs-afterglow-skin .vjs-chapters-button.vjs-menu-button .vjs-menu .vjs-menu-content{width:24em;left:-12em}.vjs-afterglow-skin.vjs-responsive,.vjs-afterglow-skin.vjs-responsive video{width:100%;height:auto}.vjs-afterglow-skin .vjs-captions-button:focus .vjs-control-content:before,.vjs-afterglow-skin .vjs-captions-button:hover .vjs-control-content:before{-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.vjs-afterglow-skin .vjs-tech:focus{outline:0}.vjs-afterglow-skin.vjs-responsive.vjs-has-started .vjs-tech{padding-top:0!important}.vjs-afterglow-skin.vjs-responsive.vjs-fullscreen video{height:100%}.vjs-afterglow-skin .vjs-ag-res-button{float:right;cursor:pointer;width:50px;font-family:afterglow-icon}@media (max-width:768px){.vjs-afterglow-skin .vjs-ag-res-button{width:30px;margin-left:-4px}}@media (max-width:512px){.vjs-afterglow-skin.vjs-user-active video::-webkit-media-text-track-container{bottom:30px}.vjs-afterglow-skin .vjs-ag-res-button{width:20px;margin-right:5px;margin-left:0}}.vjs-afterglow-skin .vjs-ag-res-button:before{font-family:afterglow-icon;content:"\\e60f"}.vjs-afterglow-skin .vjs-ag-res-button.vjs-ag-res-hd:before{content:"\\e60b";margin-left:.5px}.vjs-afterglow-skin.vjs-IE .vjs-ag-res-button{font-size:17px;line-height:18px;padding-top:10px}@media (max-width:768px){.vjs-afterglow-skin.vjs-IE .vjs-ag-res-button{font-size:9px;line-height:9px;margin-left:5px}}.vjs-afterglow-skin .vjs-poster{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";-moz-opacity:.8;-khtml-opacity:.8;opacity:.8;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-afterglow-skin:hover .vjs-poster{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";-moz-opacity:1;-khtml-opacity:1;opacity:1}.vjs-afterglow-skin.vjs-youtube>div:first-child{position:absolute!important;margin:0;height:100%;top:0;width:100%}.video-js,.vjs-caption-settings{position:relative;background-color:#000}.vjs-afterglow-skin.vjs-youtube iframe{display:block;visibility:hidden}.vjs-afterglow-skin.vjs-youtube.vjs-IE iframe{display:block;visibility:visible}.vjs-afterglow-skin.vjs-youtube .vjs-control-bar{right:80px;width:auto;-webkit-transition:all .1s;-moz-transition:all .1s;-o-transition:all .1s;transition:all .1s;-webkit-transition-delay:.4s;-moz-transition-delay:.4s;-o-transition-delay:.4s;transition-delay:.4s}.vjs-afterglow-skin.vjs-youtube.vjs-has-started .vjs-control-bar{right:0;-webkit-transition:all .3s;-moz-transition:all .3s;-o-transition:all .3s;transition:all .3s;-webkit-transition-delay:.4s;-moz-transition-delay:.4s;-o-transition-delay:.4s;transition-delay:.4s}.vjs-afterglow-skin.vjs-youtube.vjs-has-started.vjs-ended .vjs-control-bar,.vjs-afterglow-skin.vjs-youtube.vjs-has-started.vjs-paused .vjs-control-bar{right:80px;width:auto;-webkit-transition:all .1s;-moz-transition:all .1s;-o-transition:all .1s;transition:all .1s}.video-js.vjs-has-started .vjs-poster,.vjs-poster{-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s}.vjs-afterglow-skin.vjs-youtube.vjs-iOS .vjs-big-play-button,.vjs-afterglow-skin.vjs-youtube.vjs-iOS .vjs-poster,.vjs-afterglow-skin.vjs-youtube.vjs-using-native-controls .vjs-big-play-button,.vjs-afterglow-skin.vjs-youtube.vjs-using-native-controls .vjs-poster{display:none}.vjs-afterglow-skin.vjs-youtube.vjs-iOS iframe,.vjs-afterglow-skin.vjs-youtube.vjs-using-native-controls iframe{display:block;visibility:visible}.vjs-afterglow-skin.vjs-youtube.vjs-iOS .vjs-loading-spinner,.vjs-afterglow-skin.vjs-youtube.vjs-iOS .vjs-text-track-display,.vjs-afterglow-skin.vjs-youtube.vjs-using-native-controls .vjs-loading-spinner,.vjs-afterglow-skin.vjs-youtube.vjs-using-native-controls .vjs-text-track-display{display:none}.vjs-afterglow-skin.vjs-IE.vjs-youtube iframe,.vjs-afterglow-skin.vjs-has-started.vjs-youtube iframe{display:block;visibility:visible}.video-js{padding:0;font-size:22px;vertical-align:middle;font-weight:400;font-style:normal;font-family:Arial,sans-serif;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js .vjs-tech,.vjs-poster{top:0;width:100%;position:absolute;left:0}.video-js .vjs-tech{height:100%}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-poster{background-repeat:no-repeat;background-position:50% 50%;background-size:contain;cursor:pointer;margin:0;padding:0;right:0;bottom:0;transition:all .2s}.vjs-poster img{display:block;margin:0 auto;max-height:100%;padding:0}.video-js.vjs-has-started .vjs-poster{display:none;visibility:hidden;opacity:0;transition:all .2s}.video-js.vjs-has-started.vjs-ended .vjs-poster{display:block;visibility:visible;opacity:1;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.video-js.vjs-audio.vjs-has-started .vjs-poster{display:block}.video-js.vjs-controls-disabled .vjs-poster{display:none}.video-js.vjs-using-native-controls .vjs-poster{display:block}.video-js .vjs-text-track-display{position:absolute;bottom:50px;pointer-events:none}.vjs-caption-settings{top:1em;opacity:.75;color:#FFF;margin:0 auto;padding:.5em;height:15em;font-family:Arial,Helvetica,sans-serif;font-size:12px;width:40em}.vjs-caption-settings .vjs-tracksettings{top:0;bottom:2em;left:0;right:0;position:absolute;overflow:auto}.vjs-caption-settings .vjs-tracksettings-colors,.vjs-caption-settings .vjs-tracksettings-font{float:left}.vjs-caption-settings .vjs-tracksettings-colors:after,.vjs-caption-settings .vjs-tracksettings-controls:after,.vjs-caption-settings .vjs-tracksettings-font:after{clear:both}.vjs-caption-settings .vjs-tracksettings-controls{position:absolute;bottom:1em;right:1em}.vjs-caption-settings .vjs-tracksetting{margin:5px;padding:3px;min-height:40px}.vjs-caption-settings .vjs-tracksetting label{display:block;width:100px;margin-bottom:5px}.vjs-caption-settings .vjs-tracksetting span{display:inline;margin-left:5px}.vjs-caption-settings .vjs-tracksetting>div{margin-bottom:5px;min-height:20px}.vjs-caption-settings .vjs-tracksetting>div:last-child{margin-bottom:0;padding-bottom:0;min-height:0}.vjs-caption-settings label>input{margin-right:10px}.vjs-caption-settings input[type=button]{width:40px;height:40px}.vjs-hidden{display:none!important}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:2em;color:#ccc;background-color:#333;font-size:1.8em;font-family:Arial,sans-serif;text-align:center;width:30em;height:15em;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#F4A460}@-webkit-keyframes spCircRot{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(359deg)}}@keyframes spCircRot{from{transform:rotate(0)}to{transform:rotate(359deg)}}'),function(t,e){var n=t.createElement("style");
if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,".vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar{background-color:#fff;background-color:rgba(255,255,255,.9);bottom:0;height:51px}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar *{color:#000}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-progress-control{top:-5px;background-color:#fff;background-color:rgba(255,255,255,.9)}@media (max-width:768px){.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar{height:42px}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-progress-control{background-color:#fff}}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-progress-control:hover{top:-7px}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-progress-control .vjs-progress-holder{margin:0}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-progress-control .vjs-progress-holder .vjs-load-progress,.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-progress-control .vjs-progress-holder .vjs-play-progress{border-radius:0;-moz-border-radius:0;-webkit-border-radius:0}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-progress-control .vjs-progress-holder .vjs-load-progress{background-color:#777}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-progress-control .vjs-progress-holder .vjs-play-progress{background-color:#000;box-shadow:0 0 5px rgba(0,0,0,.6);-moz-box-shadow:0 0 5px rgba(0,0,0,.6);-webkit-box-shadow:0 0 5px rgba(0,0,0,.6)}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-current-time,.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-duration{margin-top:12px}@media (max-width:768px){.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-current-time,.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-duration{margin-top:11px}}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-current-time{margin-left:20px}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-duration{margin-right:20px}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-volume-menu-button .vjs-menu,.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu{padding-top:22px}@media (max-width:512px){.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar{height:34px}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-play-control:before{font-size:11px}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-current-time,.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-duration{margin-top:9px}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-current-time{margin-left:14px}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-duration{margin-right:10px}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-volume-menu-button .vjs-menu,.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-volume-menu-button.vjs-volume-menu-button-horizontal .vjs-menu{padding-top:14pxpx}}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-volume-bar{background-color:#555;background-color:rgba(0,0,0,.3)}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-volume-bar .vjs-volume-level{background-color:#000}.vjs-afterglow-skin.afterglow-skin-light .vjs-control-bar .vjs-menu ul.vjs-menu-content li{color:#fff;color:rgba(255,255,255,.8)}.vjs-afterglow-skin.afterglow-skin-light .vjs-control:before{margin-top:5px}.vjs-afterglow-skin.afterglow-skin-light .vjs-top-control-bar{right:20px;top:16px}.vjs-afterglow-skin.afterglow-skin-light .vjs-top-control-bar *{color:#000}.vjs-afterglow-skin.afterglow-skin-light .vjs-top-control-bar .vjs-button{background-color:#fff;background-color:rgba(255,255,255,.9);width:32px;height:32px;border-radius:50px;-moz-border-radius:50px;-webkit-border-radius:50px;margin-left:7px}.vjs-afterglow-skin.afterglow-skin-light .vjs-top-control-bar .vjs-button:before{margin-top:-1px;font-size:15px;line-height:16px}@media (max-width:768px){.vjs-afterglow-skin.afterglow-skin-light .vjs-top-control-bar{top:14px;right:16px}.vjs-afterglow-skin.afterglow-skin-light .vjs-top-control-bar .vjs-button{width:28px;height:28px}.vjs-afterglow-skin.afterglow-skin-light .vjs-top-control-bar .vjs-button:before{font-size:14px;line-height:15px;margin-top:-2px}}@media (max-width:512px){.vjs-afterglow-skin.afterglow-skin-light .vjs-top-control-bar .vjs-button{width:24px;height:24px}.vjs-afterglow-skin.afterglow-skin-light .vjs-top-control-bar .vjs-button:before{font-size:12px;line-height:13px;margin-top:0}}.vjs-afterglow-skin.afterglow-skin-light.vjs-youtube.vjs-has-started.vjs-paused .vjs-control-bar{right:0;background-color:#fff}"),function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,".afterglow-lightbox-wrapper{width:100%;height:100%;position:fixed;top:0;left:0;z-index:999999}.afterglow-lightbox-wrapper .cover{width:100%;height:100%;position:absolute;top:0;left:0;background-color:#000;background-color:rgba(0,0,0,.85)}.afterglow-lightbox-wrapper .afterglow-lightbox{display:block!important;position:absolute;top:0;left:0}.afterglow-lightbox-wrapper .afterglow-lightbox .afterglow-lightboxplayer,.afterglow-lightbox-wrapper .afterglow-lightbox .afterglow-lightboxplayer video{display:block!important}.afterglow-lightbox-wrapper .afterglow-lightbox div.vjs-fullscreen{top:0!important;left:0!important}.afterglow-lightbox-wrapper .afterglow-lightbox .vjs-paused.vjs-ended .vjs-big-play-button{display:block}#afterglow-lightbox-videoel,.afterglow-lightbox-wrapper.hidden,.afterglow-lightboxplayer{display:none}"),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).videojs=t()}(function(){return function t(e,n,o){function i(s,a){if(!n[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};e[s][0].call(c.exports,function(t){return i(e[s][1][t]||t)},c,c.exports,t,e,n,o)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(t,e){(function(n){var o=void 0!==n?n:"undefined"!=typeof window?window:{},i=t("min-document");if("undefined"!=typeof document)e.exports=document;else{var r=o["__GLOBAL_DOCUMENT_CACHE@4"];r||(r=o["__GLOBAL_DOCUMENT_CACHE@4"]=i),e.exports=r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":3}],2:[function(t,e){(function(t){e.exports="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(){},{}],4:[function(t,e){var n=t("../internal/getNative")(Date,"now")||function(){return(new Date).getTime()};e.exports=n},{"../internal/getNative":20}],5:[function(t,e){function n(t,e,n){function a(){m&&clearTimeout(m),f&&clearTimeout(f),b=0,f=m=y=void 0}function l(e,n){n&&clearTimeout(n),f=m=y=void 0,e&&(b=i(),d=t.apply(g,p),m||f||(p=g=void 0))}function u(){var t=e-(i()-v);0>=t||t>e?l(y,f):m=setTimeout(u,t)}function c(){l(j,m)}function h(){if(p=arguments,v=i(),g=this,y=j&&(m||!w),!1===A)var n=w&&!m;else{f||w||(b=v);var o=A-(v-b),r=0>=o||o>A;r?(f&&(f=clearTimeout(f)),b=v,d=t.apply(g,p)):f||(f=setTimeout(c,o))}return r&&m?m=clearTimeout(m):m||e===A||(m=setTimeout(u,e)),n&&(r=!0,d=t.apply(g,p)),!r||m||f||(p=g=void 0),d}var p,f,d,v,g,m,y,b=0,A=!1,j=!0;if("function"!=typeof t)throw new TypeError(r);if(e=0>e?0:+e||0,!0===n){var w=!0;j=!1}else o(n)&&(w=!!n.leading,A="maxWait"in n&&s(+n.maxWait||0,e),j="trailing"in n?!!n.trailing:j);return h.cancel=a,h}var o=t("../lang/isObject"),i=t("../date/now"),r="Expected a function",s=Math.max;e.exports=n},{"../date/now":4,"../lang/isObject":33}],6:[function(t,e){function n(t,e){if("function"!=typeof t)throw new TypeError(o);return e=i(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,o=-1,r=i(n.length-e,0),s=Array(r);++o<r;)s[o]=n[e+o];switch(e){case 0:return t.call(this,s);case 1:return t.call(this,n[0],s);case 2:return t.call(this,n[0],n[1],s)}var a=Array(e+1);for(o=-1;++o<e;)a[o]=n[o];return a[e]=s,t.apply(this,a)}}var o="Expected a function",i=Math.max;e.exports=n},{}],7:[function(t,e){function n(t,e,n){var s=!0,a=!0;if("function"!=typeof t)throw new TypeError(r);return!1===n?s=!1:i(n)&&(s="leading"in n?!!n.leading:s,a="trailing"in n?!!n.trailing:a),o(t,e,{leading:s,maxWait:+e,trailing:a})}var o=t("./debounce"),i=t("../lang/isObject"),r="Expected a function";e.exports=n},{"../lang/isObject":33,"./debounce":5}],8:[function(t,e){function n(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e}e.exports=n},{}],9:[function(t,e){function n(t,e){for(var n=-1,o=t.length;++n<o&&!1!==e(t[n],n,t););return t}e.exports=n},{}],10:[function(t,e){function n(t,e,n){n||(n={});for(var o=-1,i=e.length;++o<i;){var r=e[o];n[r]=t[r]}return n}e.exports=n},{}],11:[function(t,e){var n=t("./createBaseFor")();e.exports=n},{"./createBaseFor":18}],12:[function(t,e){function n(t,e){return o(t,e,i)}var o=t("./baseFor"),i=t("../object/keysIn");e.exports=n},{"../object/keysIn":39,"./baseFor":11}],13:[function(t,e){function n(t,e,h,p,f){if(!a(t))return t;var d=s(e)&&(r(e)||u(e)),v=d?void 0:c(e);return o(v||e,function(o,r){if(v&&(r=o,o=e[r]),l(o))p||(p=[]),f||(f=[]),i(t,e,r,n,h,p,f);else{var s=t[r],a=h?h(s,o,r,t,e):void 0,u=void 0===a;u&&(a=o),void 0===a&&(!d||r in t)||!u&&(a===a?a===s:s!==s)||(t[r]=a)}}),t}var o=t("./arrayEach"),i=t("./baseMergeDeep"),r=t("../lang/isArray"),s=t("./isArrayLike"),a=t("../lang/isObject"),l=t("./isObjectLike"),u=t("../lang/isTypedArray"),c=t("../object/keys");e.exports=n},{"../lang/isArray":30,"../lang/isObject":33,"../lang/isTypedArray":36,"../object/keys":38,"./arrayEach":9,"./baseMergeDeep":14,"./isArrayLike":21,"./isObjectLike":26}],14:[function(t,e){function n(t,e,n,c,h,p,f){for(var d=p.length,v=e[n];d--;)if(p[d]==v)return void(t[n]=f[d]);var g=t[n],m=h?h(g,v,n,t,e):void 0,y=void 0===m;y&&(m=v,s(v)&&(r(v)||l(v))?m=r(g)?g:s(g)?o(g):[]:a(v)||i(v)?m=i(g)?u(g):a(g)?g:{}:y=!1),p.push(v),f.push(m),y?t[n]=c(m,v,h,p,f):(m===m?m!==g:g===g)&&(t[n]=m)}var o=t("./arrayCopy"),i=t("../lang/isArguments"),r=t("../lang/isArray"),s=t("./isArrayLike"),a=t("../lang/isPlainObject"),l=t("../lang/isTypedArray"),u=t("../lang/toPlainObject");e.exports=n},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isPlainObject":34,"../lang/isTypedArray":36,"../lang/toPlainObject":37,"./arrayCopy":8,"./isArrayLike":21}],15:[function(t,e){function n(t){return function(e){return null==e?void 0:o(e)[t]}}var o=t("./toObject");e.exports=n},{"./toObject":28}],16:[function(t,e){function n(t,e,n){if("function"!=typeof t)return o;if(void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,o,i){return t.call(e,n,o,i)};case 4:return function(n,o,i,r){return t.call(e,n,o,i,r)};case 5:return function(n,o,i,r,s){return t.call(e,n,o,i,r,s)}}return function(){return t.apply(e,arguments)}}var o=t("../utility/identity");e.exports=n},{"../utility/identity":42}],17:[function(t,e){function n(t){return r(function(e,n){var r=-1,s=null==e?0:n.length,a=s>2?n[s-2]:void 0,l=s>2?n[2]:void 0,u=s>1?n[s-1]:void 0;for("function"==typeof a?(a=o(a,u,5),s-=2):(a="function"==typeof u?u:void 0,s-=a?1:0),l&&i(n[0],n[1],l)&&(a=3>s?void 0:a,s=1);++r<s;){var c=n[r];c&&t(e,c,a)}return e})}var o=t("./bindCallback"),i=t("./isIterateeCall"),r=t("../function/restParam");e.exports=n},{"../function/restParam":6,"./bindCallback":16,"./isIterateeCall":24}],18:[function(t,e){function n(t){return function(e,n,i){for(var r=o(e),s=i(e),a=s.length,l=t?a:-1;t?l--:++l<a;){var u=s[l];if(!1===n(r[u],u,r))break}return e}}var o=t("./toObject");e.exports=n},{"./toObject":28}],19:[function(t,e){var n=t("./baseProperty")("length");e.exports=n},{"./baseProperty":15}],20:[function(t,e){function n(t,e){var n=null==t?void 0:t[e];return o(n)?n:void 0}var o=t("../lang/isNative");e.exports=n},{"../lang/isNative":32}],21:[function(t,e){function n(t){return null!=t&&i(o(t))}var o=t("./getLength"),i=t("./isLength");e.exports=n},{"./getLength":19,"./isLength":25}],22:[function(t,e){var n=function(){try{Object({toString:0}+"")}catch(t){return function(){return!1}}return function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}}();e.exports=n},{}],23:[function(t,e){function n(t,e){return t="number"==typeof t||o.test(t)?+t:-1,e=null==e?i:e,t>-1&&t%1==0&&e>t}var o=/^\d+$/,i=9007199254740991;e.exports=n},{}],24:[function(t,e){function n(t,e,n){if(!r(n))return!1;var s=typeof e;if("number"==s?o(n)&&i(e,n.length):"string"==s&&e in n){var a=n[e];return t===t?t===a:a!==a}return!1}var o=t("./isArrayLike"),i=t("./isIndex"),r=t("../lang/isObject");e.exports=n},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&o>=t}var o=9007199254740991;e.exports=n},{}],26:[function(t,e){function n(t){return!!t&&"object"==typeof t}e.exports=n},{}],27:[function(t,e){function n(t){for(var e=l(t),n=e.length,c=n&&t.length,h=!!c&&s(c)&&(i(t)||o(t)||a(t)),p=-1,f=[];++p<n;){var d=e[p];(h&&r(d,c)||u.call(t,d))&&f.push(d)}return f}var o=t("../lang/isArguments"),i=t("../lang/isArray"),r=t("./isIndex"),s=t("./isLength"),a=t("../lang/isString"),l=t("../object/keysIn"),u=Object.prototype.hasOwnProperty;e.exports=n},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isString":35,"../object/keysIn":39,"./isIndex":23,"./isLength":25}],28:[function(t,e){function n(t){if(r.unindexedChars&&i(t)){for(var e=-1,n=t.length,s=Object(t);++e<n;)s[e]=t.charAt(e);return s}return o(t)?t:Object(t)}var o=t("../lang/isObject"),i=t("../lang/isString"),r=t("../support");e.exports=n},{"../lang/isObject":33,"../lang/isString":35,"../support":41}],29:[function(t,e){function n(t){return i(t)&&o(t)&&s.call(t,"callee")&&!a.call(t,"callee")}var o=t("../internal/isArrayLike"),i=t("../internal/isObjectLike"),r=Object.prototype,s=r.hasOwnProperty,a=r.propertyIsEnumerable;e.exports=n},{"../internal/isArrayLike":21,"../internal/isObjectLike":26}],30:[function(t,e){var n=t("../internal/getNative"),o=t("../internal/isLength"),i=t("../internal/isObjectLike"),r=Object.prototype.toString,s=n(Array,"isArray")||function(t){return i(t)&&o(t.length)&&"[object Array]"==r.call(t)};e.exports=s},{"../internal/getNative":20,"../internal/isLength":25,"../internal/isObjectLike":26}],31:[function(t,e){function n(t){return o(t)&&r.call(t)==i}var o=t("./isObject"),i="[object Function]",r=Object.prototype.toString;e.exports=n},{"./isObject":33}],32:[function(t,e){function n(t){return null!=t&&(o(t)?c.test(l.call(t)):r(t)&&(i(t)?c:s).test(t))}var o=t("./isFunction"),i=t("../internal/isHostObject"),r=t("../internal/isObjectLike"),s=/^\[object .+?Constructor\]$/,a=Object.prototype,l=Function.prototype.toString,u=a.hasOwnProperty,c=RegExp("^"+l.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=n},{"../internal/isHostObject":22,"../internal/isObjectLike":26,"./isFunction":31}],33:[function(t,e){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}e.exports=n},{}],34:[function(t,e){function n(t){var e;if(!s(t)||h.call(t)!=l||r(t)||i(t)||!c.call(t,"constructor")&&"function"==typeof(e=t.constructor)&&!(e instanceof e))return!1;var n;return a.ownLast?(o(t,function(t,e,o){return n=c.call(o,e),!1}),!1!==n):(o(t,function(t,e){n=e}),void 0===n||c.call(t,n))}var o=t("../internal/baseForIn"),i=t("./isArguments"),r=t("../internal/isHostObject"),s=t("../internal/isObjectLike"),a=t("../support"),l="[object Object]",u=Object.prototype,c=u.hasOwnProperty,h=u.toString;e.exports=n},{"../internal/baseForIn":12,"../internal/isHostObject":22,"../internal/isObjectLike":26,"../support":41,"./isArguments":29}],35:[function(t,e){function n(t){return"string"==typeof t||o(t)&&r.call(t)==i}var o=t("../internal/isObjectLike"),i="[object String]",r=Object.prototype.toString;e.exports=n},{"../internal/isObjectLike":26}],36:[function(t,e){function n(t){return i(t)&&o(t.length)&&!!r[s.call(t)]}var o=t("../internal/isLength"),i=t("../internal/isObjectLike"),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1;var s=Object.prototype.toString;e.exports=n},{"../internal/isLength":25,"../internal/isObjectLike":26}],37:[function(t,e){function n(t){return o(t,i(t))}var o=t("../internal/baseCopy"),i=t("../object/keysIn");e.exports=n},{"../internal/baseCopy":10,"../object/keysIn":39}],38:[function(t,e){var n=t("../internal/getNative"),o=t("../internal/isArrayLike"),i=t("../lang/isObject"),r=t("../internal/shimKeys"),s=t("../support"),a=n(Object,"keys"),l=a?function(t){var e=null==t?void 0:t.constructor;return"function"==typeof e&&e.prototype===t||("function"==typeof t?s.enumPrototypes:o(t))?r(t):i(t)?a(t):[]}:r;e.exports=l},{"../internal/getNative":20,"../internal/isArrayLike":21,"../internal/shimKeys":27,"../lang/isObject":33,"../support":41}],39:[function(t,e){function n(t){if(null==t)return[];u(t)||(t=Object(t));var e=t.length;e=e&&l(e)&&(r(t)||i(t)||c(t))&&e||0;for(var n=t.constructor,o=-1,w=s(n)&&n.prototype||m,_=w===t,k=Array(e),x=e>0,C=h.enumErrorProps&&(t===g||t instanceof Error),T=h.enumPrototypes&&s(t);++o<e;)k[o]=o+"";for(var E in t)T&&"prototype"==E||C&&("message"==E||"name"==E)||x&&a(E,e)||"constructor"==E&&(_||!b.call(t,E))||k.push(E);if(h.nonEnumShadows&&t!==m){var S=t===y?d:t===g?p:A.call(t),O=j[S]||j[f];for(S==f&&(w=m),e=v.length;e--;){var P=O[E=v[e]];_&&P||(P?!b.call(t,E):t[E]===w[E])||k.push(E)}}return k}var o=t("../internal/arrayEach"),i=t("../lang/isArguments"),r=t("../lang/isArray"),s=t("../lang/isFunction"),a=t("../internal/isIndex"),l=t("../internal/isLength"),u=t("../lang/isObject"),c=t("../lang/isString"),h=t("../support"),p="[object Error]",f="[object Object]",d="[object String]",v=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g=Error.prototype,m=Object.prototype,y=String.prototype,b=m.hasOwnProperty,A=m.toString,j={};j["[object Array]"]=j["[object Date]"]=j["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},j["[object Boolean]"]=j[d]={constructor:!0,toString:!0,valueOf:!0},j[p]=j["[object Function]"]=j["[object RegExp]"]={constructor:!0,toString:!0},j[f]={constructor:!0},o(v,function(t){for(var e in j)if(b.call(j,e)){var n=j[e];n[t]=b.call(n,t)}}),e.exports=n},{"../internal/arrayEach":9,"../internal/isIndex":23,"../internal/isLength":25,"../lang/isArguments":29,"../lang/isArray":30,"../lang/isFunction":31,"../lang/isObject":33,"../lang/isString":35,"../support":41}],40:[function(t,e){var n=t("../internal/baseMerge"),o=t("../internal/createAssigner")(n);e.exports=o},{"../internal/baseMerge":13,"../internal/createAssigner":17}],41:[function(t,e){var n=Array.prototype,o=Error.prototype,i=Object.prototype.propertyIsEnumerable,r=n.splice,s={};!function(){var t=function(){this.x=1},e={0:1,length:1},n=[];t.prototype={valueOf:1,y:1};for(var a in new t)n.push(a);s.enumErrorProps=i.call(o,"message")||i.call(o,"name"),s.enumPrototypes=i.call(t,"prototype"),s.nonEnumShadows=!/valueOf/.test(n),s.ownLast="x"!=n[0],s.spliceObjects=(r.call(e,0,1),!e[0]),s.unindexedChars="x"[0]+Object("x")[0]!="xx"}(),e.exports=s},{}],42:[function(t,e){function n(t){return t}e.exports=n},{}],43:[function(t,e){"use strict";var n=t("object-keys");e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test");if("string"==typeof e)return!1;t[e]=42;for(e in t)return!1;if(0!==n(t).length)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},{"object-keys":50}],44:[function(t,e){"use strict";var n=t("object-keys"),o=t("function-bind"),i=function(t){return void 0!==t&&null!==t},r=t("./hasSymbols")(),s=Object,a=o.call(Function.call,Array.prototype.push),l=o.call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(t){if(!i(t))throw new TypeError("target must be an object");var e,o,u,c,h,p,f,d=s(t);for(e=1;e<arguments.length;++e){if(o=s(arguments[e]),c=n(o),r&&Object.getOwnPropertySymbols)for(h=Object.getOwnPropertySymbols(o),u=0;u<h.length;++u)f=h[u],l(o,f)&&a(c,f);for(u=0;u<c.length;++u)f=c[u],p=o[f],l(o,f)&&(d[f]=p)}return d}},{"./hasSymbols":43,"function-bind":49,"object-keys":50}],45:[function(t,e){"use strict";var n=t("define-properties"),o=t("./implementation");n(o,{implementation:o,getPolyfill:t("./polyfill"),shim:t("./shim")}),e.exports=o},{"./implementation":44,"./polyfill":52,"./shim":53,"define-properties":46}],46:[function(t,e){"use strict";var n=t("object-keys"),o=t("foreach"),i="function"==typeof Symbol&&"symbol"==typeof Symbol(),r=Object.prototype.toString,s=function(t){return"function"==typeof t&&"[object Function]"===r.call(t)},a=Object.defineProperty&&function(){var t={};try{Object.defineProperty(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(t){return!1}}(),l=function(t,e,n,o){(!(e in t)||s(o)&&o())&&(a?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},u=function(t,e){var r=arguments.length>2?arguments[2]:{},s=n(e);i&&(s=s.concat(Object.getOwnPropertySymbols(e))),o(s,function(n){l(t,n,e[n],r[n])})};u.supportsDescriptors=!!a,e.exports=u},{foreach:47,"object-keys":50}],47:[function(t,e){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=function(t,e,i){if("[object Function]"!==o.call(e))throw new TypeError("iterator must be a function");var r=t.length;if(r===+r)for(var s=0;r>s;s++)e.call(i,t[s],s,t);else for(var a in t)n.call(t,a)&&e.call(i,t[a],a,t)}},{}],48:[function(t,e){var n=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==o.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var i,r=n.call(arguments,1),s=function(){if(this instanceof i){var o=e.apply(this,r.concat(n.call(arguments)));return Object(o)===o?o:this}return e.apply(t,r.concat(n.call(arguments)))},a=Math.max(0,e.length-r.length),l=[],u=0;a>u;u++)l.push("$"+u);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var c=function(){};c.prototype=e.prototype,i.prototype=new c,c.prototype=null}return i}},{}],49:[function(t,e){var n=t("./implementation");e.exports=Function.prototype.bind||n},{"./implementation":48}],50:[function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Array.prototype.slice,r=t("./isArguments"),s=!{toString:null}.propertyIsEnumerable("toString"),a=function(){}.propertyIsEnumerable("prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(t){var e=t.constructor;return e&&e.prototype===t},c={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!c["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{u(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!h)return u(t);try{return u(t)}catch(t){return!1}},f=function(t){var e=null!==t&&"object"==typeof t,i="[object Function]"===o.call(t),u=r(t),c=e&&"[object String]"===o.call(t),h=[];if(!e&&!i&&!u)throw new TypeError("Object.keys called on a non-object");var f=a&&i;if(c&&t.length>0&&!n.call(t,0))for(var d=0;d<t.length;++d)h.push(String(d));if(u&&t.length>0)for(var v=0;v<t.length;++v)h.push(String(v));else for(var g in t)f&&"prototype"===g||!n.call(t,g)||h.push(String(g));if(s)for(var m=p(t),y=0;y<l.length;++y)m&&"constructor"===l[y]||!n.call(t,l[y])||h.push(l[y]);return h};f.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function(e){return t(r(e)?i.call(e):e)}}}else Object.keys=f;return Object.keys||f},e.exports=f},{"./isArguments":51}],51:[function(t,e){"use strict";var n=Object.prototype.toString;e.exports=function(t){var e=n.call(t),o="[object Arguments]"===e;return o||(o="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),o}},{}],52:[function(t,e){"use strict";var n=t("./implementation"),o=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},o=0;o<e.length;++o)n[e[o]]=e[o];var i=Object.assign({},n),r="";for(var s in i)r+=s;return t!==r},i=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}};e.exports=function(){return Object.assign?o()?n:i()?n:Object.assign:n}},{"./implementation":44}],53:[function(t,e){"use strict";var n=t("define-properties"),o=t("./polyfill");e.exports=function(){var t=o();return n(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},{"./polyfill":52,"define-properties":46}],54:[function(t,e){function n(t,e){var n,o=null;try{n=JSON.parse(t,e)}catch(t){o=t}return[o,n]}e.exports=n},{}],55:[function(t,e){function n(t){return t.replace(/\n\r?\s*/g,"")}e.exports=function(t){for(var e="",o=0;o<arguments.length;o++)e+=n(t[o])+(arguments[o+1]||"");return e}},{}],56:[function(t,e){"use strict";function n(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function o(t,e,n){var o=t;return u(e)?(n=e,"string"==typeof t&&(o={uri:t})):o=h(e,{uri:t}),o.callback=n,o}function i(t,e,n){return e=o(t,e,n),r(e)}function r(t){function e(){4===h.readyState&&s()}function o(){var t=void 0;if(h.response?t=h.response:"text"!==h.responseType&&h.responseType||(t=h.responseText||h.responseXML),A)try{t=JSON.parse(t)}catch(t){}return t}function r(t){clearTimeout(d),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,a(t,u)}function s(){if(!f){var e;clearTimeout(d),e=t.useXDR&&void 0===h.status?200:1223===h.status?204:h.status;var n=u,i=null;0!==e?(n={body:o(),statusCode:e,method:g,headers:{},url:v,rawRequest:h},h.getAllResponseHeaders&&(n.headers=c(h.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),a(i,n,n.body)}}var a=t.callback;if(void 0===a)throw new Error("callback argument missing");a=l(a);var u={body:void 0,headers:{},statusCode:0,method:g,url:v,rawRequest:h},h=t.xhr||null;h||(h=t.cors||t.useXDR?new i.XDomainRequest:new i.XMLHttpRequest);var p,f,d,v=h.url=t.uri||t.url,g=h.method=t.method||"GET",m=t.body||t.data||null,y=h.headers=t.headers||{},b=!!t.sync,A=!1;if("json"in t&&(A=!0,y.accept||y.Accept||(y.Accept="application/json"),"GET"!==g&&"HEAD"!==g&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),m=JSON.stringify(t.json))),h.onreadystatechange=e,h.onload=s,h.onerror=r,h.onprogress=function(){},h.ontimeout=r,h.open(g,v,!b,t.username,t.password),b||(h.withCredentials=!!t.withCredentials),!b&&t.timeout>0&&(d=setTimeout(function(){f=!0,h.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)},t.timeout)),h.setRequestHeader)for(p in y)y.hasOwnProperty(p)&&h.setRequestHeader(p,y[p]);else if(t.headers&&!n(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(h.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(h),h.send(m),h}function s(){}var a=t("global/window"),l=t("once"),u=t("is-function"),c=t("parse-headers"),h=t("xtend");e.exports=i,i.XMLHttpRequest=a.XMLHttpRequest||s,i.XDomainRequest="withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:a.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],function(t){i["delete"===t?"del":t]=function(e,n,i){return n=o(e,n,i),n.method=t.toUpperCase(),r(n)}})},{"global/window":2,"is-function":57,once:58,"parse-headers":61,xtend:62}],57:[function(t,e){function n(t){var e=o.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}e.exports=n;var o=Object.prototype.toString},{}],58:[function(t,e){function n(t){var e=!1;return function(){return e?void 0:(e=!0,t.apply(this,arguments))}}e.exports=n,n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0})})},{}],59:[function(t,e){function n(t,e,n){if(!s(e))throw new TypeError("iterator must be a function");arguments.length<3&&(n=this),"[object Array]"===a.call(t)?o(t,e,n):"string"==typeof t?i(t,e,n):r(t,e,n)}function o(t,e,n){for(var o=0,i=t.length;i>o;o++)l.call(t,o)&&e.call(n,t[o],o,t)}function i(t,e,n){for(var o=0,i=t.length;i>o;o++)e.call(n,t.charAt(o),o,t)}function r(t,e,n){for(var o in t)l.call(t,o)&&e.call(n,t[o],o,t)}var s=t("is-function");e.exports=n;var a=Object.prototype.toString,l=Object.prototype.hasOwnProperty},{"is-function":57}],60:[function(t,e,n){function o(t){return t.replace(/^\s*|\s*$/g,"")}(n=e.exports=o).left=function(t){return t.replace(/^\s*/,"")},n.right=function(t){return t.replace(/\s*$/,"")}},{}],61:[function(t,e){var n=t("trim"),o=t("for-each"),i=function(t){return"[object Array]"===Object.prototype.toString.call(t)};e.exports=function(t){if(!t)return{};var e={};return o(n(t).split("\n"),function(t){var o=t.indexOf(":"),r=n(t.slice(0,o)).toLowerCase(),s=n(t.slice(o+1));void 0===e[r]?e[r]=s:i(e[r])?e[r].push(s):e[r]=[e[r],s]}),e}},{"for-each":59,trim:60}],62:[function(t,e){function n(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)o.call(n,i)&&(t[i]=n[i])}return t}e.exports=n;var o=Object.prototype.hasOwnProperty},{}],63:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("./button.js")),a=o(t("./component.js")),l=function(t){function e(n,o){i(this,e),t.call(this,n,o)}return r(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(){this.player_.play()},e}(s["default"]);l.prototype.controlText_="Play Video",a["default"].registerComponent("BigPlayButton",l),n["default"]=l,e.exports=n["default"]},{"./button.js":64,"./component.js":67}],64:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);
t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("./clickable-component.js")),l=i(t("./component")),u=i((o((o(t("./utils/events.js")),t("./utils/fn.js"))),t("./utils/log.js"))),c=i((i(t("global/document")),t("object.assign"))),h=function(t){function e(n,o){r(this,e),t.call(this,n,o)}return s(e,t),e.prototype.createEl=function(){var t=arguments.length<=0||void 0===arguments[0]?"button":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];e=c["default"]({className:this.buildCSSClass()},e),"button"!==t&&u["default"].warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),n=c["default"]({type:"button","aria-live":"polite"},n);var o=l["default"].prototype.createEl.call(this,t,e,n);return this.createControlTextEl(o),o},e.prototype.addChild=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=this.constructor.name;return u["default"].warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),l["default"].prototype.addChild.call(this,t,e)},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which||t.prototype.handleKeyPress.call(this,e)},e}(a["default"]);l["default"].registerComponent("Button",h),n["default"]=h,e.exports=n["default"]},{"./clickable-component.js":65,"./component":67,"./utils/events.js":133,"./utils/fn.js":134,"./utils/log.js":137,"global/document":1,"object.assign":45}],65:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("./component")),l=o(t("./utils/dom.js")),u=o(t("./utils/events.js")),c=o(t("./utils/fn.js")),h=i(t("./utils/log.js")),p=i(t("global/document")),f=i(t("object.assign")),d=function(t){function e(n,o){r(this,e),t.call(this,n,o),this.emitTapEvents(),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur)}return s(e,t),e.prototype.createEl=function(){var e=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];n=f["default"]({className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&h["default"].error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),o=f["default"]({role:"button","aria-live":"polite"},o);var i=t.prototype.createEl.call(this,e,n,o);return this.createControlTextEl(i),i},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=l.createEl("span",{className:"vjs-control-text"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_),this.controlTextEl_},e.prototype.controlText=function(t){return t?(this.controlText_=t,this.controlTextEl_.innerHTML=this.localize(this.controlText_),this):this.controlText_||"Need Text"},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.addChild=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.prototype.addChild.call(this,e,n)},e.prototype.handleClick=function(){},e.prototype.handleFocus=function(){u.on(p["default"],"keydown",c.bind(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleClick(e)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(){u.off(p["default"],"keydown",c.bind(this,this.handleKeyPress))},e}(a["default"]);a["default"].registerComponent("ClickableComponent",d),n["default"]=d,e.exports=n["default"]},{"./component":67,"./utils/dom.js":132,"./utils/events.js":133,"./utils/fn.js":134,"./utils/log.js":137,"global/document":1,"object.assign":45}],66:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("./button")),a=o(t("./component")),l=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.controlText(o&&o.controlText||this.localize("Close"))}return r(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},e}(s["default"]);a["default"].registerComponent("CloseButton",l),n["default"]=l,e.exports=n["default"]},{"./button":64,"./component":67}],67:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var s=i(t("global/window")),a=o(t("./utils/dom.js")),l=o(t("./utils/fn.js")),u=o(t("./utils/guid.js")),c=o(t("./utils/events.js")),h=i(t("./utils/log.js")),p=i(t("./utils/to-title-case.js")),f=i(t("object.assign")),d=i(t("./utils/merge-options.js")),v=function(){function t(e,n,o){if(r(this,t),this.player_=!e&&this.play?e=this:e,this.options_=d["default"]({},this.options_),n=this.options_=d["default"](this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var i=e&&e.id&&e.id()||"no_player";this.id_=i+"_component_"+u.newGUID()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(o),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_&&this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),a.removeElData(this.el_),this.el_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return h["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=d["default"](this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,n){return a.createEl(t,e,n)},t.prototype.localize=function(t){var e=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages();if(!e||!n)return t;var o=n[e];if(o&&o[t])return o[t];var i=n[e.split("-")[0]];return i&&i[t]?i[t]:t},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){return this.childNameIndex_[t]},t.prototype.addChild=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?this.children_.length:arguments[2],i=void 0,r=void 0;if("string"==typeof e){r=e,n||(n={}),!0===n&&(h["default"].warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),n={});var s=n.componentClass||p["default"](r);n.name=r;var a=t.getComponent(s);if(!a)throw new Error("Component "+s+" does not exist");if("function"!=typeof a)return null;i=new a(this.player_||this,n)}else i=e;if(this.children_.splice(o,0,i),"function"==typeof i.id&&(this.childIndex_[i.id()]=i),(r=r||i.name&&i.name())&&(this.childNameIndex_[r]=i),"function"==typeof i.el&&i.el()){var l=this.contentEl().children[o]||null;this.contentEl().insertBefore(i.el(),l)}return i},t.prototype.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var o=t.el();o&&o.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e=this,n=this.options_.children;n&&function(){var o=e.options_,i=function(t){var n=t.name,i=t.opts;if(void 0!==o[n]&&(i=o[n]),!1!==i){!0===i&&(i={}),i.playerOptions=e.options_.playerOptions;var r=e.addChild(n,i);r&&(e[n]=r)}},r=void 0,s=t.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(e.options_).filter(function(t){return!r.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var o=void 0,i=void 0;return"string"==typeof t?(o=t,i=n[o]||e.options_[o]||{}):(o=t.name,i=t),{name:o,opts:i}}).filter(function(e){var n=t.getComponent(e.opts.componentClass||p["default"](e.name));return n&&!s.isTech(n)}).forEach(i)}()},t.prototype.buildCSSClass=function(){return""},t.prototype.on=function(t,e,n){var o=this;return"string"==typeof t||Array.isArray(t)?c.on(this.el_,t,l.bind(this,e)):function(){var i=t,r=e,s=l.bind(o,n),a=function(){return o.off(i,r,s)};a.guid=s.guid,o.on("dispose",a);var u=function(){return o.off("dispose",a)};u.guid=s.guid,t.nodeName?(c.on(i,r,s),c.on(i,"dispose",u)):"function"==typeof t.on&&(i.on(r,s),i.on("dispose",u))}(),this},t.prototype.off=function(t,e,n){if(!t||"string"==typeof t||Array.isArray(t))c.off(this.el_,t,e);else{var o=t,i=e,r=l.bind(this,n);this.off("dispose",r),t.nodeName?(c.off(o,i,r),c.off(o,"dispose",r)):(o.off(i,r),o.off("dispose",r))}return this},t.prototype.one=function(t,e,n){var o=this,i=arguments;return"string"==typeof t||Array.isArray(t)?c.one(this.el_,t,l.bind(this,e)):function(){var r=t,s=e,a=l.bind(o,n),u=function c(){o.off(r,s,c),a.apply(null,i)};u.guid=a.guid,o.on(r,s,u)}(),this},t.prototype.trigger=function(t,e){return c.trigger(this.el_,t,e),this},t.prototype.ready=function(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return t&&(this.isReady_?e?t.call(this):this.setTimeout(t,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(t))),this},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},t.prototype.$=function(t,e){return a.$(t,e||this.contentEl())},t.prototype.$$=function(t,e){return a.$$(t,e||this.contentEl())},t.prototype.hasClass=function(t){return a.hasElClass(this.el_,t)},t.prototype.addClass=function(t){return a.addElClass(this.el_,t),this},t.prototype.removeClass=function(t){return a.removeElClass(this.el_,t),this},t.prototype.toggleClass=function(t,e){return a.toggleElClass(this.el_,t,e),this},t.prototype.show=function(){return this.removeClass("vjs-hidden"),this},t.prototype.hide=function(){return this.addClass("vjs-hidden"),this},t.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},t.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){return this.width(t,!0).height(e)},t.prototype.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e===e||(e=0),this.el_.style[t]=-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?e:"auto"===e?"":e+"px",n||this.trigger("resize"),this;if(!this.el_)return 0;var o=this.el_.style[t],i=o.indexOf("px");return-1!==i?parseInt(o.slice(0,i),10):parseInt(this.el_["offset"+p["default"](t)],10)},t.prototype.emitTapEvents=function(){var t=0,e=null,n=void 0;this.on("touchstart",function(o){1===o.touches.length&&(e=f["default"]({},o.touches[0]),t=(new Date).getTime(),n=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)n=!1;else if(e){var o=t.touches[0].pageX-e.pageX,i=t.touches[0].pageY-e.pageY;Math.sqrt(o*o+i*i)>10&&(n=!1)}});var o=function(){n=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",function(o){e=null,!0===n&&(new Date).getTime()-t<200&&(o.preventDefault(),this.trigger("tap"))})},t.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=l.bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.prototype.setTimeout=function(t,e){t=l.bind(this,t);var n=s["default"].setTimeout(t,e),o=function(){this.clearTimeout(n)};return o.guid="vjs-timeout-"+n,this.on("dispose",o),n},t.prototype.clearTimeout=function(t){s["default"].clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){t=l.bind(this,t);var n=s["default"].setInterval(t,e),o=function(){this.clearInterval(n)};return o.guid="vjs-interval-"+n,this.on("dispose",o),n},t.prototype.clearInterval=function(t){s["default"].clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.registerComponent=function(e,n){return t.components_||(t.components_={}),t.components_[e]=n,n},t.getComponent=function(e){return t.components_&&t.components_[e]?t.components_[e]:s["default"]&&s["default"].videojs&&s["default"].videojs[e]?(h["default"].warn("The "+e+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),s["default"].videojs[e]):void 0},t.extend=function(e){e=e||{},h["default"].warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var n=e.init||e.init||this.prototype.init||this.prototype.init||function(){},o=function(){n.apply(this,arguments)};(o.prototype=Object.create(this.prototype)).constructor=o,o.extend=t.extend;for(var i in e)e.hasOwnProperty(i)&&(o.prototype[i]=e[i]);return o},t}();v.registerComponent("Component",v),n["default"]=v,e.exports=n["default"]},{"./utils/dom.js":132,"./utils/events.js":133,"./utils/fn.js":134,"./utils/guid.js":136,"./utils/log.js":137,"./utils/merge-options.js":138,"./utils/to-title-case.js":141,"global/window":2,"object.assign":45}],68:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../component.js")),a=(o((o((o((o((o((o((o((o((o((o((o((o((o((o((o((o(t("./play-toggle.js")),t("./time-controls/current-time-display.js"))),t("./time-controls/duration-display.js"))),t("./time-controls/time-divider.js"))),t("./time-controls/remaining-time-display.js"))),t("./live-display.js"))),t("./progress-control/progress-control.js"))),t("./fullscreen-toggle.js"))),t("./volume-control/volume-control.js"))),t("./volume-menu-button.js"))),t("./mute-toggle.js"))),t("./text-track-controls/chapters-button.js"))),t("./text-track-controls/subtitles-button.js"))),t("./text-track-controls/captions-button.js"))),t("./playback-rate-menu/playback-rate-menu-button.js"))),t("./spacer-controls/custom-control-spacer.js"))),function(t){function e(){i(this,e),t.apply(this,arguments)}return r(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},e}(s["default"]));a.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","subtitlesButton","captionsButton","fullscreenToggle"]},s["default"].registerComponent("ControlBar",a),n["default"]=a,e.exports=n["default"]},{"../component.js":67,"./fullscreen-toggle.js":69,"./live-display.js":70,"./mute-toggle.js":71,"./play-toggle.js":72,"./playback-rate-menu/playback-rate-menu-button.js":73,"./progress-control/progress-control.js":78,"./spacer-controls/custom-control-spacer.js":80,"./text-track-controls/captions-button.js":83,"./text-track-controls/chapters-button.js":84,"./text-track-controls/subtitles-button.js":87,"./time-controls/current-time-display.js":90,"./time-controls/duration-display.js":91,"./time-controls/remaining-time-display.js":92,"./time-controls/time-divider.js":93,"./volume-control/volume-control.js":95,"./volume-menu-button.js":97}],69:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../button.js")),a=o(t("../component.js")),l=function(t){function e(){i(this,e),t.apply(this,arguments)}return r(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},e}(s["default"]);l.prototype.controlText_="Fullscreen",a["default"].registerComponent("FullscreenToggle",l),n["default"]=l,e.exports=n["default"]},{"../button.js":64,"../component.js":67}],70:[function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{"default":t}}(t("../component")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../utils/dom.js")),a=function(t){function e(n,i){o(this,e),t.call(this,n,i),this.updateShowing(),this.on(this.player(),"durationchange",this.updateShowing)}return i(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=s.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},e}(r["default"]);r["default"].registerComponent("LiveDisplay",a),n["default"]=a,e.exports=n["default"]},{"../component":67,"../utils/dom.js":132}],71:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../button")),a=o(t("../component")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../utils/dom.js")),u=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.on(n,"volumechange",this.update),n.tech_&&!1===n.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(n,"loadstart",function(){this.update(),!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return r(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},e.prototype.update=function(){var t=this.player_.volume(),e=3;0===t||this.player_.muted()?e=0:.33>t?e=1:.67>t&&(e=2);var n=this.player_.muted()?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n);for(var o=0;4>o;o++)l.removeElClass(this.el_,"vjs-vol-"+o);l.addElClass(this.el_,"vjs-vol-"+e)},e}(s["default"]);u.prototype.controlText_="Mute",a["default"].registerComponent("MuteToggle",u),n["default"]=u,e.exports=n["default"]},{"../button":64,"../component":67,"../utils/dom.js":132}],72:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../button.js")),a=o(t("../component.js")),l=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.on(n,"play",this.handlePlay),this.on(n,"pause",this.handlePause)}return r(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e}(s["default"]);l.prototype.controlText_="Play",a["default"].registerComponent("PlayToggle",l),n["default"]=l,e.exports=n["default"]},{"../button.js":64,"../component.js":67}],73:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../menu/menu-button.js")),a=o(t("../../menu/menu.js")),l=o(t("./playback-rate-menu-item.js")),u=o(t("../../component.js")),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../../utils/dom.js")),h=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.updateVisibility(),this.updateLabel(),this.on(n,"loadstart",this.updateVisibility),this.on(n,"ratechange",this.updateLabel)}return r(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=c.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),e.appendChild(this.labelEl_),e},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.createMenu=function(){var t=new a["default"](this.player()),e=this.playbackRates();if(e)for(var n=e.length-1;n>=0;n--)t.addChild(new l["default"](this.player(),{rate:e[n]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(){for(var t=this.player().playbackRate(),e=this.playbackRates(),n=e[0],o=0;o<e.length;o++)if(e[o]>t){n=e[o];break}this.player().playbackRate(n)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},e.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(s["default"]);h.prototype.controlText_="Playback Rate",u["default"].registerComponent("PlaybackRateMenuButton",h),n["default"]=h,e.exports=n["default"]},{"../../component.js":67,"../../menu/menu-button.js":104,"../../menu/menu.js":106,"../../utils/dom.js":132,"./playback-rate-menu-item.js":74}],74:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../menu/menu-item.js")),a=o(t("../../component.js")),l=function(t){function e(n,o){i(this,e);var r=o.rate,s=parseFloat(r,10);o.label=r,o.selected=1===s,t.call(this,n,o),this.label=r,this.rate=s,this.on(n,"ratechange",this.update)}return r(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},e}(s["default"]);l.prototype.contentElType="button",a["default"].registerComponent("PlaybackRateMenuItem",l),n["default"]=l,e.exports=n["default"]},{"../../component.js":67,"../../menu/menu-item.js":105}],75:[function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{"default":t}}(t("../../component.js")),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../../utils/dom.js")),a=function(t){function e(n,i){o(this,e),t.call(this,n,i),this.on(n,"progress",this.update)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},e.prototype.update=function(){var t=this.player_.buffered(),e=this.player_.duration(),n=this.player_.bufferedEnd(),o=this.el_.children,i=function(t,e){var n=t/e||0;return 100*(n>=1?1:n)+"%"};for(this.el_.style.width=i(n,e),u=0;u<t.length;u++){var r=t.start(u),a=t.end(u),l=o[u];l||(l=this.el_.appendChild(s.createEl())),l.style.left=i(r,n),l.style.width=i(a-r,n)}for(var u=o.length;u>t.length;u--)this.el_.removeChild(o[u-1])},e}(r["default"]);r["default"].registerComponent("LoadProgressBar",a),n["default"]=a,e.exports=n["default"]},{"../../component.js":67,"../../utils/dom.js":132}],76:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("../../component.js")),l=o(t("../../utils/dom.js")),u=o(t("../../utils/fn.js")),c=i(t("../../utils/format-time.js")),h=i(t("lodash-compat/function/throttle")),p=function(t){function e(n,o){var i=this;r(this,e),t.call(this,n,o),this.update(0,0),n.on("ready",function(){i.on(n.controlBar.progressControl.el(),"mousemove",h["default"](u.bind(i,i.handleMouseMove),25))})}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.handleMouseMove=function(t){var e=this.player_.duration(),n=this.calculateDistance(t)*e,o=t.pageX-l.findElPosition(this.el().parentNode).left;this.update(n,o)},e.prototype.update=function(t,e){var n=c["default"](t,this.player_.duration());this.el().style.left=e+"px",this.el().setAttribute("data-current-time",n)},e.prototype.calculateDistance=function(t){return l.getPointerPosition(this.el().parentNode,t).x},e}(a["default"]);a["default"].registerComponent("MouseTimeDisplay",p),n["default"]=p,e.exports=n["default"]},{"../../component.js":67,"../../utils/dom.js":132,"../../utils/fn.js":134,"../../utils/format-time.js":135,"lodash-compat/function/throttle":7}],77:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../../utils/fn.js")),l=o(t("../../utils/format-time.js")),u=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.updateDataAttr(),this.on(n,"timeupdate",this.updateDataAttr),n.ready(a.bind(this,this.updateDataAttr))}return r(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},e.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",l["default"](t,this.player_.duration()))},e}(s["default"]);s["default"].registerComponent("PlayProgressBar",u),n["default"]=u,e.exports=n["default"]},{"../../component.js":67,"../../utils/fn.js":134,"../../utils/format-time.js":135}],78:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);
t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../component.js")),a=(o((o(t("./seek-bar.js")),t("./mouse-time-display.js"))),function(t){function e(){i(this,e),t.apply(this,arguments)}return r(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e}(s["default"]));a.prototype.options_={children:["seekBar"]},s["default"].registerComponent("ProgressControl",a),n["default"]=a,e.exports=n["default"]},{"../../component.js":67,"./mouse-time-display.js":76,"./seek-bar.js":79}],79:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../slider/slider.js")),a=o(t("../../component.js")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}((o((o(t("./load-progress-bar.js")),t("./play-progress-bar.js"))),t("../../utils/fn.js"))),u=o(t("../../utils/format-time.js")),c=(o(t("object.assign")),function(t){function e(n,o){i(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateARIAAttributes),n.ready(l.bind(this,this.updateARIAAttributes))}return r(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"video progress bar"})},e.prototype.updateARIAAttributes=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),this.el_.setAttribute("aria-valuetext",u["default"](t,this.player_.duration()))},e.prototype.getPercent=function(){var t=this.player_.currentTime()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){t.prototype.handleMouseDown.call(this,e),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},e.prototype.handleMouseMove=function(t){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e}(s["default"]));c.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},c.prototype.playerEvent="timeupdate",a["default"].registerComponent("SeekBar",c),n["default"]=c,e.exports=n["default"]},{"../../component.js":67,"../../slider/slider.js":114,"../../utils/fn.js":134,"../../utils/format-time.js":135,"./load-progress-bar.js":75,"./play-progress-bar.js":77,"object.assign":45}],80:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("./spacer.js")),a=o(t("../../component.js")),l=function(t){function e(){i(this,e),t.apply(this,arguments)}return r(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML="&nbsp;",e},e}(s["default"]);a["default"].registerComponent("CustomControlSpacer",l),n["default"]=l,e.exports=n["default"]},{"../../component.js":67,"./spacer.js":81}],81:[function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{"default":t}}(t("../../component.js")),s=function(t){function e(){o(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(r["default"]);r["default"].registerComponent("Spacer",s),n["default"]=s,e.exports=n["default"]},{"../../component.js":67}],82:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("./text-track-menu-item.js")),a=o(t("../../component.js")),l=function(t){function e(n,o){i(this,e),o.track={kind:o.kind,player:n,label:o.kind+" settings",selectable:!1,"default":!1,mode:"disabled"},o.selectable=!1,t.call(this,n,o),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+o.kind+" settings dialog")}return r(e,t),e.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},e}(s["default"]);a["default"].registerComponent("CaptionSettingsMenuItem",l),n["default"]=l,e.exports=n["default"]},{"../../component.js":67,"./text-track-menu-item.js":89}],83:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("./text-track-button.js")),a=o(t("../../component.js")),l=o(t("./caption-settings-menu-item.js")),u=function(t){function e(n,o,r){i(this,e),t.call(this,n,o,r),this.el_.setAttribute("aria-label","Captions Menu")}return r(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.update=function(){var e=2;t.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(e=1),this.items&&this.items.length>e?this.show():this.hide()},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||e.push(new l["default"](this.player_,{kind:this.kind_})),t.prototype.createItems.call(this,e)},e}(s["default"]);u.prototype.kind_="captions",u.prototype.controlText_="Captions",a["default"].registerComponent("CaptionsButton",u),n["default"]=u,e.exports=n["default"]},{"../../component.js":67,"./caption-settings-menu-item.js":82,"./text-track-button.js":88}],84:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("./text-track-button.js")),l=i(t("../../component.js")),u=i(t("./text-track-menu-item.js")),c=i(t("./chapters-track-menu-item.js")),h=i(t("../../menu/menu.js")),p=o(t("../../utils/dom.js")),f=i((o(t("../../utils/fn.js")),t("../../utils/to-title-case.js"))),d=(i(t("global/window")),function(t){function e(n,o,i){r(this,e),t.call(this,n,o,i),this.el_.setAttribute("aria-label","Chapters Menu")}return s(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=[],e=this.player_.textTracks();if(!e)return t;for(var n=0;n<e.length;n++){var o=e[n];o.kind===this.kind_&&t.push(new u["default"](this.player_,{track:o}))}return t},e.prototype.createMenu=function(){for(var t=this,e=this.player_.textTracks()||[],n=void 0,o=this.items=[],i=0,r=e.length;r>i;i++){var s=e[i];if(s.kind===this.kind_){n=s;break}}var a=this.menu;if(void 0===a){a=new h["default"](this.player_);var l=p.createEl("li",{className:"vjs-menu-title",innerHTML:f["default"](this.kind_),tabIndex:-1});a.children_.unshift(l),p.insertElFirst(l,a.contentEl())}if(n&&null==n.cues){n.mode="hidden";var u=this.player_.remoteTextTrackEls().getTrackElementByTrack_(n);u&&u.addEventListener("load",function(){return t.update()})}if(n&&n.cues&&n.cues.length>0){for(var d=n.cues,v=void 0,i=0,g=d.length;g>i;i++){v=d[i];var m=new c["default"](this.player_,{track:n,cue:v});o.push(m),a.addChild(m)}this.addChild(a)}return this.items.length>0&&this.show(),a},e}(a["default"]));d.prototype.kind_="chapters",d.prototype.controlText_="Chapters",l["default"].registerComponent("ChaptersButton",d),n["default"]=d,e.exports=n["default"]},{"../../component.js":67,"../../menu/menu.js":106,"../../utils/dom.js":132,"../../utils/fn.js":134,"../../utils/to-title-case.js":141,"./chapters-track-menu-item.js":85,"./text-track-button.js":88,"./text-track-menu-item.js":89,"global/window":2}],85:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../menu/menu-item.js")),a=o(t("../../component.js")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../../utils/fn.js")),u=function(t){function e(n,o){i(this,e);var r=o.track,s=o.cue,a=n.currentTime();o.label=s.text,o.selected=s.startTime<=a&&a<s.endTime,t.call(this,n,o),this.track=r,this.cue=s,r.addEventListener("cuechange",l.bind(this,this.update))}return r(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},e.prototype.update=function(){var t=this.cue,e=this.player_.currentTime();this.selected(t.startTime<=e&&e<t.endTime)},e}(s["default"]);a["default"].registerComponent("ChaptersTrackMenuItem",u),n["default"]=u,e.exports=n["default"]},{"../../component.js":67,"../../menu/menu-item.js":105,"../../utils/fn.js":134}],86:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("./text-track-menu-item.js")),a=o(t("../../component.js")),l=function(t){function e(n,o){i(this,e),o.track={kind:o.kind,player:n,label:o.kind+" off","default":!1,mode:"disabled"},o.selectable=!0,t.call(this,n,o),this.selected(!0)}return r(e,t),e.prototype.handleTracksChange=function(){for(var t=this.player().textTracks(),e=!0,n=0,o=t.length;o>n;n++){var i=t[n];if(i.kind===this.track.kind&&"showing"===i.mode){e=!1;break}}this.selected(e)},e}(s["default"]);a["default"].registerComponent("OffTextTrackMenuItem",l),n["default"]=l,e.exports=n["default"]},{"../../component.js":67,"./text-track-menu-item.js":89}],87:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("./text-track-button.js")),a=o(t("../../component.js")),l=function(t){function e(n,o,r){i(this,e),t.call(this,n,o,r),this.el_.setAttribute("aria-label","Subtitles Menu")}return r(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e}(s["default"]);l.prototype.kind_="subtitles",l.prototype.controlText_="Subtitles",a["default"].registerComponent("SubtitlesButton",l),n["default"]=l,e.exports=n["default"]},{"../../component.js":67,"./text-track-button.js":88}],88:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../menu/menu-button.js")),a=o(t("../../component.js")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../../utils/fn.js")),u=o(t("./text-track-menu-item.js")),c=o(t("./off-text-track-menu-item.js")),h=function(t){function e(n,o){i(this,e),t.call(this,n,o);var r=this.player_.textTracks();if(this.items.length<=1&&this.hide(),r){var s=l.bind(this,this.update);r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),this.player_.on("dispose",function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)})}}return r(e,t),e.prototype.createItems=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];t.push(new c["default"](this.player_,{kind:this.kind_}));var e=this.player_.textTracks();if(!e)return t;for(var n=0;n<e.length;n++){var o=e[n];o.kind===this.kind_&&t.push(new u["default"](this.player_,{selectable:!0,track:o}))}return t},e}(s["default"]);a["default"].registerComponent("TextTrackButton",h),n["default"]=h,e.exports=n["default"]},{"../../component.js":67,"../../menu/menu-button.js":104,"../../utils/fn.js":134,"./off-text-track-menu-item.js":86,"./text-track-menu-item.js":89}],89:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../menu/menu-item.js")),a=o(t("../../component.js")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../../utils/fn.js")),u=o(t("global/window")),c=o(t("global/document")),h=function(t){function e(n,o){var r=this;i(this,e);var s=o.track,a=n.textTracks();o.label=s.label||s.language||"Unknown",o.selected=s["default"]||"showing"===s.mode,t.call(this,n,o),this.track=s,a&&function(){var t=l.bind(r,r.handleTracksChange);a.addEventListener("change",t),r.on("dispose",function(){a.removeEventListener("change",t)})}(),a&&void 0===a.onchange&&function(){r.on(["tap","click"],function(){if("object"!=typeof u["default"].Event)try{t=new u["default"].Event("change")}catch(t){}t||(t=c["default"].createEvent("Event")).initEvent("change",!0,!0),a.dispatchEvent(t)})}()}return r(e,t),e.prototype.handleClick=function(e){var n=this.track.kind,o=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),o)for(var i=0;i<o.length;i++){var r=o[i];r.kind===n&&(r.mode=r===this.track?"showing":"disabled")}},e.prototype.handleTracksChange=function(){this.selected("showing"===this.track.mode)},e}(s["default"]);a["default"].registerComponent("TextTrackMenuItem",h),n["default"]=h,e.exports=n["default"]},{"../../component.js":67,"../../menu/menu-item.js":105,"../../utils/fn.js":134,"global/document":1,"global/window":2}],90:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../../utils/dom.js")),l=o(t("../../utils/format-time.js")),u=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent)}return r(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=a.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=this.localize("Current Time"),n=l["default"](t,this.player_.duration());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> "+n)},e}(s["default"]);s["default"].registerComponent("CurrentTimeDisplay",u),n["default"]=u,e.exports=n["default"]},{"../../component.js":67,"../../utils/dom.js":132,"../../utils/format-time.js":135}],91:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../../utils/dom.js")),l=o(t("../../utils/format-time.js")),u=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent),this.on(n,"loadedmetadata",this.updateContent)}return r(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=a.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.duration();if(t&&this.duration_!==t){this.duration_=t;var e=this.localize("Duration Time"),n=l["default"](t);this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> "+n}},e}(s["default"]);s["default"].registerComponent("DurationDisplay",u),n["default"]=u,e.exports=n["default"]},{"../../component.js":67,"../../utils/dom.js":132,"../../utils/format-time.js":135}],92:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../../utils/dom.js")),l=o(t("../../utils/format-time.js")),u=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent)}return r(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=a.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),e=l["default"](this.player_.remainingTime());e!==this.formattedTime_&&(this.formattedTime_=e,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"</span> -"+e)}},e}(s["default"]);s["default"].registerComponent("RemainingTimeDisplay",u),n["default"]=u,e.exports=n["default"]},{"../../component.js":67,"../../utils/dom.js":132,"../../utils/format-time.js":135}],93:[function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{"default":t}}(t("../../component.js")),s=function(t){function e(){o(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},e}(r["default"]);r["default"].registerComponent("TimeDivider",s),n["default"]=s,e.exports=n["default"]},{"../../component.js":67}],94:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../slider/slider.js")),a=o(t("../../component.js")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../../utils/fn.js")),u=(o(t("./volume-level.js")),function(t){function e(n,o){i(this,e),t.call(this,n,o),this.on(n,"volumechange",this.updateARIAAttributes),n.ready(l.bind(this,this.updateARIAAttributes))}return r(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},e.prototype.handleMouseMove=function(t){this.checkMuted(),this.player_.volume(this.calculateDistance(t))},e.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(){var t=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},e}(s["default"]));u.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},u.prototype.playerEvent="volumechange",a["default"].registerComponent("VolumeBar",u),n["default"]=u,e.exports=n["default"]},{"../../component.js":67,"../../slider/slider.js":114,"../../utils/fn.js":134,"./volume-level.js":96}],95:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../../component.js")),a=(o(t("./volume-bar.js")),function(t){function e(n,o){i(this,e),t.call(this,n,o),n.tech_&&!1===n.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(n,"loadstart",function(){!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return r(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},e}(s["default"]));a.prototype.options_={children:["volumeBar"]},s["default"].registerComponent("VolumeControl",a),n["default"]=a,e.exports=n["default"]},{"../../component.js":67,"./volume-bar.js":94}],96:[function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{"default":t}}(t("../../component.js")),s=function(t){function e(){o(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(r["default"]);r["default"].registerComponent("VolumeLevel",s),n["default"]=s,e.exports=n["default"]},{"../../component.js":67}],97:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../utils/fn.js")),a=o(t("../component.js")),l=o(t("../popup/popup.js")),u=o(t("../popup/popup-button.js")),c=o(t("./mute-toggle.js")),h=o(t("./volume-control/volume-bar.js")),p=o(t("global/document")),f=function(t){function e(n){function o(){n.tech_&&!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];i(this,e),void 0===r.inline&&(r.inline=!0),void 0===r.vertical&&(r.vertical=r.inline?!1:!0),r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=!!r.vertical,t.call(this,n,r),this.on(n,"volumechange",this.volumeUpdate),this.on(n,"loadstart",this.volumeUpdate),o.call(this),this.on(n,"loadstart",o),this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),this.on(this.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),this.on(this.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")})}return r(e,t),e.prototype.buildCSSClass=function(){var e="";return e=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+e},e.prototype.createPopup=function(){var t=new l["default"](this.player_,{contentElType:"div"}),e=new h["default"](this.player_,this.options_.volumeBar);return t.addChild(e),this.menuContent=t,this.volumeBar=e,this.attachVolumeBarEvents(),t},e.prototype.handleClick=function(){c["default"].prototype.handleClick.call(this),t.prototype.handleClick.call(this)},e.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],s.bind(this,this.handleMouseDown))},e.prototype.handleMouseDown=function(){this.on(["mousemove","touchmove"],s.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(p["default"],["mouseup","touchend"],this.handleMouseUp)},e.prototype.handleMouseUp=function(){this.off(["mousemove","touchmove"],s.bind(this.volumeBar,this.volumeBar.handleMouseMove))},e}(u["default"]);f.prototype.volumeUpdate=c["default"].prototype.update,f.prototype.controlText_="Mute",a["default"].registerComponent("VolumeMenuButton",f),n["default"]=f,e.exports=n["default"]},{"../component.js":67,"../popup/popup-button.js":110,"../popup/popup.js":111,"../utils/fn.js":134,"./mute-toggle.js":71,"./volume-control/volume-bar.js":94,"global/document":1}],98:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("./component")),a=o(t("./modal-dialog")),l=o((function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("./utils/dom")),t("./utils/merge-options"))),u=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.on(n,"error",this.open)}return r(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(a["default"]);u.prototype.options_=l["default"](a["default"].prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),s["default"].registerComponent("ErrorDisplay",u),n["default"]=u,e.exports=n["default"]},{"./component":67,"./modal-dialog":107,"./utils/dom":132,"./utils/merge-options":138}],99:[function(t,e,n){"use strict";
n.__esModule=!0;var o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("./utils/events.js")),i=function(){};i.prototype.allowedEvents_={},i.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=Function.prototype,o.on(this,t,e),this.addEventListener=n},i.prototype.addEventListener=i.prototype.on,i.prototype.off=function(t,e){o.off(this,t,e)},i.prototype.removeEventListener=i.prototype.off,i.prototype.one=function(t,e){o.one(this,t,e)},i.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=o.fixEvent(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),o.trigger(this,t)},i.prototype.dispatchEvent=i.prototype.trigger,n["default"]=i,e.exports=n["default"]},{"./utils/events.js":133}],100:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){return t&&t.__esModule?t:{"default":t}}(t("./utils/log")),i=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)},r=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=function(){t.apply(this,arguments)},r={};"object"==typeof e?("function"==typeof e.init&&(o["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead."),e.constructor=e.init),e.constructor!==Object.prototype.constructor&&(n=e.constructor),r=e):"function"==typeof e&&(n=e),i(n,t);for(var s in r)r.hasOwnProperty(s)&&(n.prototype[s]=r[s]);return n};n["default"]=r,e.exports=n["default"]},{"./utils/log":137}],101:[function(t,e,n){"use strict";n.__esModule=!0;for(var o=function(t){return t&&t.__esModule?t:{"default":t}}(t("global/document")),i={},r=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],s=r[0],a=void 0,l=0;l<r.length;l++)if(r[l][1]in o["default"]){a=r[l];break}if(a)for(l=0;l<a.length;l++)i[s[l]]=a[l];n["default"]=i,e.exports=n["default"]},{"global/document":1}],102:[function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{"default":t}}(t("./component")),s=function(t){function e(){o(this,e),t.apply(this,arguments)}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},e}(r["default"]);r["default"].registerComponent("LoadingSpinner",s),n["default"]=s,e.exports=n["default"]},{"./component":67}],103:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){return t&&t.__esModule?t:{"default":t}}(t("object.assign")),i=function s(t){"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:"object"==typeof t&&o["default"](this,t),this.message||(this.message=s.defaultMessages[this.code]||"")};i.prototype.code=0,i.prototype.message="",i.prototype.status=null,i.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],i.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"We're processing this video. Please check back later.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var r=0;r<i.errorTypes.length;r++)i[i.errorTypes[r]]=r,i.prototype[i.errorTypes[r]]=r;n["default"]=i,e.exports=n["default"]},{"object.assign":45}],104:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("../clickable-component.js")),l=i(t("../component.js")),u=i(t("./menu.js")),c=o(t("../utils/dom.js")),h=o(t("../utils/fn.js")),p=i(t("../utils/to-title-case.js")),f=function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];r(this,e),t.call(this,n,o),this.update(),this.el_.setAttribute("aria-haspopup",!0),this.el_.setAttribute("role","menuitem"),this.on("keydown",this.handleSubmenuKeyPress)}return s(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.el_.setAttribute("aria-expanded",!1),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},e.prototype.createMenu=function(){var t=new u["default"](this.player_);if(this.options_.title){var e=c.createEl("li",{className:"vjs-menu-title",innerHTML:p["default"](this.options_.title),tabIndex:-1});t.children_.unshift(e),c.insertElFirst(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t},e.prototype.createItems=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return"vjs-menu-button "+(e+=!0===this.options_.inline?"-inline":"-popup")+" "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.one("mouseout",h.bind(this,function(){this.menu.unlockShowing(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&e.preventDefault()):38===e.which||40===e.which?this.buttonPressed_||(this.pressButton(),e.preventDefault()):t.prototype.handleKeyPress.call(this,e)},e.prototype.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.buttonPressed_&&this.unpressButton(),9!==t.which&&t.preventDefault())},e.prototype.pressButton=function(){this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded",!0),this.menu.focus()},e.prototype.unpressButton=function(){this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded",!1),this.el_.focus()},e}(a["default"]);l["default"].registerComponent("MenuButton",f),n["default"]=f,e.exports=n["default"]},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":132,"../utils/fn.js":134,"../utils/to-title-case.js":141,"./menu.js":106}],105:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../clickable-component.js")),a=o(t("../component.js")),l=o(t("object.assign")),u=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.selectable=o.selectable,this.selected(o.selected),this.selectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitem")}return r(e,t),e.prototype.createEl=function(e,n,o){return t.prototype.createEl.call(this,"li",l["default"]({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},n),o)},e.prototype.handleClick=function(){this.selected(!0)},e.prototype.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked",!0),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked",!1),this.controlText(" ")))},e}(s["default"]);a["default"].registerComponent("MenuItem",u),n["default"]=u,e.exports=n["default"]},{"../clickable-component.js":65,"../component.js":67,"object.assign":45}],106:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=function(t){return t&&t.__esModule?t:{"default":t}}(t("../component.js")),a=o(t("../utils/dom.js")),l=o(t("../utils/fn.js")),u=o(t("../utils/events.js")),c=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.focusedChild_=-1,this.on("keydown",this.handleKeyPress)}return r(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",l.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=a.createEl(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.setAttribute("role","presentation"),n.appendChild(this.contentEl_),u.on(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0],e=this.children().slice();e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className)&&e.shift(),e.length>0&&(0>t?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(s["default"]);s["default"].registerComponent("Menu",c),n["default"]=c,e.exports=n["default"]},{"../component.js":67,"../utils/dom.js":132,"../utils/events.js":133,"../utils/fn.js":134}],107:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("global/document")),l=o(t("./utils/dom")),u=o(t("./utils/fn")),c=i((i(t("./utils/log")),t("./component"))),h=(i(t("./close-button")),"vjs-modal-dialog"),p=function(t){function e(n,o){r(this,e),t.call(this,n,o),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=l.createEl("div",{className:h+"-content"},{role:"document"}),this.descEl_=l.createEl("p",{className:h+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")}),l.textContent(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.buildCSSClass=function(){return h+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},e.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.wasPlaying_&&t.pause(),this.closeable()&&this.on(a["default"],"keydown",u.bind(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},e.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&t.play(),this.closeable()&&this.off(a["default"],"keydown",u.bind(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var o=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton"),this.contentEl_=o,this.on(n,"close",this.close)}!e&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},e.prototype.fill=function(){return this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,o=e.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),l.insertContent(e,t),this.trigger("modalfill"),o?n.insertBefore(e,o):n.appendChild(e),this},e.prototype.empty=function(){return this.trigger("beforemodalempty"),l.emptyEl(this.contentEl()),this.trigger("modalempty"),this},e.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},e}(c["default"]);p.prototype.options_={temporary:!0},c["default"].registerComponent("ModalDialog",p),n["default"]=p,e.exports=n["default"]},{"./close-button":66,"./component":67,"./utils/dom":132,"./utils/fn":134,"./utils/log":137,"global/document":1}],108:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("./component.js")),l=i(t("global/document")),u=i(t("global/window")),c=o(t("./utils/events.js")),h=o(t("./utils/dom.js")),p=o(t("./utils/fn.js")),f=o(t("./utils/guid.js")),d=o(t("./utils/browser.js")),v=i(t("./utils/log.js")),g=i(t("./utils/to-title-case.js")),m=t("./utils/time-ranges.js"),y=t("./utils/buffer.js"),b=o(t("./utils/stylesheet.js")),A=i(t("./fullscreen-api.js")),j=i(t("./media-error.js")),w=i(t("safe-json-parse/tuple")),_=i(t("object.assign")),k=i(t("./utils/merge-options.js")),x=i(t("./tracks/text-track-list-converter.js")),C=i((i((i((i((i((i((i((i((i(t("./tech/loader.js")),t("./poster-image.js"))),t("./tracks/text-track-display.js"))),t("./loading-spinner.js"))),t("./big-play-button.js"))),t("./control-bar/control-bar.js"))),t("./error-display.js"))),t("./tracks/text-track-settings.js"))),t("./modal-dialog"))),T=i(t("./tech/tech.js")),E=(i(t("./tech/html5.js")),function(t){function e(n,o,i){var s=this;if(r(this,e),n.id=n.id||"vjs_video_"+f.newGUID(),o=_["default"](e.getTagSettings(n),o),o.initChildren=!1,o.createEl=!1,o.reportTouchActivity=!1,t.call(this,null,o,i),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=n,this.tagAttributes=n&&h.getElAttributes(n),this.language(this.options_.language),o.languages?function(){var t={};Object.getOwnPropertyNames(o.languages).forEach(function(e){t[e.toLowerCase()]=o.languages[e]}),s.languages_=t}():this.languages_=e.prototype.options_.languages,this.cache_={},this.poster_=o.poster||"",this.controls_=!!o.controls,n.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var a=k["default"](this.options_);o.plugins&&function(){var t=o.plugins;Object.getOwnPropertyNames(t).forEach(function(e){"function"==typeof this[e]?this[e](t[e]):v["default"].error("Unable to find plugin:",e)},s)}(),this.options_.playerOptions=a,this.initChildren(),this.isAudio("audio"===n.nodeName.toLowerCase()),this.addClass(this.controls()?"vjs-controls-enabled":"vjs-controls-disabled"),this.isAudio()&&this.addClass("vjs-audio"),this.flexNotSupported_()&&this.addClass("vjs-no-flex"),d.IS_IOS||this.addClass("vjs-workinghover"),e.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return s(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.el_=t.prototype.createEl.call(this,"div"),n=this.tag;n.removeAttribute("width"),n.removeAttribute("height");var o=h.getElAttributes(n);Object.getOwnPropertyNames(o).forEach(function(t){"class"===t?e.className=o[t]:e.setAttribute(t,o[t])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=e.player=this,this.addClass("vjs-paused"),this.styleEl_=b.createStyleElement("vjs-styles-dimensions");var i=h.$(".vjs-styles-defaults"),r=h.$("head");return r.insertBefore(this.styleEl_,i?i.nextSibling:r.firstChild),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),n.initNetworkState_=n.networkState,n.parentNode&&n.parentNode.insertBefore(e,n),h.insertElFirst(n,e),this.children_.unshift(n),this.el_=e,e},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e)this[n]=void 0;else{var o=parseFloat(e);if(isNaN(o))return v["default"].error('Improper value "'+e+'" supplied for for '+t),this;this[n]=o}return this.updateStyleEl_(),this},e.prototype.fluid=function(t){return void 0===t?!!this.fluid_:(this.fluid_=!!t,void(t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")))},e.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){var t=void 0,e=void 0,n=void 0,o=void 0,i=(n=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=i[1]/i[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*r,o=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(o),b.setTextContent(this.styleEl_,"\n      ."+o+" {\n        width: "+t+"px;\n        height: "+e+"px;\n      }\n\n      ."+o+".vjs-fluid {\n        padding-top: "+100*r+"%;\n      }\n    ")},e.prototype.loadTech_=function(t,e){this.tech_&&this.unloadTech_(),"Html5"!==t&&this.tag&&(T["default"].getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=t,this.isReady_=!1;var n=_["default"]({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:e,playerId:this.id(),techId:this.id()+"_"+t+"_api",textTracks:this.textTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[t.toLowerCase()]);this.tag&&(n.tag=this.tag),e&&(this.currentType_=e.type,e.src===this.cache_.src&&this.cache_.currentTime>0&&(n.startTime=this.cache_.currentTime),this.cache_.src=e.src);var o=T["default"].getTech(t);o||(o=a["default"].getComponent(t)),this.tech_=new o(n),this.tech_.ready(p.bind(this,this.handleTechReady_),!0),x["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"progress",this.handleTechProgress_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===t&&this.tag||h.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){this.textTracks_=this.textTracks(),this.textTracksJson_=x["default"].textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},e.prototype.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.tech_;var e="\n      Please make sure that you are not using this inside of a plugin.\n      To disable this alert and error, please pass in an object with\n      `IWillNotUseThisInPlugins` to the `tech` method. See\n      https://github.com/videojs/video.js/issues/2617 for more info.\n    ";throw u["default"].alert(e),new Error(e)},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},e.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},e.prototype.hasStarted=function(t){return void 0!==t?(this.hasStarted_!==t&&(this.hasStarted_=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechProgress_=function(){this.trigger("progress")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){0===t.button&&this.controls()&&(this.paused()?this.play():this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t&&t.code)},e.prototype.handleTechSuspend_=function(){this.trigger("suspend")},e.prototype.handleTechAbort_=function(){this.trigger("abort")},e.prototype.handleTechEmptied_=function(){this.trigger("emptied")},e.prototype.handleTechStalled_=function(){this.trigger("stalled")},e.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},e.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},e.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},e.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},e.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},e.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[t](e)},!0);else try{this.tech_[t](e)}catch(t){throw v["default"](t),t}},e.prototype.techGet_=function(t){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[t]()}catch(e){throw void 0===this.tech_[t]?v["default"]("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e):"TypeError"===e.name?(v["default"]("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1):v["default"](e),e}},e.prototype.play=function(){return this.techCall_("play"),this},e.prototype.pause=function(){return this.techCall_("pause"),this},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.scrubbing=function(t){return void 0!==t?(this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},e.prototype.currentTime=function(t){return void 0!==t?(this.techCall_("setCurrentTime",t),this):this.cache_.currentTime=this.techGet_("currentTime")||0},e.prototype.duration=function(t){return void 0===t?this.cache_.duration||0:((t=parseFloat(t)||0)<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=m.createTimeRange(0,0)),t},e.prototype.bufferedPercent=function(){return y.bufferedPercent(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),this):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},e.prototype.muted=function(t){return void 0!==t?(this.techCall_("setMuted",t),this):this.techGet_("muted")||!1},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){return void 0!==t?(this.isFullscreen_=!!t,this):!!this.isFullscreen_},e.prototype.requestFullscreen=function(){var t=A["default"];return this.isFullscreen(!0),t.requestFullscreen?(c.on(l["default"],t.fullscreenchange,p.bind(this,function e(){this.isFullscreen(l["default"][t.fullscreenElement]),!1===this.isFullscreen()&&c.off(l["default"],t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.exitFullscreen=function(){var t=A["default"];return this.isFullscreen(!1),t.requestFullscreen?l["default"][t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=l["default"].documentElement.style.overflow,c.on(l["default"],"keydown",p.bind(this,this.fullWindowOnEscKey)),l["default"].documentElement.style.overflow="hidden",h.addElClass(l["default"].body,"vjs-full-window"),this.trigger("enterFullWindow")
},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,c.off(l["default"],"keydown",this.fullWindowOnEscKey),l["default"].documentElement.style.overflow=this.docOrigOverflow,h.removeElClass(l["default"].body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,n=0,o=this.options_.techOrder;n<o.length;n++){var i=g["default"](o[n]),r=T["default"].getTech(i);if(r||(r=a["default"].getComponent(i)),r){if(r.isSupported()&&(e=r.canPlayType(t)))return e}else v["default"].error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.prototype.selectSource=function(t){var e=this.options_.techOrder.map(g["default"]).map(function(t){return[t,T["default"].getTech(t)||a["default"].getComponent(t)]}).filter(function(t){var e=t[0],n=t[1];return n?n.isSupported():(v["default"].error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),n=function(t,e,n){var o=void 0;return t.some(function(t){return e.some(function(e){return(o=n(t,e))?!0:void 0})}),o},o=function(t,e){var n=t[0];return t[1].canPlaySource(e)?{source:e,tech:n}:void 0};return(this.options_.sourceOrder?n(t,e,function(t){return function(e,n){return t(n,e)}}(o)):n(e,t,o))||!1},e.prototype.src=function(t){if(void 0===t)return this.techGet_("src");var e=T["default"].getTech(this.techName_);return e||(e=a["default"].getComponent(this.techName_)),Array.isArray(t)?this.sourceList_(t):"string"==typeof t?this.src({src:t}):t instanceof Object&&(t.type&&!e.canPlaySource(t)?this.sourceList_([t]):(this.cache_.src=t.src,this.currentType_=t.type||"",this.ready(function(){e.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),"auto"===this.options_.preload&&this.load(),this.options_.autoplay&&this.play()},!0))),this},e.prototype.sourceList_=function(t){var e=this.selectSource(t);e?e.tech===this.techName_?this.src(e.source):this.loadTech_(e.tech,e.source):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},e.prototype.load=function(){return this.techCall_("load"),this},e.prototype.reset=function(){return this.loadTech_(g["default"](this.options_.techOrder[0]),null),this.techCall_("reset"),this},e.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},e.prototype.currentType=function(){return this.currentType_||""},e.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),this.options_.preload=t,this):this.techGet_("preload")},e.prototype.autoplay=function(t){return void 0!==t?(this.techCall_("setAutoplay",t),this.options_.autoplay=t,this):this.techGet_("autoplay",t)},e.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),this.options_.loop=t,this):this.techGet_("loop")},e.prototype.poster=function(t){return void 0===t?this.poster_:(t||(t=""),this.poster_=t,this.techCall_("setPoster",t),this.trigger("posterchange"),this)},e.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},e.prototype.controls=function(t){return void 0!==t?(t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},e.prototype.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},e.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),this.errorDisplay.close(),this):(this.error_=t instanceof j["default"]?t:new j["default"](t),this.addClass("vjs-error"),v["default"].error("(CODE:"+this.error_.code+" "+j["default"].errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},e.prototype.ended=function(){return this.techGet_("ended")},e.prototype.seeking=function(){return this.techGet_("seeking")},e.prototype.seekable=function(){return this.techGet_("seekable")},e.prototype.reportUserActivity=function(){this.userActivity_=!0},e.prototype.userActive=function(t){return void 0!==t?((t=!!t)!==this.userActive_&&(this.userActive_=t,t?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},e.prototype.listenForUserActivity_=function(){var t=void 0,e=void 0,n=void 0,o=p.bind(this,this.reportUserActivity),i=function(t){t.screenX===e&&t.screenY===n||(e=t.screenX,n=t.screenY,o())},r=function(){o(),this.clearInterval(t),t=this.setInterval(o,250)},s=function(){o(),this.clearInterval(t)};this.on("mousedown",r),this.on("mousemove",i),this.on("mouseup",s),this.on("keydown",o),this.on("keyup",o);var a=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var t=this.options_.inactivityTimeout;t>0&&(a=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){return void 0!==t?(this.techCall_("setPlaybackRate",t),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},e.prototype.isAudio=function(t){return void 0!==t?(this.isAudio_=!!t,this):!!this.isAudio_},e.prototype.networkState=function(){return this.techGet_("networkState")},e.prototype.readyState=function(){return this.techGet_("readyState")},e.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},e.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},e.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},e.prototype.addTextTrack=function(t,e,n){return this.tech_&&this.tech_.addTextTrack(t,e,n)},e.prototype.addRemoteTextTrack=function(t){return this.tech_&&this.tech_.addRemoteTextTrack(t)},e.prototype.removeRemoteTextTrack=function(t){this.tech_&&this.tech_.removeRemoteTextTrack(t)},e.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.prototype.language=function(t){return void 0===t?this.language_:(this.language_=(""+t).toLowerCase(),this)},e.prototype.languages=function(){return k["default"](e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=k["default"](this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var o=e[n];(o=k["default"](o)).player=void 0,t.tracks[n]=o}return t},e.prototype.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var o=new C["default"](n,e);return n.addChild(o),o.on("dispose",function(){n.removeChild(o)}),o.open()},e.getTagSettings=function(t){var e={sources:[],tracks:[]},n=h.getElAttributes(t),o=n["data-setup"];if(null!==o){var i=w["default"](o||"{}"),r=i[0],s=i[1];r&&v["default"].error(r),_["default"](n,s)}if(_["default"](e,n),t.hasChildNodes())for(var a=t.childNodes,l=0,u=a.length;u>l;l++){var c=a[l],p=c.nodeName.toLowerCase();"source"===p?e.sources.push(h.getElAttributes(c)):"track"===p&&e.tracks.push(h.getElAttributes(c))}return e},e}(a["default"]));E.players={};var S=u["default"].navigator;E.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:l["default"].getElementsByTagName("html")[0].getAttribute("lang")||S.languages&&S.languages[0]||S.userLanguage||S.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},E.prototype.handleLoadedMetaData_,E.prototype.handleLoadedData_,E.prototype.handleUserActive_,E.prototype.handleUserInactive_,E.prototype.handleTimeUpdate_,E.prototype.handleTechEnded_,E.prototype.handleVolumeChange_,E.prototype.handleError_,E.prototype.flexNotSupported_=function(){var t=l["default"].createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},a["default"].registerComponent("Player",E),n["default"]=E,e.exports=n["default"]},{"./big-play-button.js":63,"./component.js":67,"./control-bar/control-bar.js":68,"./error-display.js":98,"./fullscreen-api.js":101,"./loading-spinner.js":102,"./media-error.js":103,"./modal-dialog":107,"./poster-image.js":112,"./tech/html5.js":117,"./tech/loader.js":118,"./tech/tech.js":119,"./tracks/text-track-display.js":123,"./tracks/text-track-list-converter.js":125,"./tracks/text-track-settings.js":127,"./utils/browser.js":129,"./utils/buffer.js":130,"./utils/dom.js":132,"./utils/events.js":133,"./utils/fn.js":134,"./utils/guid.js":136,"./utils/log.js":137,"./utils/merge-options.js":138,"./utils/stylesheet.js":139,"./utils/time-ranges.js":140,"./utils/to-title-case.js":141,"global/document":1,"global/window":2,"object.assign":45,"safe-json-parse/tuple":54}],109:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){return t&&t.__esModule?t:{"default":t}}(t("./player.js")),i=function(t,e){o["default"].prototype[t]=e};n["default"]=i,e.exports=n["default"]},{"./player.js":108}],110:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("../clickable-component.js")),l=i(t("../component.js")),u=(i((o((o((i(t("./popup.js")),t("../utils/dom.js"))),t("../utils/fn.js"))),t("../utils/to-title-case.js"))),function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];r(this,e),t.call(this,n,o),this.update()}return s(e,t),e.prototype.update=function(){var t=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=t,this.addChild(t),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},e.prototype.createPopup=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return"vjs-menu-button "+(e+=!0===this.options_.inline?"-inline":"-popup")+" "+t.prototype.buildCSSClass.call(this)},e}(a["default"]));l["default"].registerComponent("PopupButton",u),n["default"]=u,e.exports=n["default"]},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":132,"../utils/fn.js":134,"../utils/to-title-case.js":141,"./popup.js":111}],111:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=function(t){return t&&t.__esModule?t:{"default":t}}(t("../component.js")),a=o(t("../utils/dom.js")),l=o(t("../utils/fn.js")),u=o(t("../utils/events.js")),c=function(t){function e(){i(this,e),t.apply(this,arguments)}return r(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",l.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=a.createEl(e,{className:"vjs-menu-content"});var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),u.on(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e}(s["default"]);s["default"].registerComponent("Popup",c),n["default"]=c,e.exports=n["default"]},{"../component.js":67,"../utils/dom.js":132,"../utils/events.js":133,"../utils/fn.js":134}],112:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("./clickable-component.js")),l=i(t("./component.js")),u=o(t("./utils/fn.js")),c=o(t("./utils/dom.js")),h=o(t("./utils/browser.js")),p=function(t){function e(n,o){r(this,e),t.call(this,n,o),this.update(),n.on("posterchange",u.bind(this,this.update))}return s(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=c.createEl("div",{className:"vjs-poster",tabIndex:-1});return h.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=c.createEl("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e}(a["default"]);l["default"].registerComponent("PosterImage",p),n["default"]=p,e.exports=n["default"]},{"./clickable-component.js":65,"./component.js":67,"./utils/browser.js":129,"./utils/dom.js":132,"./utils/fn.js":134}],113:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("./utils/events.js")),r=o(t("global/document")),s=o(t("global/window")),a=!1,l=void 0,u=function(){var t=r["default"].getElementsByTagName("video"),e=r["default"].getElementsByTagName("audio"),n=[];if(t&&t.length>0)for(var o=0,i=t.length;i>o;o++)n.push(t[o]);if(e&&e.length>0)for(var o=0,i=e.length;i>o;o++)n.push(e[o]);if(n&&n.length>0)for(var o=0,i=n.length;i>o;o++){var s=n[o];if(!s||!s.getAttribute){c(1);break}void 0===s.player&&null!==s.getAttribute("data-setup")&&l(s)}else a||c(1)},c=function(t,e){e&&(l=e),setTimeout(u,t)};"complete"===r["default"].readyState?a=!0:i.one(s["default"],"load",function(){a=!0});var h=function(){return a};n.autoSetup=u,n.autoSetupTimeout=c,n.hasLoaded=h},{"./utils/events.js":133,"global/document":1,"global/window":2}],114:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../utils/dom.js")),l=o(t("global/document")),u=o(t("object.assign")),c=function(t){function e(n,o){i(this,e),t.call(this,n,o),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(n,"controlsvisible",this.update),this.on(n,this.playerEvent,this.update)}return r(e,t),e.prototype.createEl=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return n.className=n.className+" vjs-slider",n=u["default"]({tabIndex:0},n),o=u["default"]({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},o),t.prototype.createEl.call(this,e,n,o)},e.prototype.handleMouseDown=function(t){t.preventDefault(),a.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(l["default"],"mousemove",this.handleMouseMove),this.on(l["default"],"mouseup",this.handleMouseUp),this.on(l["default"],"touchmove",this.handleMouseMove),this.on(l["default"],"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(){},e.prototype.handleMouseUp=function(){a.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(l["default"],"mousemove",this.handleMouseMove),this.off(l["default"],"mouseup",this.handleMouseUp),this.off(l["default"],"touchmove",this.handleMouseMove),this.off(l["default"],"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!==t||0>t||t===1/0)&&(t=0);var n=(100*t).toFixed(2)+"%";this.vertical()?e.el().style.height=n:e.el().style.width=n}}},e.prototype.calculateDistance=function(t){var e=a.getPointerPosition(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(l["default"],"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(l["default"],"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){return void 0===t?this.vertical_||!1:(this.vertical_=!!t,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal"),this)},e}(s["default"]);s["default"].registerComponent("Slider",c),n["default"]=c,e.exports=n["default"]},{"../component.js":67,"../utils/dom.js":132,"global/document":1,"object.assign":45}],115:[function(t,e,n){"use strict";function o(t){return t.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},t.streamFromParts=function(t,e){return t+"&"+e},t.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var n=t.search(/&(?!\w+=)/),o=void 0;return-1!==n?o=n+1:0===(n=o=t.lastIndexOf("/")+1)&&(n=o=t.length),e.connection=t.substring(0,n),e.stream=t.substring(o,t.length),e},t.isStreamingType=function(e){return e in t.streamingFormats},t.RTMP_RE=/^rtmp[set]?:\/\//i,t.isStreamingSrc=function(e){return t.RTMP_RE.test(e)},t.rtmpSourceHandler={},t.rtmpSourceHandler.canPlayType=function(e){return t.isStreamingType(e)?"maybe":""},t.rtmpSourceHandler.canHandleSource=function(e){return t.rtmpSourceHandler.canPlayType(e.type)||(t.isStreamingSrc(e.src)?"maybe":"")},t.rtmpSourceHandler.handleSource=function(e,n){var o=t.streamToParts(e.src);n.setRtmpConnection(o.connection),n.setRtmpStream(o.stream)},t.registerSourceHandler(t.rtmpSourceHandler),t}n.__esModule=!0,n["default"]=o,e.exports=n["default"]},{}],116:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){y[t]=function(){return this.el_.vjs_getProperty(t)}}n.__esModule=!0;for(var l=i(t("./tech")),u=o(t("../utils/dom.js")),c=o(t("../utils/url.js")),h=t("../utils/time-ranges.js"),p=i(t("./flash-rtmp")),f=i(t("../component")),d=i(t("global/window")),v=i(t("object.assign")),g=d["default"].navigator,m=function(t){function e(n,o){r(this,e),t.call(this,n,o),n.source&&this.ready(function(){this.setSource(n.source)},!0),n.startTime&&this.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),d["default"].videojs=d["default"].videojs||{},d["default"].videojs.Flash=d["default"].videojs.Flash||{},d["default"].videojs.Flash.onReady=e.onReady,d["default"].videojs.Flash.onEvent=e.onEvent,d["default"].videojs.Flash.onError=e.onError,this.on("seeked",function(){this.lastSeekTarget_=void 0})}return s(e,t),e.prototype.createEl=function(){var t=this.options_;t.swf||(t.swf="//vjs.zencdn.net/swf/5.0.1/video-js.swf");var n=t.techId,o=v["default"]({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:t.autoplay,preload:t.preload,loop:t.loop,muted:t.muted},t.flashVars),i=v["default"]({wmode:"opaque",bgcolor:"#000000"},t.params),r=v["default"]({id:n,name:n,"class":"vjs-tech"},t.attributes);return this.el_=e.embed(t.swf,o,i,r),this.el_.tech=this,this.el_},e.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},e.prototype.pause=function(){this.el_.vjs_pause()},e.prototype.src=function(t){return void 0===t?this.currentSrc():this.setSrc(t)},e.prototype.setSrc=function(t){if(t=c.getAbsoluteURL(t),this.el_.vjs_src(t),this.autoplay()){var e=this;this.setTimeout(function(){e.play()},0)}},e.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},e.prototype.setCurrentTime=function(e){var n=this.seekable();n.length&&(e=e>n.start(0)?e:n.start(0),e=e<n.end(n.length-1)?e:n.end(n.length-1),this.lastSeekTarget_=e,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",e),t.prototype.setCurrentTime.call(this))},e.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},e.prototype.load=function(){this.el_.vjs_load()},e.prototype.poster=function(){this.el_.vjs_getProperty("poster")},e.prototype.setPoster=function(){},e.prototype.seekable=function(){var t=this.duration();return 0===t?h.createTimeRange():h.createTimeRange(0,t)},e.prototype.buffered=function(){var t=this.el_.vjs_getProperty("buffered");return 0===t.length?h.createTimeRange():h.createTimeRange(t[0][0],t[0][1])},e.prototype.supportsFullScreen=function(){return!1},e.prototype.enterFullScreen=function(){return!1},e}(l["default"]),y=m.prototype,b="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),A="networkState,readyState,initialTime,duration,startOffsetTime,paused,ended,videoTracks,audioTracks,videoWidth,videoHeight".split(","),j=0;j<b.length;j++)a(b[j]),function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);y["set"+e]=function(e){return this.el_.vjs_setProperty(t,e)}}(b[j]);for(j=0;j<A.length;j++)a(A[j]);m.isSupported=function(){return m.version()[0]>=10},l["default"].withSourceHandlers(m),m.nativeSourceHandler={},m.nativeSourceHandler.canPlayType=function(t){return t in m.formats?"maybe":""},m.nativeSourceHandler.canHandleSource=function(t){var e;return e=t.type?t.type.replace(/;.*/,"").toLowerCase():function(t){var e=c.getFileExtension(t);return e?"video/"+e:""}(t.src),m.nativeSourceHandler.canPlayType(e)},m.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},m.nativeSourceHandler.dispose=function(){},m.registerSourceHandler(m.nativeSourceHandler),m.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},m.onReady=function(t){var e=u.getEl(t),n=e&&e.tech;n&&n.el()&&m.checkReady(n)},m.checkReady=function(t){t.el()&&(t.el().vjs_getProperty?t.triggerReady():this.setTimeout(function(){m.checkReady(t)},50))},m.onEvent=function(t,e){u.getEl(t).tech.trigger(e)},m.onError=function(t,e){var n=u.getEl(t).tech;return"srcnotfound"===e?n.error(4):void n.error("FLASH: "+e)},m.version=function(){var t="0,0,0";try{t=new d["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{g.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(g.plugins["Shockwave Flash 2.0"]||g.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(t){}}return t.split(",")},m.embed=function(t,e,n,o){var i=m.getEmbedCode(t,e,n,o);return u.createEl("div",{innerHTML:i}).childNodes[0]},m.getEmbedCode=function(t,e,n,o){var i="",r="",s="";return e&&Object.getOwnPropertyNames(e).forEach(function(t){i+=t+"="+e[t]+"&amp;"}),n=v["default"]({movie:t,flashvars:i,allowScriptAccess:"always",allowNetworking:"all"},n),Object.getOwnPropertyNames(n).forEach(function(t){r+='<param name="'+t+'" value="'+n[t]+'" />'}),o=v["default"]({data:t,width:"100%",height:"100%"},o),Object.getOwnPropertyNames(o).forEach(function(t){s+=t+'="'+o[t]+'" '}),'<object type="application/x-shockwave-flash" '+s+">"+r+"</object>"},p["default"](m),f["default"].registerComponent("Flash",m),l["default"].registerTech("Flash",m),n["default"]=m,e.exports=n["default"]},{"../component":67,"../utils/dom.js":132,"../utils/time-ranges.js":140,"../utils/url.js":142,"./flash-rtmp":115,"./tech":119,"global/window":2,"object.assign":45}],117:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("./tech.js")),l=i(t("../component")),u=o(t("../utils/dom.js")),c=o(t("../utils/url.js")),h=o(t("../utils/fn.js")),p=i(t("../utils/log.js")),f=o(t("../utils/browser.js")),d=i(t("global/document")),v=i(t("global/window")),g=i(t("object.assign")),m=i(t("../utils/merge-options.js")),y=function(t){function e(n,o){r(this,e),t.call(this,n,o);var i=n.source;if(i&&(this.el_.currentSrc!==i.src||n.tag&&3===n.tag.initNetworkState_)?this.setSource(i):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var s=this.el_.childNodes,a=s.length,l=[];a--;){var u=s[a];"track"===u.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(u),this.remoteTextTracks().addTrack_(u.track)):l.push(u))}for(var c=0;c<l.length;c++)this.el_.removeChild(l[c])}this.featuresNativeTextTracks&&(this.handleTextTrackChange_=h.bind(this,this.handleTextTrackChange),this.handleTextTrackAdd_=h.bind(this,this.handleTextTrackAdd),this.handleTextTrackRemove_=h.bind(this,this.handleTextTrackRemove),this.proxyNativeTextTracks_()),(f.TOUCH_ENABLED&&!0===n.nativeControlsForTouch||f.IS_IPHONE||f.IS_NATIVE_ANDROID)&&this.setControls(!0),this.triggerReady()}return s(e,t),e.prototype.dispose=function(){this.el()&&this.el().textTracks;for(var n=this.textTracks(),o=n.length;o--;)n.removeTrack_(n[o]);e.disposeMediaElement(this.el_),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=this.options_.tag;if(!t||!1===this.movingMediaElementInDOM)if(t){var n=t.cloneNode(!0);t.parentNode.insertBefore(n,t),e.disposeMediaElement(t),t=n}else{t=d["default"].createElement("video");var o=this.options_.tag&&u.getElAttributes(this.options_.tag),i=m["default"]({},o);f.TOUCH_ENABLED&&!0===this.options_.nativeControlsForTouch||delete i.controls,u.setElAttributes(t,g["default"](i,{id:this.options_.techId,"class":"vjs-tech"}))}for(var r=["autoplay","preload","loop","muted"],s=r.length-1;s>=0;s--){var a=r[s],l={};void 0!==this.options_[a]&&(l[a]=this.options_[a]),u.setElAttributes(t,l)}return t},e.prototype.handleLateInit_=function(t){var e=this;if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var n=function(){var t=!1,n=function(){t=!0};e.on("loadstart",n);var o=function(){t||this.trigger("loadstart")};return e.on("loadedmetadata",o),e.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",o),t||this.trigger("loadstart")}),{v:void 0}}();if("object"==typeof n)return n.v}var o=["loadstart"];o.push("loadedmetadata"),t.readyState>=2&&o.push("loadeddata"),t.readyState>=3&&o.push("canplay"),t.readyState>=4&&o.push("canplaythrough"),this.ready(function(){o.forEach(function(t){this.trigger(t)},this)})}},e.prototype.proxyNativeTextTracks_=function(){var t=this.el().textTracks;if(t){for(var e=0;e<t.length;e++)this.textTracks().addTrack_(t[e]);t.addEventListener&&(t.addEventListener("change",this.handleTextTrackChange_),t.addEventListener("addtrack",this.handleTextTrackAdd_),t.addEventListener("removetrack",this.handleTextTrackRemove_))}},e.prototype.handleTextTrackChange=function(){var t=this.textTracks();this.textTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},e.prototype.handleTextTrackAdd=function(t){this.textTracks().addTrack_(t.track)},e.prototype.handleTextTrackRemove=function(t){this.textTracks().removeTrack_(t.track)},e.prototype.play=function(){this.el_.play()},e.prototype.pause=function(){this.el_.pause()},e.prototype.paused=function(){return this.el_&&this.el_.paused},e.prototype.currentTime=function(){return this.el_.currentTime},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){p["default"](t,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){return this.el_.duration||0},e.prototype.buffered=function(){return this.el_.buffered},e.prototype.volume=function(){return this.el_.volume},e.prototype.setVolume=function(t){this.el_.volume=t},e.prototype.muted=function(){return this.el_.muted},e.prototype.setMuted=function(t){this.el_.muted=t},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=v["default"].navigator.userAgent;if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;"webkitDisplayingFullscreen"in t&&this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})}),this.trigger("fullscreenchange",{isFullscreen:!0})}),t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){return void 0===t?this.el_.src:void this.setSrc(t)},e.prototype.setSrc=function(t){this.el_.src=t
},e.prototype.load=function(){this.el_.load()},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.poster=function(){return this.el_.poster},e.prototype.setPoster=function(t){this.el_.poster=t},e.prototype.preload=function(){return this.el_.preload},e.prototype.setPreload=function(t){this.el_.preload=t},e.prototype.autoplay=function(){return this.el_.autoplay},e.prototype.setAutoplay=function(t){this.el_.autoplay=t},e.prototype.controls=function(){return this.el_.controls},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.loop=function(){return this.el_.loop},e.prototype.setLoop=function(t){this.el_.loop=t},e.prototype.error=function(){return this.el_.error},e.prototype.seeking=function(){return this.el_.seeking},e.prototype.seekable=function(){return this.el_.seekable},e.prototype.ended=function(){return this.el_.ended},e.prototype.defaultMuted=function(){return this.el_.defaultMuted},e.prototype.playbackRate=function(){return this.el_.playbackRate},e.prototype.played=function(){return this.el_.played},e.prototype.setPlaybackRate=function(t){this.el_.playbackRate=t},e.prototype.networkState=function(){return this.el_.networkState},e.prototype.readyState=function(){return this.el_.readyState},e.prototype.videoWidth=function(){return this.el_.videoWidth},e.prototype.videoHeight=function(){return this.el_.videoHeight},e.prototype.textTracks=function(){return t.prototype.textTracks.call(this)},e.prototype.addTextTrack=function(e,n,o){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,o):t.prototype.addTextTrack.call(this,e,n,o)},e.prototype.addRemoteTextTrack=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(!this.featuresNativeTextTracks)return t.prototype.addRemoteTextTrack.call(this,e);var n=d["default"].createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e["default"]&&(n["default"]=e["default"]),e.id&&(n.id=e.id),e.src&&(n.src=e.src),this.el().appendChild(n),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),n},e.prototype.removeRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.removeRemoteTextTrack.call(this,e);var n=void 0,o=void 0,i=this.remoteTextTrackEls().getTrackElementByTrack_(e);for(this.remoteTextTrackEls().removeTrackElement_(i),this.remoteTextTracks().removeTrack_(e),o=(n=this.$$("track")).length;o--;)e!==n[o]&&e!==n[o].track||this.el().removeChild(n[o])},e}(a["default"]);y.TEST_VID=d["default"].createElement("video");var b=d["default"].createElement("track");b.kind="captions",b.srclang="en",b.label="English",y.TEST_VID.appendChild(b),y.isSupported=function(){try{y.TEST_VID.volume=.5}catch(t){return!1}return!!y.TEST_VID.canPlayType},a["default"].withSourceHandlers(y),y.nativeSourceHandler={},y.nativeSourceHandler.canPlayType=function(t){try{return y.TEST_VID.canPlayType(t)}catch(t){return""}},y.nativeSourceHandler.canHandleSource=function(t){var e;return t.type?y.nativeSourceHandler.canPlayType(t.type):t.src?(e=c.getFileExtension(t.src),y.nativeSourceHandler.canPlayType("video/"+e)):""},y.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},y.nativeSourceHandler.dispose=function(){},y.registerSourceHandler(y.nativeSourceHandler),y.canControlVolume=function(){var t=y.TEST_VID.volume;return y.TEST_VID.volume=t/2+.1,t!==y.TEST_VID.volume},y.canControlPlaybackRate=function(){var t=y.TEST_VID.playbackRate;return y.TEST_VID.playbackRate=t/2+.1,t!==y.TEST_VID.playbackRate},y.supportsNativeTextTracks=function(){var t;return(t=!!y.TEST_VID.textTracks)&&y.TEST_VID.textTracks.length>0&&(t="number"!=typeof y.TEST_VID.textTracks[0].mode),t&&f.IS_FIREFOX&&(t=!1),!t||"onremovetrack"in y.TEST_VID.textTracks||(t=!1),t},y.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],y.prototype.featuresVolumeControl=y.canControlVolume(),y.prototype.featuresPlaybackRate=y.canControlPlaybackRate(),y.prototype.movingMediaElementInDOM=!f.IS_IOS,y.prototype.featuresFullscreenResize=!0,y.prototype.featuresProgressEvents=!0,y.prototype.featuresNativeTextTracks=y.supportsNativeTextTracks();var A=void 0,j=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,w=/^video\/mp4/i;y.patchCanPlayType=function(){f.ANDROID_VERSION>=4&&(A||(A=y.TEST_VID.constructor.prototype.canPlayType),y.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&j.test(t)?"maybe":A.call(this,t)}),f.IS_OLD_ANDROID&&(A||(A=y.TEST_VID.constructor.prototype.canPlayType),y.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&w.test(t)?"maybe":A.call(this,t)})},y.unpatchCanPlayType=function(){var t=y.TEST_VID.constructor.prototype.canPlayType;return y.TEST_VID.constructor.prototype.canPlayType=A,A=null,t},y.patchCanPlayType(),y.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},y.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},l["default"].registerComponent("Html5",y),a["default"].registerTech("Html5",y),n["default"]=y,e.exports=n["default"]},{"../component":67,"../utils/browser.js":129,"../utils/dom.js":132,"../utils/fn.js":134,"../utils/log.js":137,"../utils/merge-options.js":138,"../utils/url.js":142,"./tech.js":119,"global/document":1,"global/window":2,"object.assign":45}],118:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../component.js")),a=o(t("./tech.js")),l=o((o(t("global/window")),t("../utils/to-title-case.js"))),u=function(t){function e(n,o,r){if(i(this,e),t.call(this,n,o,r),o.playerOptions.sources&&0!==o.playerOptions.sources.length)n.src(o.playerOptions.sources);else for(var u=0,c=o.playerOptions.techOrder;u<c.length;u++){var h=l["default"](c[u]),p=a["default"].getTech(h);if(h||(p=s["default"].getComponent(h)),p&&p.isSupported()){n.loadTech_(h);break}}}return r(e,t),e}(s["default"]);s["default"].registerComponent("MediaLoader",u),n["default"]=u,e.exports=n["default"]},{"../component.js":67,"../utils/to-title-case.js":141,"./tech.js":119,"global/window":2}],119:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=o(t("../component")),a=o(t("../tracks/html-track-element")),l=o(t("../tracks/html-track-element-list")),u=o(t("../utils/merge-options.js")),c=o(t("../tracks/text-track")),h=o(t("../tracks/text-track-list")),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../utils/fn.js")),f=o(t("../utils/log.js")),d=t("../utils/time-ranges.js"),v=t("../utils/buffer.js"),g=o(t("../media-error.js")),m=o(t("global/window")),y=o(t("global/document")),b=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1];i(this,e),n.reportTouchActivity=!1,t.call(this,null,n,o),this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),this.textTracks_=n.textTracks,this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),!1!==n.nativeCaptions&&!1!==n.nativeTextTracks||(this.featuresNativeTextTracks=!1),this.featuresNativeTextTracks||this.on("ready",this.emulateTextTracks),this.initTextTrackListeners(),this.emitTapEvents()}return r(e,t),e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(){this.stopTrackingProgress(),this.progressInterval=this.setInterval(p.bind(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(){this.duration_=this.duration()},e.prototype.buffered=function(){return d.createTimeRange(0,0)},e.prototype.bufferedPercent=function(){return v.bufferedPercent(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){var e=this.textTracks();if(e)for(var n=e.length;n--;)this.removeRemoteTextTrack(e[n]);this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&&(this.error_=t instanceof g["default"]?t:new g["default"](t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?d.createTimeRange(0,0):d.createTimeRange()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTextTrackListeners=function(){var t=p.bind(this,function(){this.trigger("texttrackchange")}),e=this.textTracks();e&&(e.addEventListener("removetrack",t),e.addEventListener("addtrack",t),this.on("dispose",p.bind(this,function(){e.removeEventListener("removetrack",t),e.removeEventListener("addtrack",t)})))},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks();if(e){m["default"].WebVTT||null==this.el().parentNode||function(){var e=y["default"].createElement("script");e.src=t.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},t.on("dispose",function(){e.onload=null,e.onerror=null}),t.el().parentNode.appendChild(e),m["default"].WebVTT=!0}();var n=function(){return t.trigger("texttrackchange")},o=function(){n();for(var t=0;t<e.length;t++){var o=e[t];o.removeEventListener("cuechange",n),"showing"===o.mode&&o.addEventListener("cuechange",n)}};o(),e.addEventListener("change",o),this.on("dispose",function(){e.removeEventListener("change",o)})}},e.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new h["default"],this.textTracks_},e.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new h["default"],this.remoteTextTracks_},e.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new l["default"],this.remoteTextTrackEls_},e.prototype.addTextTrack=function(t,e,n){if(!t)throw new Error("TextTrack kind is required but was not provided");return A(this,t,e,n)},e.prototype.addRemoteTextTrack=function(t){var e=u["default"](t,{tech:this}),n=new a["default"](e);return this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),this.textTracks().addTrack_(n.track),n},e.prototype.removeRemoteTextTrack=function(t){this.textTracks().removeTrack_(t);var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack_(t)},e.prototype.setPoster=function(){},e.prototype.canPlayType=function(){return""},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw new Error("Tech "+t+" must be a Tech");return e.techs_[t]=n,n},e.getTech=function(t){return e.techs_&&e.techs_[t]?e.techs_[t]:m["default"]&&m["default"].videojs&&m["default"].videojs[t]?(f["default"].warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),m["default"].videojs[t]):void 0},e}(s["default"]);b.prototype.textTracks_;var A=function(t,e,n,o){var i=arguments.length<=4||void 0===arguments[4]?{}:arguments[4],r=t.textTracks();i.kind=e,n&&(i.label=n),o&&(i.language=o),i.tech=t;var s=new c["default"](i);return r.addTrack_(s),s};b.prototype.featuresVolumeControl=!0,b.prototype.featuresFullscreenResize=!1,b.prototype.featuresPlaybackRate=!1,b.prototype.featuresProgressEvents=!1,b.prototype.featuresTimeupdateEvents=!1,b.prototype.featuresNativeTextTracks=!1,b.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var o=t.sourceHandlers;o||(o=t.sourceHandlers=[]),void 0===n&&(n=o.length),o.splice(n,0,e)},t.canPlayType=function(e){for(var n=t.sourceHandlers||[],o=void 0,i=0;i<n.length;i++)if(o=n[i].canPlayType(e))return o;return""},t.selectSourceHandler=function(e){for(var n=t.sourceHandlers||[],o=0;o<n.length;o++)if(n[o].canHandleSource(e))return n[o];return null},t.canPlaySource=function(e){var n=t.selectSourceHandler(e);return n?n.canHandleSource(e):""},["seekable","duration"].forEach(function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){var n=t.selectSourceHandler(e);return n||(t.nativeSourceHandler?n=t.nativeSourceHandler:f["default"].error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),this.currentSource_=e,this.sourceHandler_=n.handleSource(e,this),this.on("dispose",this.disposeSourceHandler),this},t.prototype.disposeSourceHandler=function(){this.sourceHandler_&&this.sourceHandler_.dispose&&this.sourceHandler_.dispose()}},s["default"].registerComponent("Tech",b),s["default"].registerComponent("MediaTechController",b),b.registerTech("Tech",b),n["default"]=b,e.exports=n["default"]},{"../component":67,"../media-error.js":103,"../tracks/html-track-element":121,"../tracks/html-track-element-list":120,"../tracks/text-track":128,"../tracks/text-track-list":126,"../utils/buffer.js":130,"../utils/fn.js":134,"../utils/log.js":137,"../utils/merge-options.js":138,"../utils/time-ranges.js":140,"global/document":1,"global/window":2}],120:[function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../utils/browser.js")),r=function(t){return t&&t.__esModule?t:{"default":t}}(t("global/document")),s=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];o(this,t);var n=this;if(i.IS_IE8){n=r["default"].createElement("custom");for(var s in t.prototype)"constructor"!==s&&(n[s]=t.prototype[s])}n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var a=0,l=e.length;l>a;a++)n.addTrackElement_(e[a]);return i.IS_IE8?n:void 0}return t.prototype.addTrackElement_=function(t){this.trackElements_.push(t)},t.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,n=0,o=this.trackElements_.length;o>n;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},t.prototype.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;n>e;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},t}();n["default"]=s,e.exports=n["default"]},{"../utils/browser.js":129,"global/document":1}],121:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../utils/browser.js")),a=o(t("global/document")),l=o(t("../event-target")),u=o(t("../tracks/text-track")),c=0,h=2,p=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,e),t.call(this);var o=void 0,r=this;if(s.IS_IE8){r=a["default"].createElement("custom");for(var l in e.prototype)"constructor"!==l&&(r[l]=e.prototype[l])}var p=new u["default"](n);return r.kind=p.kind,r.src=p.src,r.srclang=p.language,r.label=p.label,r["default"]=p["default"],Object.defineProperty(r,"readyState",{get:function(){return o}}),Object.defineProperty(r,"track",{get:function(){return p}}),o=c,p.addEventListener("loadeddata",function(){o=h,r.trigger({type:"load",target:r})}),s.IS_IE8?r:void 0}return r(e,t),e}(l["default"]);p.prototype.allowedEvents_={load:"load"},p.NONE=c,p.LOADING=1,p.LOADED=h,p.ERROR=3,n["default"]=p,e.exports=n["default"]},{"../event-target":99,"../tracks/text-track":128,"../utils/browser.js":129,"global/document":1}],122:[function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("../utils/browser.js")),r=function(t){return t&&t.__esModule?t:{"default":t}}(t("global/document")),s=function(){function t(e){o(this,t);var n=this;if(i.IS_IE8){n=r["default"].createElement("custom");for(var s in t.prototype)"constructor"!==s&&(n[s]=t.prototype[s])}return t.prototype.setCues_.call(n,e),Object.defineProperty(n,"length",{get:function(){return this.length_}}),i.IS_IE8?n:void 0}return t.prototype.setCues_=function(t){var e=this.length||0,n=0,o=t.length;this.cues_=t,this.length_=t.length;var i=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(o>e)for(n=e;o>n;n++)i.call(this,n)},t.prototype.getCueById=function(t){for(var e=null,n=0,o=this.length;o>n;n++){var i=this[n];if(i.id===t){e=i;break}}return e},t}();n["default"]=s,e.exports=n["default"]},{"../utils/browser.js":129,"global/document":1}],123:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function a(t,e,n){try{t.style[e]=n}catch(t){}}n.__esModule=!0;var l=o(t("../component")),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}((o((o((o(t("../menu/menu.js")),t("../menu/menu-item.js"))),t("../menu/menu-button.js"))),t("../utils/fn.js"))),c=o((o(t("global/document")),t("global/window"))),h="#222",p={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},f=function(t){function e(n,o,r){i(this,e),t.call(this,n,o,r),n.on("loadstart",u.bind(this,this.toggleDisplay)),n.on("texttrackchange",u.bind(this,this.updateDisplay)),n.ready(u.bind(this,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",u.bind(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e<t.length;e++){var o=t[e];this.player_.addRemoteTextTrack(o)}}}))}return r(e,t),e.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"})},e.prototype.clearDisplay=function(){"function"==typeof c["default"].WebVTT&&c["default"].WebVTT.processCues(c["default"],[],this.el_)},e.prototype.updateDisplay=function(){var t=this.player_.textTracks();if(this.clearDisplay(),t)for(var e=0;e<t.length;e++){var n=t[e];"showing"===n.mode&&this.updateForTrack(n)}},e.prototype.updateForTrack=function(t){if("function"==typeof c["default"].WebVTT&&t.activeCues){for(var e=this.player_.textTrackSettings.getValues(),n=[],o=0;o<t.activeCues.length;o++)n.push(t.activeCues[o]);c["default"].WebVTT.processCues(c["default"],t.activeCues,this.el_);for(var i=n.length;i--;){var r=n[i];if(r){var l=r.displayState;if(e.color&&(l.firstChild.style.color=e.color),e.textOpacity&&a(l.firstChild,"color",s(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(l.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&a(l.firstChild,"backgroundColor",s(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?a(l,"backgroundColor",s(e.windowColor,e.windowOpacity)):l.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?l.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+h:"raised"===e.edgeStyle?l.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+h:"depressed"===e.edgeStyle?l.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+h:"uniform"===e.edgeStyle&&(l.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+h)),e.fontPercent&&1!==e.fontPercent){var u=c["default"].parseFloat(l.style.fontSize);l.style.fontSize=u*e.fontPercent+"px",l.style.height="auto",l.style.top="auto",l.style.bottom="2px"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?l.firstChild.style.fontVariant="small-caps":l.firstChild.style.fontFamily=p[e.fontFamily])}}}},e}(l["default"]);l["default"].registerComponent("TextTrackDisplay",f),n["default"]=f,e.exports=n["default"]},{"../component":67,"../menu/menu-button.js":104,"../menu/menu-item.js":105,"../menu/menu.js":106,"../utils/fn.js":134,"global/document":1,"global/window":2}],124:[function(t,e,n){"use strict";n.__esModule=!0;var o={disabled:"disabled",hidden:"hidden",showing:"showing"},i={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"};n.TextTrackMode=o,n.TextTrackKind=i},{}],125:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,n){return t[n]&&(e[n]=t[n]),e},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},i=function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=o(t.track);return t.src&&(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return-1===n.indexOf(t)}).map(o))},r=function(t,e){return t.forEach(function(t){var n=e.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach(function(t){return n.addCue(t)})}),e.textTracks()};n["default"]={textTracksToJson:i,jsonToTextTracks:r,trackToJson_:o},e.exports=n["default"]},{}],126:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("../event-target")),l=o(t("../utils/fn.js")),u=o(t("../utils/browser.js")),c=i(t("global/document")),h=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];r(this,e),t.call(this);var o=this;if(u.IS_IE8){o=c["default"].createElement("custom");for(var i in e.prototype)"constructor"!==i&&(o[i]=e.prototype[i])}o.tracks_=[],Object.defineProperty(o,"length",{get:function(){return this.tracks_.length}});for(var s=0;s<n.length;s++)o.addTrack_(n[s]);return u.IS_IE8?o:void 0}return s(e,t),e.prototype.addTrack_=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),t.addEventListener("modechange",l.bind(this,function(){this.trigger("change")})),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},e.prototype.removeTrack_=function(t){for(var e=void 0,n=0,o=this.length;o>n;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,n=0,o=this.length;o>n;n++){var i=this[n];if(i.id===t){e=i;break}}return e},e}(a["default"]);h.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var p in h.prototype.allowedEvents_)h.prototype["on"+p]=null;n["default"]=h,e.exports=n["default"]},{"../event-target":99,"../utils/browser.js":129,"../utils/fn.js":134,"global/document":1}],127:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=void 0;return t.selectedOptions?e=t.selectedOptions[0]:t.options&&(e=t.options[t.options.selectedIndex]),e.value}function l(t,e){if(e){var n=void 0;for(n=0;n<t.options.length&&t.options[n].value!==e;n++);t.selectedIndex=n}}n.__esModule=!0;var u=i(t("../component")),c=o(t("../utils/events.js")),h=o(t("../utils/fn.js")),p=i(t("../utils/log.js")),f=i(t("safe-json-parse/tuple")),d=i(t("global/window")),v=function(t){function e(n,o){r(this,e),t.call(this,n,o),this.hide(),void 0===o.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),c.on(this.$(".vjs-done-button"),"click",h.bind(this,function(){this.saveSettings(),this.hide()})),c.on(this.$(".vjs-default-button"),"click",h.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0,this.$(".vjs-bg-color > select").selectedIndex=0,this.$(".window-color > select").selectedIndex=0,this.$(".vjs-text-opacity > select").selectedIndex=0,this.$(".vjs-bg-opacity > select").selectedIndex=0,this.$(".vjs-window-opacity > select").selectedIndex=0,this.$(".vjs-edge-style select").selectedIndex=0,this.$(".vjs-font-family select").selectedIndex=0,this.$(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),c.on(this.$(".vjs-fg-color > select"),"change",h.bind(this,this.updateDisplay)),c.on(this.$(".vjs-bg-color > select"),"change",h.bind(this,this.updateDisplay)),c.on(this.$(".window-color > select"),"change",h.bind(this,this.updateDisplay)),c.on(this.$(".vjs-text-opacity > select"),"change",h.bind(this,this.updateDisplay)),c.on(this.$(".vjs-bg-opacity > select"),"change",h.bind(this,this.updateDisplay)),c.on(this.$(".vjs-window-opacity > select"),"change",h.bind(this,this.updateDisplay)),c.on(this.$(".vjs-font-percent select"),"change",h.bind(this,this.updateDisplay)),c.on(this.$(".vjs-edge-style select"),"change",h.bind(this,this.updateDisplay)),c.on(this.$(".vjs-font-family select"),"change",h.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:'<div class="vjs-tracksettings">\n      <div class="vjs-tracksettings-colors">\n        <div class="vjs-fg-color vjs-tracksetting">\n            <label class="vjs-label">Foreground</label>\n            <select>\n              <option value="">---</option>\n              <option value="#FFF">White</option>\n              <option value="#000">Black</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>\n            <span class="vjs-text-opacity vjs-opacity">\n              <select>\n                <option value="">---</option>\n                <option value="1">Opaque</option>\n                <option value="0.5">Semi-Opaque</option>\n              </select>\n            </span>\n        </div> <!-- vjs-fg-color -->\n        <div class="vjs-bg-color vjs-tracksetting">\n            <label class="vjs-label">Background</label>\n            <select>\n              <option value="">---</option>\n              <option value="#FFF">White</option>\n              <option value="#000">Black</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>\n            <span class="vjs-bg-opacity vjs-opacity">\n                <select>\n                  <option value="">---</option>\n                  <option value="1">Opaque</option>\n                  <option value="0.5">Semi-Transparent</option>\n                  <option value="0">Transparent</option>\n                </select>\n            </span>\n        </div> <!-- vjs-bg-color -->\n        <div class="window-color vjs-tracksetting">\n            <label class="vjs-label">Window</label>\n            <select>\n              <option value="">---</option>\n              <option value="#FFF">White</option>\n              <option value="#000">Black</option>\n              <option value="#F00">Red</option>\n              <option value="#0F0">Green</option>\n              <option value="#00F">Blue</option>\n              <option value="#FF0">Yellow</option>\n              <option value="#F0F">Magenta</option>\n              <option value="#0FF">Cyan</option>\n            </select>\n            <span class="vjs-window-opacity vjs-opacity">\n                <select>\n                  <option value="">---</option>\n                  <option value="1">Opaque</option>\n                  <option value="0.5">Semi-Transparent</option>\n                  <option value="0">Transparent</option>\n                </select>\n            </span>\n        </div> <!-- vjs-window-color -->\n      </div> <!-- vjs-tracksettings -->\n      <div class="vjs-tracksettings-font">\n        <div class="vjs-font-percent vjs-tracksetting">\n          <label class="vjs-label">Font Size</label>\n          <select>\n            <option value="0.50">50%</option>\n            <option value="0.75">75%</option>\n            <option value="1.00" selected>100%</option>\n            <option value="1.25">125%</option>\n            <option value="1.50">150%</option>\n            <option value="1.75">175%</option>\n            <option value="2.00">200%</option>\n            <option value="3.00">300%</option>\n            <option value="4.00">400%</option>\n          </select>\n        </div> <!-- vjs-font-percent -->\n        <div class="vjs-edge-style vjs-tracksetting">\n          <label class="vjs-label">Text Edge Style</label>\n          <select>\n            <option value="none">None</option>\n            <option value="raised">Raised</option>\n            <option value="depressed">Depressed</option>\n            <option value="uniform">Uniform</option>\n            <option value="dropshadow">Dropshadow</option>\n          </select>\n        </div> <!-- vjs-edge-style -->\n        <div class="vjs-font-family vjs-tracksetting">\n          <label class="vjs-label">Font Family</label>\n          <select>\n            <option value="">Default</option>\n            <option value="monospaceSerif">Monospace Serif</option>\n            <option value="proportionalSerif">Proportional Serif</option>\n            <option value="monospaceSansSerif">Monospace Sans-Serif</option>\n            <option value="proportionalSansSerif">Proportional Sans-Serif</option>\n            <option value="casual">Casual</option>\n            <option value="script">Script</option>\n            <option value="small-caps">Small Caps</option>\n          </select>\n        </div> <!-- vjs-font-family -->\n      </div>\n    </div>\n    <div class="vjs-tracksettings-controls">\n      <button class="vjs-default-button">Defaults</button>\n      <button class="vjs-done-button">Done</button>\n    </div>'})
},e.prototype.getValues=function(){var t=a(this.$(".vjs-edge-style select")),e=a(this.$(".vjs-font-family select")),n=a(this.$(".vjs-fg-color > select")),o=a(this.$(".vjs-text-opacity > select")),i=a(this.$(".vjs-bg-color > select")),r=a(this.$(".vjs-bg-opacity > select")),s=a(this.$(".window-color > select")),l={backgroundOpacity:r,textOpacity:o,windowOpacity:a(this.$(".vjs-window-opacity > select")),edgeStyle:t,fontFamily:e,color:n,backgroundColor:i,windowColor:s,fontPercent:d["default"].parseFloat(a(this.$(".vjs-font-percent > select")))};for(var u in l)(""===l[u]||"none"===l[u]||"fontPercent"===u&&1===l[u])&&delete l[u];return l},e.prototype.setValues=function(t){l(this.$(".vjs-edge-style select"),t.edgeStyle),l(this.$(".vjs-font-family select"),t.fontFamily),l(this.$(".vjs-fg-color > select"),t.color),l(this.$(".vjs-text-opacity > select"),t.textOpacity),l(this.$(".vjs-bg-color > select"),t.backgroundColor),l(this.$(".vjs-bg-opacity > select"),t.backgroundOpacity),l(this.$(".window-color > select"),t.windowColor),l(this.$(".vjs-window-opacity > select"),t.windowOpacity);var e=t.fontPercent;e&&(e=e.toFixed(2)),l(this.$(".vjs-font-percent > select"),e)},e.prototype.restoreSettings=function(){var t=void 0,e=void 0;try{var n=f["default"](d["default"].localStorage.getItem("vjs-text-track-settings"));t=n[0],e=n[1],t&&p["default"].error(t)}catch(t){p["default"].warn(t)}e&&this.setValues(e)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.getOwnPropertyNames(t).length>0?d["default"].localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):d["default"].localStorage.removeItem("vjs-text-track-settings")}catch(t){p["default"].warn(t)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},e}(u["default"]);u["default"].registerComponent("TextTrackSettings",v),n["default"]=v,e.exports=n["default"]},{"../component":67,"../utils/events.js":133,"../utils/fn.js":134,"../utils/log.js":137,"global/window":2,"safe-json-parse/tuple":54}],128:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var a=i(t("./text-track-cue-list")),l=o(t("../utils/fn.js")),u=o(t("../utils/guid.js")),c=o(t("../utils/browser.js")),h=o(t("./text-track-enums")),p=i(t("../utils/log.js")),f=i(t("../event-target")),d=i(t("global/document")),v=i(t("global/window")),g=t("../utils/url.js"),m=i(t("xhr")),y=function(t,e){var n=new v["default"].WebVTT.Parser(v["default"],v["default"].vttjs,v["default"].WebVTT.StringDecoder());n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){p["default"].error(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),n.flush()},b=function(t,e){var n={uri:t},o=g.isCrossOrigin(t);o&&(n.cors=o),m["default"](n,l.bind(this,function(t,n,o){return t?p["default"].error(t,n):(e.loaded_=!0,void("function"!=typeof v["default"].WebVTT?e.tech_&&function(){var t=function(){return y(o,e)};e.tech_.on("vttjsloaded",t),e.tech_.on("vttjserror",function(){p["default"].error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",t)})}():y(o,e)))}))},A=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(r(this,e),t.call(this),!n.tech)throw new Error("A tech was not provided.");var o=this;if(c.IS_IE8){o=d["default"].createElement("custom");for(var i in e.prototype)"constructor"!==i&&(o[i]=e.prototype[i])}o.tech_=n.tech;var s=h.TextTrackMode[n.mode]||"disabled",p=h.TextTrackKind[n.kind]||"subtitles",f=n.label||"",v=n.language||n.srclang||"",g=n.id||"vjs_text_track_"+u.newGUID();"metadata"!==p&&"chapters"!==p||(s="hidden"),o.cues_=[],o.activeCues_=[];var m=new a["default"](o.cues_),y=new a["default"](o.activeCues_),A=!1,j=l.bind(o,function(){this.activeCues,A&&(this.trigger("cuechange"),A=!1)});return"disabled"!==s&&o.tech_.on("timeupdate",j),Object.defineProperty(o,"kind",{get:function(){return p},set:function(){}}),Object.defineProperty(o,"label",{get:function(){return f},set:function(){}}),Object.defineProperty(o,"language",{get:function(){return v},set:function(){}}),Object.defineProperty(o,"id",{get:function(){return g},set:function(){}}),Object.defineProperty(o,"mode",{get:function(){return s},set:function(t){h.TextTrackMode[t]&&("showing"===(s=t)&&this.tech_.on("timeupdate",j),this.trigger("modechange"))}}),Object.defineProperty(o,"cues",{get:function(){return this.loaded_?m:null},set:function(){}}),Object.defineProperty(o,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return y;for(var t=this.tech_.currentTime(),e=[],n=0,o=this.cues.length;o>n;n++){var i=this.cues[n];i.startTime<=t&&i.endTime>=t?e.push(i):i.startTime===i.endTime&&i.startTime<=t&&i.startTime+.5>=t&&e.push(i)}if(A=!1,e.length!==this.activeCues_.length)A=!0;else for(n=0;n<e.length;n++)-1===this.activeCues_.indexOf(e[n])&&(A=!0);return this.activeCues_=e,y.setCues_(this.activeCues_),y},set:function(){}}),n.src?(o.src=n.src,b(n.src,o)):o.loaded_=!0,c.IS_IE8?o:void 0}return s(e,t),e.prototype.addCue=function(t){var e=this.tech_.textTracks();if(e)for(var n=0;n<e.length;n++)e[n]!==this&&e[n].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},e.prototype.removeCue=function(t){for(var e=!1,n=0,o=this.cues_.length;o>n;n++)this.cues_[n]===t&&(this.cues_.splice(n,1),e=!0);e&&this.cues.setCues_(this.cues_)},e}(f["default"]);A.prototype.allowedEvents_={cuechange:"cuechange"},n["default"]=A,e.exports=n["default"]},{"../event-target":99,"../utils/browser.js":129,"../utils/fn.js":134,"../utils/guid.js":136,"../utils/log.js":137,"../utils/url.js":142,"./text-track-cue-list":122,"./text-track-enums":124,"global/document":1,"global/window":2,xhr:56}],129:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var i=o(t("global/document")),r=o(t("global/window")),s=r["default"].navigator.userAgent,a=/AppleWebKit\/([\d.]+)/i.exec(s),l=a?parseFloat(a.pop()):null,u=/iPad/i.test(s);n.IS_IPAD=u;var c=/iPhone/i.test(s)&&!u;n.IS_IPHONE=c;var h=/iPod/i.test(s);n.IS_IPOD=h;var p=c||u||h;n.IS_IOS=p;var f=function(){var t=s.match(/OS (\d+)_/i);return t&&t[1]?t[1]:void 0}();n.IOS_VERSION=f;var d=/Android/i.test(s);n.IS_ANDROID=d;var v=function(){var t,e,n=s.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);return n?(t=n[1]&&parseFloat(n[1]),e=n[2]&&parseFloat(n[2]),t&&e?parseFloat(n[1]+"."+n[2]):t||null):null}();n.ANDROID_VERSION=v;var g=d&&/webkit/i.test(s)&&2.3>v;n.IS_OLD_ANDROID=g;var m=d&&5>v&&537>l;n.IS_NATIVE_ANDROID=m;var y=/Firefox/i.test(s);n.IS_FIREFOX=y;var b=/Chrome/i.test(s);n.IS_CHROME=b;var A=/MSIE\s8\.0/.test(s);n.IS_IE8=A;var j=!!("ontouchstart"in r["default"]||r["default"].DocumentTouch&&i["default"]instanceof r["default"].DocumentTouch);n.TOUCH_ENABLED=j;var w="backgroundSize"in i["default"].createElement("video").style;n.BACKGROUND_SIZE_SUPPORTED=w},{"global/document":1,"global/window":2}],130:[function(t,e,n){"use strict";function o(t,e){var n,o,r=0;if(!e)return 0;t&&t.length||(t=i.createTimeRange(0,0));for(var s=0;s<t.length;s++)n=t.start(s),(o=t.end(s))>e&&(o=e),r+=o-n;return r/e}n.__esModule=!0,n.bufferedPercent=o;var i=t("./time-ranges.js")},{"./time-ranges.js":140}],131:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){return t&&t.__esModule?t:{"default":t}}(t("./log.js")),i={get:function(t,e){return t[e]},set:function(t,e,n){return t[e]=n,!0}};n["default"]=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if("function"==typeof Proxy){var n=function(){var n={};return Object.keys(e).forEach(function(t){i.hasOwnProperty(t)&&(n[t]=function(){return o["default"].warn(e[t]),i[t].apply(this,arguments)})}),{v:new Proxy(t,n)}}();if("object"==typeof n)return n.v}return t},e.exports=n["default"]},{"./log.js":137}],132:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t){return"string"==typeof t&&/\S/.test(t)}function r(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function s(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}function a(t){return function(e,n){return i(e)?(i(n)&&(n=M["default"].querySelector(n)),(x(n)?n:M["default"])[t](e)):M["default"][t](null)}}function l(t){return 0===t.indexOf("#")&&(t=t.slice(1)),M["default"].getElementById(t)}function u(){var t=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=M["default"].createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(F["default"].warn(N["default"](P,t,n)),o.setAttribute(t,n)):o[t]=n}),Object.getOwnPropertyNames(n).forEach(function(t){n[t],o.setAttribute(t,n[t])}),o}function c(t,e){void 0===t.textContent?t.innerText=e:t.textContent=e}function h(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function p(t){var e=t[R];return e||(e=t[R]=B.newGUID()),D[e]||(D[e]={}),D[e]}function f(t){var e;return t&&(e=t[R]),!!e&&!!Object.getOwnPropertyNames(D[e]).length}function d(t){var e;if(t&&(e=t[R]),e){delete D[e];try{delete t[R]}catch(e){t.removeAttribute?t.removeAttribute(R):t[R]=null}}}function v(t,e){return t.classList?t.classList.contains(e):(r(e),s(e).test(t.className))}function g(t,e){return t.classList?t.classList.add(e):v(t,e)||(t.className=(t.className+" "+e).trim()),t}function m(t,e){return t.classList?t.classList.remove(e):(r(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function y(t,e,n){var o=v(t,e);return"function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!o),n!==o?(n?g(t,e):m(t,e),t):void 0}function b(t,e){Object.getOwnPropertyNames(e).forEach(function(n){var o=e[n];null===o||void 0===o||!1===o?t.removeAttribute(n):t.setAttribute(n,!0===o?"":o)})}function A(t){var e,n,o,i,r;if(e={},n=",autoplay,controls,loop,muted,default,",t&&t.attributes&&t.attributes.length>0)for(var s=(o=t.attributes).length-1;s>=0;s--)i=o[s].name,r=o[s].value,"boolean"!=typeof t[i]&&-1===n.indexOf(","+i+",")||(r=null!==r),e[i]=r;return e}function j(){M["default"].body.focus(),M["default"].onselectstart=function(){return!1}}function w(){M["default"].onselectstart=function(){return!0}}function _(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=M["default"].documentElement,o=M["default"].body,i=n.clientLeft||o.clientLeft||0,r=I["default"].pageXOffset||o.scrollLeft,s=e.left+r-i,a=n.clientTop||o.clientTop||0,l=I["default"].pageYOffset||o.scrollTop,u=e.top+l-a;return{left:Math.round(s),top:Math.round(u)}}function k(t,e){var n={},o=_(t),i=t.offsetWidth,r=t.offsetHeight,s=o.top,a=o.left,l=e.pageY,u=e.pageX;return e.changedTouches&&(u=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(s-l+r)/r)),n.x=Math.max(0,Math.min(1,(u-a)/i)),n}function x(t){return!!t&&"object"==typeof t&&1===t.nodeType}function C(t){return!!t&&"object"==typeof t&&3===t.nodeType}function T(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function E(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),x(t)||C(t)?t:"string"==typeof t&&/\S/.test(t)?M["default"].createTextNode(t):void 0}).filter(function(t){return t})}function S(t,e){return E(e).forEach(function(e){return t.appendChild(e)}),t}function O(t,e){return S(T(t),e)}n.__esModule=!0,n.getEl=l,n.createEl=u,n.textContent=c,n.insertElFirst=h,n.getElData=p,n.hasElData=f,n.removeElData=d,n.hasElClass=v,n.addElClass=g,n.removeElClass=m,n.toggleElClass=y,n.setElAttributes=b,n.getElAttributes=A,n.blockTextSelection=j,n.unblockTextSelection=w,n.findElPosition=_,n.getPointerPosition=k,n.isEl=x,n.isTextNode=C,n.emptyEl=T,n.normalizeContent=E,n.appendContent=S,n.insertContent=O;var P=function(t,e){return t.raw=e,t}(["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n                has been deprecated. Use the third argument instead.\n                createEl(type, properties, attributes). Attempting to set "," to ","."]),M=o(t("global/document")),I=o(t("global/window")),B=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}(t("./guid.js")),F=o(t("./log.js")),N=o(t("tsml")),D={},R="vdata"+(new Date).getTime(),L=a("querySelector");n.$=L;var H=a("querySelectorAll");n.$$=H},{"./guid.js":136,"./log.js":137,"global/document":1,"global/window":2,tsml:55}],133:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function r(t,e,n){if(Array.isArray(e))return h(r,t,e,n);var o=p.getElData(t);o.handlers||(o.handlers={}),o.handlers[e]||(o.handlers[e]=[]),n.guid||(n.guid=f.newGUID()),o.handlers[e].push(n),o.dispatcher||(o.disabled=!1,o.dispatcher=function(e,n){if(!o.disabled){e=u(e);var i=o.handlers[e.type];if(i)for(var r=i.slice(0),s=0,a=r.length;a>s&&!e.isImmediatePropagationStopped();s++)r[s].call(t,e,n)}}),1===o.handlers[e].length&&(t.addEventListener?t.addEventListener(e,o.dispatcher,!1):t.attachEvent&&t.attachEvent("on"+e,o.dispatcher))}function s(t,e,n){if(p.hasElData(t)){var o=p.getElData(t);if(o.handlers){if(Array.isArray(e))return h(s,t,e,n);var i=function(e){o.handlers[e]=[],c(t,e)};if(e){var r=o.handlers[e];if(r){if(!n)return void i(e);if(n.guid)for(var a=0;a<r.length;a++)r[a].guid===n.guid&&r.splice(a--,1);c(t,e)}}else for(var l in o.handlers)i(l)}}}function a(t,e,n){var o,i=p.hasElData(t)?p.getElData(t):{};if(t&&(o=t.parentNode||t.ownerDocument),"string"==typeof e&&(e={type:e,target:t}),e=u(e),i.dispatcher&&i.dispatcher.call(t,e,n),o&&!e.isPropagationStopped()&&!0===e.bubbles)a.call(null,o,e,n);else if(!o&&!e.defaultPrevented){var r=p.getElData(e.target);e.target[e.type]&&(r.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),r.disabled=!1)}return!e.defaultPrevented}function l(t,e,n){if(Array.isArray(e))return h(l,t,e,n);var o=function i(){s(t,e,i),n.apply(this,arguments)};o.guid=n.guid=n.guid||f.newGUID(),r(t,e,o)}function u(t){function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped){var o=t||d["default"].event;t={};for(var i in o)"layerX"!==i&&"layerY"!==i&&"keyLocation"!==i&&"webkitMovementX"!==i&&"webkitMovementY"!==i&&("returnValue"===i&&o.preventDefault||(t[i]=o[i]));if(t.target||(t.target=t.srcElement||v["default"]),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){o.preventDefault&&o.preventDefault(),t.returnValue=!1,o.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){o.stopPropagation&&o.stopPropagation(),t.cancelBubble=!0,o.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){o.stopImmediatePropagation&&o.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!=t.clientX){var r=v["default"].documentElement,s=v["default"].body;t.pageX=t.clientX+(r&&r.scrollLeft||s&&s.scrollLeft||0)-(r&&r.clientLeft||s&&s.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||s&&s.scrollTop||0)-(r&&r.clientTop||s&&s.clientTop||0)}t.which=t.charCode||t.keyCode,null!=t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}function c(t,e){var n=p.getElData(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&p.removeElData(t)}function h(t,e,n,o){n.forEach(function(n){t(e,n,o)})}n.__esModule=!0,n.on=r,n.off=s,n.trigger=a,n.one=l,n.fixEvent=u;var p=i(t("./dom.js")),f=i(t("./guid.js")),d=o(t("global/window")),v=o(t("global/document"))},{"./dom.js":132,"./guid.js":136,"global/document":1,"global/window":2}],134:[function(t,e,n){"use strict";n.__esModule=!0;var o=t("./guid.js"),i=function(t,e,n){e.guid||(e.guid=o.newGUID());var i=function(){return e.apply(t,arguments)};return i.guid=n?n+"_"+e.guid:e.guid,i};n.bind=i},{"./guid.js":136}],135:[function(t,e,n){"use strict";function o(t){var e=arguments.length<=1||void 0===arguments[1]?t:arguments[1];return function(){t=0>t?0:t;var n=Math.floor(t%60),o=Math.floor(t/60%60),i=Math.floor(t/3600),r=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(i=o=n="-"),i=i>0||s>0?i+":":"",o=((i||r>=10)&&10>o?"0"+o:o)+":",n=10>n?"0"+n:n,i+o+n}()}n.__esModule=!0,n["default"]=o,e.exports=n["default"]},{}],136:[function(t,e,n){"use strict";function o(){return i++}n.__esModule=!0,n.newGUID=o;var i=1},{}],137:[function(t,e,n){"use strict";function o(t,e){var n=Array.prototype.slice.call(e),o=function(){},s=i["default"].console||{log:o,warn:o,error:o};t?n.unshift(t.toUpperCase()+":"):t="log",r.history.push(n),n.unshift("VIDEOJS:"),s[t].apply?s[t].apply(s,n):s[t](n.join(" "))}n.__esModule=!0;var i=function(t){return t&&t.__esModule?t:{"default":t}}(t("global/window")),r=function(){o(null,arguments)};r.history=[],r.error=function(){o("error",arguments)},r.warn=function(){o("warn",arguments)},n["default"]=r,e.exports=n["default"]},{"global/window":2}],138:[function(t,e,n){"use strict";function o(t){return!!t&&"object"==typeof t&&"[object Object]"===t.toString()&&t.constructor===Object}function i(){var t=Array.prototype.slice.call(arguments);return t.unshift({}),t.push(s),r["default"].apply(null,t),t[0]}n.__esModule=!0,n["default"]=i;var r=function(t){return t&&t.__esModule?t:{"default":t}}(t("lodash-compat/object/merge")),s=function(t,e){return o(e)?o(t)?void 0:i(e):e};e.exports=n["default"]},{"lodash-compat/object/merge":40}],139:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){return t&&t.__esModule?t:{"default":t}}(t("global/document")),i=function(t){var e=o["default"].createElement("style");return e.className=t,e};n.createStyleElement=i;var r=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e};n.setTextContent=r},{"global/document":1}],140:[function(t,e,n){"use strict";function o(t,e){return Array.isArray(t)?i(t):void 0===t||void 0===e?i():i([[t,e]])}function i(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:r.bind(null,"start",0,t),end:r.bind(null,"end",1,t)}}function r(t,e,n,o){return void 0===o&&(a["default"].warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),o=0),s(t,o,n.length-1),n[o][e]}function s(t,e,n){if(0>e||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is greater than or equal to the maximum bound ("+n+").")}n.__esModule=!0,n.createTimeRanges=o;var a=function(t){return t&&t.__esModule?t:{"default":t}}(t("./log.js"));n.createTimeRange=o},{"./log.js":137}],141:[function(t,e,n){"use strict";function o(t){return t.charAt(0).toUpperCase()+t.slice(1)}n.__esModule=!0,n["default"]=o,e.exports=n["default"]},{}],142:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var i=o(t("global/document")),r=o(t("global/window")),s=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=i["default"].createElement("a");n.href=t;var o=""===n.host&&"file:"!==n.protocol,r=void 0;o&&(r=i["default"].createElement("div"),r.innerHTML='<a href="'+t+'"></a>',n=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),i["default"].body.appendChild(r));for(var s={},a=0;a<e.length;a++)s[e[a]]=n[e[a]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),o&&i["default"].body.removeChild(r),s};n.parseUrl=s;var a=function(t){if(!t.match(/^https?:\/\//)){var e=i["default"].createElement("div");e.innerHTML='<a href="'+t+'">x</a>',t=e.firstChild.href}return t};n.getAbsoluteURL=a;var l=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""};n.getFileExtension=l;var u=function(t){var e=r["default"].location,n=s(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host};n.isCrossOrigin=u},{"global/document":1,"global/window":2}],143:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var r=i(t("global/document")),s=o(t("./setup")),a=o(t("./utils/stylesheet.js")),l=i(t("./component")),u=i(t("./event-target")),c=o(t("./utils/events.js")),h=i(t("./player")),p=i(t("./plugins.js")),f=i(t("../../src/js/utils/merge-options.js")),d=o(t("./utils/fn.js")),v=i(t("./tracks/text-track.js")),g=(i(t("object.assign")),t("./utils/time-ranges.js")),m=i(t("./utils/format-time.js")),y=i(t("./utils/log.js")),b=o(t("./utils/dom.js")),A=o(t("./utils/browser.js")),j=o(t("./utils/url.js")),w=i(t("./extend.js")),_=i(t("lodash-compat/object/merge")),k=i(t("./utils/create-deprecation-proxy.js")),x=i(t("xhr")),C=i(t("./tech/tech.js"));i((i(t("./tech/html5.js")),t("./tech/flash.js"))),"undefined"==typeof HTMLVideoElement&&(r["default"].createElement("video"),r["default"].createElement("audio"),r["default"].createElement("track"));var T=function O(t,e,n){var o=void 0;if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),O.getPlayers()[t])return e&&y["default"].warn('Player "'+t+'" is already initialised. Options will not be applied.'),n&&O.getPlayers()[t].ready(n),O.getPlayers()[t];o=b.getEl(t)}else o=t;if(!o||!o.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return o.player||h["default"].players[o.playerId]||new h["default"](o,e,n)},E=b.$(".vjs-styles-defaults");if(!E){E=a.createStyleElement("vjs-styles-defaults");var S=b.$("head");S.insertBefore(E,S.firstChild),a.setTextContent(E,"\n    .video-js {\n      width: 300px;\n      height: 150px;\n    }\n\n    .vjs-fluid {\n      padding-top: 56.25%\n    }\n  ")}s.autoSetupTimeout(1,T),T.VERSION="5.8.8",T.options=h["default"].prototype.options_,T.getPlayers=function(){return h["default"].players},T.players=k["default"](h["default"].players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),T.getComponent=l["default"].getComponent,T.registerComponent=function(t,e){C["default"].isTech(e)&&y["default"].warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),l["default"].registerComponent.call(l["default"],t,e)},T.getTech=C["default"].getTech,T.registerTech=C["default"].registerTech,T.browser=A,T.TOUCH_ENABLED=A.TOUCH_ENABLED,T.extend=w["default"],T.mergeOptions=f["default"],T.bind=d.bind,T.plugin=p["default"],T.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),_["default"](T.options.languages,(n={},n[t]=e,n))[t]},T.log=y["default"],T.createTimeRange=T.createTimeRanges=g.createTimeRanges,T.formatTime=m["default"],T.parseUrl=j.parseUrl,T.isCrossOrigin=j.isCrossOrigin,T.EventTarget=u["default"],T.on=c.on,T.one=c.one,T.off=c.off,T.trigger=c.trigger,T.xhr=x["default"],T.TextTrack=v["default"],T.isEl=b.isEl,T.isTextNode=b.isTextNode,T.createEl=b.createEl,T.hasClass=b.hasElClass,T.addClass=b.addElClass,T.removeClass=b.removeElClass,T.toggleClass=b.toggleElClass,T.setAttributes=b.setElAttributes,T.getAttributes=b.getElAttributes,T.emptyEl=b.emptyEl,T.appendContent=b.appendContent,T.insertContent=b.insertContent,"object"==typeof n&&"object"==typeof e&&(e.exports=T),n["default"]=T,e.exports=n["default"]},{"../../src/js/utils/merge-options.js":138,"./component":67,"./event-target":99,"./extend.js":100,"./player":108,"./plugins.js":109,"./setup":113,"./tech/flash.js":116,"./tech/html5.js":117,"./tech/tech.js":119,"./tracks/text-track.js":128,"./utils/browser.js":129,"./utils/create-deprecation-proxy.js":131,"./utils/dom.js":132,"./utils/events.js":133,"./utils/fn.js":134,"./utils/format-time.js":135,"./utils/log.js":137,"./utils/stylesheet.js":139,"./utils/time-ranges.js":140,"./utils/url.js":142,"global/document":1,"lodash-compat/object/merge":40,"object.assign":45,xhr:56}]},{},[143])(143)}),function(t){var e=t.vttjs={},n=e.VTTCue,o=e.VTTRegion,i=t.VTTCue,r=t.VTTRegion;e.shim=function(){e.VTTCue=n,e.VTTRegion=o},e.restore=function(){e.VTTCue=i,e.VTTRegion=r}}(this),function(t,e){function n(t){return"string"==typeof t&&!!a[t.toLowerCase()]&&t.toLowerCase()}function o(t){return"string"==typeof t&&!!l[t.toLowerCase()]&&t.toLowerCase()}function i(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}function r(t,e,r){var a=this,l=/MSIE\s8\.0/.test(navigator.userAgent),u={};l?a=document.createElement("custom"):u.enumerable=!0,a.hasBeenReset=!1;var c="",h=!1,p=t,f=e,d=r,v=null,g="",m=!0,y="auto",b="start",A=50,j="middle",w=50,_="middle";return Object.defineProperty(a,"id",i({},u,{get:function(){return c},set:function(t){c=""+t}})),Object.defineProperty(a,"pauseOnExit",i({},u,{get:function(){return h},set:function(t){h=!!t}})),Object.defineProperty(a,"startTime",i({},u,{get:function(){return p},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");p=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"endTime",i({},u,{get:function(){return f},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"text",i({},u,{get:function(){return d},set:function(t){d=""+t,this.hasBeenReset=!0}})),Object.defineProperty(a,"region",i({},u,{get:function(){return v},set:function(t){v=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"vertical",i({},u,{get:function(){return g},set:function(t){var e=n(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");g=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"snapToLines",i({},u,{get:function(){return m},set:function(t){m=!!t,this.hasBeenReset=!0}})),Object.defineProperty(a,"line",i({},u,{get:function(){return y},set:function(t){if("number"!=typeof t&&t!==s)throw new SyntaxError("An invalid number or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"lineAlign",i({},u,{get:function(){return b},set:function(t){var e=o(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"position",i({},u,{get:function(){return A},set:function(t){if(0>t||t>100)throw new Error("Position must be between 0 and 100.");A=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"positionAlign",i({},u,{get:function(){return j},set:function(t){var e=o(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");j=e,this.hasBeenReset=!0}})),Object.defineProperty(a,"size",i({},u,{get:function(){return w},set:function(t){if(0>t||t>100)throw new Error("Size must be between 0 and 100.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(a,"align",i({},u,{get:function(){return _},set:function(t){var e=o(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),a.displayState=void 0,l?a:void 0}var s="auto",a={"":!0,lr:!0,rl:!0},l={start:!0,middle:!0,end:!0,left:!0,right:!0};r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.VTTCue=t.VTTCue||r,e.VTTCue=r}(this,this.vttjs||{}),function(t,e){function n(t){return"string"==typeof t&&!!r[t.toLowerCase()]&&t.toLowerCase()}function o(t){return"number"==typeof t&&t>=0&&100>=t}function i(){var t=100,e=3,i=0,r=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!o(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(t){if(!o(t))throw new Error("RegionAnchorX must be between 0 and 100.");r=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!o(t))throw new Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!o(t))throw new Error("ViewportAnchorY must be between 0 and 100.");a=t}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(t){if(!o(t))throw new Error("ViewportAnchorX must be between 0 and 100.");s=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=n(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");l=e}}})}var r={"":!0,up:!0};t.VTTRegion=t.VTTRegion||i,e.VTTRegion=i}(this,this.vttjs||{}),function(t){function e(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function n(t){function e(t,e,n,o){return 3600*(0|t)+60*(0|e)+(0|n)+(0|o)/1e3}var n=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function o(){this.values=d(null)}function i(t,e,n,o){var i=o?t.split(o):[t];for(var r in i)if("string"==typeof i[r]){var s=i[r].split(n);2===s.length&&e(s[0],s[1])}}function r(t,r,s){function a(){var o=n(t);if(null===o)throw new e(e.Errors.BadTimeStamp,"Malformed timestamp: "+u);return t=t.replace(/^[^\sa-zA-Z-]+/,""),o}function l(){t=t.replace(/^\s+/,"")}var u=t;if(l(),r.startTime=a(),l(),"-->"!==t.substr(0,3))throw new e(e.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+u);t=t.substr(3),l(),r.endTime=a(),l(),function(t,e){var n=new o;i(t,function(t,e){switch(t){case"region":for(var o=s.length-1;o>=0;o--)if(s[o].id===e){n.set(t,s[o].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var i=e.split(","),r=i[0];n.integer(t,r),n.percent(t,r)&&n.set("snapToLines",!1),n.alt(t,r,["auto"]),2===i.length&&n.alt("lineAlign",i[1],["start","middle","end"]);break;case"position":i=e.split(","),n.percent(t,i[0]),2===i.length&&n.alt("positionAlign",i[1],["start","middle","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical",""),e.line=n.get("line","auto"),e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align","middle"),e.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,r)}function s(t,e){function o(t){return v[t]}for(var i,r=t.document.createElement("div"),s=r,a=[];null!==(i=function(){if(!e)return null;var t=e.match(/^([^<]*)(<[^>]+>?)?/);return function(t){return e=e.substr(t.length),t}(t[1]?t[1]:t[2])}());)if("<"!==i[0])s.appendChild(t.document.createTextNode(function(t){for(;c=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(c[0],o);return t}(i)));else{if("/"===i[1]){a.length&&a[a.length-1]===i.substr(2).replace(">","")&&(a.pop(),s=s.parentNode);continue}var l,u=n(i.substr(1,i.length-2));if(u){l=t.document.createProcessingInstruction("timestamp",u),s.appendChild(l);continue}var c=i.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!c)continue;if(!(l=function(e,n){var o=g[e];
if(!o)return null;var i=t.document.createElement(o);i.localName=o;var r=m[e];return r&&n&&(i[r]=n.trim()),i}(c[1],c[3])))continue;if(!function(t,e){return!y[e.localName]||y[e.localName]===t.localName}(s,l))continue;c[2]&&(l.className=c[2].substr(1).replace("."," ")),a.push(c[1]),s.appendChild(l),s=l}return r}function a(t){function e(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function n(t){if(!t||!t.length)return null;var o=t.pop(),i=o.textContent||o.innerText;if(i){var r=i.match(/^.*(\n|\r)/);return r?(t.length=0,r[0]):i}return"ruby"===o.tagName?n(t):o.childNodes?(e(t,o),n(t)):void 0}var o,i=[],r="";if(!t||!t.childNodes)return"ltr";for(e(i,t);r=n(i);)for(var s=0;s<r.length;s++){o=r.charCodeAt(s);for(var a=0;a<b.length;a++)if(b[a]===o)return"rtl"}return"ltr"}function l(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,o=0,i=0;i<n.length&&n[i]!==e;i++)"showing"===n[i].mode&&o++;return-1*++o}function u(){}function c(t,e,n){var o=/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",r="rgba(0, 0, 0, 0.8)";o&&(i="rgb(255, 255, 255)",r="rgb(0, 0, 0)"),u.call(this),this.cue=e,this.cueDiv=s(t,e.text);var l={color:i,backgroundColor:r,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};o||(l.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",l.unicodeBidi="plaintext"),this.applyStyles(l,this.cueDiv),this.div=t.document.createElement("div"),l={textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},o||(l.direction=a(this.cueDiv),l.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(l),this.div.appendChild(this.cueDiv);var c=0;switch(e.positionAlign){case"start":c=e.position;break;case"middle":c=e.position-e.size/2;break;case"end":c=e.position-e.size}this.applyStyles(""===e.vertical?{left:this.formatStyle(c,"%"),width:this.formatStyle(e.size,"%")}:{top:this.formatStyle(c,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function h(t){var e,n,o,i,r=/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){n=t.div.offsetHeight,o=t.div.offsetWidth,i=t.div.offsetTop;var s=(s=t.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();t=t.div.getBoundingClientRect(),e=s?Math.max(s[0]&&s[0].height||0,t.height/s.length):0}this.left=t.left,this.right=t.right,this.top=t.top||i,this.height=t.height||n,this.bottom=t.bottom||i+(t.height||n),this.width=t.width||o,this.lineHeight=void 0!==e?e:t.lineHeight,r&&!this.lineHeight&&(this.lineHeight=13)}function p(t,e,n,o){var i=new h(e),r=e.cue,s=l(r),a=[];if(r.snapToLines){var u;switch(r.vertical){case"":a=["+y","-y"],u="height";break;case"rl":a=["+x","-x"],u="width";break;case"lr":a=["-x","+x"],u="width"}var c=i.lineHeight,p=c*Math.round(s),f=n[u]+c,d=a[0];Math.abs(p)>f&&(p=0>p?-1:1,p*=Math.ceil(f/c)*c),0>s&&(p+=""===r.vertical?n.height:n.width,a=a.reverse()),i.move(d,p)}else{var v=i.lineHeight/n.height*100;switch(r.lineAlign){case"middle":s-=v/2;break;case"end":s-=v}switch(r.vertical){case"":e.applyStyles({top:e.formatStyle(s,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(s,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(s,"%")})}a=["+y","-x","+x","-y"],i=new h(e)}var g=function(t,e){for(var i,r=new h(t),s=1,a=0;a<e.length;a++){for(;t.overlapsOppositeAxis(n,e[a])||t.within(n)&&t.overlapsAny(o);)t.move(e[a]);if(t.within(n))return t;var l=t.intersectPercentage(n);s>l&&(i=new h(t),s=l),t=new h(r)}return i||r}(i,a);e.move(g.toCSSCompatValues(n))}function f(){}var d=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();e.prototype=d(Error.prototype),e.prototype.constructor=e,e.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var o=0;o<n.length;++o)if(e===n[o]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&100>=e)&&(this.set(t,e),!0)}};var v={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"\u200e","&rlm;":"\u200f","&nbsp;":"\xa0"},g={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},m={v:"title",lang:"lang"},y={rt:"ruby"},b=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];u.prototype.applyStyles=function(t,e){e=e||this.div;for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},u.prototype.formatStyle=function(t,e){return 0===t?0:t+e},c.prototype=d(u.prototype),c.prototype.constructor=c,h.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},h.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},h.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},h.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},h.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},h.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},h.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},h.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,o=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t,{left:t.left,right:t.right,top:t.top||o,height:t.height||e,bottom:t.bottom||o+(t.height||e),width:t.width||n}},f.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},f.convertCueToDOMTree=function(t,e){return t&&e?s(t,e):null},f.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var o=t.document.createElement("div");if(o.style.position="absolute",o.style.left="0",o.style.right="0",o.style.top="0",o.style.bottom="0",o.style.margin="1.5%",n.appendChild(o),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var i=[],r=h.getSimpleBoxPosition(o),s={font:Math.round(.05*r.height*100)/100+"px sans-serif"};!function(){for(var n,a,l=0;l<e.length;l++)a=e[l],n=new c(t,a,s),o.appendChild(n.div),p(t,n,r,i),a.displayState=n.div,i.push(h.getSimpleBoxPosition(n))}()}else for(var a=0;a<e.length;a++)o.appendChild(e[a].displayState)},f.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},f.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof e))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){function n(){for(var t=a.buffer,e=0;e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var n=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,a.buffer=t.substr(e),n}function s(t){var e=new o;if(i(t,function(t,n){switch(t){case"id":e.set(t,n);break;case"width":e.percent(t,n);break;case"lines":e.integer(t,n);break;case"regionanchor":case"viewportanchor":var i=n.split(",");if(2!==i.length)break;var r=new o;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;e.set(t+"X",r.get("x")),e.set(t+"Y",r.get("y"));break;case"scroll":e.alt(t,n,["up"])}},/=/,/\s/),e.has("id")){var n=new(a.vttjs.VTTRegion||a.window.VTTRegion);n.width=e.get("width",100),n.lines=e.get("lines",3),n.regionAnchorX=e.get("regionanchorX",0),n.regionAnchorY=e.get("regionanchorY",100),n.viewportAnchorX=e.get("viewportanchorX",0),n.viewportAnchorY=e.get("viewportanchorY",100),n.scroll=e.get("scroll",""),a.onregion&&a.onregion(n),a.regionList.push({id:e.get("id"),region:n})}}var a=this;t&&(a.buffer+=a.decoder.decode(t,{stream:!0}));try{var l;if("INITIAL"===a.state){if(!/\r\n|\n/.test(a.buffer))return this;var u=(l=n()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new e(e.Errors.BadSignature);a.state="HEADER"}for(var c=!1;a.buffer;){if(!/\r\n|\n/.test(a.buffer))return this;switch(c?c=!1:l=n(),a.state){case"HEADER":/:/.test(l)?function(t){i(t,function(t,e){switch(t){case"Region":s(e)}},/:/)}(l):l||(a.state="ID");continue;case"NOTE":l||(a.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(l)){a.state="NOTE";break}if(!l)continue;if(a.cue=new(a.vttjs.VTTCue||a.window.VTTCue)(0,0,""),a.state="CUE",-1===l.indexOf("-->")){a.cue.id=l;continue}case"CUE":try{r(l,a.cue,a.regionList)}catch(t){a.reportOrThrowError(t),a.cue=null,a.state="BADCUE";continue}a.state="CUETEXT";continue;case"CUETEXT":var h=-1!==l.indexOf("-->");if(!l||h&&(c=!0)){a.oncue&&a.oncue(a.cue),a.cue=null,a.state="ID";continue}a.cue.text&&(a.cue.text+="\n"),a.cue.text+=l;continue;case"BADCUE":l||(a.state="ID");continue}}}catch(t){a.reportOrThrowError(t),"CUETEXT"===a.state&&a.cue&&a.oncue&&a.oncue(a.cue),a.cue=null,a.state="INITIAL"===a.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new e(e.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.WebVTT=f}(this,this.vttjs),function(t,e){"function"==typeof define&&define.amd?define([],e.bind(this,t,t.videojs)):"undefined"!=typeof module&&module.exports?module.exports=e(t,t.videojs):e(t,t.videojs)}(window,function(t,e){"use strict";t.videojs_hotkeys={version:"0.2.17"};var n=function(n){function o(t){return 32===t.which||179===t.which}function i(t){return 37===t.which||177===t.which}function r(t){return 39===t.which||176===t.which}function s(t){return 38===t.which}function a(t){return 40===t.which}function l(t){return 77===t.which}function u(t){return 70===t.which}var c=this,h=c.el(),p=document,f={volumeStep:.1,seekStep:5,enableMute:!0,enableVolumeScroll:!0,enableFullscreen:!0,enableNumbers:!0,enableJogStyle:!1,alwaysCaptureHotkeys:!0,enableModifiersForNumbers:!0,playPauseKey:o,rewindKey:i,forwardKey:r,volumeUpKey:s,volumeDownKey:a,muteKey:l,fullscreenKey:u,customKeys:{}},d=e.mergeOptions||e.util.mergeOptions,v=(n=d(f,n||{})).volumeStep,g=n.seekStep,m=n.enableMute,y=n.enableVolumeScroll,b=n.enableFullscreen,A=n.enableNumbers,j=n.enableJogStyle,w=n.alwaysCaptureHotkeys,_=n.enableModifiersForNumbers;h.hasAttribute("tabIndex")||h.setAttribute("tabIndex","-1"),h.style.outline="none",w&&c.one("play",function(){h.focus()}),c.on("play",function(){var t=h.querySelector(".iframeblocker");t&&""===t.style.display&&(t.style.display="block",t.style.bottom="39px")});var k=function(t){var e,o=t.which,i=t.preventDefault;if(c.controls()){var r=p.activeElement;if(w||r==h||r==h.querySelector(".vjs-tech")||r==h.querySelector(".vjs-control-bar")||r==h.querySelector(".iframeblocker"))switch(T(t,c)){case 1:i(),w&&t.stopPropagation(),c.paused()?c.play():c.pause();break;case 2:i(),e=c.currentTime()-g,c.currentTime()<=g&&(e=0),c.currentTime(e);break;case 3:i(),c.currentTime(c.currentTime()+g);break;case 5:i(),j?(e=c.currentTime()-1,c.currentTime()<=1&&(e=0),c.currentTime(e)):c.volume(c.volume()-v);break;case 4:i(),j?c.currentTime(c.currentTime()+1):c.volume(c.volume()+v);break;case 6:m&&c.muted(!c.muted());break;case 7:b&&(c.isFullscreen()?c.exitFullscreen():c.requestFullscreen());break;default:if((o>47&&59>o||o>95&&106>o)&&(_||!(t.metaKey||t.ctrlKey||t.altKey))&&A){var s=48;o>95&&(s=96);var a=o-s;i(),c.currentTime(c.duration()*a*.1)}for(var l in n.customKeys){var u=n.customKeys[l];u&&u.key&&u.handler&&u.key(t)&&(i(),u.handler(c,n,t))}}}},x=function(t){if(c.controls()){var e=t.relatedTarget||t.toElement||p.activeElement;e!=h&&e!=h.querySelector(".vjs-tech")&&e!=h.querySelector(".iframeblocker")||b&&(c.isFullscreen()?c.exitFullscreen():c.requestFullscreen())}},C=function(e){if(c.controls()){var n=e.relatedTarget||e.toElement||p.activeElement;if((w||n==h||n==h.querySelector(".vjs-tech")||n==h.querySelector(".iframeblocker")||n==h.querySelector(".vjs-control-bar"))&&y){e=t.event||e;var o=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail));e.preventDefault(),1==o?c.volume(c.volume()+v):-1==o&&c.volume(c.volume()-v)}}},T=function(t,e){return n.playPauseKey(t,e)?1:n.rewindKey(t,e)?2:n.forwardKey(t,e)?3:n.volumeUpKey(t,e)?4:n.volumeDownKey(t,e)?5:n.muteKey(t,e)?6:n.fullscreenKey(t,e)?7:void 0};return c.on("keydown",k),c.on("dblclick",x),c.on("mousewheel",C),c.on("DOMMouseScroll",C),this};e.plugin("hotkeys",n)}),function(t,e){"function"==typeof define&&define.amd?define(["video.js"],function(n){return t.Youtube=e(n)}):"object"==typeof module&&module.exports?module.exports=t.Youtube=e(require("video.js")):t.Youtube=e(t.videojs)}(this,function(t){"use strict";function e(){if(!i.apiLoaded){var t=document.createElement("script");t.src="https://www.youtube.com/iframe_api";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e),i.apiLoaded=!0}}function n(){var t=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),e.appendChild(n)}var o=t.getComponent("Tech"),i=t.extend(o,{apiLoaded:!1,constructor:function(t,e){o.call(this,t,e),this.setPoster(t.poster),this.setSrc(this.options_.source,!0),setTimeout(function(){this.el_.parentNode.className+=" vjs-youtube",i.isApiReady?(this.setSrc(this.options_.source,!0),this.initYTPlayer()):i.apiReadyQueue.push(this)}.bind(this))},dispose:function(){this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile","")},createEl:function(){e(),n();var t=document.createElement("div");t.setAttribute("id",this.options_.techId),t.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute");var o=document.createElement("div");if(o.appendChild(t),!r&&!this.options_.ytControls){var i=document.createElement("div");i.setAttribute("class","vjs-iframe-blocker"),i.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),i.onclick=function(){this.pause()}.bind(this),o.appendChild(i)}return o},initYTPlayer:function(){var t={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};void 0!==this.options_.autohide&&(t.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(t.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(t.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(t.disablekb=this.options_.disablekb),void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.color&&(t.color=this.options_.color),t.controls?void 0!==this.options_.fs&&(t.fs=this.options_.fs):t.fs=0,void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.hl?t.hl=this.options_.hl:void 0!==this.options_.language&&(t.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(t.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?t.list=this.options_.list:this.url&&void 0!==this.url.listId&&(t.list=this.url.listId),void 0!==this.options_.listType&&(t.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(t.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(t.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(t.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(t.rel=this.options_.rel),void 0!==this.options_.showinfo&&(t.showinfo=this.options_.showinfo),void 0!==this.options_.start&&(t.start=this.options_.start),void 0!==this.options_.theme&&(t.theme=this.options_.theme),this.activeVideoId=this.url?this.url.videoId:null,this.activeList=t.list,this.ytPlayer=new YT.Player(this.options_.techId,{videoId:this.activeVideoId,playerVars:t,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onPlayerError.bind(this)}})},onPlayerReady:function(){this.playerReady_=!0,this.triggerReady(),this.playOnReady&&this.play()},onPlayerPlaybackQualityChange:function(){},onPlayerStateChange:function(t){var e=t.data;if(e!==this.lastState&&!this.errorNumber){switch(e){case-1:this.trigger("loadedmetadata"),this.trigger("durationchange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}this.lastState=e}},onPlayerError:function(t){this.errorNumber=t.data,this.trigger("error"),this.ytPlayer.stopVideo(),this.ytPlayer.destroy(),this.ytPlayer=null},error:function(){switch(this.errorNumber){case 5:return{code:"Error while trying to play the video"};case 2:case 100:case 150:return{code:"Unable to find the video"};case 101:return{code:"Playback on other Websites has been disabled by the video owner."}}return{code:"YouTube unknown error ("+this.errorNumber+")"}},src:function(t){return t&&(this.setSrc({src:t}),this.options_.autoplay&&!r&&this.play()),this.source},poster:function(){return this.poster_},setPoster:function(t){this.poster_=t},setSrc:function(t){t&&t.src&&(delete this.errorNumber,this.source=t,this.url=i.parseUrl(t.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.checkHighResPoster()),this.options_.autoplay&&!r&&(this.isReady_?this.play():this.playOnReady=!0))},play:function(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.ytPlayer.loadVideoById(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))},pause:function(){this.ytPlayer&&this.ytPlayer.pauseVideo()},paused:function(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING},currentTime:function(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0},setCurrentTime:function(t){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(t,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==t&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))},onSeeked:function(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")},playbackRate:function(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1},setPlaybackRate:function(t){this.ytPlayer&&(this.ytPlayer.setPlaybackRate(t),this.trigger("ratechange"))},duration:function(){return this.ytPlayer?this.ytPlayer.getDuration():0},currentSrc:function(){return this.source},ended:function(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED},volume:function(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1},setVolume:function(t){this.ytPlayer&&(this.ytPlayer.setVolume(100*t),this.setTimeout(function(){this.trigger("volumechange")},50))},muted:function(){return!!this.ytPlayer&&this.ytPlayer.isMuted()},setMuted:function(t){this.ytPlayer&&(this.muted(!0),t?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger("volumechange")},50))},buffered:function(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}};var t=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return{length:this.ytPlayer.getDuration(),start:function(){return 0},end:function(){return t}}},load:function(){},reset:function(){},supportsFullScreen:function(){return!0
},checkHighResPoster:function(){var t="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var e=new Image;e.onload=function(){if("naturalHeight"in e){if(e.naturalHeight<=90||e.naturalWidth<=120)return}else if(e.height<=90||e.width<=120)return;this.poster_=t,this.trigger("posterchange")}.bind(this),e.onerror=function(){},e.src=t}catch(t){}}});i.isSupported=function(){return!0},i.canPlaySource=function(t){return"video/youtube"===t.type};var r=/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent);i.parseUrl=function(t){var e={videoId:null},n=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,o=t.match(n);o&&11===o[2].length&&(e.videoId=o[2]);var i=/[?&]list=([^#\&\?]+)/;return(o=t.match(i))&&o[1]&&(e.listId=o[1]),e},i.apiReadyQueue=[],window.onYouTubeIframeAPIReady=function(){i.isApiReady=!0;for(var t=0;t<i.apiReadyQueue.length;++t)i.apiReadyQueue[t].initYTPlayer()},void 0!==t.registerTech?t.registerTech("Youtube",i):t.registerComponent("Youtube",i)});var _createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),_get=function(t,e,n){for(var o=!0;o;){var i=t,r=e,s=n;o=!1,null===i&&(i=Function.prototype);var a=Object.getOwnPropertyDescriptor(i,r);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(i);if(null===u)return;t=u,e=r,n=s,o=!0,a=u=void 0}},VjsLBButtonClose=videojs.getComponent("Button"),LightboxCloseButton=function(t){function e(t,n){_classCallCheck(this,e),_get(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n),this.on("click",this.closeClick),this.on("tap",this.closeClick)}return _inherits(e,t),_createClass(e,[{key:"buildCSSClass",value:function(){return"vjs-lightbox-close-button vjs-button vjs-control"}},{key:"closeClick",value:function(){afterglow.closeLightbox()}}]),e}(VjsLBButtonClose);!function(){videojs.registerComponent("LightboxCloseButton",LightboxCloseButton)}();var _createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),_get=function(t,e,n){for(var o=!0;o;){var i=t,r=e,s=n;o=!1,null===i&&(i=Function.prototype);var a=Object.getOwnPropertyDescriptor(i,r);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(i);if(null===u)return;t=u,e=r,n=s,o=!0,a=u=void 0}},VjsButtonResBBase=videojs.getComponent("Button"),ResolutionSwitchingButton=function(t){function e(t,n){_classCallCheck(this,e),_get(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n),this.init()}return _inherits(e,t),_createClass(e,[{key:"buildCSSClass",value:function(){return"vjs-ag-res-button "+_get(Object.getPrototypeOf(e.prototype),"buildCSSClass",this).call(this)}},{key:"init",value:function(){this.prepareSources(),this.setResolutionsNeededFromPlayer(),this.resolutionsNeeded&&(this.switchSource(this.sources[0]),this.setCurrentResFromPlayer(),this.on("click",this.switchResolution),this.on("tap",this.switchResolution)),this.updateButton();var t=this;this.player_.on("ready",function(){t.updateButton}),this.player_.on("play",function(){t.updateButton})}},{key:"prepareSources",value:function(){this.sources=this.getAbsoluteSources(),this.sourcesByType=videojs.reduce(this.sources,function(t,e){return(t[e.type]=t[e.type]||[]).push(e),t},{},this.player_),this.typeAndTech=this.selectTypeAndTech(this.sources)}},{key:"setCurrentResFromPlayer",value:function(){for(var t=this.player_.src(),e=this.sources,n=e.length-1;n>=0;n--)e[n].src==t&&(this.currentRes="hd"!==e[n]["data-quality"]?"sd":"hd")}},{key:"setResolutionsNeededFromPlayer",value:function(){if(this.resolutionsNeeded=!1,"object"==typeof this.typeAndTech){var t=this.typeAndTech.type;if(void 0!==this.sourcesByType[t]&&this.sourcesByType[t].length>1)for(var e=this.sourcesByType[t].length-1;e>=0;e--)if(void 0!==this.sourcesByType[t][e]["data-quality"]||this.sourcesByType[t][e]["data-quality"]!=this.currentRes)return void(this.resolutionsNeeded=!0)}}},{key:"removeSources",value:function(){var t=this.player_.el_.getElementsByTagName("video")[0];if("Html5"===this.player_.techName_&&t)for(var e=t.getElementsByTagName("source"),n=0;n<e.length;n++)t.removeChild(e[n])}},{key:"getAbsoluteSources",value:function(){for(var t=this.player_.options_.sources,e=window.location.href.match(/(.*\/)/)[0],n=window.location.protocol,o=window.location.origin,i=t.length-1;i>=0;i--){var r=t[i].src;if(void 0!==r&&""!==r){if(-1!=r.search(/^\/\//))r=n+r;else{if(-1!=r.search(/:\/\//))continue;r=-1!=r.search(/^\//)?o+r:e+r}t[i].src=r}}return t}},{key:"getSourceForResolutionChange",value:function(){for(var t=this.typeAndTech.type,e=this.sourcesByType[t],n=e.length-1;n>=0;n--)if("hd"==this.currentRes){if(void 0==e[n]["data-quality"]||"hd"!==e[n]["data-quality"])return e[n]}else if("hd"==e[n]["data-quality"])return e[n];return e[0]}},{key:"switchResolution",value:function(){var t=this.getSourceForResolutionChange();this.switchSource(t)}},{key:"stopStream",value:function(){switch(this.player_.techName_){case"Flash":this.player_.tech_.el_.vjs_stop()}}},{key:"selectSource",value:function(t){this.removeSources();var e=this.sourcesByType,n=this.selectTypeAndTech(t);return!!n&&(this.options_.sourceResolutions=e[n.type],this.selectResolution(this.options_.sourceResolutions))}},{key:"selectTypeAndTech",value:function(t){for(var e,n,o=0,i=this.player_.options_.techOrder;o<i.length;o++)if(e=this.player_.techName_,(n=window.videojs.getTech(e)).isSupported())for(var r=0,s=t;r<s.length;r++){var a=s[r];if(n.canPlaySource(a))return{type:a.type,tech:e}}}},{key:"selectResolution",value:function(t){var e=0;if(window.localStorage){var n=parseInt(window.localStorage.getItem("videojs_preferred_res"),10);isNaN(n)||(e=n)}var o=t.length-1;return t[e>o?o:e]}},{key:"switchSource",value:function(t){if(this.player_.cache_.src===t.src)return this.player_.trigger("resolutionchange"),this.player_;var e=this.player_.currentTime(),n=this.player_.paused();this.player_.pause(),this.stopStream(),"Html5"===this.player_.techName_?this.player_.src(t.src):this.player_.loadTech(this.player_.techName_,{src:t.src});var o=this;this.player_.ready(function(){this.player_.one("loadeddata",videojs.bind(this.player_,function(){this.player_.currentTime(e)})),this.player_.trigger("resolutionchange"),n||(this.player_.load(),this.player_.play()),localStorage.setItem("videojs_preferred_res",parseInt(t.index,10)),o.setCurrentResFromPlayer(),o.updateButton()})}},{key:"updateButton",value:function(){var t=this.prepareButtonElement(this.el_);this.resolutionsNeeded?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden"),"hd"==this.currentRes?t.addClass("vjs-ag-res-hd"):t.removeClass("vjs-ag-res-hd"),this.el_.blur()}},{key:"prepareButtonElement",value:function(t){return"function"!=typeof t.addClass&&(t.addClass=function(t){if(this.classList)this.classList.add(t);else if(-1==this.className.indexOf(t)){var e=this.className.split(" ");e.push(t),this.className=e.join(" ")}return this}),"function"!=typeof t.removeClass&&(t.removeClass=function(t){if(this.classList)this.classList.remove(t);else{var e=this.className.split(" ");e.splice(e.indexOf(t),1),this.className=e.join(" ")}return this}),t}}]),e}(VjsButtonResBBase);videojs.reduce=function(t,e,n){if(t&&0!==t.length){for(var o=0,i=t.length;i>o;o++)n=e.call(t,n,t[o],o);return n}},function(){videojs.registerComponent("ResolutionSwitchingButton",ResolutionSwitchingButton)}();var _createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),_get=function(t,e,n){for(var o=!0;o;){var i=t,r=e,s=n;o=!1,null===i&&(i=Function.prototype);var a=Object.getOwnPropertyDescriptor(i,r);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(i);if(null===u)return;t=u,e=r,n=s,o=!0,a=u=void 0}},VjsComponent=videojs.getComponent("Component"),TopControlBar=function(t){function e(t,n){_classCallCheck(this,e),_get(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t,n)}return _inherits(e,t),_createClass(e,[{key:"createEl",value:function(){return _get(Object.getPrototypeOf(e.prototype),"createEl",this).call(this,"div",{className:"vjs-top-control-bar"})}}]),e}(VjsComponent);TopControlBar.prototype.options_={loadEvent:"play",children:["fullscreenToggle"]},function(){videojs.registerComponent("TopControlBar",TopControlBar)}(),function t(e,n,o){function i(s,a){if(!n[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[s]={exports:{}};e[s][0].call(c.exports,function(t){return i(e[s][1][t]||t)},c,c.exports,t,e,n,o)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),s=o(t("./components/Player")),a=o((o(t("./components/Lightbox")),t("./components/LightboxTrigger"))),l=o(t("./lib/DOMElement")),u=function(){function t(){i(this,t),this.players=[],this.lightboxtriggers=[]}return r(t,[{key:"init",value:function(){this.configureVideoJS(),this.initVideoElements(),this.prepareLightboxVideos()}},{key:"initVideoElements",value:function(){for(var t=document.querySelectorAll("video.afterglow,video.sublime"),e=0;e<t.length;e++){var n=new l["default"](t[e]),o=new s["default"](n);o.init(),this.players.push(o)}}},{key:"prepareLightboxVideos",value:function(){for(var t=document.querySelectorAll("a.afterglow,a.sublime"),e=0;e<t.length;e++){var n=new a["default"](t[e]);this.bindLightboxTriggerEvents(n),this.lightboxtriggers.push(n)}}},{key:"bindLightboxTriggerEvents",value:function(t){var e=this;t.on("trigger",function(){e.consolidatePlayers}),t.on("close",function(){e.consolidatePlayers()})}},{key:"play",value:function(t){for(e=this.players.length-1;e>=0;e--)this.players[e].id===t&&this.players[e].getPlayer().play();for(var e=this.lightboxtriggers.length-1;e>=0;e--)this.lightboxtriggers[e].playerid===t&&this.lightboxtriggers[e].trigger()}},{key:"getPlayer",value:function(t){for(e=this.players.length-1;e>=0;e--)if(this.players[e].id===t)return this.players[e].getPlayer();for(var e=this.lightboxtriggers.length-1;e>=0;e--)if(this.lightboxtriggers[e].playerid===t)return this.lightboxtriggers[e].getPlayer();return!1}},{key:"destroyPlayer",value:function(t){for(e=this.players.length-1;e>=0;e--)if(this.players[e].id===t)return this.players[e].destroy(),this.players.splice(e,1),!0;for(var e=this.lightboxtriggers.length-1;e>=0;e--)if(this.lightboxtriggers[e].playerid===t)return this.closeLightbox(),!0;return!1}},{key:"closeLightbox",value:function(){for(var t=this.lightboxtriggers.length-1;t>=0;t--)this.lightboxtriggers[t].closeLightbox();this.consolidatePlayers()}},{key:"consolidatePlayers",value:function(){for(var t=this.players.length-1;t>=0;t--)void 0===this.players[t]||this.players[t].alive||(delete this.players[t],this.players=this.players.filter(function(){return!0}))}},{key:"configureVideoJS",value:function(){window.HELP_IMPROVE_VIDEOJS=!1}}]),t}();n["default"]=u,e.exports=n["default"]},{"./components/Lightbox":3,"./components/LightboxTrigger":4,"./components/Player":5,"./lib/DOMElement":6}],2:[function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function(t){return t&&t.__esModule?t:{"default":t}}(t("../lib/Util")),s=function(){function t(e){var n=arguments.length<=1||void 0===arguments[1]?"afterglow":arguments[1];return o(this,t),this.init(e,n)}return i(t,[{key:"init",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?"afterglow":arguments[1];void 0==t?console.error("Please provide a proper video element to afterglow"):(this.videoelement=t,this.options={},this.skin=e,this.setDefaultOptions(),this.setSkinControls(),(new r["default"]).isYoutubePlayer(this.videoelement)&&this.setYoutubeOptions())}},{key:"setDefaultOptions",value:function(){this.options.controls=!0,this.options.techOrder=["Html5"],this.options.preload=this.getPlayerAttributeFromVideoElement("preload","auto"),this.options.autoplay=this.getPlayerAttributeFromVideoElement("autoplay"),this.options.poster=this.getPlayerAttributeFromVideoElement("poster")}},{key:"getPlayerAttributeFromVideoElement",value:function(t){var e=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return null!==this.videoelement.getAttribute("data-"+t)?this.videoelement.getAttribute("data-"+t):null!==this.videoelement.getAttribute(t)?this.videoelement.getAttribute(t):e}},{key:"setSkinControls",value:function(){var t={children:[{name:"currentTimeDisplay"},{name:"playToggle"},{name:"durationDisplay"},{name:"progressControl"},{name:"ResolutionSwitchingButton"},{name:"volumeMenuButton",inline:!0},{name:"subtitlesButton"},{name:"captionsButton"}]};this.options.controlBar=t}},{key:"setYoutubeOptions",value:function(){this.options.showinfo=0,this.options.techOrder=["youtube"],this.options.sources=[{type:"video/youtube",src:"https://www.youtube.com/watch?v="+this.getPlayerAttributeFromVideoElement("youtube-id")}];var t=new r["default"];this.options.youtube=t.ie().actualVersion>=8&&t.ie().actualVersion<=11?{ytControls:2,color:"white"}:{iv_load_policy:3}}},{key:"getSkinClass",value:function(){var t="vjs-afterglow-skin";return"afterglow"!==this.skin&&(t+=" afterglow-skin-"+this.skin),9==(new r["default"]).ie().actualVersion&&(t+=" ie9-is-bad"),t}}]),t}();n["default"]=s,e.exports=n["default"]},{"../lib/Util":7}],3:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function(t,e,n){for(var o=!0;o;){var i=t,r=e,s=n;o=!1,null===i&&(i=Function.prototype);var a=Object.getOwnPropertyDescriptor(i,r);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(i);if(null===u)return;t=u,e=r,n=s,o=!0,a=u=void 0}},l=o(t("./Player")),u=o(t("../lib/Util")),c=o(t("../lib/DOMElement")),h=o(t("../../../../vendor/Emitter/Emitter")),p=function(t){function e(){i(this,e),a(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,document.createElement("div")),this.addClass("afterglow-lightbox-wrapper"),this.build(),this.bindEmitter()}return r(e,t),s(e,[{key:"build",value:function(){var t=this.buildCover(),e=this.buildLightbox();this.appendDomElement(t,"cover"),this.appendDomElement(e,"lightbox")}},{key:"buildCover",value:function(){var t=document.createElement("div");return(t=new c["default"](t)).addClass("cover"),t}},{key:"buildLightbox",value:function(){var t=document.createElement("div");return(t=new c["default"](t)).addClass("afterglow-lightbox"),t}},{key:"bindEmitter",value:function(){h["default"](this)}},{key:"passVideoElement",value:function(t){this.playerid=t.getAttribute("id"),t=new c["default"](t),this.lightbox.appendDomElement(t,"videoelement"),this.lightbox.videoelement=t,this.lightbox.videoelement.setAttribute("autoplay","autoplay"),this.player=new l["default"](this.lightbox.videoelement)}},{key:"launch",value:function(t){var e=this,n=new u["default"];document.body.appendChild(this.node),this.player.init(function(){n.isMobile()||e.player.videojs.paused()&&(e.player.videojs.posterImage.show(),e.player.videojs.bigPlayButton.show()),"true"==e.lightbox.videoelement.getAttribute("data-autoclose")?e.player.videojs.on("ended",function(){e.close()}):e.player.videojs.on("ended",function(){e.player.videojs.posterImage.show()}),e.player.videojs.getChild("TopControlBar").addChild("LightboxCloseButton")});for(var o in window.videojs.getPlayers())null!==window.videojs.getPlayers()[o]&&window.videojs.getPlayers()[o].id_!==this.playerid&&window.videojs.getPlayers()[o].pause();this.resize(),n.addEventListener(window,"resize",function(){e.resize()}),this.cover.bind("click",function(){e.close()}),n.addEventListener(window,"keyup",function(t){271==t.keyCode&&e.close()}),"function"==typeof t&&t(this)}},{key:"resize",value:function(){if(void 0!==this.lightbox.videoelement)e=this.lightbox.videoelement.getAttribute("data-ratio"),n="false"==this.lightbox.videoelement.getAttribute("data-overscale")?this.calculateLightboxSizes(e,parseInt(this.lightbox.videoelement.getAttribute("data-maxwidth"))):this.calculateLightboxSizes(e);else if(1==document.querySelectorAll("div.afterglow-lightbox-wrapper .vjs-youtube").length)var t=document.querySelector("div.afterglow-lightbox-wrapper .vjs-youtube"),e=t.getAttribute("data-ratio"),n=this.calculateLightboxSizes(e);this.node.style.width=n.width,this.node.style.height=n.height,this.lightbox.node.style.height=n.playerheight+"px",this.lightbox.node.style.width=n.playerwidth+"px",this.lightbox.node.style.top=n.playeroffsettop+"px",this.lightbox.node.style.left=n.playeroffsetleft+"px"}},{key:"calculateLightboxSizes",value:function(t,e){var n={};return n.width=window.clientWidth||document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth,n.height=window.clientHeight||document.documentElement.clientHeight||document.body.clientHeight||window.innerHeight,n.height/n.width>t?(n.playerwidth=void 0!==e&&e<.9*n.width?e:.9*n.width,n.playerheight=n.playerwidth*t):(n.playerheight=void 0!==e&&e<.92*n.height/t?e*t:.92*n.height,n.playerwidth=n.playerheight/t),n.playeroffsettop=(n.height-n.playerheight)/2,n.playeroffsetleft=(n.width-n.playerwidth)/2,n}},{key:"close",value:function(){this.player.destroy(!0),this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.emit("close")}},{key:"getPlayer",value:function(){return void 0!==this.player?this.player.getPlayer():void 0}}]),e}(c["default"]);n["default"]=p,e.exports=n["default"]},{"../../../../vendor/Emitter/Emitter":9,"../lib/DOMElement":6,"../lib/Util":7,"./Player":5}],4:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function(t,e,n){for(var o=!0;o;){var i=t,r=e,s=n;o=!1,null===i&&(i=Function.prototype);var a=Object.getOwnPropertyDescriptor(i,r);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(s)}var u=Object.getPrototypeOf(i);if(null===u)return;t=u,e=r,n=s,o=!0,a=u=void 0}},l=o(t("./Lightbox")),u=o(t("../../../../vendor/Emitter/Emitter")),c=o(t("../lib/DOMElement")),h=function(t){function e(t){i(this,e),a(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),this.init()}return r(e,t),s(e,[{key:"init",value:function(){this.playerid=this.node.getAttribute("href").replace("#","");var t=document.querySelector("#"+this.playerid);this.videoelement=new c["default"](t),this.prepare(),u["default"](this)}},{key:"prepare",value:function(){var t=this;this.videoelement.addClass("afterglow-lightboxplayer"),this.videoelement.setAttribute("data-autoresize","fit"),this.bind("click",function(e){e.preventDefault(),t.trigger()})}},{key:"trigger",value:function(){var t=this;this.lightbox=new l["default"];var e=this.videoelement.cloneNode(!0);this.lightbox.passVideoElement(e),this.emit("trigger"),this.lightbox.launch(),this.lightbox.on("close",function(){t.emit("close")})}},{key:"closeLightbox",value:function(){void 0!=this.lightbox&&(this.lightbox.close(),this.deleteLightbox())}},{key:"deleteLightbox",value:function(){void 0!=this.lightbox&&delete this.lightbox}},{key:"getPlayer",value:function(){return void 0!==this.lightbox?this.lightbox.getPlayer():void 0}}]),e}(c["default"]);n["default"]=h,e.exports=n["default"]},{"../../../../vendor/Emitter/Emitter":9,"../lib/DOMElement":6,"./Lightbox":3}],5:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),s=o(t("./Config")),a=o(t("../lib/Util")),l=function(){function t(e){i(this,t),this.setup(e)}return r(t,[{key:"setup",value:function(t){this.videoelement=t,this.id=t.getAttribute("id"),this.config=new s["default"](t,this.getSkinName()),this.util=new a["default"],this.prepareVideoElement(),this.alive=!0}},{key:"prepareVideoElement",value:function(){this.applyDefaultClasses(),this.applyParameters(),this.util.isYoutubePlayer(this.videoelement)&&this.applyYoutubeClasses()}},{key:"init",value:function(t){var e=this.videoelement.node,n=this.config.options,o=window.videojs(e,n).ready(function(){var n=this;if(this.hotkeys({enableFullscreen:!1,enableNumbers:!1,enableVolumeScroll:!1}),null!==e.getAttribute("data-volume")){var o=parseFloat(e.getAttribute("data-volume"));this.volume(o)}this.addChild("TopControlBar"),this.on("play",function(){for(var t in window.videojs.getPlayers())null!==window.videojs.getPlayers()[t]&&window.videojs.getPlayers()[t].id_!==n.id_&&window.videojs.getPlayers()[t].pause()}),"function"==typeof t&&t(this)});this.videojs=o}},{key:"applyDefaultClasses",value:function(){var t=this;this.videoelement.addClass("video-js"),this.videoelement.addClass("afterglow"),this.config.getSkinClass().split(" ").forEach(function(e){t.videoelement.addClass(e)}),this.videoelement.removeClass("sublime");var e=this.util.ie().actualVersion;e>=8&&11>=e&&this.videoelement.addClass("vjs-IE")}},{key:"applyParameters",value:function(){if("false"==this.videoelement.getAttribute("data-overscale")&&this.videoelement.setAttribute("data-maxwidth",this.videoelement.getAttribute("width")),"fit"===this.videoelement.getAttribute("data-autoresize")||this.videoelement.hasClass("responsive")){this.videoelement.addClass("vjs-responsive");var t=this.calculateRatio();this.videoelement.node.style.paddingTop=100*t+"%",this.videoelement.removeAttribute("height"),this.videoelement.removeAttribute("width"),this.videoelement.setAttribute("data-ratio",t)}}},{key:"applyYoutubeClasses",value:function(){this.videoelement.addClass("vjs-youtube"),document.querySelector("video").controls&&this.videoelement.addClass("vjs-using-native-controls"),/iPad|iPhone|iPod|iOS/.test(navigator.platform)&&this.videoelement.addClass("vjs-iOS");var t=this.util.ie().actualVersion;t>=8&&11>=t&&this.videoelement.addClass("vjs-using-native-controls")}},{key:"calculateRatio",value:function(){if(this.videoelement.getAttribute("data-ratio"))t=this.videoelement.getAttribute("data-ratio");else{if(!this.videoelement.getAttribute("height")||!this.videoelement.getAttribute("width"))return console.error("Please provide witdh and height for your video element."),0;var t=this.videoelement.getAttribute("height")/this.videoelement.getAttribute("width")}return parseFloat(t)}},{key:"getSkinName",value:function(){return this.videoelement.getAttribute("data-skin")?this.videoelement.getAttribute("data-skin"):"afterglow"}},{key:"destroy",value:function(){this.videojs.paused()||this.videojs.pause(),this.videojs.isFullscreen()&&this.videojs.exitFullscreen(),this.videojs.dispose(),this.alive=!1}},{key:"getPlayer",value:function(){return this.videojs}}]),t}();n["default"]=l,e.exports=n["default"]},{"../lib/Util":7,"./Config":2}],6:[function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function(){function t(e){o(this,t),this.node=e}return i(t,[{key:"addClass",value:function(t){return this.node.classList?this.node.classList.add(t):this.hasClass(t)||(this.node.className+=" "+t),this}},{key:"removeClass",value:function(t){if(this.node.classList)this.node.classList.remove(t);else{var e=this.node.className.split(" ");e.splice(e.indexOf(t),1),this.node.className=e.join(" ")}return this}},{key:"hasClass",value:function(t){return this.node.classList?this.node.classList.contains(t):-1<this.node.className.indexOf(t)}},{key:"bind",value:function(t,e){for(var n=t.split(" "),o=0,i=n.length;i>o;o++)this.node.addEventListener?this.node.addEventListener(n[o],e,!1):this.node.attachEvent&&this.node.attachEvent("on"+n[o],e);return this}},{key:"unbind",value:function(t,e){for(var n=t.split(" "),o=0,i=n.length;i>o;o++)this.node.removeEventListener&&this.node.removeEventListener(n[o],e,!1),this.node.detachEvent&&this.node.detachEvent("on"+n[o],e);return this}},{key:"appendDomElement",value:function(t,e){this[e]=t,this.appendChild(t.node)}},{key:"getAttribute",value:function(t){return this.node.getAttribute(t)}},{key:"setAttribute",value:function(t,e){return this.node.setAttribute(t,e)}},{key:"hasAttribute",value:function(t){return this.node.hasAttribute(t)}},{key:"removeAttribute",value:function(t){return this.node.removeAttribute(t)}},{key:"cloneNode",value:function(){var t=!(arguments.length<=0||void 0===arguments[0])&&arguments[0];return this.node.cloneNode(t)}},{key:"appendChild",value:function(t){this.node.appendChild(t)}}]),t}();n["default"]=r,e.exports=n["default"]},{}],7:[function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=function(){function t(){o(this,t)}return i(t,[{key:"isYoutubePlayer",value:function(t){return t.hasAttribute("data-youtube-id")}},{key:"loadYoutubeThumbnailUrl",value:function(t){return"https://img.youtube.com/vi/"+t+"/maxresdefault.jpg"}},{key:"isDailymotionPlayer",value:function(t){return t.hasAttribute("data-dailymotion-id")}},{key:"ie",value:function(){var t,e,n,o,i;return e=!1,o={5.5:"5.5",5.6:"6",5.7:"7",5.8:"8",9:"9",10:"10"},void 0!==(i=new Function("/*@cc_on return @_jscript_version; @*/")())&&(e=!0,n=o[i]),t={isTheBrowser:e,actualVersion:n},e||window.navigator.userAgent.indexOf("Trident/7.0")>0&&!/x64|x32/gi.test(window.navigator.userAgent)&&(t={isTheBrowser:!0,actualVersion:"11"}),t}},{key:"isMobile",value:function(){return!!(function(){return navigator.userAgent.match(/Android/i)}()||function(){return navigator.userAgent.match(/BlackBerry/i)}()||function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)}()||function(){return navigator.userAgent.match(/Opera Mini/i)}()||function(){return navigator.userAgent.match(/IEMobile/i)}())}},{key:"merge_objects",value:function(t,e){var n={};for(var o in t)n[o]=t[o];for(var o in e)n[o]=e[o];return n}},{key:"addEventListener",value:function(t,e,n){null!=t&&void 0!==t&&(t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n)}}]),t}();n["default"]=r,e.exports=n["default"]},{}],8:[function(t){"use strict";var e=function(t){return t&&t.__esModule?t:{"default":t}}(t("./afterglow/Afterglow"));document.addEventListener("DOMContentLoaded",function(){window.afterglow=new e["default"],window.afterglow.init()})},{"./afterglow/Afterglow":1}],9:[function(t,e){"use strict";function n(t){return t?o(t):void 0}function o(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},n.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o,i=0;i<n.length;i++)if((o=n[i])===e||o.fn===e){n.splice(i,1);break}return this},n.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n)for(var o=0,i=(n=n.slice(0)).length;i>o;++o)n[o].apply(this,e);return this},n.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},n.prototype.hasListeners=function(t){return!!this.listeners(t).length}},{}]},{},[8]);