!function(t,e){function n(t){this.message=t}function o(t,e){return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}Object.keys||(Object.keys=function(){"use strict";var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=n.length;return function(i){if("object"!=typeof i&&("function"!=typeof i||null===i))throw new TypeError("Object.keys called on non-object");var r,s,a=[];for(r in i)t.call(i,r)&&a.push(r);if(e)for(s=0;s<o;s++)t.call(i,n[s])&&a.push(n[s]);return a}}());var i="undefined"!=typeof exports?exports:self,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.name="InvalidCharacterError",i.btoa||(i.btoa=function(t){for(var e,o,i=String(t),s=0,a=r,l="";i.charAt(0|s)||(a="=",s%1);l+=a.charAt(63&e>>8-s%1*8)){if(o=i.charCodeAt(s+=.75),o>255)throw new n("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");e=e<<8|o}return l}),i.atob||(i.atob=function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,s=0,a=0,l="";i=e.charAt(a++);~i&&(o=s%4?64*o+i:i,s++%4)?l+=String.fromCharCode(255&o>>(-2*s&6)):0)i=r.indexOf(i);return l}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!("getComputedStyle"in this)&&(this.getComputedStyle=function(){function t(e,n,o,i){var r,s=n[o],a=parseFloat(s),l=s.split(/\d/)[0];return i=null!=i?i:/%|em/.test(l)&&e.parentElement?t(e.parentElement,e.parentElement.currentStyle,"fontSize",null):16,r="fontSize"==o?i:/width/i.test(o)?e.clientWidth:e.clientHeight,"em"==l?a*i:"in"==l?96*a:"pt"==l?96*a/72:"%"==l?a/100*r:a}function e(t,e){var n="border"==e?"Width":"",o=e+"Top"+n,i=e+"Right"+n,r=e+"Bottom"+n,s=e+"Left"+n;t[e]=(t[o]==t[i]==t[r]==t[s]?[t[o]]:t[o]==t[r]&&t[s]==t[i]?[t[o],t[i]]:t[s]==t[i]?[t[o],t[i],t[r]]:[t[o],t[i],t[r],t[s]]).join(" ")}function n(n){var o=n.currentStyle,i=this,r=t(n,o,"fontSize",null);for(property in o)/width|height|margin.|padding.|border.+W/.test(property)&&"auto"!==i[property]?i[property]=t(n,o,property,r)+"px":"styleFloat"===property?i["float"]=o[property]:i[property]=o[property];return e(i,"margin"),e(i,"padding"),e(i,"border"),i.fontSize=r+"px",i}function o(t){return new n(t)}return n.prototype={constructor:n,getPropertyPriority:function(){},getPropertyValue:function(t){return this[t]||""},item:function(){},removeProperty:function(){},setProperty:function(){},getPropertyCSSValue:function(){}},o}(this)),"document"in self&&("classList"in document.createElement("_")?!function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,o=arguments.length;for(n=0;n<o;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}():!function(t){"use strict";if("Element"in t){var e="classList",n="prototype",o=t.Element[n],i=Object,r=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},l=function(t,e){if(""===e)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(t,e)},c=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],o=0,i=n.length;o<i;o++)this.push(n[o]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=c[n]=[],p=function(){return new c(this)};if(a[n]=Error[n],u.item=function(t){return this[t]||null},u.contains=function(t){return t+="",l(this,t)!==-1},u.add=function(){var t,e=arguments,n=0,o=e.length,i=!1;do t=e[n]+"",l(this,t)===-1&&(this.push(t),i=!0);while(++n<o);i&&this._updateClassName()},u.remove=function(){var t,e,n=arguments,o=0,i=n.length,r=!1;do for(t=n[o]+"",e=l(this,t);e!==-1;)this.splice(e,1),r=!0,e=l(this,t);while(++o<i);r&&this._updateClassName()},u.toggle=function(t,e){t+="";var n=this.contains(t),o=n?e!==!0&&"remove":e!==!1&&"add";return o&&this[o](t),e===!0||e===!1?e:!n},u.toString=function(){return this.join(" ")},i.defineProperty){var d={get:p,enumerable:!0,configurable:!0};try{i.defineProperty(o,e,d)}catch(f){f.number===-2146823252&&(d.enumerable=!1,i.defineProperty(o,e,d))}}else i[n].__defineGetter__&&o.__defineGetter__(e,p)}}(self)),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var n;if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),i=o.length>>>0;if(0===i)return-1;var r=+e||0;if(Math.abs(r)===1/0&&(r=0),r>=i)return-1;for(n=Math.max(r>=0?r:i-Math.abs(r),0);n<i;){if(n in o&&o[n]===t)return n;n++}return-1});var s=!1,a=function(){function n(t,e,n){var i=btoa(JSON.stringify(t));o.ajax(o.getCliplisterDomain()+"lc/"+e+"/?"+i,function(t){for(var e=JSON.parse(t.responseText),o=0;o<e.length;o++){var i=e[o].request;"function"==typeof n[o]&&n[o](i)}})}var o=this,i={},r={},a={},l={};this.addViewer=function(t){i[t.prototype.version]=t},this.addStage=function(t){r[t.prototype.type]||(r[t.prototype.type]={}),r[t.prototype.type][t.prototype.version]||(r[t.prototype.type][t.prototype.version]=t)},this.addPlugin=function(t){a[t.prototype.name]||(a[t.prototype.name]={}),a[t.prototype.name][t.prototype.version]=t},this.ajax=function(){var e,n;if(2==arguments.length)e=arguments[0],n=arguments[1];else if("undefined"!=typeof this._ajax)return this._ajax.apply(this,arguments);var o=null;!t.XDomainRequest&&t.XMLHttpRequest?(o=new XMLHttpRequest,o.open("GET",e,!0),o.timeout=5e3,o.onreadystatechange=function(){if(4==o.readyState){if(200==o.status&&""!=o.responseText)return"undefined"!=typeof n&&n(o),o;o.abort()}}):(o=new XDomainRequest,o.timeout=5e3,o.onload=function(){n(o)},o.onprogress=function(){},o.ontimeout=function(){},o.onerror=function(){},o.open("GET",e)),t.setTimeout(function(){o.send()},1)},this.getCliplisterDomain=function(){return s?t.location.protocol+"//dev.mycliplister.com/":t.location.protocol+"//mycliplister.com/"},this.isDevelopment=function(){return s},this.Viewer=function(e){"undefined"!=typeof e.dev&&"iknowwhatimdoing"==e.dev&&(s=!0);var n=document.createElement("video"),o=!!n.canPlayType;if(o){if(!(i.length>1))return i[Object.keys(i)[0]](e);if(e.version)return i[e.version](e);this.log("If multiple viewers are loaded, a version is required.",1)}else if(e.backgroundvideo){var r=document.createElement("div");r.className="cliplister-viewer-background-fallback",r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.style.backgroundColor="#FFFFFF",r.style.backgroundPosition="center center",r.style.backgroundSize="cover",r.style.width="100%",r.style.height="100%";var a=document.createElement("img");a.src="undefined"!=typeof e.fallback?e.fallback.bgimage:("https:"==t.location.protocol?"https:":"http:")+"//mycliplister.com/static/viewer/assets/fallback/outdated.png",a.style.backgroundColor="#FFFFFF",a.style.padding="0px",a.style.textAlign="center",a.style.width="100%",a.style.height="100%",a.style.margin="auto",r.appendChild(a),document.getElementById(e.parentId).appendChild(r)}else{var r=document.createElement("div");r.className="cliplister-viewer-notice",r.style.position="absolute",r.style.top="0px",r.style.left="0px";var a=document.createElement("img");a.src="undefined"!=typeof e.fallback?e.fallback.image:("https:"==t.location.protocol?"https:":"http:")+"//mycliplister.com/static/viewer/assets/fallback/outdated.png",a.style.backgroundColor="#FFFFFF",a.style.padding="10px",a.style.textAlign="center",a.style.height="100%",a.style.margin="auto",r.appendChild(a);var l=document.createElement("div");l.innerHTML='<a href="'+("undefined"!=typeof e.fallback?e.fallback.link:"https://www.google.com")+'">'+("undefined"!=typeof e.fallback?e.fallback.linktext:"https://www.google.com")+"</a>",l.style.backgroundColor="#FFFFFF",l.style.padding="10px",l.style.textAlign="center",r.style.backgroundColor="#FFFFFF",r.style.backgroundPosition="center center",r.style.backgroundSize="cover",r.style.width="100%",r.style.height="100%",document.getElementById(e.parentId).appendChild(r)}},this.callStage=function(){return r.video["1.0"]()},this.getStage=function(t,n){return r[t]?1==Object.keys(r[t]).length?n!==e?r[t][n]?r[t][n]:void this.log("The "+t+" stage in version "+n+" is not loaded.",1):r[t][Object.keys(r[t])[0]]:n!==e?r[t][n]?r[t][n]:void this.log("The "+t+" stage in version "+n+" is not loaded.",1):void this.log("If multiple stages of the same type are loaded, a version is required.",1):void this.log("No stage of type "+t+" is loaded.",1)},this.getPlugin=function(t,n){return a[t]?1==Object.keys(a[t]).length?n!==e?a[t][n]?a[t][n]:void this.log("The plugin "+t+" in version "+n+" is not loaded.",1):a[t][Object.keys(a[t])[0]]:n!==e?a[t][n]?a[t][n]:void this.log("The plugin "+t+" in version "+n+" is not loaded.",1):void this.log("If multiple plugins with the same name are loaded, a version is required.",1):void this.log("No plugin "+t+" is loaded.",1)},this.log=function(t,e){console.debug(t)},this.requestLiveConnectCall=function(t,e,o){l[e]||(l[e]={timer:null,requests:[],callbacks:[]}),clearTimeout(l[e].timer),l[e].requests.push(t),l[e].callbacks.push(o),l[e].timer=setTimeout(function(){!function(t,e){n(t.requests,e,t.callbacks)}(l[e],e),l[e].requests=[],l[e].callbacks=[]},100)}};"undefined"==typeof t.Cliplister?t.Cliplister={}:"undefined"!=typeof t.Cliplister.ajax&&(t.Cliplister._ajax=t.Cliplister.ajax);var l=new a;t.Cliplister=o(t.Cliplister,l);var c=decodeURIComponent((new RegExp("[?|&]viewer_token=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null;c&&t.Cliplister.ajax("token/decrypt.php?t="+c,function(t){})}(window,void 0);!function(window,undefined){var VERSION="1.2",CLViewer=function(_params){function addEvent(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}function removeEvent(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)}function addMovementListener(e,t){movementListeners[e]||(movementListeners[e]={listeners:[]}),movementListeners[e].listeners.push(t),movementListeners[e].element&&triggerMovementListeners(movementListeners[e].element)}function animateElementPositionWithinInnerPlugin(e,t,n,i,s,r){var a=getPluginIdByElement(e);if(a){var o=getPluginById(a);if(o){o.animation!==undefined&&null!==o.animation&&clearInterval(o.animation);var l;"top"==t&&(l=parseInt(e.style.top)),"left"==t&&(l=parseInt(e.style.left)),"bottom"==t&&(l=parseInt(getComputedStyle(elements.innerPluginsContainer).height)-(parseInt(e.style.top)+parseInt(getComputedStyle(e).height))),"right"==t&&(l=parseInt(getComputedStyle(elements.innerPluginsContainer).width)-(parseInt(e.style.left)+parseInt(getComputedStyle(e).width)));var u=distanceToPx(n,"top"==t||"bottom"==t?parseInt(getComputedStyle(elements.innerPluginsContainer).height):parseInt(getComputedStyle(elements.innerPluginsContainer).width));e.setAttribute("data-cl-animating",!0),enableCSSTransition(e,i,function(){e.removeAttribute("data-cl-animating"),s!==undefined&&s&&s()},!0),reSetElementPosition(e,t,u,!1,!1),repositionInnerPluginElement(e),triggerMovementListeners(e,!0,i)}}}function buildPlugins(){config.measures={availableWidth:config.dimensions.width,availableHeight:config.dimensions.height,offsets:{top:0,right:0,bottom:0,left:0}},buildOuterPlugins(),buildInnerPlugins(),triggerListeners("pluginsBuilt")}function buildInnerPlugins(){elements.innerPluginsContainer=document.createElement("div"),elements.innerPluginsContainer.style.position="absolute",elements.innerPluginsContainer.style.top=config.measures.offsets.top+"px",elements.innerPluginsContainer.style.left=config.measures.offsets.left+"px",elements.innerPluginsContainer.style.zIndex=1,elements.innerPluginsContainer.height=config.dimensions.height-config.measures.offsets.top-config.measures.offsets.bottom,elements.innerPluginsContainer.width=config.dimensions.width-config.measures.offsets.left-config.measures.offsets.right,elements.innerPluginsContainer.style.width=elements.innerPluginsContainer.width+"px",elements.innerPluginsContainer.style.height=platform.os.mobile&&exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&params.plugins.InnerControls.mobileDefaultControls?elements.innerPluginsContainer.height-50+"px":elements.innerPluginsContainer.height+"px",elements.innerPluginsContainer.style.height=elements.innerPluginsContainer.height+"px",exists(params.allowOverflow)&&params.allowOverflow||(elements.innerPluginsContainer.style.overflow="hidden"),elements.inner.appendChild(elements.innerPluginsContainer),onMouseenter(elements.innerPluginsContainer,function(){triggerListeners("mouseover"),triggerListeners("mouseenter")}),onMouseleave(elements.innerPluginsContainer,function(){triggerListeners("mouseout"),triggerListeners("mouseleave")});for(var e=0;e<config.plugins.visual.inner.length;e++){var t=config.plugins.visual.inner[e];t.getWrapper().style.position="absolute",t.getWrapper().style.zIndex=t.getLayer(),t.getWrapper().classList.add("cl-inner-plugin-container"),t.getWrapper().style.left="-1px",t.getWrapper().style.top="-1px",t.getWrapper().id=t.getId(),elements.innerPluginsContainer.appendChild(t.getWrapper())}getPluginApi().on("play",function(){elements.innerPluginsContainer.style.height=platform.os.mobile&&exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&params.plugins.InnerControls.mobileDefaultControls?elements.innerPluginsContainer.height-50+"px":elements.innerPluginsContainer.height+"px",repositionInnerPluginElements()}),getPluginApi().on("stop",function(){console.log("PlayStope"),elements.innerPluginsContainer.style.height=elements.innerPluginsContainer.height+"px",repositionInnerPluginElements()})}function buildOuterPlugins(){!function(){config.plugins.visual.outer.sort(function(e,t){return e.priority==t.priority?0:e.priority>t.priority?1:-1})}(),function(){for(var e=0;e<config.plugins.visual.outer.length;e++)config.plugins.visual.outer[e].priority=e}(),function(e){if(config.stage||(config.stage={}),params.stage){var t=capitalizeFirstLetter(e);if(params.stage[e]){var n=distanceToPx(params.stage[e],config[e]);params.stage["min"+t]&&params.stage["min"+t]>n?config.stage[e]=params.stage["min"+t]:params.stage["max"+t]&&params.stage["max"+t]<n?config.stage[e]=params.stage["max"+t]:config.stage[e]=n,config.measures["available"+t]-=config.stage[e]}else params.stage["min"+t]&&(config.stage["min"+t]=params.stage["min"+t],config.measures["available"+t]-=config.stage["min"+t]),params.stage["max"+t]&&(config.stage["max"+t]=params.stage["max"+t])}return arguments.callee}("width")("height"),function(){if(params.stage&&params.stage.aspectRatio){var e=params.stage.aspectRatio.split(":");if(params.stage.width&&!params.stage.height){var t=config.stage.width/e[0]*e[1];config.stage.minHeight&&t<config.stage.minHeight?config.stage.height=config.stage.minHeight:params.stage.maxHeight&&t>config.stage.maxHeight?config.stage.height=config.stage.maxHeight:config.stage.height=t,exists(config.stage.minHeight)&&(config.measures.availableHeight+=config.stage.minHeight),config.measures.availableHeight-=config.stage.height}else if(params.stage.height&&!params.stage.width){var n=config.stage.height/e[0]*e[1];config.stage.minWidth&&n<config.stage.minWidth?config.stage.width=config.stage.minWidth:params.stage.maxWidth&&n>config.stage.maxWidth?config.stage.width=config.stage.maxWidth:config.stage.width=n,exists(config.stage.minWidth)&&(config.measures.availableWidth+=config.stage.minWidth),config.measures.availableWidth-=config.stage.width}}}(),function(){for(var e=0;e<config.plugins.visual.outer.length;e++){var t,n,i=config.plugins.visual.outer[e];if("top"==i.position||"bottom"==i.position?(i.align="horizontal",t="height",n="Height"):(i.align="vertical",t="width",n="Width"),i.getParams()[t]){i.dynamic=!1;var s=distanceToPx(i.getParams()[t],config[t]);i.getParams()["min"+n]&&i.getParams()["min"+n]>s?i[t]=i.getParams()["min"+n]:i.getParams()["max"+n]&&i.getParams()["max"+n]<s?i[t]=i.getParams()["max"+n]:i[t]=s,i[t]<=config.measures["available"+n]?config.measures["available"+n]-=i[t]:i.hidden=!0}else i.dynamic=!0,i.getParams()["min"+n]&&(i["min"+n]=i.getParams()["min"+n],i.getParams()["min"+n]<=config.measures["available"+n]?config.measures["available"+n]-=i.getParams()["min"+n]:i.hidden=!0),i.getParams()["max"+n]&&(i["max"+n]=i.getParams()["max"+n])}}(),function(){var e=new Array,t=new Array,n=0,i=new Array,s=new Array,r=0;!function(){for(var a=0;a<config.plugins.visual.outer.length;a++){var o=config.plugins.visual.outer[a];!o.hidden&&o.dynamic&&("vertical"==o.align?(e.push(o),n++,o.minWidth&&(t.push(o),config.measures.availableWidth+=o.minWidth)):"horizontal"==o.align&&(i.push(o),r++,o.minHeight&&(s.push(o),config.measures.availableHeight+=o.minHeight)))}}(),!config.stage.height&&config.stage.minHeight&&(config.measures.availableHeight+=config.stage.minHeight),!config.stage.width&&config.stage.minWidth&&(config.measures.availableWidth+=config.stage.minWidth);var a,o=config.stage.width?0:1,l=config.measures.availableWidth/(n+o);do{a=!1;for(var u=0;u<t.length;u++){var g=t[u];if(!g.width&&g.minWidth>l){g.width=g.minWidth,n--,config.measures.availableWidth-=g.width,l=config.measures.availableWidth/(n+o),a=!0;break}}}while(a);!config.stage.width&&config.stage.minWidth&&config.stage.minWidth>l&&(config.stage.width=config.stage.minWidth,o=0,config.measures.availableWidth-=config.stage.width,l=config.measures.availableWidth/(n+o));do{a=!1;for(var u=0;u<e.length;u++){var g=e[u];if(!g.width&&l>g.maxWidth){g.width=g.maxWidth,n--,config.measures.availableWidth-=g.width,l=config.measures.availableWidth/(n+o),a=!0;break}}}while(a);for(var u=0;u<e.length;u++){var g=e[u];g.width||(g.width=l)}var c=config.stage.height?0:1,m=config.measures.availableHeight/(r+c);do{a=!1;for(var u=0;u<s.length;u++){var g=s[u];if(!g.height&&g.minHeight>m){g.height=g.minHeight,r--,config.measures.availableHeight-=g.height,m=config.measures.availableHeight/(r+c),a=!0;break}}}while(a);!config.stage.height&&config.stage.minHeight&&config.stage.minHeight>m&&(config.stage.height=config.stage.minHeight,c=0,config.measures.availableHeight-=config.stage.height,m=config.measures.availableHeight/(r+c));do{a=!1;for(var u=0;u<i.length;u++){var g=i[u];if(!g.height&&m>g.maxHeight){g.height=g.maxHeight,r--,config.measures.availableHeight-=g.height,m=config.measures.availableHeight/(r+c),a=!0;break}}}while(a);for(var u=0;u<i.length;u++){var g=i[u];g.height||(g.height=m)}}(),function(){for(var e=0;e<config.plugins.visual.outer.length;e++){var t=config.plugins.visual.outer[e];if(!t.hidden){t.getWrapper().style.position="absolute",t.getWrapper().classList.add("cl-outer-plugin-container"),t.getWrapper().style.display=t.hidden?"none":"block";var n,i,s=["top","right","bottom","left"];"horizontal"==t.align?(i="height",n="top"==t.position?0:2):(i="width",n="right"==t.position?1:3),t.getWrapper().style[s[n]]=config.measures.offsets[s[n]]+"px",t.getWrapper().style[s[(n-1+4)%4]]=config.measures.offsets[s[(n-1+4)%4]]+"px",t.getWrapper().style[s[(n+1+4)%4]]=config.measures.offsets[s[(n+1+4)%4]]+"px",t.getWrapper().style[i]=t[i]+"px",t.getWrapper().id=t.getId(),config.measures.offsets[s[n]]+=t[i],elements.inner.appendChild(t.getWrapper())}}}()}function callIntervalFunctions(){for(var e=0;e<interval.timeouts.length;e++){var t=interval.timeouts[e];if(interval.counter%t==0)for(var n=0;n<interval.fns[t].length;n++)interval.fns[t][n]()}interval.counter=interval.counter==interval.maxTimeout-interval.globalTimeout?0:1*interval.counter+1*interval.globalTimeout}function callStage(e,t){return!(!exists(stage)||!exists(stage[e]))&&stage[e].apply(stage,t)}function camelCaseToDashed(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}function capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}function clearInterval(e){if(window.clearInterval(interval.instance),e&&e.timeout&&interval.fns[e.timeout]){var t=interval.fns[e.timeout].indexOf(e);if(t>-1){interval.fns[e.timeout].splice(t,1);var n=interval.timeouts.indexOf(e.timeout);n>-1&&interval.timeouts.splice(n,1)}adjustViewerInterval()}}function collectAssetsInformation(){}function dashedToCamelCase(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function dataset(e,t,n){function i(t,n){o?e.dataset[t]=n:e.setAttribute("data-"+camelCaseToDashed(t),n)}function s(t){return o?e.dataset[t]:e.getAttribute("data-"+camelCaseToDashed(t))}function r(t){o?delete e.dataset[t]:e.removeAttribute("data-"+camelCaseToDashed(t))}function a(){if(o){for(var t=e.dataset,n=Object.keys(t),i={},s=0;s<n.length;s++)i[n[s]]=t[n[s]];return i}for(var r=e.attributes,n=Object.keys(r),i={},s=0;s<n.length;s++)/^data\-(.+)$/.test(r[s].nodeName)&&(i[r[s].nodeName]=r[s].nodeValue);return i}if("undefined"!=typeof document&&document.head){var o=!!document.head.dataset,l={set:i,get:s,del:r,toObject:a};return 3===arguments.length?i(t,n):2==arguments.length?s(t):l}}function debug(){return{}}function destroy(){config&&config.parent&&elements.inner&&config.parent.removeChild(elements.inner)}function detectPlatform(){platform.os={name:"os",version:0,mobile:!1},platform.browser={name:"",version:0,html5:{basic:!1,h264:"",ogg:"",webm:""}};var e=navigator.userAgent,t=document.createElement("video");if(platform.browser.html5.basic=!!t.canPlayType,platform.browser.html5.basic&&(platform.browser.html5.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),platform.browser.html5.ogg=t.canPlayType('video/ogg; codecs="theora, vorbis"'),platform.browser.html5.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"')),platform.os.mobile=!!e.match(/(iPad)|(iPhone)|(iPod)|(android)|(windows phone)/i),platform.os.mobile?(/Android[\/\s](\d+\.\d+)/.test(e)&&(platform.os.name="Android",platform.os.version=new Number(RegExp.$1)),/Windows[\/\s](\d+\.\d+)/.test(e)&&(platform.os.name="Windows Phone",platform.os.version=new Number(RegExp.$1)),/(iPhone|iPad|iPod).*( \d+_\d+)/.test(e)&&(platform.os.name="iOS",platform.os.version=new Number(RegExp.$1))):(/Windows NT[\/\s](\d+\.\d+)/.test(e)&&(platform.os.name="Windows NT",platform.os.version=new Number(RegExp.$1)),/OS X[\/\s](\d+_\d+)/.test(e)&&(platform.os.name="OS X",platform.os.version=new Number(RegExp.$1))),platform.os.mobile)/Firefox[\/\s](\d+\.\d+)/.test(e)?(platform.browser.name="FirefoxMobile",platform.browser.version=new Number(RegExp.$1)):/IEMobile[\/\s](\d+\.\d+)/.test(e)?(platform.browser.name="IEMobile",platform.browser.version=new Number(RegExp.$1)):/Edge[\/\s](\d+\.\d+)/.test(e)?(platform.browser.name="EdgeMobile",platform.browser.version=new Number(RegExp.$1)):/Opera[\/\s](\d+\.\d+)/.test(e)?(platform.browser.name="OperaMobile",platform.browser.version=new Number(RegExp.$1)):/(Chrome|CriOS)[\/\s](\d+\.\d+)/.test(e)?(platform.browser.name="ChromeMobile",platform.browser.version=new Number(RegExp.$2)):/Safari[\/\s](\d+\.\d+)/.test(e)&&(platform.browser.name="SafariMobile",platform.browser.version=new Number(RegExp.$1));else if(/Firefox[\/\s](\d+\.\d+)/.test(e))platform.browser.name="Firefox",platform.browser.version=new Number(RegExp.$1);else if(e.indexOf("MSIE")!=-1||e.indexOf("Trident")!=-1){if(e.indexOf("MSIE")!=-1)var n=/MSIE (\d+\.\d+)/;else var n=/Trident.*rv[ :]*(\d+\.\d+)/;n.test(e)&&(platform.browser.name="IE",platform.browser.version=new Number(RegExp.$1))}else/Edge[\/\s](\d+\.\d+)/.test(e)?(platform.browser.name="Edge",platform.browser.version=new Number(RegExp.$1)):/OPR\/(\d+\.\d+)/i.test(e)?(platform.browser.name="Opera",platform.browser.version=new Number(RegExp.$1)):/Opera[\/\s](\d+\.\d+)/.test(e)?(platform.browser.name="Opera",platform.browser.version=new Number(RegExp.$1)):/Chrome[\/\s](\d+\.\d+)/.test(e)?(platform.browser.name="Chrome",platform.browser.version=new Number(RegExp.$1)):/Safari[\/\s](\d+\.\d+)/.test(e)&&(platform.browser.name="Safari",platform.browser.version=new Number(RegExp.$1));return platform}function detectFeatures(){var e=document.createElement("div");e.requestFullScreen?features.fullscreen={exitFullscreen:function(){document.exitFullscreen()},fullscreenchange:function(e){addEvent(document,"fullscreenchange",function(){e()})},fullscreenElement:function(){return document.fullscreenElement},fullscreenEnabled:function(){return document.fullscreenEnabled},isFullscreen:function(){return!!this.fullscreenElement()},requestFullscreen:function(e){e.requestFullscreen(),e.stylebackup=JSON.parse(JSON.stringify(e.style)),e.style.width="100%",e.style.height="100%"}}:e.mozRequestFullScreen?features.fullscreen={exitFullscreen:function(){document.mozCancelFullScreen(),callStage("leaveFullscreen")},fullscreenchange:function(e){addEvent(document,"mozfullscreenchange",function(){e()})},fullscreenElement:function(){return document.mozFullScreenElement},fullscreenEnabled:function(){return document.mozFullScreenEnabled},isFullscreen:function(){return!!this.fullscreenElement()},requestFullscreen:function(e){e.mozRequestFullScreen(),e.style.width="100%",e.style.height="100%"}}:e.webkitRequestFullScreen?features.fullscreen={exitFullscreen:function(){document.webkitExitFullscreen()},fullscreenchange:function(e){addEvent(document,"webkitfullscreenchange",function(){e()})},fullscreenElement:function(){return document.webkitFullscreenElement},fullscreenEnabled:function(){return document.webkitFullscreenEnabled},isFullscreen:function(){return!!this.fullscreenElement()},requestFullscreen:function(e){elements.innerPluginsContainer.style.width="100%",elements.innerPluginsContainer.style.height="100%",e.webkitRequestFullscreen(),e.stylebackup=JSON.parse(JSON.stringify(e.style)),e.style.width="100%",e.style.height="100%"}}:e.msRequestFullscreen?features.fullscreen={exitFullscreen:function(){document.msExitFullscreen(),callStage("leaveFullscreen"),elements.inner.style=elements.inner.stylebackup},fullscreenchange:function(e){addEvent(document,"MSFullscreenChange",function(){e()})},fullscreenElement:function(){return document.msFullscreenElement},fullscreenEnabled:function(){return document.msFullscreenEnabled},isFullscreen:function(){return!!this.fullscreenElement()},requestFullscreen:function(e){e.msRequestFullscreen(),e.stylebackup=JSON.parse(JSON.stringify(e.style)),e.style.width="100%",e.style.height="100%"}}:features.fullscreen={exitFullscreen:function(){callStage("leaveFullscreen")},fullscreenchange:function(e){on("stageSet",function(){callStage("onFullscreenChange",[e])},{subsequent:!0})},fullscreenEnabled:function(){return callStage("isFullscreen")},isFullscreen:function(){return callStage("isNativeFullscreen")},requestFullscreen:function(){callStage("enterFullscreen")}}}function disableCSSTransition(e){e&&(e.style["-webkit-transition"]="none",e.style["-o-transition"]="none",e.style["-moz-transition"]="none",e.style["-ms-transition"]="none",e.style.transition="none")}function distanceToPx(e,t){var n=parseInt(e),i=/%$/.test(e);return i?parseInt(t)*(n/100):n}function enableCSSTransition(e,t,n,i){function s(){var t,n={transition:"transitionend","-o-transition":"oTransitionEnd","-moz-transition":"mozTransitionEnd","-webkit-transition":"webkitTransitionEnd"};for(t in n)if(e.style[t]!==undefined)return{css:t,endEvent:n[t]}}function r(){disableCSSTransition(e),removeEvent(e,a.endEvent,r),n!==undefined&&n()}var a=s();e.style[a.css]="all "+t+"ms",i!==undefined&&i&&addEvent(e,a.endEvent,r)}function enableMovementListening(e,t){movementListeners[e]?(movementListeners[e].element=t,triggerMovementListeners(t)):movementListeners[e]={element:t,listeners:[]}}function enableSpaceListener(){addEvent(document,"keypress",function(e){32==e.keyCode&&(isPlaying()?pause():play())})}function enterFullscreen(){features.fullscreen.requestFullscreen(elements.inner)}function exists(e){return"undefined"!=typeof e}function extend(){var e={},t=!1,n=0,i=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);for(var s=function(n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t&&"[object Object]"===Object.prototype.toString.call(n[i])?e[i]=extend(!0,e[i],n[i]):e[i]=n[i])};n<i;n++){var r=arguments[n];s(r)}return e}function getAsset(){return loadedAsset}function getBackgroundColor(){return config.backgroundColor}function getCurrentBitrate(){return callStage("getCurrentBitrate")}function getCurrentQuality(){return callStage("getCurrentQuality")}function getDuration(){return"undefined"==typeof stage||isNaN(callStage("getDuration"))?loadedAsset.duration:callStage("getDuration")}function getPublicApi(){return{clearInterval:clearInterval,destroy:function(){destroy()},enterFullscreen:function(){return enterFullscreen(),getPublicApi()},getCurrentBitrate:function(){return getCurrentBitrate()},getProgressPlayed:function(){return getProgressPlayed()},getTimePlayed:function(){return getTimePlayed()},getTimeBuffered:function(){return getTimeBuffered()},getPercentBuffered:function(){return getPercentBuffered()},getProducts:function(){return products},hidePlugin:function(e){return hidePlugin(e),getPublicApi()},isDone:function(){return isDone()},isPlaying:function(){return isPlaying()},loadAsset:loadAsset,mute:function(){return mute(),getPublicApi()},onReady:function(e){return on("mediaReady",e),getPublicApi()},onInit:function(e){return on("initDone",e),getPublicApi()},onEnded:function(e){return on("finish",e),getPublicApi()},onFinish:function(e){return on("finish",e),getPublicApi()},onMute:function(e){return on("mute",e),getPublicApi()},onPause:function(e){return on("pause",e),getPublicApi()},onPlay:function(e){return on("play",e),getPublicApi()},onProgress:function(e){return on("progress",e),getPublicApi()},onQualityChange:function(e){return on("qualityChange",e),getPublicApi()},onStop:function(e){return on("stop",e),getPublicApi()},onTrack:function(e){return on("track",e),getPublicApi()},onUnmute:function(e){return on("unmute",e),getPublicApi()},pause:function(){return pause(),getPublicApi()},play:function(){return play(),getPublicApi()},playAsset:playAsset,setVolume:function(e){return setVolume(e),getPublicApi()},showPlugin:function(e){return showPlugin(e),getPublicApi()},stop:function(){return stop(),getPublicApi()},unmute:function(){return unmute(),getPublicApi()},faster:function(){return faster(),getPublicApi()},slower:function(){return slower(),getPublicApi()},getHls:function(){return hls()},adjustSize:function(){return Resizer.check(!0),getPublicApi()}}}function getPluginApi(){return{Counter:Counter,Detector:Detector,addEvent:addEvent,removeEvent:removeEvent,addMovementListener:addMovementListener,ajax:cl.ajax,animateElementPosition:animateElementPositionWithinInnerPlugin,clearInterval:clearInterval,dashSeparatedToCamelCase:dashedToCamelCase,dataset:dataset,disableCSSTransition:disableCSSTransition,distanceToPx:distanceToPx,enableCSSTransition:enableCSSTransition,enableMovementListening:enableMovementListening,enterFullscreen:enterFullscreen,exists:exists,extend:extend,features:function(){return features},platform:function(){return platform},getAsset:getAsset,getBackgroundColor:getBackgroundColor,getCurrentBitrate:getCurrentBitrate,getCurrentQuality:getCurrentQuality,getDuration:getDuration,getPluginById:getPluginById,getPluginIdByElement:getPluginIdByElement,getProgressPlayed:getProgressPlayed,getStageDimension:getStageDimension,getTimePlayed:getTimePlayed,getTimeBuffered:getTimeBuffered,getPercentBuffered:getPercentBuffered,getVolume:getVolume,hideCursor:hideCursor,hidePlugin:hidePlugin,isLooping:isLooping,isDone:isDone,isFullscreen:isFullscreen,isMuted:isMuted,isPlaying:isPlaying,isQualityOverride:isQualityOverride,isStopped:isStopped,leaveFullscreen:leaveFullscreen,log:cl.log,mute:mute,off:off,on:on,onMouseenter:onMouseenter,onMouseleave:onMouseleave,onPlay:function(e){on("play",e)},onProgress:function(e){on("progress",e)},onTimeupdate:function(e){on("timeupdate",e)},onPluginsBuilt:function(e){on("pluginsBuilt",e)},onStageReady:function(e){on("stageReady",e)},pad:pad,pause:pause,play:play,setElementPosition:setElementPositionWithinInnerPlugin,setElementSize:setElementSizeWithinInnerPlugin,setProgressPlayed:setProgressPlayed,setQuality:setQuality,setVolume:setVolume,showCursor:showCursor,showPlugin:showPlugin,stop:stop,transparentBackground:transparentBackground,triggerListeners:triggerListeners,unmute:unmute,onSpeedChange:onSpeedChange,getCurrentSpeed:getCurrentSpeed,faster:faster,slower:slower,showDefaultControls:showDefaultControls,hideDefaultControls:hideDefaultControls,hls:hls,resetSpeed:resetSpeed,changeQuality:changeQuality,getAvailableQualities:getAvailableQualities,setAvailableQualities:setAvailableQualities,setQualityOverride:setQualityOverride,zoomImage:zoomImage,prevImage:prevImage,nextImage:nextImage,firstImage:firstImage,lastImage:lastImage,checkResize:checkResize,resetViewerSize:resetViewerSize}}function getPluginById(e){function t(n){var i=null;if(n instanceof Array)for(var s=0;s<n.length&&(i=t(n[s]),i===undefined);s++);else{if(n.getId)return n.getId()==e?n:void 0;for(var r in n)if((n[r]instanceof Object||n[r]instanceof Array)&&(i=t(n[r])))break}return i}return t(config.plugins)}function getPluginIdByElement(e){if(e){if(e.className&&"cliplister-viewer"==e.className)return;return e.id?e.id:getPluginIdByElement(e.parentNode)}}function getProgressPlayed(){return callStage("getProgressPlayed")}function getCurrentSpeed(){return callStage("getCurrentSpeed")}function getProducts(e){var t=("function"==typeof MediaSource,cl.getCliplisterDomain()+"jplist/"+params.customer+"/"+e);params.plist&&(t=params.plist),cl.ajax(t,function(e){if(e){var t=JSON.parse(e.responseText);processProducts(t)}else triggerListeners("fatalAbort")})}function getSlotContent(e,t){cl.ajax(cl.getCliplisterDomain()+"lcplay/"+params.customer+"/"+e,function(e){var n=e.responseText;overwriteParams(n),exists(t)&&t()})}function getStageDimension(){return{width:parseInt(getComputedStyle(elements.innerPluginsContainer).width),height:parseInt(getComputedStyle(elements.innerPluginsContainer).height)}}function getTimePlayed(){return callStage("getTimePlayed")}function getTimeBuffered(){return callStage("getTimeBuffered")}function getPercentBuffered(){return callStage("getPercentBuffered")}function getVolume(){return callStage("getVolume")}function hideCursor(){elements.inner.style.cursor="none"}function hidePlugin(e,t){var n;n=getPluginById(e instanceof Object?getPluginIdByElement(e):e),"visual"==n.getType()&&"inner"==n.getMode()&&(t!==undefined||(n.getWrapper().hidden=!0,n.getWrapper().style.display="none"))}function init(e){function t(){function e(){var e=exists(params.initialAsset)?params.initialAsset:0;loadAsset(e),(params.autoplay||params.backgroundvideo&&!platform.os.mobile&&(!exists(params.autoplay)||params.autoplay))&&(on("mediaReady",function(){play()}),hls()&&on("hlsCG",function(){callStage("play")})),triggerListeners("initDone")}initPlugins();var t=document.createElement("video"),n=!!t.canPlayType;params.backgroundvideo&&platform.os.mobile&&(!params.backgroundvideo||n)||initStage(),initListeners(),isDone("productsLoaded")?e():on("productsLoaded",e),on("fatalAbort",function(){destroy()})}params=e,processParameters()&&(this.platform=detectPlatform(),detectFeatures(),config.originalDimensions=getComputedStyle(config.parent),initViewer(),orderRequestToken(function(){if(exists(params.slot)?getSlotContent(requestToken,t):t(),exists(params.forceAssetType)&&"image360"==params.forceAssetType){var e=exists(params.initialAsset)?params.initialAsset:0;loadAsset(e)}else if(1==params.keytype){for(var n={product:{title:"",description:"",link:null},assets:[]},i=0;i<params.assetkeys.length;i++){var s={download:!1,duration:null,id:params.assetkeys[i],language:null,previews:{},social:{},subtitles:"",thumbnail:null,title:"",type:"youtube",uri:null,hls:!1,versions:null,aspectratio:null};n.assets.push(s)}products.push(n);var e=exists(params.initialAsset)?params.initialAsset:0;loadAsset(e)}else getProducts(requestToken)}))}function initListeners(){!function(){config.fullscreen=!1,features.fullscreen&&features.fullscreen.fullscreenchange(function(){config.fullscreen=!!features.fullscreen.isFullscreen(),triggerListeners("fullscreenChange"),platform.os.mobile&&resetViewerSize()})}(),Resizer.watch(),function(){function e(e){var t=e.which||e.keyCode;32==t&&(isPlaying()?pause():play())}config.focus=!1,addEvent(document,"click",function(t){for(var n=0,i=t.target;i;i=i.parentNode){if(i===elements.inner)return void addEvent(document,"keypress",e);n++}removeEvent(document,"keypress",e)})}()}function initPlugins(){function e(e,n){var i=cl.getPlugin(e,n.version);if(i){if(n.viewer=self,n.pluginApi=getPluginApi(),"visual"==i.prototype.type){var s=document.createElement("div");n.parent=s;var r=i(n);r.setWrapper(s),"outer"==i.prototype.mode?(r.setPriority(n.priority),r.setPosition(n.position),config.plugins.visual.outer.push(r)):"inner"==i.prototype.mode&&(r.mode="inner",r.setLayer(n.layer),config.plugins.visual.inner.push(r))}else if("functional"==i.prototype.type){var r=i();config.plugins.functional.push(r)}r.setParams(n),r.positionListeners=[],n.id?r.setId(n.id):r.setId(t++),r.init()}}config.plugins||(config.plugins={visual:{inner:new Array,outer:new Array},functional:new Array});var t=0;if(params.plugins)for(var n in params.plugins)if(params.plugins.hasOwnProperty(n))if(Array.isArray(params.plugins[n]))for(var i=0;i<params.plugins[n].length;i++){var s=params.plugins[n][i];e(n,s)}else{var s=params.plugins[n];e(n,s)}getPluginById(1),buildPlugins()}function initStage(){elements.stageWrapper=document.createElement("div"),elements.stageWrapper.style.overflow="hidden",elements.stageWrapper.style.position="absolute",elements.stageWrapper.style.top=config.measures.offsets.top+"px",elements.stageWrapper.style.left=config.measures.offsets.left+"px",elements.stageWrapper.style.right=config.measures.offsets.right+"px",elements.stageWrapper.style.bottom=config.measures.offsets.bottom+"px",elements.stageWrapper.style.bottom=config.measures.offsets.bottom+"px",elements.inner.appendChild(elements.stageWrapper)}function initViewer(){config.parent.api=getPublicApi(),elements.inner=document.createElement("div"),elements.inner.className="cliplister-viewer",elements.inner.style.position="relative",elements.inner.style.top="0px",elements.inner.style.left="0px",params.backgroundColor?config.backgroundColor=params.backgroundColor:params.backgroundColor="#000000",config.parent.api=getPublicApi(),config.parent.appendChild(elements.inner);var e=getComputedStyle(config.parent);config.dimensions={},config.dimensions.width=parseInt(e.width),config.dimensions.height=parseInt(e.height),elements.inner.style.width=config.dimensions.width+(/%$/.test(e.width)?"%":"px"),elements.inner.style.height=config.dimensions.height+(/%$/.test(e.height)?"%":"px")}function isAChildOf(e,t){if(e===t)return!1;for(;t&&t!==e;)t=t.parentNode;return t===e}function isDone(e){return occurredEvents.indexOf(e)>=0}function isLooping(){return params.loop||params.backgroundvideo||!1}function isMovementListening(e){return!(!movementListeners[e]||!movementListeners[e].element)}function isPlaying(){return callStage("isPlaying")}function isFullscreen(){return config.fullscreen}function isMuted(){return callStage("isMuted")}function isQualityOverride(){return callStage("isQualityOverride")}function isStopped(){return callStage("isStopped")}function leaveFullscreen(){features.fullscreen.exitFullscreen()}function loadAsset(e,t){function n(){triggerListeners("assetReady"),params.backgroundvideo&&platform.os.mobile||(setStage(exists(params.forceAssetType)?params.forceAssetType:loadedAsset.hls?"videoHLS":loadedAsset.type),exists(params.fixedQuality)&&callStage("setQuality",[params.fixedQuality]),(params.mute||params.backgroundvideo)&&mute(),exists(params.forceAssetType)&&"image360"==params.forceAssetType?callStage("showMedia",[params.assetkeys]):1==params.keytype?callStage("showMedia",[loadedAsset]):callStage("showMedia",[loadedAsset]))}if(e=parseInt(e),stop(),"undefined"==typeof t)for(var i=0,s=!1,r=0;r<products.length;r++){for(var a=0;a<products[r].assets.length;a++){if(e<1e3&&e==i||e>=1e3&&e==products[r].assets[a].id){s=!0,loadedAsset=products[r].assets[a],n();break}i++}if(s)break}else n()}function playAsset(e,t){loadAsset(e,t),play()}function loadProduct(){}function mute(){callStage("mute")}function off(e,t){if(listeners[e])if(1==listeners[e].length)delete listeners[e];else for(var n=0;n<listeners[e].length;n++)if(listeners[e][n]==t){listeners[e].splice(n,1);break}}function on(e,t,n){function i(e,t){listeners[e]||(listeners[e]=new Array),listeners[e].push(t)}if(n&&n.subsequent&&isDone(e)&&t(),e instanceof Array)for(var s=0;s<e.length;s++)i(e[s],t);else i(e,t)}function onMouseenter(e,t){addEvent(e,"mouseover",function(e){var n=e.relatedTarget;this===n||isAChildOf(this,n)||t()})}function onMouseleave(e,t){addEvent(e,"mouseout",function(e){var n=e.relatedTarget;this===n||isAChildOf(this,n)||t()})}function orderRequestToken(e){var t={};t.SEO=!1,exists(params.fsk)&&(t.fsk=params.fsk),exists(params.keytype)&&(t.keytype=params.keytype),exists(params.assetkeys)&&(t.requestkey=params.assetkeys.join("|")),exists(params.lang)&&(t.lang=params.lang),exists(params.languages)&&(t.lang=params.languages.join(",")),exists(params.slot)&&(t.slot=params.slot),cl.requestLiveConnectCall(t,params.customer,function(t){requestToken=t,exists(e)&&e()})}function overwriteParams(slotContent){try{var slotParams=eval("("+slotContent+")");params=extend(!0,slotParams,params);
}catch(e){cl.log(slotContent),cl.log("The slot content is not valid",1)}}function pad(e,t){for(var n=e+"";n.length<t;)n="0"+n;return n}function parseXml(e){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(e,"text/xml");if("undefined"!=typeof window.ActiveXObject&&new window.ActiveXObject("Microsoft.XMLDOM")){var t=new window.ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(xmlStr),t}throw new Error("No XML parser found")}function onSpeedChange(e){}function changeQuality(e){stage.changeQuality(e)}function getAvailableQualities(){return stage.getAvailableQualities()}function setAvailableQualities(e){return stage.setAvailableQualities(e)}function setQuality(e){stage.setQuality(e)}function setQualityOverride(e){stage.setQualityOverride(e)}function zoomImage(){return stage.zoomImage()}function nextImage(){stage.nextImage()}function prevImage(){stage.prevImage()}function firstImage(){stage.firstImage()}function lastImage(){stage.lastImage()}function pause(){exists(stage)&&isDone("mediaReady")&&stage.pause()}function play(){exists(stage)&&isDone("mediaReady")&&callStage("play")}function processProducts(e){function t(e){var t={};return t.download=e.download||!1,t.duration=e.duration||null,t.id=e.vid,t.language=e.language,t.previews=e.previews||{},t.social={},t.subtitles="",t.thumbnail=e.clipthumbnail||null,t.title=e.cliptitle||"",t.type=e.type||"video",t.uri=e.clipurl,t.hls="undefined"!=typeof e.stream&&"true"==e.stream,t.versions=e.versions||null,t.aspectratio=e.aspectratio||null,t}function n(e){var n={product:{},assets:[]};n.product.title=e.producttext||"",n.product.description=e.productshortdesc||"",n.product.link=e.productlink||null,delete e.producttext,delete e.productshortdesc;var i=e.relatedclips;e.related=!1,delete e.relatedclips;var s=t(e);if(n.assets.push(s),""!=i)if(i.clip instanceof Array)for(var r=0;r<i.clip.length;r++)i.clip[r].related=!0,n.assets.push(t(i.clip[r]));else i.clip.related=!0,n.assets.push(t(i.clip));return n}if("1"==e.cliplist.version&&"undefined"!=typeof e.cliplist.clip){if(e.cliplist.clip instanceof Array)for(var i=0;i<e.cliplist.clip.length;i++){var s=e.cliplist.clip[i];products.push(n(s))}else products.push(n(e.cliplist.clip));triggerListeners("productsLoaded")}else triggerListeners("fatalAbort")}function processParameters(){for(var e,t,n=Object.keys(params),i=n.length;i--;)t=n[i],params.hasOwnProperty(t)&&(params[t.toLowerCase()]=params[t],"keytype"==t.toLowerCase()&&("string"==typeof params[t.toLowerCase()]||params[t.toLowerCase()]instanceof String)&&("ean"==params[t.toLowerCase()].toLowerCase()?params[t.toLowerCase()]=0:"article"==params[t.toLowerCase()].toLowerCase()||"articlenumber"==params[t.toLowerCase()].toLowerCase()?params[t.toLowerCase()]=1e4:"videoid"==params[t.toLowerCase()].toLowerCase()?params[t.toLowerCase()]=500:"youtube"==params[t.toLowerCase()].toLowerCase()&&(params[t.toLowerCase()]=1)));return exists(params.assets)&&(params.assetkeys=params.assets),exists(params.language)&&(params.languages=params.language),params.parentid&&null!=(e=document.getElementById(params.parentid))?(config.parent=e,!0):(cl.log("The CLViewer requires an existing parent element.",1),1)}function readFile(e){var t=new XMLHttpRequest;t.open("GET",e,!1),t.onreadystatechange=function(){if(4===t.readyState&&(200===t.status||0==t.status)){var e=t.responseText;alert(e)}},t.send(null)}function reSetElementPosition(e,t,n,i,s){e===undefined||"top"!=t&&"right"!=t&&"bottom"!=t&&"left"!=t||n===undefined||("auto"==n?delete e[t]:e[t]=n,i!==undefined&&i?e.middlepointX=!0:delete e.middlepointX,s!==undefined&&s?e.middlepointY=!0:delete e.middlepointY)}function repositionInnerPluginElement(e){if(e){e.style.position="absolute";for(var t={container:{width:Math.ceil(parseInt(getComputedStyle(elements.innerPluginsContainer).width))+2,height:Math.ceil(parseFloat(getComputedStyle(elements.innerPluginsContainer).height))+2}},n=["left","width","right","top","height","bottom"],i=0;i<n.length;i++){var s=n[i];"undefined"!=typeof e[s]&&(t[s]=distanceToPx(e[s],"left"==s||"right"==s||"width"==s?t.container.width:t.container.height),"right"==s?e.width&&e.left||(e.left?e.style.width=t.container.width-t.left-t.right+"px":e.width&&(e.style.left=t.container.width-distanceToPx(e.width,t.container.width)-t.right+"px")):"bottom"==s?(e.height&&e.top||(e.top?e.style.height=t.container.height-t.top-t.bottom+"px":e.height&&(e.style.top=t.container.height-distanceToPx(e.height,t.container.height)-t.bottom+"px")),e.style.height=t.container.height-t.top-t.bottom+"px"):e.style[s]=t[s]+"px")}e.style.left||e.style.right||(e.style.left="0px"),e.style.top||e.style.bottom||(e.style.top="0px");var r=e.minWidth?distanceToPx(e.minWidth,t.container.width):0,a=e.maxWidth?distanceToPx(e.maxWidth,t.container.width):t.container.width,o=e.minHeight?distanceToPx(e.minHeight,t.container.height):0,l=e.maxHeight?distanceToPx(e.maxHeight,t.container.height):t.container.height;e.minWidth&&t.width<r&&(e.style.width=r+"px",!e.right||e.width&&e.left||(e.style.left=1*parseInt(e.style.left)-1*(t.width-r)+"px")),e.maxWidth&&t.width>a&&(e.style.width=a+"px",!e.right||e.width&&e.left||(e.style.left=1*parseInt(e.style.left)+1*(t.width-a)+"px")),e.minHeight&&t.height<o&&(e.style.height=o+"px",!e.bottom||e.height&&e.top||(e.style.top=1*parseInt(e.style.top)-1*(t.height-o)+"px")),e.maxHeight&&t.height>l&&(e.style.height=l+"px",!e.bottom||e.height&&e.top||(e.style.top=1*parseInt(e.style.top)+1*(t.height-l)+"px")),exists(e.middlepointY)&&(e.top&&!e.bottom?e.style.top=parseInt(e.style.top)-parseInt(e.style.height)/2+"px":!e.top&&e.bottom&&(e.style.top=parseInt(e.style.top)+parseInt(e.style.height)/2+"px")),exists(e.middlepointX)&&(e.left&&!e.right?e.style.left=parseInt(e.style.left)-parseInt(e.style.width)/2+"px":!e.left&&e.right&&(e.style.left=parseInt(e.style.left)+parseInt(e.style.width)/2+"px"))}}function repositionInnerPluginElements(){if(config.plugins&&config.plugins.visual&&config.plugins.visual.inner)for(var e=0;e<config.plugins.visual.inner.length;e++){var t=config.plugins.visual.inner[e].getWrapper().childNodes[0];"undefined"==typeof t||t.getAttribute("data-cl-animating")||disableCSSTransition(config.plugins.visual.inner[e].getWrapper().childNodes[0]),repositionInnerPluginElement(config.plugins.visual.inner[e].getWrapper().childNodes[0])}}function resizeListener(){}function setBitrate(e){stage.setBitrate(e)}function setElementPositionWithinInnerPlugin(e,t,n){var i,s,r,a,o,l;1==arguments.length?(e.element!==undefined&&(i=e.element),e.position!==undefined&&(s=e.position),e.value!==undefined&&(r=e.value),e.fromMiddlePoint!==undefined&&(e.fromMiddlePoint.x!==undefined&&(a=e.fromMiddlePoint.x),e.fromMiddlePoint.y!==undefined&&(o=e.fromMiddlePoint.y)),e.reposition!==undefined&&(l=e.reposition)):(i=e,s=t,r=n),"undefined"==typeof l&&(l=!0),"undefined"==typeof a&&(a=!1),"undefined"==typeof o&&(o=!1),disableCSSTransition(i),reSetElementPosition(i,s,r,a,o),l!==undefined&&l&&repositionInnerPluginElement(i)}function setElementSizeWithinInnerPlugin(e,t,n,i){var s,r,a,o,l,u;1==arguments.length?(e.element!==undefined&&(s=e.element),e.dimension!==undefined&&(r=e.dimension),e.value!==undefined&&(a=e.value),e.min!==undefined&&(u=e.min),e.max!==undefined&&(l=e.max)):(s=e,r=t,a=n,o=i),"undefined"==typeof o&&(o=!0),s===undefined||"width"!=r&&"height"!=r||a===undefined||("auto"==a?delete s[r]:s[r]=a,u!==undefined&&(s["min"+capitalizeFirstLetter(r)]=u),l!==undefined&&(s["max"+capitalizeFirstLetter(r)]=l),o&&repositionInnerPluginElement(s))}function setProgressPlayed(e){stage.setProgressPlayed(e)}function setStage(e){if(!stage||stage.getType!==e){var t=config.stage;t.parent=elements.stageWrapper,t.viewer=self,t.pluginApi=getPluginApi(),stage=cl.getStage(e)(t),triggerListeners("stageSet")}}function setVolume(e){stage.setVolume(e)}function showCursor(){elements.inner.style.cursor="default"}function showPlugin(e){var t;t=getPluginById(e instanceof Object?getPluginIdByElement(e):e),"visual"==t.getType()&&"inner"==t.getMode()&&(delete t.getWrapper().hidden,t.getWrapper().style.display="block")}function stop(e){exists(stage)&&isDone("mediaReady")&&stage.stop(),e&&(params.loop||params.backgroundvideo)&&setTimeout(function(){play()},5)}function transparentBackground(e){e.style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==)"}function faster(){stage.faster()}function slower(){stage.slower()}function showDefaultControls(){stage.showDefaultControls()}function hideDefaultControls(){stage.hideDefaultControls()}function hls(){return!!stage.hls&&stage.hls()}function checkResize(){Resizer.check()}function resetViewerSize(){var e=config.originalDimensions;config.dimensions={},config.dimensions.width=parseInt(e.width),config.dimensions.height=parseInt(e.height),elements.inner.style.width=config.dimensions.width+(/%$/.test(e.width)?"%":"px"),elements.inner.style.height=config.dimensions.height+(/%$/.test(e.height)?"%":"px"),elements.innerPluginsContainer.height=parseInt(e.height)-config.measures.offsets.top-config.measures.offsets.bottom,elements.innerPluginsContainer.width=parseInt(e.width)-config.measures.offsets.left-config.measures.offsets.right,elements.innerPluginsContainer.style.width=elements.innerPluginsContainer.width+"px",elements.innerPluginsContainer.style.height=platform.os.mobile&&exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&params.plugins.InnerControls.mobileDefaultControls?elements.innerPluginsContainer.height-50+"px":elements.innerPluginsContainer.height+"px"}function resetSpeed(){stage.resetSpeed()}function triggerListeners(e,t){occurredEvents.indexOf(e)==-1&&occurredEvents.push(e);for(var n=0;e in listeners&&n<listeners[e].length;n++)listeners[e][n](t)}function triggerMovementListeners(e,t,n){var i=getPluginIdByElement(e),s=movementListeners[i];if(s&&s.element===e){var r={};exists(e.width)&&(r.width=e.width),exists(e.height)&&(r.height=e.height),exists(e.top)&&(r.top=e.top),exists(e.right)&&(r.right=e.right),exists(e.bottom)&&(r.bottom=e.bottom),exists(e.left)&&(r.left=e.left),exists(e.hidden)&&(r.hidden=e.hidden),t&&(r.animate=!0,r.duration=n);for(var a=0;a<s.listeners.length;a++)s.listeners[a](r)}}function unmute(){stage.unmute()}function verifyDependencies(){}if(!(this instanceof CLViewer))return new CLViewer(_params);var self=this,cl=window.Cliplister,elements={},features={},platform={},params={},config={},listeners={},occurredEvents=[],movementListeners={},products=[],stage,loadedAsset,requestToken,interval={instance:{},globalTimeout:0,counter:0,fns:[],timeouts:[],maxTimeout:0},Counter={count:0,getUniqueNumber:function(){return exists(cl[Counter])?cl.Counter.getUniqueNumber():++this.count}},Detector={mobile:!1,init:function(){return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(this.mobile=!0)}(navigator.userAgent||navigator.vendor||window.opera),this},isMobile:function(){return this.mobile}}.init(),Resizer={knownWidth:0,knownHeight:0,currentWidth:0,currentHeight:0,watch:function(){this.checkInterval=setInterval(this.check,50)},check:function(e){var e="undefined"!=typeof e&&e;if(config.fullscreen){var t={width:window.innerWidth,height:window.innerHeight};this.currentWidth=window.innerWidth,this.currentHeight=window.innerHeight}else{var t=getComputedStyle(config.parent);this.currentWidth=parseInt(t.width),this.currentHeight=parseInt(t.height)}if(parseInt(this.knownHeight)!=parseInt(this.currentHeight)&&(!config.fullscreen||"undefined"==typeof params.stage.aspectRatio||"undefined"==typeof params.stage.width)||parseInt(this.knownWidth)!=parseInt(this.currentWidth)&&(!config.fullscreen||"undefined"==typeof params.stage.aspectRatio||"undefined"==typeof params.stage.height)||e){var n=!1;if(params.stage&&params.stage.aspectRatio){n={};var i="undefined"==typeof getAsset()||null===getAsset().aspectratio?[16,9]:getAsset().aspectratio.split(":"),s=("asset"==params.stage.aspectRatio?i:params.stage.aspectRatio.split(":"))||[16,9];if(params.stage.width&&!params.stage.height){n.width=distanceToPx(params.stage.width,t.width);var r=n.width/s[0]*s[1];n.minHeight&&r<n.minHeight?n.height=n.minHeight:params.stage.maxHeight&&r>params.stage.maxHeight?n.height=n.maxHeight:n.height=r,exists(n.minHeight)&&(n.availableHeight+=n.minHeight),n.availableHeight-=n.height}else if(params.stage.height&&!params.stage.width){n.height=distanceToPx(params.stage.height,t.height);var a=n.height/s[1]*s[0];params.stage.minWidth&&a<params.stage.minWidth?n.width=n.minWidth:params.stage.maxWidth&&a>params.stage.maxWidth?n.width=n.maxWidth:n.width=a,exists(n.minWidth)&&(n.availableWidth+=n.minWidth),n.availableWidth-=n.width}}this.knownWidth=n?n.width:parseInt(t.width),this.knownHeight=n?n.height:parseInt(t.height);var o=n?n:t;config.dimensions.width=this.knownWidth,config.dimensions.height=this.knownHeight,elements.inner.style.width=this.knownWidth+(/%$/.test(o.width)?"%":"px"),elements.inner.style.height=this.knownHeight+(/%$/.test(o.height)?"%":"px"),elements.innerPluginsContainer.height=this.knownHeight-config.measures.offsets.top-config.measures.offsets.bottom,elements.innerPluginsContainer.width=this.knownWidth-config.measures.offsets.left-config.measures.offsets.right,elements.innerPluginsContainer.style.width=elements.innerPluginsContainer.width+(/%$/.test(o.width)?"%":"px"),elements.innerPluginsContainer.style.height=elements.innerPluginsContainer.height+(/%$/.test(o.height)?"%":"px");var l="undefined"!=typeof elements.stageWrapper?getComputedStyle(elements.stageWrapper).height:getComputedStyle(elements.inner).height;isFullscreen()&&parseInt(l)>parseInt(elements.innerPluginsContainer.style.height)+1?elements.innerPluginsContainer.style.top=(parseInt(l)-parseInt(elements.innerPluginsContainer.style.height))/2+1+"px":elements.innerPluginsContainer.style.top=0,params.stage&&params.stage.forceDimensions&&(config.parent.style.width=this.knownWidth+(/%$/.test(o.width)?"%":"px"),config.parent.style.height=this.knownHeight+(/%$/.test(o.height)?"%":"px")),repositionInnerPluginElements()}}};return init(_params),getPublicApi()};CLViewer.prototype.version=VERSION,window.Cliplister.addViewer(CLViewer)}(window,void 0);!function(e,t){var n="video",i="1.2",r=function(t){function n(n){var i=("https:"==location.protocol?"https:":"http:")+"//mycliplister.com/static/viewer/assets/chk/meta3.png?n="+Math.random(),r=[],u=[],a=[],l=[],s=0,o=new XMLHttpRequest;o.addEventListener("loadstart",function(e){"undefined"==typeof r[n]&&(r[n]=(new Date).getTime())}),o.addEventListener("loadend",function(i){u[n]=(new Date).getTime();var o="undefined"==typeof l[n]?r[n]:l[n],p="undefined"==typeof a[n]?u[n]:a[n],c=(p-o)/1e3,g=8*s;e.downloadSpeed=Math.round(g/c),t.pluginApi.triggerListeners("bandwidthChecked")}),o.addEventListener("progress",function(e){s=e.loaded}),o.onreadystatechange=function(){2==o.readyState&&(l[n]=(new Date).getTime())},o.open("GET",i),o.timeout=2e3,o.send()}function i(){M.playPosition=S.getTimePlayed(),M.playProgress=S.getProgressPlayed(),M.bufferPercent=S.getPercentBuffered(),M.playPosition==M.oldPlayPosition?(t.pluginApi.triggerListeners("buffering"),I=!0):(I=!1,t.pluginApi.triggerListeners("bufferingDone")),z||(M.playPosition==M.oldPlayPosition&&!U&&M.playPosition-M.lastQualityChange>3&&(M.lastQualityChange=M.playPosition,M.maxQuality=F.quality>0?F.quality-1:0,w()),!I&&(B*(M.playProgress-M.oldPlayProgress)<M.bufferPercent-M.oldBufferPercent&&M.bufferPercent-M.playProgress>3||M.bufferPercent-M.playProgress>4)&&(M.bufferPercent-M.playProgress>7&&(M.maxQuality=F.quality<R.length-1?F.quality+1:R.length-1),M.lastQualityChange=M.playPosition,k())),M.oldPlayPosition=M.playPosition,M.oldPlayProgress=M.playProgress,M.oldBufferPercent=M.bufferPercent,F.quality!=M.currentQuality&&(F.quality=M.currentQuality,P())}function u(){try{F.requestFullscreen?F.requestFullscreen():F.msRequestFullscreen?F.msRequestFullscreen():F.mozRequestFullScreen?F.mozRequestFullScreen():F.webkitRequestFullscreen?F.webkitRequestFullscreen():F.webkitEnterFullscreen&&F.webkitEnterFullscreen()}catch(e){}}function a(){return R}function l(){o(),s()}function s(){S.switchBitrate=function(e){return S},S.enterFullscreen=function(){return u(),S},S.getAvailableQualities=function(){return a()},S.getCurrentBitrate=function(){return R[M.currentQuality].bitrate},S.getCurrentQuality=function(){return R[M.currentQuality]},S.getDuration=function(){return Math.round(F.duration)},S.getProgressPlayed=function(){return F.currentTime/(F.duration/100)},S.getTimePlayed=function(){return F.currentTime},S.getTimeBuffered=function(){return F.buffered.end(F.buffered.length-1)},S.getPercentBuffered=function(){return F.buffered.length?F.buffered.end(F.buffered.length-1)/F.duration*100:0},S.getPlaybackSpeed=function(){},S.getVolume=function(){return parseInt(100*F.volume)},S.isMuted=function(){return F.muted},S.isNativeFullscreen=function(){return T},S.isPlaying=function(){return x},S.isQualityOverride=function(){return z},S.isStopped=function(){return E},S.leaveFullscreen=function(){return g(),S},S.mute=function(){M.volumeBeforeMute=t.pluginApi.getVolume(),t.pluginApi.setVolume(0),F.muted=!0,t.pluginApi.triggerListeners("mute"),t.pluginApi.triggerListeners("volumeChange")},S.onFullscreenChange=function(e){C(e)},S.pause=function(){return f(),S},S.play=function(){return d(),S},S.setProgressPlayed=function(e){return y(e),S},S.setQuality=function(e){return A(e),S},S.setQualityOverride=function(e){return m(e),S},S.setVolume=function(e){return F.muted&&(F.muted=!1,t.pluginApi.triggerListeners("unmute")),F.volume=e/100,t.pluginApi.triggerListeners("volumeChange"),S},S.showMedia=function(e){v(e)},S.stop=function(){return Q(),t.pluginApi.triggerListeners("stop"),S},S.unmute=function(){F.muted=!1,t.pluginApi.setVolume(M.volumeBeforeMute),t.pluginApi.triggerListeners("unmute"),t.pluginApi.triggerListeners("volumeChange")},S.slower=function(){return F.playbackRate>=G+W&&(F.playbackRate-=W,t.pluginApi.triggerListeners("playbackSpeedChange")),S},S.faster=function(){return F.playbackRate<=N-W&&(F.playbackRate+=W,t.pluginApi.triggerListeners("playbackSpeedChange")),S},S.setSpeed=function(e){return e>=G&&e<=N&&(F.playbackRate=e,t.pluginApi.triggerListeners("playbackSpeedChange")),S},S.resetSpeed=function(){return F.playbackRate=F.defaultPlaybackRate,t.pluginApi.triggerListeners("playbackSpeedChange"),S},S.getCurrentSpeed=function(){return F.playbackRate},S.changeQuality=function(e){return L(e),S},S.showDefaultControls=function(){return p(),S},S.hideDefaultControls=function(){return c(),S}}function o(){t.parent.innerHTML="",q=document.createElement("div"),q.style.position="absolute",q.style.top="-1px",q.style.right="-1px",q.style.bottom="-1px",q.style.left="-1px",q.style.backgroundColor=t.pluginApi.getBackgroundColor(),q.style.color="#FFFFFF",t.parent.appendChild(q);var e=document.createElement("style");e.type="text/css",e.innerHTML=".activityIndicator {height:40px;width:40px;-webkit-background-size:40px 40px;margin:0px auto;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;-webkit-animation-name:spinnerAnim;}@-webkit-keyframes spinnerAnim {0% { -webkit-transform:rotate(0deg);}100% { -webkit-transform:rotate(360deg);}}",document.head.appendChild(e),F=document.createElement("video"),F.style.width="100%",F.style.height="100%",F.style.backgroundColor=t.pluginApi.getBackgroundColor(),F.preload="auto",q.appendChild(F);var n=50;t.pluginApi.exists(t.defaultVolume)&&(n=t.defaultVolume),F.volume=n/100,t.pluginApi.addEvent(F,"ended",function(){t.pluginApi.triggerListeners("finish"),t.pluginApi.stop(!0)})}function p(){F.controls="true"}function c(){F.controls="false"}function g(){t.pluginApi.platform().os.mobile&&"iOS"==t.pluginApi.platform().os.name&&t.pluginApi.resetViewerSize()}function f(){x&&(F.pause(),x=!1,t.pluginApi.platform().os.mobile&&"iOS"==t.pluginApi.platform().os.name&&t.pluginApi.resetViewerSize(),t.pluginApi.triggerListeners("pause")),I=!1,t.pluginApi.triggerListeners("bufferingDone"),D.stop()}function d(){x||(U=!0,setTimeout(function(){U=!1},2e3),""!=F.src?F.play():P(),t.pluginApi.triggerListeners("bufferingDone"),x=!0,E=!1,t.pluginApi.triggerListeners("play"),D.start())}function y(e){F.duration&&(e=parseFloat(e),U=!0,setTimeout(function(){U=!1},2e3),F.currentTime=e>0?F.duration/100*e:0,t.pluginApi.triggerListeners("seek"))}function m(e){z=e}function v(i){var r=document.createElement("source");r.type="video/mp4";var u=i.uri.split("/");F.protocol=u[0],F.baseUrl=u[2],F.crypt=u.pop(),F.costumer=u.pop(),m(!0),"undefined"==typeof e.downloadSpeed?(n(Math.round(1e7*Math.random())),t.pluginApi.on("bandwidthChecked",function(){F.quality=h(e.downloadSpeed/1024),M.currentQuality=F.quality,F.appendChild(r),t.pluginApi.triggerListeners("mediaReady")})):(F.quality=h(e.downloadSpeed/1024),M.currentQuality=F.quality,F.appendChild(r),t.pluginApi.triggerListeners("mediaReady"))}function h(e){var t=0;return R.every(function(n,i,r){return!(.7*e<n.bitrate)&&(t=i,!0)}),t}function b(e,n){var i=t.pluginApi.getAvailableQualities();return F.protocol+"//"+F.baseUrl+"/"+i[e].string+"/"+F.costumer+"/"+F.crypt}function A(e){function n(e){m(!0),e>=0&&e<=M.maxQuality&&(M.currentQuality=e)}var i=a();if(e instanceof Object){if(t.pluginApi.exists(e.number))n(e.number);else if(t.pluginApi.exists(e.bitrate))if("auto"===e)m(!1);else for(var r=0;r<i.length;r++)if(e.bitrate==parseInt(i[r].bitrate)){n(e.bitrate);break}}else{var u=parseInt(e);if(u){if(u<i.length)n(e);else for(var r=0;r<i.length;r++)if(e==parseInt(i[r].bitrate)){n(r);break}}else"auto"===e&&m(!1)}t.pluginApi.triggerListeners("qualityChange")}function P(){function e(){if(F.currentTime=M.currentTime||0,n&&!T&&f(),x){F.play(),t.pluginApi.triggerListeners("bufferingDone");var i=setInterval(function(){F.currentTime>M.currentTime&&(clearInterval(i),V.removeCanvas(),D.start(),t.pluginApi.triggerListeners("bufferingDone"),t.pluginApi.triggerListeners("initialImagesLoaded"))},10)}F.removeEventListener("canplay",e),j=!1}var n=T;return H=!0,O=!0,M.currentTime=F.currentTime,t.pluginApi.triggerListeners("qualityChange"),F.pause(),V.createCanvas(),D.stop(),t.pluginApi.triggerListeners("buffering"),F.src=b(F.quality),F.load(),F.addEventListener("canplay",e),F.src}function k(){return M.currentQuality<M.maxQuality&&void M.currentQuality++}function w(){return M.currentQuality>0&&void M.currentQuality--}function L(e){A(parseInt(e))}function C(e){F.requestFullScreen?t.pluginApi.addEvent(F,"fullscreenchange",function(){e()}):F.mozRequestFullScreen?t.pluginApi.addEvent(F,"mozfullscreenchange",function(){e()}):F.webkitRequestFullScreen?t.pluginApi.addEvent(F,"webkitfullscreenchange",function(){e()}):F.msRequestFullscreen?t.pluginApi.addEvent(F,"MSFullscreenChange",function(){e()}):(t.pluginApi.addEvent(F,"webkitendfullscreen",function(){T=!1,f(),e()}),t.pluginApi.addEvent(F,"webkitbeginfullscreen",function(){T=!0,e()}))}function Q(){E||(F.pause(),F.currentTime=0,x=!1,E=!0,t.pluginApi.triggerListeners("stop"),D.stop()),I=!1,t.pluginApi.triggerListeners("bufferingDone")}if(!(this instanceof r))return new r(t);var q,F,S=this,T=!1,x=!1,E=!0,I=!1,R=[{string:"vs",display:"S",bitrate:"500"},{string:"vm",display:"M",bitrate:"1000"},{string:"vx",display:"L",bitrate:"3000"}],M={volumeBeforeMute:null,currentTime:0,playPosition:0,oldPlayPosition:0,bufferPercent:null,oldBufferPercent:null,playProgress:null,oldPlayProgress:null,lastQualityChange:0,maxQuality:R.length-1,currentQuality:0},B=5,D={checkInterval:null,notifyInterval:null,start:function(){this.stop(),this.checkInterval=setInterval(i,50),this.notifyInterval=setInterval(function(){t.pluginApi.triggerListeners("progress")},100)},stop:function(){clearInterval(this.checkInterval),clearInterval(this.notifyInterval)}},V={canvas:null,createCanvas:function(){this.canvas=document.createElement("canvas");var e=F.videoWidth,t=F.videoHeight;this.canvas.width=e,this.canvas.height=t,this.canvas.style.position="absolute",this.canvas.style.width="0%",this.canvas.style.transform="translateY(-50%)",this.canvas.style.top="50%",this.canvas.style.left="0px";var n=this.canvas.getContext("2d");n.drawImage(F,0,0,e,t),q.appendChild(this.canvas),this.canvas.style.width="100%"},removeCanvas:function(){this.canvas&&(q.removeChild(this.canvas),this.canvas=null)}},z=!1,O=!0,H=!0,U=!1,j=!1,G=.5,N=2,W=.25;return l(),this};r.prototype.type=n,r.prototype.version=i,e.Cliplister.addStage(r)}(window,void 0);!function(e,t){var n="InnerControls",i="1.0",o="visual",a="inner",l=function(){function c(){(!A&&!D.exists(I.animation)||!A&&I.animation)&&(A=!0,D.animateElementPosition(R,"bottom",-1,300,function(){},!1,!0),D.showCursor())}function r(e){if(A&&!D.exists(I.animation)||A&&I.animation){A=!1,clearTimeout(F);var n=e===t?2e3:1;F=setTimeout(function(){(!Q||e&&!V)&&(D.animateElementPosition(R,"bottom",-(X+1),300,function(){},!1,!0),D.isFullscreen()&&D.hideCursor())},n)}}function s(){return S}function d(){return O}function u(){return B}function p(){return H}function v(){return I}function g(){return P}function f(){return z}function b(){return N}function h(e,t){return D.dataset(e,"clBinding")==t?e:h(e.parentNode,t)}function m(e,t){if(D.dataset(e,"clBinding")==t)return e;for(var n=e.childNodes,i=0;i<n.length;i++)if(1==n[i].nodeType){var o=m(n[i],t);if(o)return o}}function y(){if(D.platform().os.mobile&&I.mobileDefaultControls)D.on("stageSet",function(){D.showDefaultControls()});else{if(R=document.createElement("div"),R.style.position="absolute",j=D.extend(!0,j,I.qualityLabels),D.exists(I.template)){if("external"==I.template.type){var e=I.template.source.replace(/[^\/]*$/,"");D.ajax(I.template.source,function(t){var n=document.createElement("div"),i=t.responseText;i=i.replace(/(url\(['"]?)([\da-z\.\-_\/]+)(['"]?\))/g,"$1"+e+"$2$3"),n.innerHTML=i;var o=document.createElement("style");o.type="text/css",o.appendChild(document.createTextNode(n.getElementsByTagName("style")[0].innerHTML)),document.getElementsByTagName("head")[0].appendChild(o),R.innerHTML=n.querySelector("#video-test-container").innerHTML,w()})}}else{var t=" #video-test-container{height: 300px;width: 800px;position: relative;}.cl-a{cursor: pointer;}.cl-b{ position: absolute;left: 0px;bottom: 0px;right: 0px;height: 52px;width: 100%;background-color: rgba(12,76,132,1);}.cl-b,.cl-b *{-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}.cl-c{ position: relative;height: 52px;width: 52px;float: right;background-size: auto 52px;background-repeat: no-repeat;background-color: inherit;background-image: url(default/img/controls-map.svg);}.cl-d{font-size: 18px;font-family: Arial;color: white;}.cl-e{ background-position: 0px 0px;background-position-x: 0px;float: left;}.cl-f{ background-position: -52px 0px;background-position-x: -52px;float: left;display: none;}.cl-g{ float: left;height: 52px;width: 80px;text-align: center;line-height: 52px;color: white;}.cl-h{position: relative;height: 52px;overflow: hidden;}.cl-i{position: relative;height: 4px;margin-left: 8px;margin-right: 8px;overflow: visible;top: 24px;border-radius: 5px;background-color: rgb(72,120,162);}.cl-j{position: relative;height: 100%;width: 0%;left: 0px;border-radius: 5px;background-color: rgb(163,187,181);}.cl-k{position: relative;height: 100%;width: 0%;left: 0px;border-radius: 5px;background-color: rgb(255,255,255);margin-top: -4px;}.cl-l{ float: right;height: 52px;width: 80px;text-align: center;line-height: 52px;}.cl-m{ background-position: -624px 0px;background-position-x: -624px;}.cl-m:hover .cl-m-overlay{visibility: visible;opacity: 1;}.cl-m-overlay{position: absolute;height: 96px;width: 100px;left: 0;bottom: 52px;opacity: 0;background-color: inherit;visibility: hidden;-webkit-transition: all ease-out 0.2s;-moz-transition: all ease-out 0.2s;-o-transition: all ease-out 0.2s;transition: all ease-out 0.2s;}.cl-m-tab{float: left;}.cl-m-tab label{margin-left: -1px;position: relative;left: 1px;top: 0px;font-size: 10px;color: white;padding: 5px;border: 1px solid rgba(12,76,132,1);}.cl-m-tab [type=radio]{display: none;}.cl-m-tab .cl-p{position: absolute;top: 30px;left: 0;right: 0;padding-left: 20px;padding-right: 20px;opacity: 0;}.cl-m-tab .cl-p input{ width: 100%;}.cl-q{ width: 100%;padding: 5px;border: 1px solid transparent;color: rgb(255,255,255);}.cl-q:hover{ border: 1px solid rgb(255,255,255);background-color: rgb(163,187,181);}.cl-q a{ display: inline-block;width: 100%;color: rgb(255,255,255);}.cl-q:hover a{ text-decoration: none;}.cl-m-tab [type=radio]:checked ~ label{border: 1px solid white;z-index: 2;}.cl-m-tab [type=radio]:checked ~ label ~ .cl-p{z-index: 1;opacity: 1;}.cl-r{ background-position: -468px 0px;background-position-x: -468px;}.cl-r:hover .cl-r-overlay{visibility: visible;opacity: 1;}.cl-r-text{position: absolute;top: 50%;left: 50%;font-size: 10px;color: white;transform: translate(-50%,-50%);}.cl-r-overlay{position: absolute;//height: 100px;width: 52px;bottom: 52px;opacity: 0;background-color: inherit;visibility: hidden;-webkit-transition: all ease-out 0.2s;-moz-transition: all ease-out 0.2s;-o-transition: all ease-out 0.2s;transition: all ease-out 0.2s;}.cl-r-overlay-entry{height: 30px;line-height: 30px;color: white;text-align: center;font-size: 10px;}.cl-v{ background-position: 0px 0px;}.cl-v:hover .cl-v-overlay{visibility: visible;opacity: 1;}.cl-v-text{position: absolute;top: 55%;left: 55%;font-size: 10px;color: white;}.cl-v-overlay{position: absolute;//height: 100px;width: 52px;bottom: 52px;opacity: 0;background-color: inherit;visibility: hidden;-webkit-transition: all ease-out 0.2s;-moz-transition: all ease-out 0.2s;-o-transition: all ease-out 0.2s;transition: all ease-out 0.2s;}.cl-v-faster{background-position: -520px 0px;background-position-x: -520px;}.cl-v-slower{background-position: -572px 0px;background-position-x: -572px;}.cl-aa{ background-position: -104px 0px;background-position-x: -104px;}.cl-ab{ background-position: -156px 0px;background-position-x: -156px;display: none;}.cl-ac{ -webkit-transition: all ease-out 0.2s;-moz-transition: all ease-out 0.2s;-o-transition: all ease-out 0.2s;transition: all ease-out 0.2s;}.cl-ac:hover .cl-ac-slider-container{visibility: visible;opacity: 1;}.cl-ae{ position: relative;height: 16px;width: 16px;position: absolute;background-color: #fff;border-radius: 100%;cursor: pointer;}.cl-g-point{ top: -6px;right: -8px;}.cl-ag{ top: -8px;left: -6px;}.cl-ac-slider-container{ position: absolute;height: 100px;width: 52px;bottom: 52px;opacity: 0;background-color: inherit;visibility: hidden;-webkit-transition: all ease-out 0.2s;-moz-transition: all ease-out 0.2s;-o-transition: all ease-out 0.2s;transition: all ease-out 0.2s;}.cl-ac-4,.cl-ac-3,.cl-ac-2,.cl-ac-1,.cl-ac-0{display: none;position: absolute;height: 52px;width: 52px;left: 0px;top: 0px;}.cl-ac-4{background-position: -208px 0px;background-position-x: -208px;}.cl-ac-3{background-position: -260px 0px;background-position-x: -260px;}.cl-ac-2{background-position: -312px 0px;background-position-x: -312px;display: block;}.cl-ac-1{background-position: -364px 0px;background-position-x: -364px;}.cl-ac-0{background-position: -416px 0px;background-position-x: -416px;}.cl-ac-slider-rail{ position: relative;margin: 20px auto;height: 60px;width: 4px;border-radius: 5px;background-color: rgb(72,120,162);}.cl-ac-slider-current{ position: absolute;height: 50%;width: 100%;left: 0px;bottom: 0px;border-radius: 5px;background-color: rgb(255,255,255);}",n='<div id="video-test-container"><div class="cl-b" data-cl-binding="controls"><div class="cl-a cl-c cl-e" data-cl-binding="play"></div><div class="cl-a cl-c cl-f" data-cl-binding="pause"></div><div class="cl-g cl-d"><span data-cl-binding="time-minute">00</span><span>:</span><span data-cl-binding="time-second">00</span></div><div class="cl-a cl-c cl-aa" data-cl-binding="fullscreen-enter"></div><div class="cl-a cl-c cl-ab" data-cl-binding="fullscreen-leave"></div><div class="cl-c cl-ac" data-cl-binding="volume"><div class="cl-c cl-ac-4" data-cl-binding="volume-80"></div><div class="cl-c cl-ac-3" data-cl-binding="volume-60"></div><div class="cl-c cl-ac-2" data-cl-binding="volume-40"></div><div class="cl-c cl-ac-1" data-cl-binding="volume-20"></div><div class="cl-c cl-ac-0" data-cl-binding="volume-0"></div><div class="cl-ac-slider-container"><div data-cl-binding="volume-bar" data-cl-orientation="vertical" class="cl-ac-slider-rail"><div data-cl-binding="volume-bar-filled" class="cl-ac-slider-current"><div data-cl-binding="volume-bar-slider" class="cl-ae cl-ag"></div></div></div></div></div><div class="cl-c cl-m" data-cl-binding="share-button"><div class="cl-m-overlay" data-cl-binding="share-overlay"><div class="cl-p cl-q"><a href="#" data-cl-binding="share-link-facebook">Facebook</a></div><div class="cl-p cl-q"><a href="#" data-cl-binding="share-link-twitter">Twitter</a></div><div class="cl-p cl-q"><a href="#" data-cl-binding="share-link-googleplus">Google+</a></div></div></div><div class="cl-c cl-r" data-cl-binding="quality-button"><div class="cl-r-overlay" data-cl-binding="quality-overlay"><div class="cl-a cl-r-overlay-entry" data-cl-binding="quality-overlay-entry">360p</div></div><div class="cl-r-text" data-cl-binding="playback-quality">Auto</div></div><div class="cl-c cl-v" data-cl-binding="speed-button"><div class="cl-v-overlay"><div class="cl-a cl-c cl-v-faster" data-cl-binding="playback-speed-faster"></div><div class="cl-a cl-c cl-v-slower" data-cl-binding="playback-speed-slower"></div></div><div class="cl-v-text" data-cl-binding="playback-speed">x1.0</div></div><div class="cl-l cl-d"><span data-cl-binding="duration-minute">00</span><span>:</span><span data-cl-binding="duration-second">00</span></div><div class="cl-h"><div class="cl-h"><div class="cl-i" data-cl-binding="progress-bar"><div class="cl-j" data-cl-binding="progress-bar-buffered"></div><div class="cl-k" data-cl-binding="progress-bar-filled"><div data-cl-binding="progress-bar-slider" class="cl-ae cl-g-point"></div></div></div></div></div></div></div>',i=document.createElement("style");i.type="text/css",i.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(i);var o=document.createElement("div");o.innerHTML=n,R.innerHTML=o.querySelector("#video-test-container").innerHTML,setTimeout(w,1)}D.onPluginsBuilt(function(){D.disableCSSTransition(R),D.setElementPosition(R,"bottom","-1",!1,!1),D.setElementSize(R,"width","100%",!1),D.setElementSize(R,"height",X),D.enableCSSTransition(R)}),D.onMouseenter(R,function(){V=!0}),D.onMouseleave(R,function(){V=!1}),D.on("mouseenter",function(){Q=!0,D.addEvent(document,"mousemove",M),c()}),D.on("mouseleave",function(){Q=!1,r(),clearTimeout(U),D.removeEvent(document,"mousemove",M)}),r()}}function x(e){if(("fullscreen-enter"==e||"fullscreen-leave"==e)&&"IE"==D.platform().browser.name&&10==D.platform().browser.version)return!1;var t=["play","pause","time-second","time-minute","time-seconds","duration-second","duration-minute","duration-seconds","fullscreen-enter","fullscreen-leave","volume","share","playback-speed","quality","speed-button","quality-button","share-button","progress-bar"],n=!0;return t.indexOf(e)>=0&&(I.whitelist&&I.whitelist.indexOf(e)==-1||I.blacklist&&I.blacklist.indexOf(e)>-1)&&(n=!1),n}function k(e,n,i){function o(e){n!==t&&n(e)}function a(t){1==t.which&&D.removeEvent(document,"mousemove",o),D.removeEvent(document,"mouseup",a),i&&i(e)}1==e.which&&(D.addEvent(document,"mousemove",o),D.addEvent(document,"mouseup",a))}function w(){I.parent.appendChild(R);for(var e=R.getElementsByTagName("*"),t=0;t<e.length;t++){var n=e[t];if(D.dataset(n,"clBinding")){var i=D.dataset(n,"clBinding"),o=D.dashSeparatedToCamelCase(i);$.add(n,o),x(i)||(n.style.display="none")}}}function L(t){var n=e.open(t,"_blank");n.focus()}function T(e){return!S&&(S=e,!0)}function C(e){return!O&&(O=e,!0)}function q(e){return!I&&(I=e,D=I.pluginApi,!0)}function E(e){return!N&&(N=e,!0)}function M(){c(),clearTimeout(U),U=setTimeout(function(){r(!0)},2e3)}if(!(this instanceof l))return new l;var S,O,B,H,I,P,z,N,D,R;B=a,H=n,P=o,z=i;var F,U,A=!0,Q=!1,V=!1,X=0,$={add:function(e,t){var n=null,i=t,o=/\s*(\d+)$/.exec(t);o&&(n=o[0],i=t.slice(0,o.index)),$[i]&&("function"==typeof $[i]&&$[i](e),$[i].add?$[i].add(e,i,n):($[i].list||($[i].list=[]),$[i].list.push(e)))},controls:function(e){X=parseInt(getComputedStyle(e).height),D.setElementSize(R,"height",X),D.enableMovementListening(S,R)},durationMinute:function(e){e.innerHTML=D.pad(0,2),D.on("assetReady",function(){e.innerHTML=D.pad(Math.floor(D.getDuration()/60),2)},{subsequent:!0}),D.on("play",function(){e.innerHTML=D.pad(Math.floor(D.getDuration()/60),2)},{subsequent:!0})},durationSecond:function(e){e.innerHTML=D.pad(0,2),D.on("assetReady",function(){e.innerHTML=D.pad(D.getDuration()%60,2)},{subsequent:!0}),D.on("play",function(){e.innerHTML=D.pad(D.getDuration()%60,2)},{subsequent:!0})},durationSeconds:function(e){e.innerHTML.innerHTML=0,D.on("assetReady",function(){e.innerHTML=D.pad(D.getDuration(),2)},{subsequent:!0}),D.on("play",function(){e.innerHTML=D.pad(D.getDuration(),2)},{subsequent:!0})},fullscreenEnter:function(e){D.addEvent(e,"click",D.enterFullscreen),D.on("fullscreenChange",function(){D.isFullscreen()?e.style.display="none":e.style.display="block",D.animateElementPosition(R,"bottom",-(2*X+1),0,function(){},!1,!0),r()})},fullscreenLeave:function(e){D.addEvent(e,"click",D.leaveFullscreen),D.on("fullscreenChange",function(){D.isFullscreen()?(e.style.display="block",D.animateElementPosition(R,"bottom",-(2*X+1),0,function(){},!1,!0),r()):(e.style.display="none",D.checkResize())})},pause:function(e){D.addEvent(e,"click",D.pause),D.on("play",function(){e.style.display="block"}),D.on(["pause","stop"],function(){e.style.display="none"})},play:function(e){D.addEvent(e,"click",D.play),D.on("play",function(){e.style.display="none"}),D.on(["pause","stop"],function(){e.style.display="block"})},playbackSpeed:{},playbackSpeedText:function(e){D.on("playbackSpeedChange",function(){e.textContent="x"+D.getCurrentSpeed()})},playbackSpeedFaster:function(e){D.addEvent(e,"click",function(){D.faster()})},playbackSpeedSlower:function(e){D.addEvent(e,"click",function(){D.slower()})},progress:{},progressBar:function(e){D.addEvent(e,"click",function(t){var n=e.getBoundingClientRect(),i=n.left+document.body.scrollLeft,o=Math.round((t.pageX-i)/parseInt(getComputedStyle(e).width)*100);o<1?o=0:o>99&&(o=100),D.setProgressPlayed(o)})},progressBarFilled:function(e){D.on(["progress","seek"],function(){e.style.width=D.getProgressPlayed()+"%"}),D.on("stop",function(){e.style.width="0%"})},progressBarBuffered:function(e){D.on(["progress","seek"],function(){e.style.width=Math.floor(D.getPercentBuffered())+"%"})},progressBarSlider:function(e){D.addEvent(e,"mousedown",function(t){var n=h(e,"progress-bar"),i=n.getBoundingClientRect(),o=i.left+document.body.scrollLeft;k(t,function(e){var t=Math.round((e.pageX-o)/parseInt(getComputedStyle(n).width)*100);t<1?t=0:t>99&&(t=100),D.setProgressPlayed(t)})})},qualityButton:{},qualityOverlay:function(e){var t,n=e.getElementsByTagName("*");if(n.length>0){for(var i={},o=0;o<n.length;o++)if(D.dataset(n[o],"clBinding")&&"quality-overlay-entry"==D.dataset(n[o],"clBinding")){t=n[o];break}for(;e.firstChild;)e.removeChild(e.firstChild);t.textContent=j.auto,D.dataset(t).del("clBinding"),i.auto=t,D.exists(I.qualityLabelsOrder)||(e.appendChild(t),$.add(t,"qualityOverlayEntry")),D.on("stageSet",function(){function n(){o=D.hls(),o.on(Hls.Events.MANIFEST_PARSED,function(n,a){for(var l=o.levels,c=0;c<l.length;c++){var r=t.cloneNode(!0);r.textContent=l[c].height+"p",function(e){D.addEvent(r,"click",function(t){o.currentLevel=e})}(c),i["hls_"+c]=r,e.appendChild(r),$.add(r,"qualityOverlayEntry")}})}var o;if(o=D.hls())D.addEvent(t,"click",function(){o.currentLevel=-1}),D.on("hlsReady",n);else{var a=D.getAvailableQualities();D.addEvent(t,"click",function(){D.setQuality("auto")});for(var l=0;l<a.length;l++){var c=t.cloneNode(!0);c.textContent=j[a[l].bitrate],function(e){D.addEvent(c,"click",function(){D.setQuality(a[e].bitrate)})}(l),i[a[l].bitrate]=c,D.exists(I.qualityLabelsOrder)||(e.appendChild(c),$.add(c,"qualityOverlayEntry"))}if(I.qualityLabelsOrder)for(l=0;l<I.qualityLabelsOrder.length;l++)e.appendChild(i[I.qualityLabelsOrder[l]]),$.add(i[I.qualityLabelsOrder[l]],"qualityOverlayEntry")}},{subsequent:!0})}},qualityOverlayEntry:function(e){var t=function(){if(!(hls=D.hls())){var t=j[D.getCurrentQuality().bitrate];e.textContent==t?e.classList.add("selected"):D.isQualityOverride()||e.textContent!=j.auto?e.classList.remove("selected"):e.classList.add("selected")}};D.on("stageSet",t,{subsequent:!0}),D.on("qualityChange",t)},qualityText:function(e){var t=function(){if(!(hls=D.hls())){var t=j[D.getCurrentQuality().bitrate];e.textContent=D.isQualityOverride()?t:j.auto}};D.on("stageSet",t,{subsequent:!0}),D.on("qualityChange",t)},share:{},shareOverlay:{},shareLinkFacebook:function(t){var n=I.shareUrl||e.location;t.onclick=function(){L("http://www.facebook.com/sharer.php?u="+encodeURI(n))}},shareLinkTwitter:function(t){var n=I.shareUrl||e.location;t.onclick=function(){L("https://twitter.com/intent/tweet?url="+encodeURI(n))}},shareLinkGoogleplus:function(t){var n=I.shareUrl||e.location;t.onclick=function(){L("https://plus.google.com/share?url="+encodeURI(n))}},shareLinkWhatsapp:function(t){var n=I.shareUrl||e.location;t.onclick=function(){L("whatsapp://send?text="+n)}},timeMinute:function(e){e.innerHTML=D.pad(0,2),D.on(["progress","seek"],function(){e.innerHTML=D.pad(Math.floor(Math.floor(D.getTimePlayed())/60),2)}),D.on("stop",function(){e.innerHTML=D.pad(0,2)})},timeSecond:function(e){e.innerHTML=D.pad(0,2),D.on(["progress","seek"],function(){e.innerHTML=D.pad(Math.floor(D.getTimePlayed())%60,2)}),D.on("stop",function(){e.innerHTML=D.pad(0,2)})},timeSeconds:function(e){e.innerHTML.innerHTML=0,D.on(["progress","seek"],function(){e.innerHTML=Math.floor(D.getTimePlayed())}),D.on("stop",function(){e.innerHTML=0})},volume:{},volumeBar:function(t){D.addEvent(t,"click",function(n){n.stopPropagation();var i=t.getBoundingClientRect();if(D.dataset(t,"clOrientation")&&"vertical"==D.dataset(t,"clOrientation")){var o=e.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a=i.bottom+o,l=Math.round(a-n.pageY)/parseInt(getComputedStyle(t).height)*100;l<1?l=0:l>99&&(l=100),D.setVolume(l),D.triggerListeners("volumeChangeDone")}else{var c=e.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,r=i.left+c;l=Math.round((n.pageX-r)/parseInt(getComputedStyle(t).height)*100),l<1?l=0:l>99&&(l=100),D.setVolume(l),D.triggerListeners("volumeChangeDone")}}),D.on(["stageBuilt","volumeChange"],function(){var e=D.getVolume(),n=m(t,"volume-bar-filled");n&&(D.dataset(t,"clOrientation")&&"vertical"==D.dataset(t,"clOrientation")?n.style.height=e+"%":n.style.width=e+"%")},{subsequent:!0})},volumeBarFilled:{},volumeBarSlider:function(t){D.addEvent(t,"click",function(e){e.stopPropagation()}),D.addEvent(t,"mousedown",function(n){var i=h(t,"volume-bar-filled"),o=h(t,"volume-bar"),a=i.getBoundingClientRect();if(D.dataset(o,"clOrientation")&&"vertical"==D.dataset(o,"clOrientation")){var l=e.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,c=a.bottom+l;k(n,function(e){var t=Math.round(c-e.pageY)/parseInt(getComputedStyle(o).height)*100;t<1?t=0:t>99&&(t=100),D.setVolume(t)},function(){D.triggerListeners("volumeChangeDone")})}else{var r=e.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,s=a.left+r;k(n,function(e){var t=Math.round((e.pageX-s)/parseInt(getComputedStyle(o).height)*100);t<1?t=0:t>99&&(t=100),D.setVolume(t)},function(){D.triggerListeners("volumeChangeDone")})}})},volumeStep:{volumeIcons:{},add:function(e,t,n){e.percent=n;var i=h(e,"controls");i.uniqueid||(i.uniqueid=D.Counter.getUniqueNumber()),this.volumeIcons[i.uniqueid]||(this.volumeIcons[i.uniqueid]={}),e.controlsUniqueid=i.uniqueid;var o=Object.keys(this.volumeIcons[e.controlsUniqueid]);e.min=parseInt(n),e.max=100;for(var a=0;a<o.length;a++)if(o[a]>e.percent){a>0&&(this.volumeIcons[i.uniqueid][o[a-1]].max=e.percent-1),e.max=this.volumeIcons[i.uniqueid][o[a]].percent-1;break}this.volumeIcons[i.uniqueid][n]=e,this.init(e)},init:function(e){D.addEvent(e,"click",function(){D.isMuted()?D.unmute():D.mute()}),D.on("volumeChange",function(){var t=D.getVolume();t>=e.min&&t<=e.max?e.style.display="block":e.style.display="none"})}}},j={auto:"Auto",500:"S",1e3:"M",3e3:"L",5e3:"XL"};return{getId:s,getLayer:d,getMode:u,getName:p,getParams:v,getType:g,getVersion:f,getWrapper:b,init:y,setId:T,setLayer:C,setParams:q,setWrapper:E}};l.prototype.name=n,l.prototype.version=i,l.prototype.type=o,l.prototype.mode=a,e.Cliplister.addPlugin(l)}(window,void 0);!function(e,n){var t="ClickableVideo",i="1.1",r="visual",u="inner",o=function(e){function n(){return h}function p(){return P}function l(){return T}function a(){return w}function c(){return e}function s(){return E}function f(){return k}function g(){return C}function d(){b=document.createElement("div"),b.style.position="absolute",e.pluginApi.transparentBackground(b),b.onclick=function(){B++,1==B?(clearTimeout(z),z=setTimeout(function(){B=0,clearTimeout(z),e.pluginApi.isPlaying()?e.pluginApi.pause():e.pluginApi.play()},200)):2==B&&(B=0,clearTimeout(z),e.pluginApi.features().fullscreen.fullscreenElement()?e.pluginApi.leaveFullscreen():e.pluginApi.enterFullscreen())},e.parent.appendChild(b),e.pluginApi.onPluginsBuilt(function(){e.pluginApi.setElementSize(b,"width","100%",!1),e.pluginApi.setElementSize(b,"height","100%")})}function m(e){return!h&&(h=e,!0)}function y(e){return!P&&(P=e,!0)}function A(n){return!e&&(e=n,!0)}function v(e){return!C&&(C=e,!0)}if(!(this instanceof o))return new o(e);var h,P,T,w,e,E,k,C,b;T=u,w=t,E=r,k=i;var z,B=0;return{getId:n,getLayer:p,getMode:l,getName:a,getParams:c,getType:s,getVersion:f,getWrapper:g,init:d,setId:m,setLayer:y,setParams:A,setWrapper:v}};o.prototype.name=t,o.prototype.version=i,o.prototype.type=r,o.prototype.mode=u,e.Cliplister.addPlugin(o)}(window,void 0);!function(n,e){var i="PlayButton",t="1.0",u="visual",o="inner",r=function(n){function e(){return v}function p(){return w}function l(){return E}function g(){return T}function a(){return n}function s(){return b}function c(){return k}function d(){return q}function f(){return!!P()&&(x=document.createElement("div"),x.style.position="absolute",n.pluginApi.exists(n.image)&&(x.style.backgroundImage="url("+n.image+")"),x.style.backgroundSize="100% auto",x.style.cursor="pointer",n.pluginApi.addEvent(x,"click",function(){n.pluginApi.play()}),n.pluginApi.on("play",function(){n.pluginApi.hidePlugin(v)}),n.pluginApi.on("stop",function(){n.pluginApi.showPlugin(v)}),n.pluginApi.onPluginsBuilt(function(){n.pluginApi.setElementPosition({element:x,position:"top",value:"50%",reposition:!1,fromMiddlePoint:{x:!0,y:!0}}),n.pluginApi.setElementPosition({element:x,position:"left",value:"50%",reposition:!1,fromMiddlePoint:{x:!0,y:!0}}),n.pluginApi.setElementSize(x,"width",n.width,!1),n.pluginApi.setElementSize(x,"height",n.height)}),void n.parent.appendChild(x))}function m(n){return!v&&(v=n,!0)}function h(n){return!w&&(w=n,!0)}function y(e){return!n&&(n=e,!0)}function A(n){return!q&&(q=n,!0)}function P(){return n.image?n.width?!!n.height||(n.pluginApi.log("The "+z.name+" plugin requires a height.",1),!1):(n.pluginApi.log("The "+z.name+" plugin requires a width.",1),!1):(n.pluginApi.log("The "+z.name+" plugin requires the image parameter.",1),!1)}if(!(this instanceof r))return new r(n);var v,w,E,T,n,b,k,q,x,z=this;return E=o,T=i,b=u,k=t,{getId:e,getLayer:p,getMode:l,getName:g,getParams:a,getType:s,getVersion:c,getWrapper:d,init:f,setId:m,setLayer:h,setParams:y,setWrapper:A}};r.prototype.name=i,r.prototype.version=t,r.prototype.type=u,r.prototype.mode=o,n.Cliplister.addPlugin(r)}(window,void 0);!function(n,e){var i="PreviewImage",t="1.0",r="visual",u="inner",o=function(n){function e(){return b}function p(){return k}function c(){return w}function g(){return P}function s(){return n}function a(){return h}function l(){return z}function f(){return S}function d(){I=document.createElement("div"),I.style.position="absolute",I.style.backgroundColor="#fff",I.style.backgroundPosition="center center",I.style.backgroundSize="cover",n.pluginApi.on("assetReady",function(){var e=n.pluginApi.getAsset();n.pluginApi.exists(n.image)?I.style.backgroundImage="url("+n.image+")":n.pluginApi.exists(e.previews)&&n.pluginApi.exists(e.previews.picture)&&(I.style.backgroundImage="url("+e.previews.picture+")")}),n.backgroundSize&&(I.style.backgroundSize="contain"===n.backgroundSize?"contain":"cover"),n.pluginApi.on("play",function(){n.pluginApi.hidePlugin(b)}),n.pluginApi.on("stop",function(){n.pluginApi.showPlugin(b)}),I.onclick=function(){n.pluginApi.play()},n.parent.appendChild(I),n.pluginApi.onPluginsBuilt(function(){n.pluginApi.setElementSize(I,"width","100%",!1),n.pluginApi.setElementSize(I,"height","100%")})}function y(n){return!b&&(b=n,!0)}function m(n){return!k&&(k=n,!0)}function A(e){return!n&&(n=e,!0)}function v(n){return!S&&(S=n,!0)}if(!(this instanceof o))return new o(n);var b,k,w,P,n,h,z,S,I;w=u,P=i,h=r,z=t;return{getId:e,getLayer:p,getMode:c,getName:g,getParams:s,getType:a,getVersion:l,getWrapper:f,init:d,setId:y,setLayer:m,setParams:A,setWrapper:v}};o.prototype.name=i,o.prototype.version=t,o.prototype.type=r,o.prototype.mode=u,n.Cliplister.addPlugin(o)}(window,void 0);!function(e,t){var i="BufferingSpinner",n="1.0",r="visual",A="inner",o=function(e){function t(){return h}function a(){return L}function g(){return N}function l(){return Q}function d(){return e}function s(){return B}function u(){return T}function p(){return w}function E(){document.getElementsByClassName("activityIndicator").length&&(document.getElementsByClassName("activityIndicator")[0].style.display="block")}function C(){document.getElementsByClassName("activityIndicator").length&&(document.getElementsByClassName("activityIndicator")[0].style.display="none")}function f(){if(!I())return!1;c=document.createElement("div"),e.parent.appendChild(c);var t=document.createElement("img");t.className="activityIndicator",t.style.position="absolute",t.style.position="absolute",t.style.display="none",c.appendChild(t),e.pluginApi.exists(e.image)?t.src="url("+e.image+")":t.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAAEwCAYAAADfOUbNAAAgAElEQVR4nO3de3SU1bkw8Od999ySkISbBKGC/fpZdNV6rIb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R2uapuEuJknCQzpT9O677xZqunY51ccZEePu0tLSv7AYEw8HDhzg+ks1ZswYZa/Nw4cPf03TtD+n+jhN0/rjGljqlL1QRGtpaSkoKiqaqula3IJg0zBrI7mRlkljJyl/54VBLHV/+tOfBnR1dVUm2g/Mtu2a8+fPb+eV0uNEyl8oiA8MYkhWuCaGEFIaBjGEkNIwiCGElIZBDCGkNAxiCCGlYRBDSTFtc6UT+0LqwyCGkuJ1e7kdkMGzL6Q+DGIoKSdOnDjpxL6Q+jChECWNV8IrJrqiVOCdGEpae3v7MCf0gZwFP/FQSljfjeFdGEoV3omhlASDwUIV20bOhUEMpWTixIltpmmW0m7XNM1S3MkBpQODGEpZSUnJXtM0n6bVnmmaT5eUlOyl1R7KLrj+gNK2f//+CYSQ1kzaME2zFAMYygQGMZSR3bt3FxQWFqa1G2kwGCzEKSTKFAYxREVra+ut+fn5Z5L52fb29mGlpaWfsh4Tyg4YxBBVgUCA3HLLLbe5ve7pRsSYDwDgcrs2REKRrZ9//vk/8LBghBBC6Av+P556OTenadBoAAAAAElFTkSuQmCC";var i=document.createElement("style");i.type="text/css",i.innerHTML=".activityIndicator {height:40px;width:40px;-webkit-background-size:40px 40px;margin:0px auto;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;-webkit-animation-name:spinnerAnim;}@-webkit-keyframes spinnerAnim {0% { -webkit-transform:rotate(0deg);}100% { -webkit-transform:rotate(360deg);}}",document.head.appendChild(i),e.pluginApi.onPluginsBuilt(function(){e.pluginApi.setElementPosition({element:c,position:"top",value:"50%",reposition:!1,fromMiddlePoint:{x:!0,y:!0}}),e.pluginApi.setElementPosition({element:c,position:"left",value:"50%",reposition:!1,fromMiddlePoint:{x:!0,y:!0}}),e.pluginApi.setElementSize(c,"width",e.width,!1),e.pluginApi.setElementSize(c,"height",e.height)}),e.parent.appendChild(c),e.pluginApi.on("buffering",E),e.pluginApi.on("bufferingDone",C)}function m(e){return!h&&(h=e,!0)}function y(e){return!L&&(L=e,!0)}function M(t){return!e&&(e=t,!0)}function D(e){return!w&&(w=e,!0)}function I(){return e.width?!!e.height||(e.pluginApi.log("The "+V.name+" plugin requires a height.",1),!1):(e.pluginApi.log("The "+V.name+" plugin requires a width.",1),!1)}if(!(this instanceof o))return new o(e);var h,L,N,Q,e,B,T,w,c,V=this;return N=A,Q=i,B=r,T=n,{getId:t,getLayer:a,getMode:g,getName:l,getParams:d,getType:s,getVersion:u,getWrapper:p,show:E,hide:C,init:f,setId:m,setLayer:y,setParams:M,setWrapper:D}};o.prototype.name=i,o.prototype.version=n,o.prototype.type=r,o.prototype.mode=A,e.Cliplister.addPlugin(o)}(window,void 0);