!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;"undefined"!=typeof n&&n(""),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.5",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,a){var r=getPluginIdByElement(e);if(r){var o=getPluginById(r);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";var e=platform.os.mobile&&exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&params.plugins.InnerControls.mobileDefaultControls,t="iOS"==platform.os.name&&platform.os.version>="10"&&exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&params.plugins.InnerControls.mobileDefaultControls;elements.innerPluginsContainer.style.height=e?elements.innerPluginsContainer.height-50+"px":elements.innerPluginsContainer.height+"px",elements.innerPluginsContainer.style.height=t?elements.innerPluginsContainer.height-100+"px":elements.innerPluginsContainer.height+"px",elements.innerPluginsContainer.style.top=t?parseInt(elements.innerPluginsContainer.style.top)+50+"px":parseInt(elements.innerPluginsContainer.style.top)+"px",exists(params.assetType)&&"data"==params.assetType&&(elements.innerPluginsContainer.style.display="none"),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 n=0;n<config.plugins.visual.inner.length;n++){var i=config.plugins.visual.inner[n];i.getWrapper().style.position="absolute",i.getWrapper().style.zIndex=i.getLayer(),i.getWrapper().classList.add("cl-inner-plugin-container"),i.getWrapper().style.left="-1px",i.getWrapper().style.top="-1px",i.getWrapper().id=i.getId(),elements.innerPluginsContainer.appendChild(i.getWrapper())}getPluginApi().on("play",function(){var e=platform.os.mobile&&exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&params.plugins.InnerControls.mobileDefaultControls,t="iOS"==platform.os.name&&exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&params.plugins.InnerControls.mobileDefaultControls;elements.innerPluginsContainer.style.top=config.measures.offsets.top+"px",elements.innerPluginsContainer.style.height=e?elements.innerPluginsContainer.height-50+"px":elements.innerPluginsContainer.height+"px",elements.innerPluginsContainer.style.height=t?elements.innerPluginsContainer.height-100+"px":elements.innerPluginsContainer.height+"px",elements.innerPluginsContainer.style.top=t?parseInt(elements.innerPluginsContainer.style.top)+50+"px":parseInt(elements.innerPluginsContainer.style.top)+"px",repositionInnerPluginElements()}),getPluginApi().on("stop",function(){elements.innerPluginsContainer.style.top=config.measures.offsets.top+"px",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,a=0;!function(){for(var r=0;r<config.plugins.visual.outer.length;r++){var o=config.plugins.visual.outer[r];!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),a++,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 r,o=config.stage.width?0:1,l=config.measures.availableWidth/(n+o);do{r=!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),r=!0;break}}}while(r);!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{r=!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),r=!0;break}}}while(r);for(var u=0;u<e.length;u++){var g=e[u];g.width||(g.width=l)}var p=config.stage.height?0:1,c=config.measures.availableHeight/(a+p);do{r=!1;for(var u=0;u<s.length;u++){var g=s[u];if(!g.height&&g.minHeight>c){g.height=g.minHeight,a--,config.measures.availableHeight-=g.height,c=config.measures.availableHeight/(a+p),r=!0;break}}}while(r);!config.stage.height&&config.stage.minHeight&&config.stage.minHeight>c&&(config.stage.height=config.stage.minHeight,p=0,config.measures.availableHeight-=config.stage.height,c=config.measures.availableHeight/(a+p));do{r=!1;for(var u=0;u<i.length;u++){var g=i[u];if(!g.height&&c>g.maxHeight){g.height=g.maxHeight,a--,config.measures.availableHeight-=g.height,c=config.measures.availableHeight/(a+p),r=!0;break}}}while(r);for(var u=0;u<i.length;u++){var g=i[u];g.height||(g.height=c)}}(),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]))&&(t=Array.isArray(t)?t:[t],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 a(t){o?delete e.dataset[t]:e.removeAttribute("data-"+camelCaseToDashed(t))}function r(){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 a=e.attributes,n=Object.keys(a),i={},s=0;s<n.length;s++)/^data\-(.+)$/.test(a[s].nodeName)&&(i[a[s].nodeName]=a[s].nodeValue);return i}if("undefined"!=typeof document&&document.head){var o=!!document.head.dataset,l={set:i,get:s,del:a,toObject:r};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 a(){disableCSSTransition(e),removeEvent(e,r.endEvent,a),n!==undefined&&n()}var r=s();e.style[r.css]="all "+t+"ms",i!==undefined&&i&&addEvent(e,r.endEvent,a)}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 a=arguments[n];s(a)}return e}function getAsset(){return loadedAsset}function getAssetPosition(){return currentAssetIndex}function getNextAsset(){return getAssetPosition()+1===products[0].assets.length?getAssetPosition():currentAssetIndex+1}function getPrevAsset(){return 0===getAssetPosition()?0:currentAssetIndex-1}function isFirstAsset(){return 0===getAssetPosition()}function isLastAsset(){return getAssetPosition()+1===products[0].assets.length}function getCostumer(){return params.customer}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 getVideoDownloadLinks(){return!(!exists(loadedAsset)||!exists(loadedAsset.downloadLinks)||null==loadedAsset.downloadLinks)&&(Array.isArray(loadedAsset.downloadLinks)?loadedAsset.downloadLinks:[loadedAsset.downloadLinks])}function getVideoStreamingLinks(){return!(!exists(loadedAsset)||!exists(loadedAsset.streamingLinks)||null==loadedAsset.streamingLinks)&&(Array.isArray(loadedAsset.streamingLinks)?loadedAsset.streamingLinks:[loadedAsset.streamingLinks])}function getPublicApi(){return{clearInterval:clearInterval,destroy:function(){destroy()},enterFullscreen:function(){return enterFullscreen(),getPublicApi()},getCurrentBitrate:function(){return getCurrentBitrate()},getDuration:function(){return getDuration()},getProgressPlayed:function(){return getProgressPlayed()},getTimePlayed:function(){return getTimePlayed()},getTimePlayedMs:function(){return 1e3*getTimePlayed()},getTimeBuffered:function(){return getTimeBuffered()},getPercentBuffered:function(){return getPercentBuffered()},getNextAsset:function(){return getNextAsset()},getPrevAsset:function(){return getPrevAsset()},getVideoDownloadLinks:function(){return getVideoDownloadLinks()},getVideoStreamingLinks:function(){return getVideoStreamingLinks()},playNextAsset:function(){return playAsset(getNextAsset()),getPublicApi()},playPrevAsset:function(){return playAsset(getPrevAsset()),getPublicApi()},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},isIOS10:function(){return"iOS"==platform.os.name&&platform.os.version>="10"},getAsset:getAsset,loadAsset:loadAsset,getNextAsset:getNextAsset,getPrevAsset:getPrevAsset,isFirstAsset:isFirstAsset,isLastAsset:isLastAsset,playNextAsset:function(){playAsset(getNextAsset())},playPrevAsset:function(){playAsset(getPrevAsset())},getAssetPosition:getAssetPosition,getCostumer:getCostumer,getProducts:function(){return products},getBackgroundColor:getBackgroundColor,getCurrentBitrate:getCurrentBitrate,getCurrentQuality:getCurrentQuality,getVidSrc:getVidSrc,getDuration:getDuration,getPluginById:getPluginById,getPluginIdByElement:getPluginIdByElement,getProgressPlayed:getProgressPlayed,getStageDimension:getStageDimension,getTimePlayed:getTimePlayed,getTimeBuffered:getTimeBuffered,getPercentBuffered:getPercentBuffered,getVolume:getVolume,getVideoDownloadLinks:getVideoDownloadLinks,getVideoStreamingLinks:getVideoStreamingLinks,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)},onResize:function(e){on("resize",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,prevLvl:prevLvl,nextLvl:nextLvl,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 a in n)if((n[a]instanceof Object||n[a]instanceof Array)&&(i=t(n[a])))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);var n=!(!exists(params.assetkind)||"360view"!==params.assetkind);n?cl.ajax(t,function(e){if(e){var t=JSON.parse(e.responseText);processProducts360(t)}else triggerListeners("fatalAbort")}):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(){function e(){"iOS"==platform.os.name?(callStage("enableIOSmobileautoplay",!0),callStage("play"),play(),stage.play()):"Safari"==platform.browser.name&&platform.browser.version>=11||callStage("play")}var t=exists(params.initialAsset)?params.initialAsset:0;loadAsset(t),(params.autoplay||params.backgroundvideo&&!platform.os.mobile&&(!exists(params.autoplay)||params.autoplay))&&(on("mediaReady",e()),hls()&&on("hlsCG",e()),"always"!=params.autoplay&&("iOS"==platform.os.name&&callStage("enableIOSmobileautoplay",!1),off("mediaReady",e()),hls()&&off("hlsCG",e()))),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,exists(params.assetType)&&"data"==params.assetType&&(params.output=exists(params.output)?params.output:"viewer",params.assetkind=exists(params.assetkind)?params.assetkind:"pages"),processParameters()&&(this.platform=detectPlatform(),detectFeatures(),config.originalDimensions=getComputedStyle(config.parent),initViewer(),orderRequestToken(function(){if(!exists(params.slot)||exists(params.assetType)&&"data"==params.assetType?t():getSlotContent(requestToken,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 a=i(n);a.setWrapper(s),"outer"==i.prototype.mode?(a.setPriority(n.priority),a.setPosition(n.position),config.plugins.visual.outer.push(a)):"inner"==i.prototype.mode&&(a.mode="inner",a.setLayer(n.layer),config.plugins.visual.inner.push(a))}else if("functional"==i.prototype.type){var a=i();config.plugins.functional.push(a)}a.setParams(n),a.positionListeners=[],n.id?a.setId(n.id):a.setId(t++),a.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(){exists(elements.stageWrapper)||(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"),exists(params.assetType)&&"data"===params.assetType&&exists(params.output)&&"data"===params.output?(setStage(params.assetType),isDone("pluginsBuilt")?callStage("showMedia",[loadedAsset]):on("pluginsBuilt",function(){callStage("showMedia",[loadedAsset])})):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),exists(params.assetType)&&"data"===params.assetType&&exists(params.output)&&"data"===params.output&&(t=!0),stop(),"undefined"==typeof t)for(var i=0,s=!1,a=0;a<products.length;a++){for(var r=0;r<products[a].assets.length;r++){if(e<1e3&&e==i||e>=1e3&&e==products[a].assets[r].id){s=!0,loadedAsset=products[a].assets[r],currentAssetIndex=e,n();break}i++}if(s)break}else loadedAsset=products,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),exists(params.assetkind)&&(t.assetkind=params.assetkind),exists(params.assettype)&&(t.assettype=params.assettype),exists(params.output)&&(t.output=params.output),exists(params.bcuid)&&(t.bcuid=params.bcuid),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 nextLvl(){stage.nextLvl()}function prevLvl(){stage.prevLvl()}function pause(){exists(stage)&&isDone("mediaReady")&&stage.pause()}function play(){exists(stage)&&isDone("mediaReady")&&callStage("play")}function getVidSrc(){var e="";return exists(stage)&&isDone("mediaReady")&&(e=stage.getSrc()),e}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.downloadLinks=e.videoDownloadLinks||null,t.streamingLinks=e.videoStreamingLinks||null,t}function n(e,n){var i={product:{},assets:[]};i.product.title=e.producttext||"",i.product.description=e.productshortdesc||"",i.product.link=e.productlink||null,delete e.producttext,delete e.productshortdesc;var s=e.relatedclips;e.related=!1,delete e.relatedclips;var a=t(e);if(i.assets.push(a),exists(s)&&""!=s)if(s.clip instanceof Array){n=n?n-1:s.clip.length,n=Math.min(n,s.clip.length);for(var r=0;r<n;r++)s.clip[r].related=!0,i.assets.push(t(s.clip[r]))}else(!n||n>1)&&(s.clip.related=!0,i.assets.push(t(s.clip)));return i}if("1"!==e.cliplist.version||"undefined"==typeof e.cliplist.clip&&"undefined"==typeof e.cliplist.pages)triggerListeners("fatalAbort");else{var i=!!exists(params.assetLimit)&&params.assetLimit;if(e.cliplist.clip instanceof Array)for(var s=0;s<e.cliplist.clip.length;s++){var a=e.cliplist.clip[s];products.push(n(a,i))}else e.cliplist.pages instanceof Array?products.push(e.cliplist.pages):products.push(n(e.cliplist.clip,i));triggerListeners("productsLoaded")}}function processProducts360(e){function t(e){var t=e[1];return t.type="image360",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),exists(i)&&""!=i)if(i.clip instanceof Array)for(var a=0;a<i.clip.length;a++)i.clip[a].related=!0,n.assets.push(t(i.clip[a]));else i.clip.related=!0,n.assets.push(t(i.clip));return n}"1"===e.cliplist.version&&"undefined"!=typeof e.cliplist["360view"]?(products.push(n(e.cliplist["360view"])),triggerListeners("productsLoaded")):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 a=e.minWidth?distanceToPx(e.minWidth,t.container.width):0,r=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<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.maxWidth&&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.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,a,r,o,l;1==arguments.length?(e.element!==undefined&&(i=e.element),e.position!==undefined&&(s=e.position),e.value!==undefined&&(a=e.value),e.fromMiddlePoint!==undefined&&(e.fromMiddlePoint.x!==undefined&&(r=e.fromMiddlePoint.x),e.fromMiddlePoint.y!==undefined&&(o=e.fromMiddlePoint.y)),e.reposition!==undefined&&(l=e.reposition)):(i=e,s=t,a=n),"undefined"==typeof l&&(l=!0),"undefined"==typeof r&&(r=!1),"undefined"==typeof o&&(o=!1),disableCSSTransition(i),reSetElementPosition(i,s,a,r,o),l!==undefined&&l&&repositionInnerPluginElement(i)}function setElementSizeWithinInnerPlugin(e,t,n,i){var s,a,r,o,l,u;1==arguments.length?(e.element!==undefined&&(s=e.element),e.dimension!==undefined&&(a=e.dimension),e.value!==undefined&&(r=e.value),e.min!==undefined&&(u=e.min),e.min!==undefined&&(u=e.min),e.min!==undefined&&(u=e.min),e.min!==undefined&&(u=e.min),e.max!==undefined&&(l=e.max)):(s=e,a=t,r=n,o=i),"undefined"==typeof o&&(o=!0),s===undefined||"width"!=a&&"height"!=a||r===undefined||("auto"==r?delete s[a]:s[a]=r,u!==undefined&&(s["min"+capitalizeFirstLetter(a)]=u),l!==undefined&&(s["max"+capitalizeFirstLetter(a)]=l),o&&repositionInnerPluginElement(s))}function setProgressPlayed(e){stage.setProgressPlayed(e)}function setStage(e){function t(e){if(exists(elements.stageWrapper)||initStage(),!stage||stage.getType!==e){var t=config.stage;t.parent=elements.stageWrapper,t.viewer=self,t.pluginApi=getPluginApi(),stage=cl.getStage(e)(t),"iOS"==platform.os.name&&callStage("enableIOSmobileautoplay",!0),triggerListeners("stageSet")}}isDone("pluginsBuilt")?t(e):on("pluginsBuilt",function(){t(e)})}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";var t=platform.os.mobile&&exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&params.plugins.InnerControls.mobileDefaultControls,n="iOS"==platform.os.name&&exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&params.plugins.InnerControls.mobileDefaultControls;elements.innerPluginsContainer.style.top=config.measures.offsets.top+"px",elements.innerPluginsContainer.style.height=t?elements.innerPluginsContainer.height-50+"px":elements.innerPluginsContainer.height+"px",elements.innerPluginsContainer.style.height=n?elements.innerPluginsContainer.height-100+"px":elements.innerPluginsContainer.height+"px",elements.innerPluginsContainer.style.top=n?parseInt(elements.innerPluginsContainer.style.top)+50+"px":parseInt(elements.innerPluginsContainer.style.top)+"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 a={};exists(e.width)&&(a.width=e.width),exists(e.height)&&(a.height=e.height),exists(e.top)&&(a.top=e.top),exists(e.right)&&(a.right=e.right),exists(e.bottom)&&(a.bottom=e.bottom),exists(e.left)&&(a.left=e.left),exists(e.hidden)&&(a.hidden=e.hidden),t&&(a.animate=!0,a.duration=n);for(var r=0;r<s.listeners.length;r++)s.listeners[r](a)}}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,currentAssetIndex,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()||"undefined"==typeof getAsset().aspectratio||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 a=n.width/s[0]*s[1];n.minHeight&&a<n.minHeight?n.height=n.minHeight:params.stage.maxHeight&&a>params.stage.maxHeight?n.height=n.maxHeight:n.height=a,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 r=n.height/s[1]*s[0];params.stage.minWidth&&r<params.stage.minWidth?n.width=n.minWidth:params.stage.maxWidth&&r>params.stage.maxWidth?n.width=n.maxWidth:n.width=r,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(),triggerListeners("resize")}}};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(n){function i(t){var i=("https:"==location.protocol?"https:":"http:")+"//mycliplister.com/static/viewer/assets/chk/meta2.png?n="+Math.random(),r=[],u=[],a=[],l=[],o=0,s=new XMLHttpRequest;s.addEventListener("loadstart",function(e){"undefined"==typeof r[t]&&(r[t]=(new Date).getTime())}),s.addEventListener("loadend",function(i){u[t]=(new Date).getTime();var s="undefined"==typeof l[t]?r[t]:l[t],p="undefined"==typeof a[t]?u[t]:a[t],c=(p-s)/1e3,g=8*o;e.downloadSpeed=Math.round(g/c),n.pluginApi.triggerListeners("bandwidthChecked")}),s.addEventListener("progress",function(e){o=e.loaded}),s.onreadystatechange=function(){2==s.readyState&&(l[t]=(new Date).getTime())},s.open("GET",i),s.timeout=2e3,s.send()}function u(){z.playPosition=I.getTimePlayed(),z.playProgress=I.getProgressPlayed(),z.bufferPercent=I.getPercentBuffered(),z.playPosition==z.oldPlayPosition?(n.pluginApi.triggerListeners("buffering"),D=!0):(D=!1,n.pluginApi.triggerListeners("bufferingDone")),j||(z.playPosition==z.oldPlayPosition&&!W&&z.playPosition-z.lastQualityChange>3&&(z.lastQualityChange=z.playPosition,z.maxQuality=x.quality>0?x.quality-1:0,q()),!D&&(O*(z.playProgress-z.oldPlayProgress)<z.bufferPercent-z.oldBufferPercent&&z.bufferPercent-z.playProgress>3||z.bufferPercent-z.playProgress>4)&&(z.bufferPercent-z.playProgress>7&&(z.maxQuality=x.quality<V.length-1?x.quality+1:V.length-1),z.lastQualityChange=z.playPosition,C())),z.oldPlayPosition=z.playPosition,z.oldPlayProgress=z.playProgress,z.oldBufferPercent=z.bufferPercent,x.quality!=z.currentQuality&&n.pluginApi.isDone("bandwidthChecked")&&(x.quality=z.currentQuality,w())}function a(){try{x.requestFullscreen?x.requestFullscreen():x.msRequestFullscreen?x.msRequestFullscreen():x.mozRequestFullScreen?x.mozRequestFullScreen():x.webkitRequestFullscreen?x.webkitRequestFullscreen():x.webkitEnterFullscreen&&x.webkitEnterFullscreen()}catch(e){}}function l(){return V}function o(){p(),s()}function s(){I.switchBitrate=function(e){return I},I.enterFullscreen=function(){return a(),I},I.getAvailableQualities=function(){return l()},I.getCurrentBitrate=function(){return V[z.currentQuality].bitrate},I.getCurrentQuality=function(){return V[z.currentQuality]},I.getDuration=function(){return Math.round(x.duration)},I.getProgressPlayed=function(){return x.currentTime/(x.duration/100)},I.getTimePlayed=function(){return x.currentTime},I.getTimeBuffered=function(){return x.buffered.end(x.buffered.length-1)},I.getPercentBuffered=function(){return x.buffered.length?x.buffered.end(x.buffered.length-1)/x.duration*100:0},I.getPlaybackSpeed=function(){},I.getVolume=function(){return parseInt(100*x.volume)},I.getSrc=function(){return k(z.currentQuality)},I.isMuted=function(){return x.muted},I.isNativeFullscreen=function(){return E},I.isPlaying=function(){return R},I.isQualityOverride=function(){return j},I.isStopped=function(){return B},I.leaveFullscreen=function(){return d(),I},I.mute=function(){z.volumeBeforeMute=n.pluginApi.getVolume(),n.pluginApi.setVolume(0),x.muted=!0,n.pluginApi.triggerListeners("mute"),n.pluginApi.triggerListeners("volumeChange")},I.onFullscreenChange=function(e){S(e)},I.pause=function(){return y(),I},I.play=function(){return m(),I},I.setTimePlayed=function(e){return h(e),I},I.setProgressPlayed=function(e){return v(e),I},I.setQuality=function(e){return L(e),I},I.setQualityOverride=function(e){return b(e),I},I.setVolume=function(e){return x.muted&&(x.muted=!1,n.pluginApi.triggerListeners("unmute")),x.volume=e/100,n.pluginApi.triggerListeners("volumeChange"),I},I.showMedia=function(e){A(e)},I.stop=function(){return F(),n.pluginApi.triggerListeners("stop"),I},I.unmute=function(){x.muted=!1,n.pluginApi.setVolume(z.volumeBeforeMute),n.pluginApi.triggerListeners("unmute"),n.pluginApi.triggerListeners("volumeChange")},I.slower=function(){return x.playbackRate>=Y+K&&(x.playbackRate-=K,n.pluginApi.triggerListeners("playbackSpeedChange")),I},I.faster=function(){return x.playbackRate<=J-K&&(x.playbackRate+=K,n.pluginApi.triggerListeners("playbackSpeedChange")),I},I.setSpeed=function(e){return e>=Y&&e<=J&&(x.playbackRate=e,n.pluginApi.triggerListeners("playbackSpeedChange")),I},I.resetSpeed=function(){return x.playbackRate=x.defaultPlaybackRate,n.pluginApi.triggerListeners("playbackSpeedChange"),I},I.getCurrentSpeed=function(){return x.playbackRate},I.changeQuality=function(e){return Q(e),I},I.showDefaultControls=function(){return c(),I},I.hideDefaultControls=function(){return g(),I},I.enableIOSmobileautoplay=function(e){return f(e),I}}function p(){n.parent.innerHTML="",T=document.createElement("div"),T.style.position="absolute",T.style.top="-1px",T.style.right="-1px",T.style.bottom="-1px",T.style.left="-1px",T.style.backgroundColor=n.pluginApi.getBackgroundColor(),T.style.color="#FFFFFF",n.parent.appendChild(T);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),x=document.createElement("video"),x.style.width="100%",x.style.height="100%",x.style.backgroundColor=n.pluginApi.getBackgroundColor(),x.preload="auto",x.controlsList="",T.appendChild(x);var t=50;n.pluginApi.exists(n.defaultVolume)&&(t=n.defaultVolume),x.volume=t/100,n.pluginApi.addEvent(x,"ended",function(){n.pluginApi.triggerListeners("finish"),n.pluginApi.stop(!0)})}function c(){x.controls="true",x.controlsList="nodownload"}function g(){x.controls="false",x.controlsList=""}function f(e){return e=!!n.pluginApi.exists(e)&&!!e,z.volumeBeforeMute=n.pluginApi.getVolume(),e?(n.pluginApi.mute(),x.muted=!0,x.autoplay=!0,x.controls=!0,x.playsinline=!0,x.setAttribute("muted",!0),x.setAttribute("autoplay",!0),x.setAttribute("controls",!0),void x.setAttribute("playsinline",!0)):(x.removeAttribute("muted"),x.removeAttribute("autoplay"),x.removeAttribute("controls"),x.removeAttribute("playsinline"),!1)}function d(){n.pluginApi.platform().os.mobile&&"iOS"==n.pluginApi.platform().os.name&&n.pluginApi.resetViewerSize()}function y(){R&&(z.playPromise?z.playPromise.then(function(){x.pause()})["catch"](function(){x.pause()}):x.pause(),R=!1,M=!1,n.pluginApi.platform().os.mobile&&"iOS"==n.pluginApi.platform().os.name&&n.pluginApi.resetViewerSize(),n.pluginApi.triggerListeners("pause")),D=!1,n.pluginApi.triggerListeners("bufferingDone"),H.stop()}function m(){if(!R)if(W=!0,setTimeout(function(){W=!1},2e3),M=!0,""!=x.src){var e=x.play();e!==t?z.playPromise=e.then(function(){n.pluginApi.triggerListeners("bufferingDone"),R=!0,B=!1}):(x.play(),n.pluginApi.triggerListeners("bufferingDone"),R=!0,B=!1),n.pluginApi.triggerListeners("play"),H.start()}else w()}function h(e){x.duration&&(e=parseFloat(e),W=!0,setTimeout(function(){W=!1},2e3),e=e>=0?e<=x.duration?e:x.duration:0,x.currentTime=e,n.pluginApi.triggerListeners("seek"))}function v(e){x.duration&&(e=parseFloat(e),W=!0,setTimeout(function(){W=!1},2e3),x.currentTime=e>0?x.duration/100*e:0,n.pluginApi.triggerListeners("seek"))}function b(e){j=e}function A(t){var r=document.createElement("source");r.type="video/mp4";var u=t.uri.split("/");x.protocol=u[0],x.baseUrl=u[2],x.crypt=u.pop(),x.costumer=u.pop(),b(!0),"undefined"==typeof e.downloadSpeed?(i(Math.round(1e7*Math.random())),n.pluginApi.on("bandwidthChecked",function(){x.quality=P(e.downloadSpeed/1024),z.currentQuality=x.quality,x.appendChild(r),n.pluginApi.triggerListeners("mediaReady")})):(x.quality=P(e.downloadSpeed/1024),z.currentQuality=x.quality,x.appendChild(r),n.pluginApi.triggerListeners("mediaReady"))}function P(e){var t=0;return V.every(function(n,i,r){return!(.7*e<n.bitrate)&&(t=i,!0)}),t}function k(e,t){var i=n.pluginApi.getAvailableQualities();return x.protocol+"//"+x.baseUrl+"/"+i[e].string+"/"+x.costumer+"/"+x.crypt}function L(e){function t(e){b(!0),e>=0&&e<=z.maxQuality&&(z.currentQuality=e)}var i=l();if(e instanceof Object){if(n.pluginApi.exists(e.number))t(e.number);else if(n.pluginApi.exists(e.bitrate))if("auto"===e)b(!1);else for(var r=0;r<i.length;r++)if(e.bitrate==parseInt(i[r].bitrate)){t(e.bitrate);break}}else{var u=parseInt(e);if(u){if(u<i.length)t(e);else for(var r=0;r<i.length;r++)if(e==parseInt(i[r].bitrate)){t(r);break}}else"auto"===e&&b(!1)}n.pluginApi.triggerListeners("qualityChange")}function w(){function t(){if(x.currentTime=z.currentTime||0,i&&!E&&y(),M){R=!1,m(),n.pluginApi.triggerListeners("bufferingDone"),U.removeCanvas();var e=setInterval(function(){x.currentTime>z.currentTime&&(clearInterval(e),H.start(),n.pluginApi.triggerListeners("bufferingDone"),n.pluginApi.triggerListeners("initialImagesLoaded"))},10)}x.removeEventListener("canplay",t),X=!1}var i=E;return N=!0,G=!0,z.currentTime=x.currentTime,n.pluginApi.triggerListeners("qualityChange"),z.playPromise?z.playPromise.then(function(){x.pause()})["catch"](function(){x.pause()}):x.pause(),U.createCanvas(),H.stop(),n.pluginApi.triggerListeners("buffering"),x.quality=n.pluginApi.exists(x.quality)?x.quality:P(e.downloadSpeed/1024),x.src=k(x.quality),x.load(),x.addEventListener("canplay",t),x.src}function C(){return z.currentQuality<z.maxQuality&&void z.currentQuality++}function q(){return z.currentQuality>0&&void z.currentQuality--}function Q(e){L(parseInt(e))}function S(e){x.requestFullScreen?n.pluginApi.addEvent(x,"fullscreenchange",function(){e()}):x.mozRequestFullScreen?n.pluginApi.addEvent(x,"mozfullscreenchange",function(){e()}):x.webkitRequestFullScreen?n.pluginApi.addEvent(x,"webkitfullscreenchange",function(){e()}):x.msRequestFullscreen?n.pluginApi.addEvent(x,"MSFullscreenChange",function(){e()}):(n.pluginApi.addEvent(x,"webkitendfullscreen",function(){E=!1,y(),e()}),n.pluginApi.addEvent(x,"webkitbeginfullscreen",function(){E=!0,e()}))}function F(){B||(z.playPromise?z.playPromise.then(function(){x.pause()})["catch"](function(){x.pause()}):x.pause(),x.currentTime=0,R=!1,M=!1,B=!0,n.pluginApi.triggerListeners("stop"),H.stop()),D=!1,n.pluginApi.triggerListeners("bufferingDone")}if(!(this instanceof r))return new r(n);var T,x,I=this,E=!1,R=!1,M=!1,B=!0,D=!1,V=[{string:"vs",display:"S",bitrate:"500"},{string:"vm",display:"M",bitrate:"1000"},{string:"vx",display:"L",bitrate:"3000"}],z={volumeBeforeMute:null,currentTime:0,playPosition:0,oldPlayPosition:0,bufferPercent:null,oldBufferPercent:null,playProgress:null,oldPlayProgress:null,lastQualityChange:0,maxQuality:V.length-1,currentQuality:0,playPromise:null},O=5,H={checkInterval:null,notifyInterval:null,start:function(){this.stop(),this.checkInterval=setInterval(u,50),this.notifyInterval=setInterval(function(){n.pluginApi.triggerListeners("progress")},100)},stop:function(){clearInterval(this.checkInterval),clearInterval(this.notifyInterval)}},U={canvas:null,createCanvas:function(){this.canvas=document.createElement("canvas");var e=x.videoWidth,t=x.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(x,0,0,e,t),T.appendChild(this.canvas),this.canvas.style.width="100%"},removeCanvas:function(){this.canvas&&(T.removeChild(this.canvas),this.canvas=null)}},j=!1,G=!0,N=!0,W=!1,X=!1,Y=.5,J=2,K=.25;return o(),this};r.prototype.type=n,r.prototype.version=i,e.Cliplister.addStage(r)}(window,void 0);!function(e,t){var n="InnerControls",i="1.2",o="visual",a="inner",l=function(){function r(){(!U&&!R.exists(I.animation)||!U&&I.animation)&&(U=!0,R.animateElementPosition(D,"bottom",-1,300,function(){},!1,!0),R.showCursor())}function c(e){if(U&&!R.exists(I.animation)||U&&I.animation){U=!1,clearTimeout(F);var n=e===t?2e3:1;F=setTimeout(function(){(!A||e&&!V)&&(R.animateElementPosition(D,"bottom",-(X+1),300,function(){},!1,!0),R.isFullscreen()&&R.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 m(e,t){return R.dataset(e,"clBinding")==t?e:m(e.parentNode,t)}function h(e,t){if(R.dataset(e,"clBinding")==t)return e;for(var n=e.childNodes,i=0;i<n.length;i++)if(1==n[i].nodeType){var o=h(n[i],t);if(o)return o}}function y(){if(R.platform().os.mobile&&I.mobileDefaultControls)R.on("stageSet",function(){R.showDefaultControls()});else{if(D=document.createElement("div"),D.style.position="absolute",j=R.extend(!0,j,I.qualityLabels),R.exists(I.template)){if("external"==I.template.type){var e=I.template.source.replace(/[^\/]*$/,"");R.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),D.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,D.innerHTML=o.querySelector("#video-test-container").innerHTML,setTimeout(w,1)}R.onPluginsBuilt(function(){R.disableCSSTransition(D),R.setElementPosition(D,"bottom","-1",!1,!1),R.setElementSize(D,"width","100%",!1),R.setElementSize(D,"height",X),R.enableCSSTransition(D)}),R.onMouseenter(D,function(){V=!0}),R.onMouseleave(D,function(){V=!1}),R.on("mouseenter",function(){A=!0,R.addEvent(document,"mousemove",M),r()}),R.on("mouseleave",function(){A=!1,c(),clearTimeout(Q),R.removeEvent(document,"mousemove",M)}),c()}}function x(e){if(("fullscreen-enter"==e||"fullscreen-leave"==e)&&"IE"==R.platform().browser.name&&10==R.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&&R.removeEvent(document,"mousemove",o),R.removeEvent(document,"mouseup",a),i&&i(e)}1==e.which&&(R.addEvent(document,"mousemove",o),R.addEvent(document,"mouseup",a))}function w(){I.parent.appendChild(D);for(var e=D.getElementsByTagName("*"),t=0;t<e.length;t++){var n=e[t];if(R.dataset(n,"clBinding")){var i=R.dataset(n,"clBinding"),o=R.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,R=I.pluginApi,!0)}function E(e){return!N&&(N=e,!0)}function M(){r(),clearTimeout(Q),Q=setTimeout(function(){c(!0)},2e3)}if(!(this instanceof l))return new l;var S,O,B,H,I,P,z,N,R,D;B=a,H=n,P=o,z=i;var F,Q,U=!0,A=!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),R.setElementSize(D,"height",X),R.enableMovementListening(S,D)},durationMinute:function(e){e.innerHTML=R.pad(0,2),R.on("assetReady",function(){e.innerHTML=R.pad(Math.floor(R.getDuration()/60),2)},{subsequent:!0}),R.on("play",function(){e.innerHTML=R.pad(Math.floor(R.getDuration()/60),2)},{subsequent:!0})},durationSecond:function(e){e.innerHTML=R.pad(0,2),R.on("assetReady",function(){e.innerHTML=R.pad(R.getDuration()%60,2)},{subsequent:!0}),R.on("play",function(){e.innerHTML=R.pad(R.getDuration()%60,2)},{subsequent:!0})},durationSeconds:function(e){e.innerHTML.innerHTML=0,R.on("assetReady",function(){e.innerHTML=R.pad(R.getDuration(),2)},{subsequent:!0}),R.on("play",function(){e.innerHTML=R.pad(R.getDuration(),2)},{subsequent:!0})},fullscreenEnter:function(e){R.addEvent(e,"click",R.enterFullscreen),R.on("fullscreenChange",function(){R.isFullscreen()?(e.style.display="none",R.checkResize()):(e.style.display="block",R.animateElementPosition(D,"bottom",-(X+1),0,function(){},!1,!0),D.style.bottom=0)})},fullscreenLeave:function(e){R.addEvent(e,"click",R.leaveFullscreen),R.on("fullscreenChange",function(){R.isFullscreen()?(e.style.display="block",R.animateElementPosition(D,"bottom",-(X+1),0,function(){},!1,!0),D.style.bottom=0):(e.style.display="none",R.checkResize())})},pause:function(e){R.addEvent(e,"click",R.pause),R.on("play",function(){e.style.display="block"}),R.on(["pause","stop"],function(){e.style.display="none"})},play:function(e){R.addEvent(e,"click",R.play),R.on("play",function(){e.style.display="none"}),R.on(["pause","stop"],function(){e.style.display="block"})},playbackSpeed:{},playbackSpeedText:function(e){R.on("playbackSpeedChange",function(){e.textContent="x"+R.getCurrentSpeed()})},playbackSpeedFaster:function(e){R.addEvent(e,"click",function(){R.faster()})},playbackSpeedSlower:function(e){R.addEvent(e,"click",function(){R.slower()})},progress:{},progressBar:function(e){R.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),R.setProgressPlayed(o)})},progressBarFilled:function(e){R.on(["progress","seek"],function(){e.style.width=R.getProgressPlayed()+"%"}),R.on("stop",function(){e.style.width="0%"})},progressBarBuffered:function(e){R.on(["progress","seek"],function(){e.style.width=Math.floor(R.getPercentBuffered())+"%"})},progressBarSlider:function(e){R.addEvent(e,"mousedown",function(t){var n=m(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),R.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(R.dataset(n[o],"clBinding")&&"quality-overlay-entry"==R.dataset(n[o],"clBinding")){t=n[o];break}for(;e.firstChild;)e.removeChild(e.firstChild);t.textContent=j.auto,R.dataset(t).del("clBinding"),i.auto=t,R.exists(I.qualityLabelsOrder)||(e.appendChild(t),$.add(t,"qualityOverlayEntry")),R.on("stageSet",function(){function n(){o=R.hls(),o.on(Hls.Events.MANIFEST_PARSED,function(n,a){for(var l=o.levels,r=0;r<l.length;r++){var c=t.cloneNode(!0);c.textContent=l[r].height+"p",function(e){R.addEvent(c,"click",function(t){o.currentLevel=e})}(r),i["hls_"+r]=c,e.appendChild(c),$.add(c,"qualityOverlayEntry")}})}var o;if(o=R.hls())R.addEvent(t,"click",function(){o.currentLevel=-1}),R.on("hlsReady",n);else{var a=R.getAvailableQualities();R.addEvent(t,"click",function(){R.setQuality("auto")});for(var l=0;l<a.length;l++){var r=t.cloneNode(!0);r.textContent=j[a[l].bitrate],function(e){R.addEvent(r,"click",function(){R.setQuality(a[e].bitrate)})}(l),i[a[l].bitrate]=r,R.exists(I.qualityLabelsOrder)||(e.appendChild(r),$.add(r,"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=R.hls())){var t=R.getCurrentQuality();if(R.exists(t)){var n=j[R.getCurrentQuality().bitrate];e.textContent==n?e.classList.add("selected"):R.isQualityOverride()||e.textContent!=j.auto?e.classList.remove("selected"):e.classList.add("selected")}}};R.on("stageSet",t,{subsequent:!0}),R.on("qualityChange",t)},qualityText:function(e){var t=function(){if(!(hls=R.hls())){var t=R.getCurrentQuality();if(R.exists(t)){var n=j[R.getCurrentQuality().bitrate];e.textContent=R.isQualityOverride()?n:j.auto}}};R.on("stageSet",t,{subsequent:!0}),R.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))}},timeMinute:function(e){e.innerHTML=R.pad(0,2),R.on(["progress","seek"],function(){e.innerHTML=R.pad(Math.floor(Math.floor(R.getTimePlayed())/60),2)}),R.on("stop",function(){e.innerHTML=R.pad(0,2)})},timeSecond:function(e){e.innerHTML=R.pad(0,2),R.on(["progress","seek"],function(){e.innerHTML=R.pad(Math.floor(R.getTimePlayed())%60,2)}),R.on("stop",function(){e.innerHTML=R.pad(0,2)})},timeSeconds:function(e){e.innerHTML.innerHTML=0,R.on(["progress","seek"],function(){e.innerHTML=Math.floor(R.getTimePlayed())}),R.on("stop",function(){e.innerHTML=0})},volume:{},volumeBar:function(t){R.addEvent(t,"click",function(n){n.stopPropagation();var i=t.getBoundingClientRect();if(R.dataset(t,"clOrientation")&&"vertical"==R.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),R.setVolume(l),R.triggerListeners("volumeChangeDone")}else{var r=e.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,c=i.left+r;l=Math.round((n.pageX-c)/parseInt(getComputedStyle(t).height)*100),l<1?l=0:l>99&&(l=100),R.setVolume(l),R.triggerListeners("volumeChangeDone")}}),R.on(["stageBuilt","volumeChange"],function(){var e=R.getVolume(),n=h(t,"volume-bar-filled");n&&(R.dataset(t,"clOrientation")&&"vertical"==R.dataset(t,"clOrientation")?n.style.height=e+"%":n.style.width=e+"%")},{subsequent:!0})},volumeBarFilled:{},volumeBarSlider:function(t){R.addEvent(t,"click",function(e){e.stopPropagation()}),R.addEvent(t,"mousedown",function(n){var i=m(t,"volume-bar-filled"),o=m(t,"volume-bar"),a=i.getBoundingClientRect();if(R.dataset(o,"clOrientation")&&"vertical"==R.dataset(o,"clOrientation")){var l=e.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,r=a.bottom+l;k(n,function(e){var t=Math.round(r-e.pageY)/parseInt(getComputedStyle(o).height)*100;t<1?t=0:t>99&&(t=100),R.setVolume(t)},function(){R.triggerListeners("volumeChangeDone")})}else{var c=e.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,s=a.left+c;k(n,function(e){var t=Math.round((e.pageX-s)/parseInt(getComputedStyle(o).height)*100);t<1?t=0:t>99&&(t=100),R.setVolume(t)},function(){R.triggerListeners("volumeChangeDone")})}})},volumeStep:{volumeIcons:{},add:function(e,t,n){e.percent=n;var i=m(e,"controls");i.uniqueid||(i.uniqueid=R.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){R.addEvent(e,"click",function(){R.isMuted()?R.unmute():R.mute()}),R.on("volumeChange",function(){var t=R.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.1",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(e,n){var i="PreviewImage",t="1.2",r="visual",o="inner",u=function(e){function n(){return k}function p(){return v}function l(){return h}function s(){return w}function g(){return e}function a(){return P}function c(){return x}function d(){return z}function f(){I=document.createElement("div"),I.style.position="absolute",I.style.backgroundColor="#fff",I.style.backgroundPosition="center center",I.style.backgroundSize="cover",e.pluginApi.platform().os.mobile&&(I.style.backgroundSize="contain",I.style.backgroundRepeat="no-repeat"),e.backgroundSize&&(I.style.backgroundSize="contain"===e.backgroundSize?"contain":"cover"),e.pointer&&(I.style.cursor="pointer"),e.pluginApi.on("assetReady",function(){var n=e.pluginApi.getAsset();e.pluginApi.exists(e.image)?I.style.backgroundImage="url("+e.image+")":e.pluginApi.exists(n.previews)&&e.pluginApi.exists(n.previews.picture)?I.style.backgroundImage="url("+n.previews.picture+")":e.pluginApi.exists(n.thumbnail)?I.style.backgroundImage="url("+n.thumbnail+")":e.pluginApi.exists(n.prerolls)&&e.pluginApi.exists(n.prerolls.preroll)&&e.pluginApi.exists(n.prerolls.preroll.content)&&(I.style.backgroundImage="url("+n.prerolls.preroll.content+")")}),e.pluginApi.on("play",function(){e.pluginApi.hidePlugin(k)}),e.pluginApi.on("stop",function(){e.pluginApi.isLooping()||e.pluginApi.showPlugin(k)}),I.onclick=function(){e.pluginApi.play()},e.parent.appendChild(I),e.pluginApi.onPluginsBuilt(function(){e.pluginApi.setElementSize(I,"width","100%",!1),e.pluginApi.setElementSize(I,"height","100%")})}function y(e){return!k&&(k=e,!0)}function m(e){return!v&&(v=e,!0)}function A(n){return!e&&(e=n,!0)}function b(e){return!z&&(z=e,!0)}if(!(this instanceof u))return new u(e);var k,v,h,w,e,P,x,z,I;h=o,w=i,P=r,x=t;return{getId:n,getLayer:p,getMode:l,getName:s,getParams:g,getType:a,getVersion:c,getWrapper:d,init:f,setId:y,setLayer:m,setParams:A,setWrapper:b}};u.prototype.name=i,u.prototype.version=t,u.prototype.type=r,u.prototype.mode=o,e.Cliplister.addPlugin(u)}(window,void 0);!function(e,n){var i="BufferingSpinner",t="2.1",r="visual",a="inner",s=function(e){function n(){return E}function o(){return A}function p(){return C}function l(){return x}function u(){return e}function d(){return L}function c(){return P}function m(){return S}function f(){z.style.display="block"}function g(){z.style.display="none"}function h(){if(!k())return!1;if(z=document.createElement("div"),e.parent.appendChild(z),e.pluginApi.exists(e.image)){var n=document.createElement("img");n.style.position="absolute",n.style.position="absolute",z.appendChild(n),n.src=e.image}else{var i=document.createElement("div");i.classList.add("spinner");var t=document.createElement("div");t.classList.add("spinner-item1");var r=document.createElement("div");r.classList.add("spinner-item2");var a=document.createElement("div");a.classList.add("spinner-item3");var s=document.createElement("div");s.classList.add("spinner-item4"),i.appendChild(t),i.appendChild(r),i.appendChild(a),i.appendChild(s),z.appendChild(i)}var o=document.createElement("style");o.type="text/css",o.innerHTML=".spinner { position: relative; text-align: center;}.spinner > div { width: 16px; height: 16px; background-color: #ccc; border-radius: 100%; display: inline-block; -webkit-animation: sk-bouncedelay 1.7s infinite ease-in-out both; animation: sk-bouncedelay 1.7s infinite ease-in-out both; margin-right: 5px;}.spinner .spinner-item1 { -webkit-animation-delay: -0.60s; animation-delay: -0.60s;}.spinner .spinner-item2 { -webkit-animation-delay: -0.40s; animation-delay: -0.40s;}.spinner .spinner-item3 { -webkit-animation-delay: -0.20s; animation-delay: -0.20s;}@-webkit-keyframes sk-bouncedelay { 0%, 80%, 100% { -webkit-transform: scale(0); transform: scale(0); opacity: 0; } 40% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }}@keyframes sk-bouncedelay { 0%, 80%, 100% { -webkit-transform: scale(0); transform: scale(0); opacity: 0; } 40% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }}",document.head.appendChild(o),e.pluginApi.onPluginsBuilt(function(){e.pluginApi.setElementPosition({element:z,position:"top",value:"50%",reposition:!1,fromMiddlePoint:{x:!0,y:!0}}),e.pluginApi.setElementPosition({element:z,position:"left",value:"50%",reposition:!1,fromMiddlePoint:{x:!0,y:!0}}),e.pluginApi.exists(e.image)?(e.pluginApi.setElementSize(z,"width",e.width,!1),e.pluginApi.setElementSize(z,"height",e.height)):(e.pluginApi.setElementSize(z,"width",100,!1),e.pluginApi.setElementSize(z,"height",50))}),e.parent.appendChild(z),e.pluginApi.on("buffering",f),e.pluginApi.on("bufferingDone",g)}function y(e){return!E&&(E=e,!0)}function b(e){return!A&&(A=e,!0)}function v(n){return!e&&(e=n,!0)}function w(e){return!S&&(S=e,!0)}function k(){if(e.image){if(!e.width)return e.pluginApi.log("The "+M.name+" plugin requires a width.",1),!1;if(!e.height)return e.pluginApi.log("The "+M.name+" plugin requires a height.",1),!1}return!0}if(!(this instanceof s))return new s(e);var E,A,C,x,e,L,P,S,z,M=this;return C=a,x=i,L=r,P=t,{getId:n,getLayer:o,getMode:p,getName:l,getParams:u,getType:d,getVersion:c,getWrapper:m,show:f,hide:g,init:h,setId:y,setLayer:b,setParams:v,setWrapper:w}};s.prototype.name=i,s.prototype.version=t,s.prototype.type=r,s.prototype.mode=a,e.Cliplister.addPlugin(s)}(window,void 0);