function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t){function n(e){this.message=e}function o(e,t){return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}e.console||function(){var t,n;n=function(){function n(){this.__buffer.push(arguments)}var o=setInterval(function(){var n;if(e.console&&console.log&&!console.__buffer){clearInterval(o),n=Function.prototype.bind?Function.prototype.bind.call(console.log,console):console.log;for(var r=0;r<t.__buffer.length;r++)n.apply(console,t.__buffer[r])}},1e3);this.log=n,this.error=n,this.warn=n,this.info=n,this.debug=n,this.__buffer=[]},t=e.console=new n}(),Object.keys||(Object.keys=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=n.length;return function(r){if("object"!==_typeof(r)&&("function"!=typeof r||null===r))throw new TypeError("Object.keys called on non-object");var i,s,u=[];for(i in r)e.call(r,i)&&u.push(i);if(t)for(s=0;s<o;s++)e.call(r,n[s])&&u.push(n[s]);return u}}());var r="undefined"!=typeof exports?exports:self,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.name="InvalidCharacterError",r.btoa||(r.btoa=function(e){for(var t,o,r=String(e),s=0,u=i,a="";r.charAt(0|s)||(u="=",s%1);a+=u.charAt(63&t>>8-s%1*8)){if(o=r.charCodeAt(s+=.75),o>255)throw new n("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|o}return a}),r.atob||(r.atob=function(e){var t=String(e).replace(/=+$/,"");if(t.length%4===1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,r,s=0,u=0,a="";r=t.charAt(u++);~r&&(o=s%4?64*o+r:r,s++%4)?a+=String.fromCharCode(255&o>>(-2*s&6)):0)r=i.indexOf(r);return a}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!("getComputedStyle"in e)&&(e.getComputedStyle=function(){function e(t,n,o,r){var i,s=n[o],u=parseFloat(s),a=s.split(/\d/)[0];return r=null!=r?r:/%|em/.test(a)&&t.parentElement?e(t.parentElement,t.parentElement.currentStyle,"fontSize",null):16,i="fontSize"===o?r:/width/i.test(o)?t.clientWidth:t.clientHeight,"em"===a?u*r:"in"===a?96*u:"pt"===a?96*u/72:"%"===a?u/100*i:u}function t(e,t){var n="border"===t?"Width":"",o=t+"Top"+n,r=t+"Right"+n,i=t+"Bottom"+n,s=t+"Left"+n;e[t]=(e[o]===e[r]===e[i]===e[s]?[e[o]]:e[o]===e[i]&&e[s]===e[r]?[e[o],e[r]]:e[s]===e[r]?[e[o],e[r],e[i]]:[e[o],e[r],e[i],e[s]]).join(" ")}function n(n){var o=n.currentStyle,r=this,i=e(n,o,"fontSize",null);for(property in o)/width|height|margin.|padding.|border.+W/.test(property)&&"auto"!==r[property]?r[property]=e(n,o,property,i)+"px":"styleFloat"===property?r["float"]=o[property]:r[property]=o[property];return t(r,"margin"),t(r,"padding"),t(r,"border"),r.fontSize=i+"px",r}function o(e){return new n(e)}return n.prototype={constructor:n,getPropertyPriority:function(){},getPropertyValue:function(e){return this[e]||""},item:function(){},removeProperty:function(){},setProperty:function(){},getPropertyCSSValue:function(){}},o}(this)),"document"in self&&("classList"in document.createElement("_")?!function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,o=arguments.length;for(n=0;n<o;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}e=null}():!function(e){"use strict";if("Element"in e){var t="classList",n="prototype",o=e.Element[n],r=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array[n].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},u=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},a=function(e,t){if(""===t)throw new u("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new u("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(e,t)},l=function(e){for(var t=i.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],o=0,r=n.length;o<r;o++)this.push(n[o]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},c=l[n]=[],f=function(){return new l(this)};if(u[n]=Error[n],c.item=function(e){return this[e]||null},c.contains=function(e){return e+="",a(this,e)!==-1},c.add=function(){var e,t=arguments,n=0,o=t.length,r=!1;do e=t[n]+"",a(this,e)===-1&&(this.push(e),r=!0);while(++n<o);r&&this._updateClassName()},c.remove=function(){var e,t,n=arguments,o=0,r=n.length,i=!1;do for(e=n[o]+"",t=a(this,e);t!==-1;)this.splice(t,1),i=!0,t=a(this,e);while(++o<r);i&&this._updateClassName()},c.toggle=function(e,t){e+="";var n=this.contains(e),o=n?t!==!0&&"remove":t!==!1&&"add";return o&&this[o](e),t===!0||t===!1?t:!n},c.toString=function(){return this.join(" ")},r.defineProperty){var p={get:f,enumerable:!0,configurable:!0};try{r.defineProperty(o,t,p)}catch(d){d.number===-2146823252&&(p.enumerable=!1,r.defineProperty(o,t,p))}}else r[n].__defineGetter__&&o.__defineGetter__(t,f)}}(self)),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n;if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),r=o.length>>>0;if(0===r)return-1;var i=+t||0;if(Math.abs(i)===1/0&&(i=0),i>=r)return-1;for(n=Math.max(i>=0?i:r-Math.abs(i),0);n<r;){if(n in o&&o[n]===e)return n;n++}return-1}),function(){function e(e,t){this._array=e,this._kind=t,this._nextIndex=0}e.prototype.next=function(){var e=this._nextIndex;return e>=this._array.length?{value:t,done:!0}:(this._nextIndex++,"key"===this._kind?{value:e,done:!1}:"value"===this._kind?{value:this._array[e],done:!1}:"key+value"===this._kind?{value:[e,this._array[e]],done:!1}:void 0)},Array.prototype.keys||(Array.prototype.keys=function(){return new e(this,"key")}),Array.prototype.values||(Array.prototype.values=function(){return new e(this,"value")}),Array.prototype.entries||(Array.prototype.entries=function(){return new e(this,"key+value")})}(),console.log2=function(e){e instanceof Object&&(e=JSON.stringify(e,null,2)),!!this.getRootElement.getElementById("error-log")&&(this.getRootElement.getElementById("error-log").innerHTML+=e+" \n")},"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,n){"use strict";if(null===e||e===t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!==i&&i!==t)for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(o[s]=i[s])}return o},writable:!0,configurable:!0}),function(e){function t(){for(var e=0;e<C.length;e++)C[e][0](C[e][1]);C=[],h=!1}function n(e,n){C.push([e,n]),h||(h=!0,k(t,0))}function o(e,t){function n(e){s(t,e)}function o(e){a(t,e)}try{e(n,o)}catch(r){o(r)}}function r(e){var t=e.owner,n=t.state_,t=t.data_,o=e[n];if(e=e.then,"function"==typeof o){n=v;try{t=o(t)}catch(r){a(e,r)}}i(e,t)||(n===v&&s(e,t),n===b&&a(e,t))}function i(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===_typeof(t))){var o=t.then;if("function"==typeof o)return o.call(t,function(o){n||(n=!0,t!==o?s(e,o):u(e,o))},function(t){n||(n=!0,a(e,t))}),!0}}catch(r){return n||a(e,r),!0}return!1}function s(e,t){e!==t&&i(e,t)||u(e,t)}function u(e,t){e.state_===g&&(e.state_=m,e.data_=t,n(c,e))}function a(e,t){e.state_===g&&(e.state_=m,e.data_=t,n(f,e))}function l(e){var t=e.then_;for(e.then_=void 0,e=0;e<t.length;e++)r(t[e])}function c(e){e.state_=v,l(e)}function f(e){e.state_=b,l(e)}function p(e){if("function"!=typeof e)throw new TypeError("Promise constructor takes a function argument");if(!1==this instanceof p)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],o(e,this)}var d=e.Promise,y=d&&"resolve"in d&&"reject"in d&&"all"in d&&"race"in d&&function(){var e;return new d(function(t){e=t}),"function"==typeof e}();"undefined"!=typeof exports&&exports?(exports.Promise=y?d:p,exports.Polyfill=p):"function"==typeof define&&define.amd?define(function(){return y?d:p}):y||(e.Promise=p);var h,g="pending",m="sealed",v="fulfilled",b="rejected",w=function(){},k="undefined"!=typeof setImmediate?setImmediate:setTimeout,C=[];p.prototype={constructor:p,state_:g,then_:null,data_:void 0,then:function(e,t){var o={owner:this,then:new this.constructor(w),fulfilled:e,rejected:t};return this.state_===v||this.state_===b?n(r,o):this.then_.push(o),o.then},"catch":function(e){return this.then(null,e)}},p.all=function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to Promise.all().");return new this(function(t,n){function o(e){return s++,function(n){i[e]=n,--s||t(i)}}for(var r,i=[],s=0,u=0;u<e.length;u++)(r=e[u])&&"function"==typeof r.then?r.then(o(u),n):i[u]=r;s||t(i)})},p.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("You must pass an array to Promise.race().");return new this(function(t,n){for(var o,r=0;r<e.length;r++)(o=e[r])&&"function"==typeof o.then?o.then(t,n):t(o)})},p.resolve=function(e){return e&&"object"===_typeof(e)&&e.constructor===this?e:new this(function(t){t(e)})},p.reject=function(e){return new this(function(t,n){n(e)})}}("undefined"!=typeof e?e:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),o=n.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<o;){var s=n[i];if(e.call(r,s,i,n))return s;i++}return t},configurable:!0,writable:!0});var s=!1,u=!1,a=!1,l="null",c=function(){function n(e,t,n){var o=btoa(JSON.stringify(e));r.ajax(r.getCliplisterDomain()+"lc/"+t+"/?"+o,function(e){try{for(var t=JSON.parse(e.responseText),o=0;o<t.length;o++){var r=t[o].request;"function"==typeof n[o]&&n[o](r)}}catch(i){"function"==typeof n[0]&&n[0](e.responseText)}})}var o=this,r=this,i={},c={},f={},p={};this.addViewer=function(e){i[e.prototype.version]=e},this.addStage=function(e){c[e.prototype.type]||(c[e.prototype.type]={}),c[e.prototype.type][e.prototype.version]||(c[e.prototype.type][e.prototype.version]=e)},this.addPlugin=function(e){f[e.prototype.name]||(f[e.prototype.name]={}),f[e.prototype.name][e.prototype.version]=e},this.ajax=function(){var t,n,o;if(2===arguments.length)t=arguments[0],n=arguments[1];else if(3===arguments.length)t=arguments[0],n=arguments[1],o=arguments[2];else if("undefined"!=typeof this._ajax)return this._ajax.apply(this,arguments);var r=null;!e.XDomainRequest&&e.XMLHttpRequest?(r=new XMLHttpRequest,r.open("GET",t,!0),r.timeout=5e3,r.onreadystatechange=function(){if(4===r.readyState){if(200===r.status&&""!==r.responseText)return"undefined"!=typeof n&&n(r),r;"undefined"!=typeof o?o(r):"undefined"!=typeof n&&n(""),r.abort()}}):(r=new XDomainRequest,r.timeout=5e3,r.onload=function(){n(r)},r.onprogress=function(){},r.ontimeout=function(){},r.onerror=function(){"undefined"!=typeof o&&o(r)},r.open("GET",t)),e.setTimeout(function(){r.send()},1)},this.getCliplisterDomain=function(){var t="http:";return"http:"!==e.location.protocol&&(t="https:"),u?(u.startsWith("http")||(u=e.location.protocol+"//"+u),u.endsWith("/")||(u+="/"),u):s?t+"//dev.mycliplister.com/":t+"//mycliplister.com/"},this.getShadowRoot=function(){return a},this.getRootElement=function(){return o.getShadowRoot()?document.getElementById(o.getShadowRoot()).shadowRoot:document},this.isDevelopment=function(){return s},this.preferHLS=function(){return"hls"===l},this.Viewer=function(t){"undefined"!=typeof t.overrideURL&&(u=t.overrideURL),"undefined"!=typeof t.streamtype&&(l=t.streamtype),"undefined"!=typeof t.dev&&"iknowwhatimdoing"===t.dev&&(s=!0),"undefined"!=typeof t.shadowRoot&&(a=t.shadowRoot);var n=document.createElement("video"),o=!!n.canPlayType&&navigator.appVersion.indexOf("MSIE 9")===-1,c=navigator.appVersion.indexOf("MSIE 9")!==-1;navigator.appVersion.indexOf("MSIE 10")!==-1;if(o){if(!(i.length>1))return i[Object.keys(i)[0]](t);if(t.version)return i[t.version](t);this.log("If multiple viewers are loaded, a version is required.",1)}else{if(!t.backgroundvideo){if(c){var f={clearInterval:function(){return!1},destroy:function(){return!1},enterFullscreen:function(){return f},leaveFullscreen:function(){return f},onFullscreenChange:function(e){return f},isFullscreen:function(){return!1},getCurrentBitrate:function(){return!1},getCurrentQuality:function(){return!1},getDuration:function(){return!1},getProgressPlayed:function(){return!1},getTimePlayed:function(){return!1},getTimePlayedMs:function(){return!1},getTimeBuffered:function(){return!1},getPercentBuffered:function(){return!1},getAssets:function(){return!1},getCurrentAssetIndex:function(){return!1},getNextAsset:function(){return!1},getPrevAsset:function(){return!1},getVideoDownloadLinks:function(){return!1},getVideoStreamingLinks:function(){return!1},playNextAsset:function(){return f},playPrevAsset:function(){return f},hidePlugin:function(e){return f},isDone:function(){return!1},isPlaying:function(){return!1},loadAsset:function(){return!1},mute:function(){return f},onReady:function(e){return f},onChange:function(e){return f},onInit:function(e){return f},onEnded:function(e){return f},onFinish:function(e){return f},onMute:function(e){return f},onPause:function(e){return f},onPlay:function(e){return f},onProgress:function(e){return f},onQualityChange:function(e){return f},onStop:function(e){return f},onTrack:function(e){return this},onUnmute:function(e){return f},pause:function(){return f},play:function(){return f},playAsset:function(){return!1},setVolume:function(e){return f},showPlugin:function(e){return f},stop:function(){return f},unmute:function(){return f},faster:function(){return f},slower:function(){return f},getHls:function(){return!1},adjustSize:function(){return f},onProgress0:function(e){return f},onProgress10:function(e){return f},onProgress20:function(e){return f},onProgress30:function(e){return f},onProgress40:function(e){return f},onProgress50:function(e){return f},onProgress60:function(e){return f},onProgress70:function(e){return f},onProgress80:function(e){return f},onProgress90:function(e){return f},onProgress100:function(e){return f}};if("undefined"!=typeof t.fallback&&"undefined"!=typeof t.fallback.ie9Mode&&"native"===t.fallback.ie9Mode){var p=function(e){function t(t){for(var n,o=Object.keys(e),i=o.length;i--;)n=o[i],e.hasOwnProperty(n)&&(e[n.toLowerCase()]=e[n],"keytype"===n.toLowerCase()&&("string"==typeof e[n.toLowerCase()]||e[n.toLowerCase()]instanceof String)&&("ean"===e[n.toLowerCase()].toLowerCase()?e[n.toLowerCase()]=0:"article"===e[n.toLowerCase()].toLowerCase()||"articlenumber"===e[n.toLowerCase()].toLowerCase()?e[n.toLowerCase()]=1e4:"videoid"===e[n.toLowerCase()].toLowerCase()?e[n.toLowerCase()]=500:"youtube"===e[n.toLowerCase()].toLowerCase()&&(e[n.toLowerCase()]=1)));"undefined"!=typeof e.assets&&(e.assetkeys=e.assets),"undefined"!=typeof e.language&&(e.languages=e.language),"undefined"!=typeof e.assettype&&(e.assetType=e.assettype),"undefined"!=typeof e.assetkind&&(e.assetKind=e.assetkind);var s={};s.SEO=!1,"undefined"!=typeof e.fsk&&(s.fsk=e.fsk),"undefined"!=typeof e.keytype&&(s.keytype=e.keytype),"undefined"!=typeof e.assetkeys&&(s.requestkey=e.assetkeys.join("|")),"undefined"!=typeof e.lang&&(s.lang=e.lang),"undefined"!=typeof e.languages&&(s.lang=e.languages.join(",")),"undefined"!=typeof e.slot&&(s.slot=e.slot),"undefined"!=typeof e.assetkind&&(s.assetkind=e.assetkind),"undefined"!=typeof e.assettype&&(s.assettype=e.assettype),"undefined"!=typeof e.output&&(s.output=e.output),"undefined"!=typeof e.bcuid&&(s.bcuid=e.bcuid),"undefined"!=typeof e.streamtype&&(s.kind="null"+("hls"===e.streamtype&&"-hls")),r.requestLiveConnectCall(s,e.customer,function(e){"undefined"!=typeof t&&t(e)})}y.controls=!0,y.autoplay="undefined"!=typeof e.autoplay&&e.autoplay,y.muted="undefined"!=typeof e.muted?e.muted:y.autoplay,y.style.width="100%",h.type="video/mp4",y.appendChild(h),f.destroy=function(){return y.parentNode&&y.parentNode.removeChild(y),f},f.play=function(){return y.play(),f},f.pause=function(){return y.pause(),f},f.stop=function(){return y.stop(),f},t(function(e){d(e)}),document.getElementById(e.parentId).appendChild(y)},d=function(e){var n=r.getCliplisterDomain()+"jplist/"+t.customer+"/"+e;t.plist&&(n=t.plist),r.ajax(n,function(e){if(!e)return console.error("Fatal Error"),!1;var t=JSON.parse(e.responseText);if(!(t.cliplist&&t.cliplist.clip&&t.cliplist.clip.clipurl))return console.error("Fatal Error"),!1;var n=t.cliplist.clip,o=n.clipurl,r="";h.src=o,"undefined"!=typeof n.previews&&"undefined"!=typeof n.previews.picture?r=n.previews.picture:"undefined"!=typeof n.thumbnail?r=n.thumbnail:"undefined"!=typeof n.prerolls&&"undefined"!=typeof n.prerolls.preroll&&"undefined"!=typeof n.prerolls.preroll.content&&(r=n.prerolls.preroll.content),y.poster=r})},y=document.createElement("video"),h=document.createElement("source");p(t)}else{var g=function(t){w||e.Cliplister.player({elementID:t.parentId,requestkey:t.assetKeys[0],slot:m,keytype:t.keyType,indirect:!1,autoplay:t.autoplay,size:"640x360",fsk:16,lang:"de,##,en",onReady:function(){w=this.api}},t.customer),e.Cliplister.reloadClips()},m="undefined"!=typeof t.fallback&&"undefined"!=typeof t.fallback.slot?t.fallback.slot:98;if(f.destroy=function(){if(w&&w.destroyStage(),w&&w.root.parentNode){for(var t=w.root.parentNode.querySelectorAll('div[id^="Cliplister_"]'),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);delete e.Cliplister.run,e.Cliplister.clips=[]}return f=null},f.play=function(){return w&&w.play(),f},f.pause=function(){return w&&w.pause(),f},f.stop=function(){return w&&w.stop(),f},"undefined"==typeof e.Cliplister.player){var v=document.createElement("script"),b=document.getElementsByTagName("script")[0],w=null;v.async=1,v.onload=function(){g(t)},v.src="https://mycliplister.com/static/clplayer/cllib.inc.170801.min.js",b.parentNode.insertBefore(v,b)}else g(t)}}else{var k=document.createElement("div");k.className="cliplister-viewer-notice",k.style.position="absolute",k.style.top="0px",k.style.left="0px";var C=document.createElement("img");C.src="undefined"!=typeof t.fallback?t.fallback.image:("https:"===e.location.protocol?"https:":"http:")+"//mycliplister.com/static/viewer/assets/fallback/outdated.png",C.style.backgroundColor="#FFFFFF",C.style.padding="10px",C.style.textAlign="center",C.style.height="100%",C.style.margin="auto",k.appendChild(C);var _=document.createElement("div");_.innerHTML='<a href="'+("undefined"!=typeof t.fallback?t.fallback.link:"https://www.google.com")+'">'+("undefined"!=typeof t.fallback?t.fallback.linktext:"https://www.google.com")+"</a>",_.style.backgroundColor="#FFFFFF",_.style.padding="10px",_.style.textAlign="center",k.style.backgroundColor="#FFFFFF",k.style.backgroundPosition="center center",k.style.backgroundSize="cover",k.style.width="100%",k.style.height="100%",this.getRootElement.getElementById(t.parentId).appendChild(k)}return f}var k=document.createElement("div");k.className="cliplister-viewer-background-fallback",k.style.position="absolute",k.style.top="0px",k.style.left="0px",k.style.backgroundColor="#FFFFFF",k.style.backgroundPosition="center center",k.style.backgroundSize="cover",k.style.width="100%",k.style.height="100%";var C=document.createElement("img");C.src="undefined"!=typeof t.fallback?t.fallback.bgimage:("https:"===e.location.protocol?"https:":"http:")+"//mycliplister.com/static/viewer/assets/fallback/outdated.png",C.style.backgroundColor="#FFFFFF",C.style.padding="0px",C.style.textAlign="center",C.style.width="100%",C.style.height="100%",C.style.margin="auto",k.appendChild(C),this.getRootElement.getElementById(t.parentId).appendChild(k)}},this.callStage=function(){return c.video["1.0"]()},this.getStage=function(e,n){return c[e]?1===Object.keys(c[e]).length?n!==t?c[e][n]?c[e][n]:void this.log("The "+e+" stage in version "+n+" is not loaded.",1):c[e][Object.keys(c[e])[0]]:n!==t?c[e][n]?c[e][n]:void this.log("The "+e+" 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 "+e+" is loaded.",1)},this.getPlugin=function(e,n){return f[e]?1===Object.keys(f[e]).length?n!==t?f[e][n]?f[e][n]:void this.log("The plugin "+e+" in version "+n+" is not loaded.",1):f[e][Object.keys(f[e])[0]]:n!==t?f[e][n]?f[e][n]:void this.log("The plugin "+e+" 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 "+e+" is loaded.",1)},this.log=function(e,t){console.debug(e)},this.requestLiveConnectCall=function(e,t,o){p[t]||(p[t]={timer:null,requests:[],callbacks:[]}),clearTimeout(p[t].timer),p[t].requests.push(e),p[t].callbacks.push(o),p[t].timer=setTimeout(function(){!function(e,t){n(e.requests,t,e.callbacks)}(p[t],t),p[t].requests=[],p[t].callbacks=[]},100)}};"undefined"==typeof e.Cliplister?e.Cliplister={}:"undefined"!=typeof e.Cliplister.ajax&&(e.Cliplister._ajax=e.Cliplister.ajax);var f=new c;e.Cliplister=o(e.Cliplister,f);var p=decodeURIComponent((new RegExp("[?|&]viewer_token=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null;p&&e.Cliplister.ajax("token/decrypt.php?t="+p,function(e){})}(window,void 0);"use strict";!function(window,undefined){var VERSION="1.40",CLViewer=function CLViewer(_params){function addEvent(e,t,n,s){var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("test",a,a),window.removeEventListener("test",a,a)}catch(r){i=!1}i?e.addEventListener(t,n,s):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,s,i,a){var r=getPluginIdByElement(e);if(r){var o=getPluginById(r);if(o){o.animation!==undefined&&null!==o.animation&&clearInterval(o.animation);var l=0;exists(elements.innerPluginsContainer)&&(l=distanceToPx(n,"top"==t||"bottom"==t?parseInt(getComputedStyle(elements.innerPluginsContainer).height):parseInt(getComputedStyle(elements.innerPluginsContainer).width))),e.setAttribute("data-cl-animating",!0),enableCSSTransition(e,s,function(){e.removeAttribute("data-cl-animating"),i!==undefined&&i&&i()},!0),reSetElementPosition(e,t,l,!1,!1),repositionInnerPluginElement(e),triggerMovementListeners(e,!0,s)}}}function buildPlugins(){config.measures={availableWidth:config.dimensions.width,availableHeight:config.dimensions.height,offsets:{top:0,right:0,bottom:0,left:0}},buildOuterPlugins(),("iOS"===_platform.os.name&&_platform.os.version>="10"||"Android"===_platform.os.name)&&!params.assetType||buildInnerPlugins(),triggerListeners("pluginsBuilt")}function fullscreenListenerResizer(){return("Android"!==_platform.os.name||!_isFullscreen())&&(!!Resizer&&void setTimeout(function(){Resizer.check(!0)},100))}function buildInnerPlugins(){if(exists(elements.inner)){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;e=!(exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&!params.plugins.InnerControls.mobileDefaultControls)&&e;"iOS"==_platform.os.name&&_platform.os.version>="10"&&e;elements.innerPluginsContainer.style.top=config.measures.offsets.top+"px",elements.innerPluginsContainer.style.height=elements.innerPluginsContainer.height+"px",exists(params.assetType)&&"data"==params.assetType&&exists(params.assetKind)&&"pages"==params.assetKind&&(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")}),onMousedown(elements.innerPluginsContainer,function(e){triggerListeners("mousedown",e)}),onMouseup(elements.innerPluginsContainer,function(e){triggerListeners("mouseup",e)}),onMousemove(elements.innerPluginsContainer,function(e){triggerListeners("mousemove",e)});for(var t=0;t<config.plugins.visual.inner.length;t++){var n=config.plugins.visual.inner[t];n.getWrapper().style.position="absolute",n.getWrapper().style.zIndex=n.getLayer(),n.getWrapper().classList.add("cl-inner-plugin-container"),n.getWrapper().style.left="-1px",n.getWrapper().style.top="-1px",n.getWrapper().id=n.getId(),elements.innerPluginsContainer.appendChild(n.getWrapper())}getPluginApi().on("play",function(){!!Resizer&&Resizer.check(!0);var e=_platform.os.mobile;e=!(exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&!params.plugins.InnerControls.mobileDefaultControls)&&e;var t="iOS"==_platform.os.name&&_platform.os.version>="10"&&e;elements.innerPluginsContainer.style.top=config.measures.offsets.top+"px";var n="undefined"!=typeof elements.stageWrapper?getComputedStyle(elements.stageWrapper).height:getComputedStyle(elements.inner).height,s=elements.inner.clientHeight<elements.stageWrapper.clientHeight;if(_isFullscreen()&&parseInt(n)>parseInt(elements.innerPluginsContainer.style.height)+1)s?elements.innerPluginsContainer.style.top=0:elements.innerPluginsContainer.style.top=(parseInt(n)-parseInt(elements.innerPluginsContainer.style.height))/2+1+"px";else{var i=0;if(_isFullscreen()&&!e){i=parseInt(getComputedStyle(elements.inner).height)/2-parseInt(n)/2,s?elements.innerPluginsContainer.style.top=0:elements.innerPluginsContainer.style.top=_isPlaying()?0:i;var a=parseInt(getComputedStyle(elements.inner).height);"Safari"===_platform.browser.name&&(a=screen.height,elements.inner.style.height=a+"px"),elements.innerPluginsContainer.style.height=parseInt(getComputedStyle(elements.inner).height)+"px"}elements.stageWrapper.style.top=i+"px"}_isFullscreen()||(elements.innerPluginsContainer.style.height=e?elements.innerPluginsContainer.height-50+"px":elements.innerPluginsContainer.height+"px",elements.innerPluginsContainer.style.height=t?parseInt(elements.innerPluginsContainer.style.height)-43+"px":parseInt(elements.innerPluginsContainer.style.height)+"px",elements.innerPluginsContainer.style.top=t?parseInt(elements.innerPluginsContainer.style.top)+43+"px":parseInt(elements.innerPluginsContainer.style.top)+"px"),repositionInnerPluginElements()}),_features.fullscreen.fullscreenchange(function(){fullscreenListenerResizer()}),getPluginApi().on("pause",function(){!!Resizer&&Resizer.check(!0),repositionInnerPluginElements()}),getPluginApi().on("stop",function(){!!Resizer&&Resizer.check(!0),_isFullscreen()||(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(t){if(config.stage||(config.stage={}),params.stage){var n=capitalizeFirstLetter(t);if(params.stage[t]){var s=distanceToPx(params.stage[t],config[t]);params.stage["min"+n]&&params.stage["min"+n]>s?config.stage[t]=params.stage["min"+n]:params.stage["max"+n]&&params.stage["max"+n]<s?config.stage[t]=params.stage["max"+n]:config.stage[t]=s,config.measures["available"+n]-=config.stage[t]}else params.stage["min"+n]&&(config.stage["min"+n]=params.stage["min"+n],config.measures["available"+n]-=config.stage["min"+n]),params.stage["max"+n]&&(config.stage["max"+n]=params.stage["max"+n])}return e}("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,s=config.plugins.visual.outer[e];if("top"==s.position||"bottom"==s.position?(s.align="horizontal",t="height",n="Height"):(s.align="vertical",t="width",n="Width"),s.getParams()[t]){s.dynamic=!1;var i=distanceToPx(s.getParams()[t],config[t]);s.getParams()["min"+n]&&s.getParams()["min"+n]>i?s[t]=s.getParams()["min"+n]:s.getParams()["max"+n]&&s.getParams()["max"+n]<i?s[t]=s.getParams()["max"+n]:s[t]=i,s[t]<=config.measures["available"+n]?config.measures["available"+n]-=s[t]:s.hidden=!0}else s.dynamic=!0,s.getParams()["min"+n]&&(s["min"+n]=s.getParams()["min"+n],s.getParams()["min"+n]<=config.measures["available"+n]?config.measures["available"+n]-=s.getParams()["min"+n]:s.hidden=!0),s.getParams()["max"+n]&&(s["max"+n]=s.getParams()["max"+n])}}(),function(){var e=new Array,t=new Array,n=0,s=new Array,i=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&&(s.push(o),a++,o.minHeight&&(i.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 c=config.stage.height?0:1,p=config.measures.availableHeight/(a+c);do{r=!1;for(var u=0;u<i.length;u++){var g=i[u];if(!g.height&&g.minHeight>p){g.height=g.minHeight,a--,config.measures.availableHeight-=g.height,p=config.measures.availableHeight/(a+c),r=!0;break}}}while(r);!config.stage.height&&config.stage.minHeight&&config.stage.minHeight>p&&(config.stage.height=config.stage.minHeight,c=0,config.measures.availableHeight-=config.stage.height,p=config.measures.availableHeight/(a+c));do{r=!1;for(var u=0;u<s.length;u++){var g=s[u];if(!g.height&&p>g.maxHeight){g.height=g.maxHeight,a--,config.measures.availableHeight-=g.height,p=config.measures.availableHeight/(a+c),r=!0;break}}}while(r);for(var u=0;u<s.length;u++){var g=s[u];g.height||(g.height=p)}}(),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,s,i=["top","right","bottom","left"];"horizontal"==t.align?(s="height",n="top"==t.position?0:2):(s="width",n="right"==t.position?1:3),t.getWrapper().style[i[n]]=config.measures.offsets[i[n]]+"px",t.getWrapper().style[i[(n-1+4)%4]]=config.measures.offsets[i[(n-1+4)%4]]+"px",t.getWrapper().style[i[(n+1+4)%4]]=config.measures.offsets[i[(n+1+4)%4]]+"px",t.getWrapper().style[s]=t[s]+"px",t.getWrapper().id=t.getId(),config.measures.offsets[i[n]]+=t[s],elements.inner.appendChild(t.getWrapper())}}}(),config.stage.params=params.stage}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),Resizer.checkInterval&&window.clearInterval(Resizer.checkInterval),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)}}}function collectAssetsInformation(){}function dashedToCamelCase(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function dataset(e,t,n){if("undefined"!=typeof document&&document.head){var s=function(t,n){o?e.dataset[t]=n:e.setAttribute("data-"+camelCaseToDashed(t),n)},i=function(t){return o?e.dataset[t]:e.getAttribute("data-"+camelCaseToDashed(t))},a=function(t){o?delete e.dataset[t]:e.removeAttribute("data-"+camelCaseToDashed(t))},r=function(){if(o){for(var t=e.dataset,n=Object.keys(t),s={},i=0;i<n.length;i++)s[n[i]]=t[n[i]];return s}for(var a=e.attributes,n=Object.keys(a),s={},i=0;i<n.length;i++)/^data\-(.+)$/.test(a[i].nodeName)&&(s[a[i].nodeName]=a[i].nodeValue);return s},o=!!document.head.dataset,l={set:s,get:i,del:a,toObject:r};return 3===arguments.length?s(t,n):2==arguments.length?i(t):l}}function debug(){return{}}function dieAndRiseAgain(){_destroy(),init(params)}function _destroy(){if(config&&config.parent&&elements.inner){_stop(),clearInterval();try{!!stage&&stage.setProgressPlayed&&stage.setProgressPlayed(0);var e=!!stage&&!!stage.getVideoElement&&stage.getVideoElement();!!e&&e.pause(),!!e&&!!e.src&&(e.src=""),"Firefox"===_platform.browser.name&&!!e&&!!e.src&&e.removeAttribute("src"),!!e&&e.load()}catch(t){console.info(t)}config.parent.removeChild(elements.inner);for(var n in elements)delete elements[n];for(var s in listeners)delete listeners[s];_features.fullscreen&&(_features.fullscreen.offFullscreenchange(function(){fullscreenListener()}),_features.fullscreen.offFullscreenchange(function(){fullscreenListenerResizer()}));for(var i in _features)delete _features[i];Resizer=!1}}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.isIPad=!!(e.match(/(iPad)/i)||"MacIntel"===navigator.platform&&"undefined"!=typeof navigator.standalone),_platform.os.mobile=!!e.match(/(iPad)|(iPhone)|(iPod)|(android)|(windows phone)/i)||_platform.os.isIPad,_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.isIPad)&&(_platform.os.name="iOS",_platform.os.version=parseInt(RegExp.$1)?parseInt(RegExp.$1):parseInt(RegExp.$2),Number.isNaN(_platform.os.version)&&(_platform.os.version=e.match(/Version\/(\d+\.\d+)/)[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()})},offFullscreenchange:function(e){removeEvent(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()})},offFullscreenchange:function(e){removeEvent(document,"mozfullscreenchange",function(){e()})},fullscreenElement:function(){return document.mozFullScreenElement},fullscreenEnabled:function(){return document.mozFullScreenEnabled},isFullscreen:function(){return!!this.fullscreenElement()},requestFullscreen:function(e){e.requestFullscreen?(e.requestFullscreen(),e.stylebackup=JSON.parse(JSON.stringify(e.style))):e.mozRequestFullScreen(),e.style.width="100%",e.style.height="100%"}}:e.webkitRequestFullScreen?_features.fullscreen={exitFullscreen:function(){document.webkitExitFullscreen(),callStage("exitFullscreen")},fullscreenchange:function(e){var t="iOS"==_platform.os.name&&_platform.os.version>="12",n=t;if(n){var s=function(){var t=!!stage&&!!stage.getVideoElement&&stage.getVideoElement();t&&(addEvent(t,"webkitbeginfullscreen",function(){document.fullscreenElement=t,document.webkitFullscreenElement=t,e()}),addEvent(t,"webkitendfullscreen",function(){document.fullscreenElement=null,document.webkitFullscreenElement=null,e()}))};_isDone("stageSet")?s():on("stageSet",s)}else addEvent(document,"webkitfullscreenchange",function(){if("iOS"==_platform.os.name)if(config.fullscreen)document.fullscreenElement=null,document.webkitFullscreenElement=null;else{var t=!!stage&&!!stage.getVideoElement&&stage.getVideoElement();document.fullscreenElement=t,document.webkitFullscreenElement=t}config.fullscreen=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),e()})},offFullscreenchange:function(e){removeEvent(document,"webkitfullscreenchange",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()})},offFullscreenchange:function(e){removeEvent(document,"MSFullscreenChangee",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("exitFullscreen")},fullscreenchange:function(e){on("stageSet",function(){callStage("onFullscreenChange",[e])},{subsequent:!0})},offFullscreenchange:function(){},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),s=/%$/.test(e);return s?parseInt(t)*(n/100):n}function enableCSSTransition(e,t,n,s){function i(){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]}}var a=i();if(e.style[a.css]="all "+t+"ms",s!==undefined&&s){var r=function o(){disableCSSTransition(e),removeEvent(e,a.endEvent,o),n!==undefined&&n()};addEvent(e,a.endEvent,r)}}function enableMovementListening(e,t){movementListeners[e]?(movementListeners[e].element=t,triggerMovementListeners(t)):movementListeners[e]={element:t,listeners:[]}}function _enterFullscreen(){_platform.os.mobile?stage.enterFullscreen():_features.fullscreen.requestFullscreen(elements.inner)}function exists(e){return"undefined"!=typeof e}function extend(){var e={},t=!1,n=0,s=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);for(var i=function(n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t&&"[object Object]"===Object.prototype.toString.call(n[s])?e[s]=extend(!0,e[s],n[s]):e[s]=n[s])};n<s;n++){var a=arguments[n];i(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 getFetchedImage(e){if("function"==typeof fetch)return!(!exists(fetched_images[e])||""===fetched_images[e])&&fetched_images[e];var t=e.slice(-4),n="";return".jpg"===t||"jpeg"===t?n="jpg":".png"===t?n="png":".gif"===t?n="gif":".tif"===t&&(n="tif"),exists(fetched_images[e])&&""!==fetched_images[e]||(fetched_images[e]=n?e:e),fetched_images[e]}function fetchImage(e){var t=getFetchedImage(e);return"function"==typeof Promise?t?new Promise(function(e,n){e(t)}):(fetched_images[e]="",fetched_images[e]=fetch(e).then(function(e){return e.blob()}).then(function(t){return fetched_images[e]=URL.createObjectURL(t),fetched_images[e]}),fetched_images[e]):t}function setBGImage(e,t){if(!exists(e))return!1;if(exists(t)&&t&&""!==t){var n,s;"function"==typeof Promise?Array.isArray(t)?(n=t,s=n.map(function(e){return e instanceof Promise?e.then(function(e){return"url("+e+")"}):e.includes("gradient")?e:fetchImage(e).then(function(e){return"url("+e+")"})}),Promise.all(s).then(function(t){e.style.backgroundImage=t.join()})):fetchImage(t).then(function(t){e.style.backgroundImage="url("+t+")"}):Array.isArray(t)?(n=t,s=n.map(function(e){return e.includes("gradient")?e:"url("+fetchImage(e)+")"}),e.style.backgroundImage=s.join()):e.style.backgroundImage="url("+fetchImage(t)+")"}else e.style.backgroundImage="none";return e}function setImgSrc(e,t){return!(!exists(e)||!exists(t))&&(t?"function"==typeof Promise?fetchImage(t).then(function(t){e.src=t}):e.src=fetchImage(t):e.src="",e)}function setPluginsClickThrough(e){exists(elements.innerPluginsContainer)&&(exists(e)||(e=!1),elements.innerPluginsContainer.style.pointerEvents=e?"none":"all")}function setStageAspect(e,t){params.stage.aspectRatio=e+":"+t,!!Resizer&&Resizer.check(!0)}function setActiveSubtitleTrack(e,t){triggerListeners("activeSubtitleSet",{kind:e,tag:t})}function setSubtitleTracks(e){params.subtitletracks=e,triggerListeners("subtitlesSet")}function getSubtitleTracks(){return params.subtitletracks}function isSubtitlesEnabled(){return params.subtitlesEnabled}function setSubtitlesEnabled(e){params.subtitlesEnabled=!!e,triggerListeners("subtitles".concat(e?"En":"Dis","able"))}function setActiveTranscriptTrack(e){triggerListeners("activeTranscriptSet",e)}function setTranscriptTracks(e){params.transcripttracks=e,triggerListeners("transcriptSet")}function getTranscriptTracks(){return params.transcripttracks}function isTranscriptEnabled(){return params.transcriptEnabled}function setTranscriptEnabled(e){params.transcriptEnabled=!!e,triggerListeners("transcript".concat(e?"En":"Dis","able"))}function appendNativeSubtitles(e,t,n,s){_isDone("stageSet")?stage.appendNativeSubtitles(e,t,n,s):on("stageSet",function(){stage.appendNativeSubtitles(e,t,n,s)})}function getFixedQuality(){return!!exists(params.fixedQuality)&&params.fixedQuality}function isDeviceLandscape(){return!screen||screen.availWidth>screen.availHeight}function getPlugInParam(e,t){var n,s,i;return null===(n=params)||void 0===n?void 0:null===(s=n.plugins)||void 0===s?void 0:null===(i=s[e])||void 0===i?void 0:i[t]}function getPublicApi(){return{clearInterval:clearInterval,destroy:function(){_destroy()},enterFullscreen:function(){return _enterFullscreen(),getPublicApi()},leaveFullscreen:function(){return _leaveFullscreen(),getPublicApi()},onFullscreenChange:function(e){return on("fullscreenChange",e),getPublicApi()},isFullscreen:function(){return _isFullscreen()},getCurrentBitrate:function(){return _getCurrentBitrate()},getCurrentQuality:function(){return _getCurrentQuality()},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()},getAssets:function(){return products[0].assets},getProducts:function(){return products},getCurrentAssetIndex:function(){return getAssetPosition()},getNextAsset:function(){return _getNextAsset()},getPrevAsset:function(){return _getPrevAsset()},getVideoDownloadLinks:function(){return _getVideoDownloadLinks()},getVideoStreamingLinks:function(){return _getVideoStreamingLinks()},playNextAsset:function(){return _playNextAsset(),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()},onChange:function(e){return this.onReady(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("pauseMedia",e),getPublicApi()},onPlay:function(e){return on("playMedia",e),getPublicApi()},onUserPlay:function(e){return on("userPlay",e),getPublicApi()},onInitialPlay:function(e){return on("initialPlay",e),getPublicApi()},onProgress:function(e){return on("progress",e),getPublicApi()},onUserQualityChange:function(e){return on("userQualityChange",function(){_isDone("mediaReady")&&e()}),getPublicApi()},onQualityChange:function(e){return on("qualityChange",function(){_isDone("mediaReady")&&e()}),getPublicApi()},onStop:function(e){return on("stopMedia",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 playPubAPI(),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&&Resizer.check(!0),getPublicApi()},onProgress0:function(e){return on("progress0",e),getPublicApi()},onProgress10:function(e){return on("progress10",e),getPublicApi()},onProgress20:function(e){return on("progress20",e),getPublicApi()},onProgress30:function(e){return on("progress30",e),getPublicApi()},onProgress40:function(e){return on("progress40",e),getPublicApi()},onProgress50:function(e){return on("progress50",e),getPublicApi()},onProgress60:function(e){return on("progress60",e),getPublicApi()},onProgress70:function(e){return on("progress70",e),getPublicApi()},onProgress80:function(e){return on("progress80",e),getPublicApi()},onProgress90:function(e){return on("progress90",e),getPublicApi()},onProgress100:function(e){return on("progress100",e),getPublicApi()},setProgressPlayed:function(e){return _setProgressPlayed(e),getPublicApi()},setTimePlayed:function(e){return _setTimePlayed(e),getPublicApi()},activateAR:function(){return _activateAR(),getPublicApi()},showQr:function(){return _showQr(),getPublicApi()},hideQr:function(){return _hideQr(),getPublicApi()},getRotationCenter:function(){return _getRotationCenter()},
getOrbitPosition:function(){return _getOrbitPosition()},setRotationCenter:function(e,t,n){return _setOrbitPosition(e,t,n),getPublicApi()},setOrbitPosition:function(e,t,n,s){return _setOrbitPosition(e,t,n,s),getPublicApi()},setOrbitPositionFront:function(e){return _setOrbitPosition(0,90,105,e),getPublicApi()},setOrbitPositionBack:function(e){return _setOrbitPosition(180,90,105,e),getPublicApi()},setOrbitPositionTop:function(e){return _setOrbitPosition(0,0,105,e),getPublicApi()},setOrbitPositionBottom:function(e){return _setOrbitPosition(0,180,105,e),getPublicApi()},setOrbitPositionLeft:function(e){return _setOrbitPosition(90,90,105,e),getPublicApi()},setOrbitPositionRight:function(e){return _setOrbitPosition(270,90,105,e),getPublicApi()},setExposure:function(e){return _setExposure(e),getPublicApi()},setShadowIntensity:function(e){return _setShadowIntensity(e),getPublicApi()},setShadowSoftness:function(e){return _setShadowSoftness(e),getPublicApi()},getExposure:function(){return _getExposure()},getShadowSoftness:function(){return _getShadowSoftness()},getShadowIntensity:function(){return _getShadowIntensity()}}}function getPluginApi(){return{Counter:Counter,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,playAsset:playAsset,getNextAsset:_getNextAsset,getPrevAsset:_getPrevAsset,isFirstAsset:isFirstAsset,isLastAsset:isLastAsset,playNextAsset:_playNextAsset,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,isPlayNext:isPlayNext,isDone:_isDone,isFullscreen:_isFullscreen,fullscreenListener:fullscreenListener,isMuted:isMuted,isPlaying:_isPlaying,isQualityOverride:isQualityOverride,isStopped:isStopped,leaveFullscreen:_leaveFullscreen,log:cl.log,mute:_mute,off:off,on:on,onMouseenter:onMouseenter,onMouseleave:onMouseleave,onMousedown:onMousedown,onMouseup:onMouseup,onMousemove:onMousemove,onPlay:function(e){on("play",e)},onInitialPlay:function(e){on("initialPlay",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,setTimePlayed:_setTimePlayed,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,zoomPage:zoomPage,getZoomObject:getZoomObject,prevImage:prevImage,nextImage:nextImage,firstImage:firstImage,lastImage:lastImage,prevPage:prevPage,nextPage:nextPage,firstPage:firstPage,lastPage:lastPage,setPage:setPage,prevLvl:prevLvl,nextLvl:nextLvl,checkResize:checkResize,resetViewerSize:resetViewerSize,getCurrentPage:getCurrentPage,getCurrentPageLandscape:getCurrentPageLandscape,getPageLandscape:getPageLandscape,getPageCount:getPageCount,getPDFTitle:getPDFTitle,getStageHeightAdjustment:getStageHeightAdjustment,setStageHeightAdjustment:setStageHeightAdjustment,getStageWidth:getStageWidth,getStageWidthAbs:getStageWidthAbs,getStageHeight:getStageHeight,getStageHeightAbs:getStageHeightAbs,setStageWidth:setStageWidth,setStageHeight:setStageHeight,zoomStatusChange:setZoomStatus,setSimpleZoom:setSimpleZoom,setZoomMode:setZoomMode,downloadPDF:downloadPDF,canDownloadPDF:canDownloadPDF,getImageSrc:getImageSrc,getImageLandscape:getImageLandscape,isAnimated:isAnimated,fetchImage:fetchImage,getFetchedImage:getFetchedImage,setBGImage:setBGImage,setImgSrc:setImgSrc,setPluginsClickThrough:setPluginsClickThrough,activateAR:_activateAR,showQr:_showQr,hideQr:_hideQr,getLandingPageLinkData:getLandingPageLinkData,setOrbitPosition:_setOrbitPosition,setRotationCenter:setRotationCenter,getOrbitPosition:_getOrbitPosition,getRotationCenter:_getRotationCenter,setOrbitPositionFront:function(e){_setOrbitPosition(0,90,105,e)},setOrbitPositionBack:function(e){_setOrbitPosition(180,90,105,e)},setOrbitPositionTop:function(e){_setOrbitPosition(0,0,105,e)},setOrbitPositionBottom:function(e){_setOrbitPosition(0,180,105,e)},setOrbitPositionLeft:function(e){_setOrbitPosition(90,90,105,e)},setOrbitPositionRight:function(e){_setOrbitPosition(270,90,105,e)},setExposure:_setExposure,getExposure:_getExposure,setShadowIntensity:_setShadowIntensity,getShadowIntensity:_getShadowIntensity,setShadowSoftness:_setShadowSoftness,getShadowSoftness:_getShadowSoftness,setStageAspect:setStageAspect,setActiveSubtitleTrack:setActiveSubtitleTrack,setSubtitleTracks:setSubtitleTracks,getSubtitleTracks:getSubtitleTracks,setSubtitlesEnabled:setSubtitlesEnabled,isSubtitlesEnabled:isSubtitlesEnabled,setActiveTranscriptTrack:setActiveTranscriptTrack,setTranscriptTracks:setTranscriptTracks,getTranscriptTracks:getTranscriptTracks,setTranscriptEnabled:setTranscriptEnabled,isTranscriptEnabled:isTranscriptEnabled,appendNativeSubtitles:appendNativeSubtitles,getFixedQuality:getFixedQuality,isDeviceLandscape:isDeviceLandscape,getStageType:function(){return exists(stage)&&stage.type},iOSinlineplay:function(e){return callStage("enableIOSinlineplay",!!e)},getShadowRoot:cl.getShadowRoot,getRootElement:getRootElement,getPlugInParam:getPlugInParam}}function getPluginById(e){function t(n){var s=null;if(n instanceof Array)for(var i=0;i<n.length&&(s=t(n[i]),s===undefined);i++);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)&&(s=t(n[a])))break}return s}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 getPDFDetails(){cl.ajax(params.pdf.xml,function(e){var t=parseXml(e.responseText);return params.pdf.id=t.getElementsByTagName("asset_id")[0].textContent.trim()||!1,params.pdf.title=t.getElementsByTagName("asset_title")[0].textContent.trim()||"",params.pdf.id===!1?(console.log("id could not be retrieved. Aborting..."),triggerListeners("fatalAbort"),!1):(params.pdf.location=params.pdf.baseUrl.replace("/is/","/ad/")+"c2/-/"+params.pdf.id,void cl.ajax(params.pdf.baseUrl+"c2/-/"+params.pdf.id+"?clmeta",function(e){var t=JSON.parse(e.responseText);Object.assign(params.pdf,t);for(var n=params.pdf.pages[0].resolution.split("x"),s=0;s<n.length;s++)n[s]=parseInt(n[s]);return params.stage.aspectRatio=(n[0]>n[1]?n[0]:2*n[0])+":"+n[1],!!Resizer&&Resizer.check(!0),params.pdf.pages.length?void triggerListeners("pdfDataLoaded"):(console.log("pages could not be retrieved. Aborting..."),triggerListeners("fatalAbort"),!1)},function(e){console.log("Error while collecting data. Aborting..."),triggerListeners("fatalAbort")}))})}function getDocumentDetails(){cl.ajax(params.pdf.xml,function(e){var t=parseXml(e.responseText);return params.pdf.id=t.getElementsByTagName("asset_id")[0].textContent.trim()||!1,params.pdf.title=t.getElementsByTagName("asset_title")[0].textContent.trim()||"",params.pdf.id===!1?(console.log("id could not be retrieved. Aborting..."),triggerListeners("fatalAbort"),!1):void cl.ajax(params.pdf.baseUrl+"c2/-/"+params.pdf.id+"?clmeta",function(e){var t=JSON.parse(e.responseText);Object.assign(params.pdf,t);var n=params.pdf.pages[0].resolution.split("x");return params.stage.aspectRatio=(n[0]>n[1]?n[0]:2*n[0])+":"+n[1],!!Resizer&&Resizer.check(!0),params.pdf.pages.length?void triggerListeners("pdfDataLoaded"):(console.log("pages could not be retrieved. Aborting..."),triggerListeners("fatalAbort"),!1)},function(e){console.log("Error while collecting data. Aborting..."),triggerListeners("fatalAbort")})})}function getProducts(e){var t=("function"==typeof MediaSource,cl.getCliplisterDomain()+"jplist/"+params.customer+"/"+e);params.plist&&(t=params.plist),cl.ajax(t,function(e){if(e){var t=JSON.parse(e.responseText);processProducts(t)}else triggerListeners("fatalAbort")})}function getSlotContent(e,t){cl.ajax(cl.getCliplisterDomain()+("pdf"==params.assetType?"view/":"lcplay/")+params.customer+"/"+e,function(e){var n=e.responseText;if("pdf"==!params.assetType)overwriteParams(n);else{var s=n.slice(n.indexOf("{"),n.indexOf("};")+1),i=s.replace(/:\s*"([^"]*)"/g,function(e,t){return': "'+t.replace(/:/g,"@colon@")+'"'}).replace(/:\s*'([^']*)'/g,function(e,t){return': "'+t.replace(/:/g,"@colon@")+'"'}).replace(/(['"])?([a-z0-9A-Z_]+)(['"])?\s*:/g,'"$2": ').replace(/@colon@/g,":");params.pdf=JSON.parse(i)}exists(t)&&t()})}function getStageDimension(){return exists(elements.innerPluginsContainer)?{width:parseInt(getComputedStyle(elements.innerPluginsContainer).width),height:parseInt(getComputedStyle(elements.innerPluginsContainer).height)}:{width:0,height:0}}function _getTimePlayed(){return callStage("getTimePlayed")}function _getTimeBuffered(){return callStage("getTimeBuffered")}function _getPercentBuffered(){return callStage("getPercentBuffered")}function getVolume(){return callStage("getVolume")}function hideCursor(){elements.inner.style.cursor="none"}function _hidePlugin(e,t){var n;n=getPluginById(e instanceof Object?getPluginIdByElement(e):e),"visual"==n.getType()&&"inner"==n.getMode()&&(t!==undefined||(n.getWrapper().hidden=!0,n.getWrapper().style.display="none"))}function init(e){function t(){function e(){var e=exists(params.initialAsset)?params.initialAsset:0;if(loadAsset(e),params.autoplay||params.backgroundvideo&&(!_platform.os.mobile||"always"===params.backgroundvideo)&&(!exists(params.autoplay)||params.autoplay)){var t=function n(){return"iOS"==_platform.os.name&&"9"==_platform.os.version?(_stop(),!1):("iOS"==_platform.os.name?callStage("enableIOSmobileautoplay",!0):"Safari"==_platform.browser.name&&_platform.browser.version>=11||(_mute(),play()),void("always"!=params.autoplay&&("iOS"==_platform.os.name&&callStage("enableIOSmobileautoplay",!1),off("mediaReady",n),hls()&&off("hlsCG",n))))};_isDone("mediaReady")?t():on("mediaReady",t),hls()&&(_isDone("hlsCG")?t():on("hlsCG",t))}notifyID.viewer=Math.round(1e13*Math.random()),triggerListeners("initDone")}initPlugins();var t=document.createElement("video"),n=!!t.canPlayType;params.backgroundvideo&&_platform.os.mobile&&"always"!==params.backgroundvideo&&(!params.backgroundvideo||n)||initStage(),initListeners(),_isDone("productsLoaded")?e():on("productsLoaded",e),on("fatalAbort",function(){_destroy()}),on("reinitialise",function(){dieAndRiseAgain()})}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()&&(_platform=detectPlatform(),detectFeatures(),config.originalDimensions=getComputedStyle(config.parent),initViewer(),orderRequestToken(function(){if(!exists(params.slot)||exists(params.assetType)&&"data"==params.assetType?t():getSlotContent(requestToken,function(){t(),exists(params.assetType)&&"pdf"==params.assetType&&(getPDFDetails(params.pdfdetails),on("pdfDataLoaded",function(){var e={product:{title:params.pdf.title,description:"",link:null},assets:[]};e.assets.push(params.pdf),products.push(e);var t=exists(params.initialAsset)?params.initialAsset:0;loadAsset(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:[]},s=0;s<params.assetkeys.length;s++){var i={download:!1,duration:null,id:params.assetkeys[s],language:null,previews:{},social:{},subtitles:"",thumbnail:null,title:"",type:"youtube",uri:null,hls:!1,versions:null,aspectratio:null};n.assets.push(i)}products.push(n);var e=exists(params.initialAsset)?params.initialAsset:0;loadAsset(e)}else exists(params.assetType)&&"pdf"==params.assetType||getProducts(requestToken)}))}function fullscreenListener(){if(!exists(_features.fullscreen))return!1;var e="iOS"==_platform.os.name;if(e)if(config.fullscreen)document.fullscreenElement=null,document.webkitFullscreenElement=null;else{var t=!!stage&&!!stage.getVideoElement&&stage.getVideoElement();document.fullscreenElement=t,document.webkitFullscreenElement=t}config.fullscreen=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),triggerListeners("fullscreenChange"),_platform.os.mobile&&(config.fullscreen?Resizer.unwatch():Resizer.watch()),_platform.os.mobile&&resetViewerSize()}function initListeners(){!function(){config.fullscreen=!1,_features.fullscreen&&_features.fullscreen.fullscreenchange(function(){fullscreenListener()})}(),!!Resizer&&!!Resizer.watch&&Resizer.watch();var e="onorientationchange"in window,t=e?"orientationchange":"resize";e&&window.addEventListener(t,function(){return setTimeout(function(){!!Resizer&&!!Resizer.check&&Resizer.check(!0),triggerListeners("resize")},125)},!1),function(){function e(e){switch(e.key){case"Enter":case" ":e.preventDefault();case"k":_isPlaying()?_pause():play();break;case"m":isMuted()?_unmute():_mute();break;case"f":_isFullscreen()?_leaveFullscreen():_enterFullscreen();break;case"c":setSubtitlesEnabled(!isSubtitlesEnabled());break;case"t":setTranscriptEnabled(!isTranscriptEnabled());break;case"N":playAsset(_getNextAsset());break;case"P":playAsset(_getPrevAsset());break;case"ArrowUp":e.preventDefault(),_setVolume(Math.min(getVolume()+10,100));break;case"ArrowDown":e.preventDefault(),_setVolume(Math.max(0,getVolume()-10));break;case"ArrowLeft":e.preventDefault(),_setTimePlayed(_getTimePlayed()-5);break;case"ArrowRight":e.preventDefault(),_setTimePlayed(_getTimePlayed()+5);break;case"j":_setTimePlayed(_getTimePlayed()-10);break;case"l":_setTimePlayed(_getTimePlayed()+10);break;case"1":_setProgressPlayed(10);break;case"2":_setProgressPlayed(20);break;case"3":_setProgressPlayed(30);break;case"4":_setProgressPlayed(40);break;case"5":_setProgressPlayed(50);break;case"6":_setProgressPlayed(60);break;case"7":_setProgressPlayed(70);break;case"8":_setProgressPlayed(80);break;case"9":_setProgressPlayed(90);break;case"0":_setProgressPlayed(0);break;case",":prevFrame();break;case".":nextFrame();break;case"<":_slower();break;case">":_faster();break;case"Home":e.preventDefault(),_setTimePlayed(0);break;case"End":e.preventDefault(),_setTimePlayed(_getDuration()-1)}}config.focus=!1,addEvent(document,"click",function(t){for(var n=t.target;n;n=n.parentNode)if(n===elements.inner)return void addEvent(document,"keydown",e);removeEvent(document,"keydown",e)})}()}function initPlugins(){function e(e,n){var s=cl.getPlugin(e,n.version);if(s){if(n.viewer=self,n.pluginApi=getPluginApi(),"visual"==s.prototype.type){var i=document.createElement("div");n.parent=i;var a=s(n);a.setWrapper(i),"outer"==s.prototype.mode?(a.setPriority(n.priority),a.setPosition(n.position),config.plugins.visual.outer.push(a)):"inner"==s.prototype.mode&&(a.mode="inner",a.setLayer(n.layer),config.plugins.visual.inner.push(a))}else if("functional"==s.prototype.type){var a=s();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 s=0;s<params.plugins[n].length;s++){var i=params.plugins[n][s];e(n,i)}else{var i=params.plugins[n];e(n,i)}getPluginById(1),buildPlugins()}function initStage(){exists(elements.inner)&&(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",elements.inner.style.backgroundColor=params.backgroundColor,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 isPlayNext(){return params.playNext||!1}function isMovementListening(e){return!(!movementListeners[e]||!movementListeners[e].element)}function _isPlaying(){return callStage("isPlaying")}function _isFullscreen(){return!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)}function isMuted(){return callStage("isMuted")}function isQualityOverride(){return callStage("isQualityOverride")}function isStopped(){return callStage("isStopped")}function _leaveFullscreen(){_features.fullscreen.exitFullscreen()}function notifyAjax(e){function t(e){for(var n=-1,s=0,i=e.length;s<i;s++)n=n>>>8^t.b_table[255&(n^e.charCodeAt(s))];return(n^-1)>>>0}t.a_table="00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",t.b_table=t.a_table.split(" ").map(function(e){return parseInt(e,16)});var n=getAsset(),s=_getCurrentQuality(),i={v:1,vs:1,vm:2,vx:3},a=i[s.string],r=params.assetkeys?params.assetkeys:params.assetKeys?params.assetKeys:[0],o={cid:params.customer,tid:notifyID.asset+"",sid:notifyID.viewer+"",e:[{eti:new Date(Date.now()).toISOString(),et:e,ed:{s:_getProgressPlayed(),vid:n.id,vi:a,rk:r[getAssetPosition()],rt:params.keytype,pv:CLViewer.prototype.version}}]},l=JSON.stringify(o),u={j:btoa(l),c:t(l)},g=(btoa(l),t(l),encodeURIComponent),c=Object.keys(u).map(function(e){return g(e)+"="+g(u[e])}).join("&"),p="https://ts.mycliplister.com/v2",d=p+"?"+c;cl.ajax(d,function(e){return!1},function(e){return!0})}function loadAsset(e,t){function n(){triggerListeners("assetReady"),exists(params.assetType)&&"data"===params.assetType&&exists(params.output)&&"data"===params.output||exists(params.assetType)&&("pdf"===params.assetType||params.assetKind.includes("eFlyer"))||exists(params.assetType)&&("data"===params.assetType||params.assetKind.includes("360view"))?(setStage(exists(params.assetKind)&&params.assetKind.includes("eFlyer")?"eFlyer":exists(params.assetKind)&&params.assetKind.includes("360view")?"image360":exists(params.assetKind)&&params.assetKind.includes("3Dasset")?"3d":params.assetType),_isDone("pluginsBuilt")?callStage("showMedia",[loadedAsset]):on("pluginsBuilt",function(){callStage("showMedia",[loadedAsset])})):(exists(params.CLTracking)&&params.CLTracking&&(_isDone("initialPlay")||on("initialPlay",function(){notifyID.asset=Math.round(1e13*Math.random()),notifyAjax("videoPlay")}),_isDone("changeSrc")||on("changeSrc",function(){notifyAjax("qualityChange")})),params.backgroundvideo&&_platform.os.mobile&&"always"!==params.backgroundvideo||(setStage(exists(params.forceAssetType)?params.forceAssetType:loadedAsset.hls?"videoHLS":loadedAsset.type),(params.mute||params.backgroundvideo)&&_mute(),exists(params.forceAssetType)&&"image360"==params.forceAssetType?callStage("showMedia",[params.assetkeys]):1==params.keytype?callStage("showMedia",[loadedAsset]):callStage("showMedia",[loadedAsset]),exists(params.fixedQuality)?on("mediaReady",function(){callStage("setQuality",[params.fixedQuality])}):exists(params.defaultQuality)&&on("mediaReady",function(){callStage("setQuality",[params.defaultQuality])})))}if(String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&this.indexOf(e,t)!==-1}),e=parseInt(e),(exists(params.assetType)&&"data"===params.assetType&&exists(params.output)&&"data"===params.output||"pdf"===params.assetType||exists(params.assetKind)&&(params.assetKind.includes("eFlyer")||params.assetKind.includes("360view")||params.assetKind.includes("3Dasset")))&&(t=!0),isStopped||_stop(),"undefined"==typeof t)for(var s=0,i=!1,a=0;a<products.length;a++){for(var r=0;r<products[a].assets.length;r++){if(e<1e3&&e==s||e>=1e3&&e==products[a].assets[r].id){i=!0,loadedAsset=products[a].assets[r],currentAssetIndex=e,currentProductIndex=a,n();break}s++}if(i)break}else{switch(params.assetType){case"pdf":loadedAsset=products;break;case"data":if(exists(params.assetKind)){if(params.assetKind.includes("eFlyer")){loadedAsset=products.eFlyers[0];break}if(params.assetKind.includes("360view")){var o=products.threesixty[0]||products.threesixty;loadedAsset=o.assets[0]||o.assets;break}if(params.assetKind.includes("3Dasset")){loadedAsset=products["3Dasset"][0]||products["3Dasset"];break}}loadedAsset=products.pages[0];break;default:if(params.assetType.includes("documents")){loadedAsset=products.documents[0];break}loadedAsset=products}n()}}function playAsset(e,t){loadAsset(e,t),play()}function _playNextAsset(){params.playNext=!0,getPluginApi().on("play",function(){triggerListeners("playNext"),params.playNext=!1}),playAsset(_getNextAsset())}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 s(e,t){listeners[e]||(listeners[e]=new Array),listeners[e].push(t)}if(n&&n.subsequent&&_isDone(e)&&t(),e instanceof Array)for(var i=0;i<e.length;i++)s(e[i],t);else s(e,t)}function onMouseenter(e,t){addEvent(e,"mouseover",function(e){var n=e.relatedTarget;this===n||isAChildOf(this,n)||t(e)})}function onMouseleave(e,t){addEvent(e,"mouseout",function(e){var n=e.relatedTarget;this===n||isAChildOf(this,n)||t(e)})}function onMousedown(e,t){var n="ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0;addEvent(e,n?"touchstart":"mousedown",function(e){var n=e.relatedTarget;this===n||isAChildOf(this,n)||t(e)})}function onMouseup(e,t){var n="ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0;addEvent(e,n?"touchend":"mouseup",function(e){var n=e.relatedTarget;this===n||isAChildOf(this,n)||t(e)})}function onMousemove(e,t){var n="ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0;addEvent(e,n?"touchmove":"mousemove",function(e){var n=e.relatedTarget;this===n||isAChildOf(this,n)||t(e)})}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),"undefined"!=typeof Hls&&Hls.isSupported()&&exists(params.streamtype)&&(t.streamtype=params.streamtype),exists(params.plist)?exists(e)&&e():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 getZoomObject(){return exists(stage.zoomPages)?stage.zoomPages():stage.zoomImage()}function zoomImage(){return stage.zoomImage()}function zoomPage(e){return stage.zoomPage(e)}function nextImage(){stage.nextImage()}function prevImage(){stage.prevImage()}function firstImage(){stage.firstImage()}function lastImage(){stage.lastImage()}function nextPage(){stage.nextPage()}function prevPage(){stage.prevPage()}function firstPage(){stage.firstPage()}function lastPage(){stage.lastPage()}function setPage(e){stage.setPage(e)}function getCurrentPage(){return exists(stage)&&_isDone("mediaReady")?stage.getCurrentPage():0}function getCurrentPageLandscape(){return exists(stage)&&_isDone("mediaReady")?stage.getCurrentPageLandscape():0}function getPageLandscape(e){return exists(stage)&&_isDone("mediaReady")?stage.getPageLandscape(e):0}function getPageCount(){return exists(stage)&&_isDone("mediaReady")?stage.getPageCount():0}function getPDFTitle(){return exists(stage)&&_isDone("mediaReady")?stage.getTitle():""}function setStageHeightAdjustment(e){stageHeightAdjustment=parseInt(e),resetViewerSize()}function getStageHeightAdjustment(){return stageHeightAdjustment}function setStageWidth(e){var t=parseInt(e);_isDone("stageSet")?stage.setStageWidth&&stage.setStageWidth(t):on("stageSet",function(){stage.setStageWidth&&stage.setStageWidth(t)})}function getStageWidthAbs(){if(_isDone("stageSet")){var e,t,n;return null!==(e=null===(t=(n=stage).getStageWidthAbs)||void 0===t?void 0:t.call(n))&&void 0!==e?e:0}return 0}function getStageWidth(){if(_isDone("stageSet")){var e,t,n;return null!==(e=null===(t=(n=stage).getStageWidth)||void 0===t?void 0:t.call(n))&&void 0!==e?e:0}return 0}function getStageHeightAbs(){if(_isDone("stageSet")){var e,t,n;return null!==(e=null===(t=(n=stage).getStageHeightAbs)||void 0===t?void 0:t.call(n))&&void 0!==e?e:0}return 0}function getStageHeight(){if(_isDone("stageSet")){var e,t,n;return null!==(e=null===(t=(n=stage).getStageHeight)||void 0===t?void 0:t.call(n))&&void 0!==e?e:0}return 0}function setStageHeight(e){var t=parseInt(e);_isDone("stageSet")?stage.setStageHeight&&stage.setStageHeight(t):on("stageSet",function(){stage.setStageHeight&&stage.setStageHeight(t)})}function setZoomStatus(e,t,n){config.currentZoom=e,exists(t)&&(config.maxZoom=t),triggerListeners("zoomChanged",{currentZoom:config.currentZoom,maxZoom:config.maxZoom,immediately:n})}function setSimpleZoom(e){stage.setSimpleZoom(e)}function setZoomMode(e){_isDone("stageSet")?exists(stage.setZoomMode)&&stage.setZoomMode(e):on("stageSet",function(){exists(stage.setZoomMode)&&stage.setZoomMode(e)})}function downloadPDF(){stage.downloadPDF()}function canDownloadPDF(){return stage.canDownloadPDF()}function getImageSrc(e,t){return stage.getImageSrc(e,t)}function getImageLandscape(e){return stage.getImageLandscape(e)}function isAnimated(){return!!exists(params.stage.animated)&&params.stage.animated}function nextLvl(){stage.nextLvl()}function prevLvl(){stage.prevLvl()}function _activateAR(){exists(stage)&&"3d"===stage.type&&stage.activateAR()}function activateARDirectLink(){if(exists(stage)&&"3d"===stage.type){var e=({glb:loadedAsset.derivate.find(function(e){"glb"===e.fileExtension}),usdz:loadedAsset.derivate.find(function(e){"usdz"===e.fileExtension;
})},new URL("https://arvr.google.com/scene-viewer/1.0"));e.searchParams.append("file","https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/Avocado/glTF/Avocado.gltf"),e.searchParams.append("mode","ar_only")}}function _showQr(){triggerListeners("showQr")}function _hideQr(){triggerListeners("hideQr")}function getLandingPageLinkData(e){var t="https://mycliplister.com/static/html/dynamicLandingPage.html",n={landingpageBaseUrl:t,asset:loadedAsset,settings:{custid:params.customer,rk:Array.isArray(params.assetkeys)?params.assetkeys[0]:params.assetkeys,keytype:params.keytype,stageAspect:params.stage.aspectRatio}};return n}function _setOrbitPosition(e,t,n,s){exists(stage)&&"3d"===stage.type&&stage.setOrbitPosition(e,t,n,s)}function setRotationCenter(e,t,n){exists(stage)&&"3d"===stage.type&&stage.setRotationCenter(e,t,n)}function _getOrbitPosition(){if(exists(stage)&&"3d"===stage.type)return stage.getOrbitPosition()}function _getRotationCenter(){if(exists(stage)&&"3d"===stage.type)return stage.getRotationCenter()}function _setExposure(e){exists(stage)&&"3d"===stage.type&&stage.setExposure(e)}function _getExposure(){if(exists(stage)&&"3d"===stage.type)return stage.getExposure()}function _setShadowIntensity(e){exists(stage)&&"3d"===stage.type&&stage.setShadowIntensity(e)}function _getShadowIntensity(){if(exists(stage)&&"3d"===stage.type)return stage.getShadowIntensity()}function _setShadowSoftness(e){exists(stage)&&"3d"===stage.type&&stage.setShadowSoftness(e)}function _getShadowSoftness(){if(exists(stage)&&"3d"===stage.type)return stage.getShadowSoftness()}function _pause(){exists(stage)&&_isDone("mediaReady")&&(_platform.os.mobile||triggerListeners("pauseMedia"),stage.pause())}function playPubAPI(){return _getProgressPlayed()||"iOS"!=_platform.os.name||"9"!=_platform.os.version?(_getProgressPlayed()||_mute(),void play()):(_stop(),!1)}function play(){function e(){hls()||callStage("play"),stage.play()}exists(stage)&&stage.getSrc()&&(_platform.os.mobile||triggerListeners("playMedia"),e())}function getVidSrc(){var e="";return exists(stage)&&_isDone("mediaReady")&&(e=stage.getSrc()),e}function getRootElement(){return cl.getRootElement()}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.srcurl=e.srcurl||null,t.iossrcurl=e.iossrcurl||null,t.pivotpoint=e.pivotpoint||null,t.hotspots=e.hotspots||null,t.hls="undefined"!=typeof e.stream&&"true"==e.stream,t.versions=e.versions||null,t.aspectratio=e.aspectratio||null,t.cliptype_name=e.cliptype_name||null,t.downloadLinks=e.videoDownloadLinks||null,t.streamingLinks=e.videoStreamingLinks||null,t}function n(e,n){var s={product:{},assets:[]};s.product.title=e.producttext||"",s.product.description=e.productshortdesc||"",s.product.link=e.productlink||null,delete e.producttext,delete e.productshortdesc;var i=e.relatedclips;e.related=!1,delete e.relatedclips;var a=t(e);if(s.assets.push(a),exists(i)&&""!=i)if(i.clip instanceof Array){n=n?n-1:i.clip.length,n=Math.min(n,i.clip.length);for(var r=0;r<n;r++)i.clip[r].related=!0,s.assets.push(t(i.clip[r]))}else(!n||n>1)&&(i.clip.related=!0,s.assets.push(t(i.clip)));return s}function s(e){var t=e[0];return t.type="image360",t}function i(e){var t={product:{},assets:[]};t.product.title=e.producttext||"",t.product.description=e.productshortdesc||"",t.product.link=e.productlink||null,delete e.producttext,delete e.productshortdesc;var n=e.relatedclips;e.related=!1,delete e.relatedclips;var i=s(e);if(t.assets.push(i),exists(n)&&""!=n)if(n.clip instanceof Array)for(var a=0;a<n.clip.length;a++)n.clip[a].related=!0,t.assets.push(s(n.clip[a]));else n.clip.related=!0,t.assets.push(s(n.clip));return t}if("1"!==e.cliplist.version||"undefined"==typeof e.cliplist.clip&&"undefined"==typeof e.cliplist.pages&&"undefined"==typeof e.cliplist["360view"]&&"undefined"==typeof e.cliplist["360views"]&&"undefined"==typeof e.cliplist.eFlyers&&"undefined"==typeof e.cliplist["3Dasset"])triggerListeners("fatalAbort");else{var a=!!exists(params.assetLimit)&&params.assetLimit;if(exists(e.cliplist.clip))if(e.cliplist.clip instanceof Array)for(var r=0;r<e.cliplist.clip.length;r++){var o=e.cliplist.clip[r];products.push(n(o,a))}else products.push(n(e.cliplist.clip,a));if(e.cliplist.pages instanceof Array&&(products.pages=e.cliplist.pages),e.cliplist.eFlyers instanceof Array&&(products.eFlyers=e.cliplist.eFlyers),"undefined"!=typeof e.cliplist["3Dasset"]&&(products["3Dasset"]=e.cliplist["3Dasset"]),"undefined"!=typeof e.cliplist["360view"])if(!exists(products.threesixty)&&(products.threesixty=[]),products.threesixty.push(i(e.cliplist["360view"])),e.cliplist["360view"]instanceof Array&&exists(e.cliplist["360view"][0])&&e.cliplist["360view"][0]instanceof Array)for(var r=0;r<e.cliplist["360view"].length;r++){var l=e.cliplist["360view"][r];products.threesixty.push(i(l,a))}else products.threesixty.push(i(e.cliplist["360view"],a));if("undefined"!=typeof e.cliplist["360views"])if(!exists(products.threesixty)&&(products.threesixty=[]),products.threesixty.push(i(e.cliplist["360views"])),e.cliplist["360views"]instanceof Array&&exists(e.cliplist["360views"][0])&&e.cliplist["360views"][0]instanceof Array)for(var r=0;r<e.cliplist["360views"].length;r++){var l=e.cliplist["360views"][r];products.threesixty.push(i(l,a))}else products.threesixty.push(i(e.cliplist["360views"],a));triggerListeners("productsLoaded")}}function processParameters(){for(var e,t,n=Object.keys(params),s=n.length;s--;)t=n[s],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),exists(params.assettype)&&(params.assetType=params.assettype),exists(params.assetkind)&&(params.assetKind=params.assetkind),params.parentid&&null!=(e=getRootElement().getElementById(params.parentid))?(config.parent=e,!0):(cl.log("The CLViewer requires an existing parent element.",1),triggerListeners("fatalAbort"),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,s,i){e===undefined||"top"!=t&&"right"!=t&&"bottom"!=t&&"left"!=t||n===undefined||("auto"==n?delete e[t]:e[t]=n,s!==undefined&&s?e.middlepointX=!0:delete e.middlepointX,i!==undefined&&i?e.middlepointY=!0:delete e.middlepointY)}function repositionInnerPluginElement(e){if(e&&exists(elements.innerPluginsContainer)){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},element:{width:Math.ceil(parseInt(getComputedStyle(e).width))+2,height:Math.ceil(parseFloat(getComputedStyle(e).height))+2}},n=["left","width","right","top","height","bottom"],s=0;s<n.length;s++){var i=n[s];"undefined"!=typeof e[i]&&(t[i]=distanceToPx(e[i],"left"==i||"right"==i||"width"==i?t.container.width:t.container.height),"right"==i?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":t.element.width&&e.right&&(e.style.left=t.container.width-distanceToPx(t.element.width,t.container.width)-t.right+"px")):"bottom"==i?(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":t.element.height&&e.bottom&&(e.style.left=t.container.height-distanceToPx(t.element.height,t.container.height)-t.bottom+"px")),e.style.height=t.container.height-t.top-t.bottom+"px"):e.style[i]=t[i]+"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,s){var i,a,r,o,l,u,g;1==arguments.length?(e.element!==undefined&&(i=e.element),e.position!==undefined&&(a=e.position),e.value!==undefined&&(r=e.value),e.animate!==undefined&&(g=e.animate),e.fromMiddlePoint!==undefined&&(e.fromMiddlePoint.x!==undefined&&(o=e.fromMiddlePoint.x),e.fromMiddlePoint.y!==undefined&&(l=e.fromMiddlePoint.y)),e.reposition!==undefined&&(u=e.reposition)):(i=e,a=t,r=n,g=s),"undefined"==typeof g&&(g=!1),"undefined"==typeof u&&(u=!0),"undefined"==typeof o&&(o=!1),"undefined"==typeof l&&(l=!1),g||disableCSSTransition(i),reSetElementPosition(i,a,r,o,l),u!==undefined&&u&&repositionInnerPluginElement(i)}function setElementSizeWithinInnerPlugin(e,t,n,s){var i,a,r,o,l,u;1==arguments.length?(e.element!==undefined&&(i=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)):(i=e,a=t,r=n,o=s),"undefined"==typeof o&&(o=!0),i===undefined||"width"!=a&&"height"!=a||r===undefined||("auto"==r?delete i[a]:i[a]=r,u!==undefined&&(i["min"+capitalizeFirstLetter(a)]=u),l!==undefined&&(i["max"+capitalizeFirstLetter(a)]=l),o&&repositionInnerPluginElement(i))}function _setProgressPlayed(e){stage.setProgressPlayed(e)}function _setTimePlayed(e){stage.setTimePlayed(e)}function nextFrame(){isStopped()||_isPlaying()||_setTimePlayed(_getTimePlayed()+1/24)}function prevFrame(){isStopped()||_isPlaying()||_setTimePlayed(_getTimePlayed()-1/24)}function setStage(e){function t(e){if(exists(elements.stageWrapper)||initStage(),!stage||stage.getType!==e){var t=config.stage,n=!!stage&&getVolume();t.parent=elements.stageWrapper,t.viewer=self,t.pluginApi=getPluginApi(),t.callParams=config.stage.params,stage=cl.getStage(e)(t),"video"!==e&&"videoHLS"!==e||(n!==!1&&_setVolume(n),"iOS"===_platform.os.name&&callStage("enableIOSinlineplay",!0)),triggerListeners("stageSet")}}"eFlyer"===e&&(e="pdf"),"hls"===e&&(e="videoHLS"),_isDone("pluginsBuilt")?t(e):on("pluginsBuilt",function(){t(e)})}function _setVolume(e){stage.setVolume(e)}function showCursor(){!!elements.inner&&(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){if(exists(stage)&&_isDone("mediaReady")){if(triggerListeners("stopMedia"),!stage.stop)return!1;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&&Resizer.check()}function resetViewerSize(){if(exists(elements.inner)&&exists(elements.innerPluginsContainer)){config.dimensions={};config.originalDimensions;config.dimensions.width=parseInt(getStageWidthAbs()),config.dimensions.height=parseInt(getStageHeightAbs())+stageHeightAdjustment,elements.inner.style.width=config.dimensions.width+"px",elements.inner.style.height=config.dimensions.height+"px",elements.innerPluginsContainer.height=config.dimensions.height-config.measures.offsets.top-config.measures.offsets.bottom,elements.innerPluginsContainer.width=parseInt(config.dimensions.width)-config.measures.offsets.left-config.measures.offsets.right,elements.innerPluginsContainer.style.width=elements.innerPluginsContainer.width+"px";var e=_platform.os.mobile;e=!(exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&!params.plugins.InnerControls.mobileDefaultControls)&&e;var t="iOS"==_platform.os.name&&_platform.os.version>="10"&&e;elements.innerPluginsContainer.style.top=config.measures.offsets.top+"px",isStopped()?(elements.innerPluginsContainer.style.top=config.measures.offsets.top+"px",elements.innerPluginsContainer.style.height=elements.innerPluginsContainer.height+"px"):(elements.innerPluginsContainer.style.height=e&&!t?elements.innerPluginsContainer.height-50+"px":elements.innerPluginsContainer.height+"px",elements.innerPluginsContainer.style.height=t?parseInt(elements.innerPluginsContainer.style.height)-43+"px":parseInt(elements.innerPluginsContainer.style.height)+"px",elements.innerPluginsContainer.style.top=t?parseInt(elements.innerPluginsContainer.style.top)+43+"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 s=getPluginIdByElement(e),i=movementListeners[s];if(i&&i.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<i.listeners.length;r++)i.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,currentProductIndex,requestToken,stageHeightAdjustment=0,notifyID={asset:0,viewer:0},interval={instance:{},globalTimeout:0,counter:0,fns:[],timeouts:[],maxTimeout:0},Counter={count:0,getUniqueNumber:function(){return exists(cl[Counter])?cl.Counter.getUniqueNumber():++this.count}},fetched_images={},hasScrollbar=function(){if("number"==typeof window.innerWidth)return window.innerWidth>document.documentElement.clientWidth;var e,t=document.documentElement||document.body;"undefined"!=typeof t.currentStyle&&(e=t.currentStyle.overflow),e=e||window.getComputedStyle(t,"").overflow;var n;"undefined"!=typeof t.currentStyle&&(n=t.currentStyle.overflowY),n=n||window.getComputedStyle(t,"").overflowY;var s=t.scrollHeight>t.clientHeight,i=/^(visible|auto)$/.test(e)||/^(visible|auto)$/.test(n),a="scroll"===e||"scroll"===n;return s&&i||a},Resizer={knownWidth:0,knownHeight:0,currentWidth:0,currentHeight:0,watch:function(){this.unwatch(),this.checkInterval=setInterval(this.check,250)},watchSlow:function(){this.unwatch(),this.checkInterval=setInterval(this.check,1e3)},unwatch:function(){this.checkInterval&&window.clearInterval(this.checkInterval)},check:function(e){e="undefined"!=typeof e&&e;var t=exists(params.stage)&&exists(params.stage.removeSize)&&"padding"===params.stage.removeSize;if(config.fullscreen&&!_platform.os.isIPad){e=!0;var n={width:window.innerWidth,height:window.innerHeight};this.currentWidth=window.innerWidth,this.currentHeight=window.innerHeight}else{var n=getComputedStyle(config.parent);this.currentWidth=t?Math.round(parseFloat(n.width))-Math.round(parseFloat(n.paddingLeft))-Math.round(parseFloat(n.paddingRight))-Math.round(parseFloat(n.borderLeftWidth))-Math.round(parseFloat(n.borderRightWidth)):Math.round(parseFloat(n.width)),this.currentHeight=t?Math.round(parseFloat(n.height))-Math.round(parseFloat(n.paddingTop))-Math.round(parseFloat(n.paddingBottom))-Math.round(parseFloat(n.borderTopWidth))-Math.round(parseFloat(n.borderBottomWidth)):Math.round(parseFloat(n.height))}if(Math.round(parseFloat(this.knownHeight))!==Math.round(parseFloat(this.currentHeight))&&(!config.fullscreen||"undefined"==typeof params.stage.aspectRatio||"undefined"==typeof params.stage.width)||Math.round(parseFloat(this.knownWidth))!==Math.round(parseFloat(this.currentWidth))&&(!config.fullscreen||"undefined"==typeof params.stage.aspectRatio||"undefined"==typeof params.stage.height)||e){var s=!1;if(config.fullscreen)var i=Math.round(parseFloat(n.width)),a=Math.round(parseFloat(n.height));else var i=t?Math.round(parseFloat(n.width))-Math.round(parseFloat(n.paddingLeft))-Math.round(parseFloat(n.paddingRight))-Math.round(parseFloat(n.borderLeftWidth))-Math.round(parseFloat(n.borderRightWidth)):Math.round(parseFloat(n.width)),a=t?Math.round(parseFloat(n.height))-Math.round(parseFloat(n.paddingTop))-Math.round(parseFloat(n.paddingBottom))-Math.round(parseFloat(n.borderTopWidth))-Math.round(parseFloat(n.borderBottomWidth)):Math.round(parseFloat(n.height));if(params.stage&&params.stage.aspectRatio){s={};var r=getAsset(),o="undefined"==typeof r||"undefined"==typeof r.aspectratio||null===r.aspectratio?[16,9]:r.aspectratio.split(":"),l=("asset"==params.stage.aspectRatio?o:params.stage.aspectRatio.split(":"))||[16,9];if(exists(r)&&exists(r.type)&&"eFlyer"===r.type)l=[Math.sqrt(2),1];else if(exists(r)&&"3Dasset"===params.assetKind&&"asset"===params.stage.aspectRatio){for(var u=config.parent.parentElement;0===u.offsetHeight;)u=u.parentElement;var g=getComputedStyle(u),c=parseFloat(g.paddingLeft)+parseFloat(g.paddingRight),p=parseFloat(g.paddingTop)+parseFloat(g.paddingBottom),d=parseFloat(g.borderLeftWidth)+parseFloat(g.borderRightWidth),m=parseFloat(g.borderTopWidth)+parseFloat(g.borderBottomWidth),f=u.offsetWidth-c-d,h=u.offsetHeight-p-m;l=[f,h]}if(params.stage.width&&!params.stage.height){s.width=distanceToPx(params.stage.width,i),hasScrollbar();var y=Math.round(parseInt(s.width/l[0]*l[1]+stageHeightAdjustment));exists(stage)&&exists(stage.setBottom)&&stage.setBottom(stageHeightAdjustment),s.minHeight&&y<s.minHeight?s.height=s.minHeight:params.stage.maxHeight&&y>params.stage.maxHeight?s.height=s.maxHeight:s.height=y,exists(s.minHeight)&&(s.availableHeight+=s.minHeight),s.availableHeight-=s.height}else if(params.stage.height&&!params.stage.width){s.height=distanceToPx(params.stage.height,a);var v=Math.round(parseInt(s.height-stageHeightAdjustment/l[1]*l[0]));params.stage.minWidth&&v<params.stage.minWidth?s.width=s.minWidth:params.stage.maxWidth&&v>params.stage.maxWidth?s.width=s.maxWidth:s.width=v,exists(s.minWidth)&&(s.availableWidth+=s.minWidth),s.availableWidth-=s.width}}this.knownWidth=s?s.width:parseInt(i),this.knownHeight=s?s.height:parseInt(a);var P=s?s:n;config.dimensions.width=this.knownWidth,config.dimensions.height=this.knownHeight,elements.inner.style.width=parseInt(this.knownWidth)+(/%$/.test(P.width)?"%":"px"),elements.inner.style.height=parseInt(this.knownHeight)+(/%$/.test(P.height)?"%":"px"),elements.innerPluginsContainer&&(elements.innerPluginsContainer.height=this.knownHeight-config.measures.offsets.top-config.measures.offsets.bottom),elements.innerPluginsContainer&&(elements.innerPluginsContainer.width=this.knownWidth-config.measures.offsets.left-config.measures.offsets.right),elements.innerPluginsContainer&&(elements.innerPluginsContainer.style.width=elements.innerPluginsContainer.width+(/%$/.test(P.width)?"%":"px")),elements.innerPluginsContainer&&(elements.innerPluginsContainer.style.height=elements.innerPluginsContainer.height+(/%$/.test(P.height)?"%":"px"));var b=_platform.os.mobile;b=!(exists(params.plugins)&&exists(params.plugins)&&exists(params.plugins.InnerControls)&&exists(params.plugins.InnerControls.mobileDefaultControls)&&!params.plugins.InnerControls.mobileDefaultControls)&&b;var w="iOS"==_platform.os.name&&_platform.os.version>="10"&&b;elements.innerPluginsContainer&&(_getProgressPlayed()?(elements.innerPluginsContainer.style.height=b&&!w?elements.innerPluginsContainer.height-50+"px":elements.innerPluginsContainer.height+"px",elements.innerPluginsContainer.style.height=w?parseInt(elements.innerPluginsContainer.style.height)-43+"px":parseInt(elements.innerPluginsContainer.style.height)+"px",elements.innerPluginsContainer.style.top=w?parseInt(elements.innerPluginsContainer.style.top)+43+"px":parseInt(elements.innerPluginsContainer.style.top)+"px"):(elements.innerPluginsContainer.style.top=config.measures.offsets.top+"px",elements.innerPluginsContainer.style.height=elements.innerPluginsContainer.height+"px"));var x=!0;if(exists(r)&&!exists(r.pagesDataLink)){!b&&exists(elements.stageWrapper)&&(elements.stageWrapper.style.height=elements.inner.clientHeight+"px"),elements.innerPluginsContainer&&(elements.innerPluginsContainer.style.top=config.measures.offsets.top+"px");var A=exists(elements.stageWrapper)?getComputedStyle(elements.stageWrapper).height:getComputedStyle(elements.inner).height,C=exists(elements.stageWrapper)?elements.stageWrapper.clientHeight:elements.inner.clientHeight;x=elements.inner.clientHeight<C;var _=Math.round(C/o[1]*o[0]);x=elements.inner.clientWidth>_}if(_isFullscreen()&&elements.innerPluginsContainer&&parseInt(A)>parseInt(elements.innerPluginsContainer.style.height)+1)x?elements.innerPluginsContainer.style.top=0:elements.innerPluginsContainer.style.top=0,elements.innerPluginsContainer.style.height=parseInt(getComputedStyle(elements.inner).height)+"px";else{var S=0,E=parseInt(getComputedStyle(elements.inner).height);"Safari"===_platform.browser.name&&(x||(E=screen.height)),_isFullscreen()&&("Safari"===_platform.browser.name&&"Safari"===_platform.browser.name&&x&&(E=elements.inner.clientHeight),S=E/2-parseInt(A)/2),_isDone("stageSet"),_isFullscreen()&&elements.innerPluginsContainer&&(x?elements.innerPluginsContainer.style.top=0:elements.innerPluginsContainer.style.top=_isPlaying()?0:S,"Safari"===_platform.browser.name&&(elements.inner.style.height=E+"px"),elements.innerPluginsContainer.style.height=parseInt(getComputedStyle(elements.inner).height)+"px"),_getProgressPlayed()&&elements.innerPluginsContainer&&(elements.innerPluginsContainer.style.top=w?parseInt(elements.innerPluginsContainer.style.top)+43+"px":parseInt(elements.innerPluginsContainer.style.top)+"px",elements.innerPluginsContainer.style.height=w?parseInt(elements.innerPluginsContainer.style.height)-43+"px":parseInt(elements.innerPluginsContainer.style.height)+"px")}params.stage&&params.stage.forceDimensions&&(config.parent.style.width=this.knownWidth+(/%$/.test(P.width)?"%":"px"),config.parent.style.height=this.knownHeight+(/%$/.test(P.height)?"%":"px")),repositionInnerPluginElements(),triggerListeners("resize")}}};return init(_params),getPublicApi()};CLViewer.prototype.version=VERSION,window.Cliplister.addViewer(CLViewer)}(window,void 0);"use strict";!function(e,t){var i="video",n="1.2",r=function s(i){function n(t){var n=("http:"===location.protocol?"http:":"https:")+"//mycliplister.com/static/viewer/assets/chk/meta2.png?n="+Math.random(),r=[],s=[],u=[],a=[],l=0,o=new XMLHttpRequest;o.addEventListener("loadstart",function(e){"undefined"==typeof r[t]&&(r[t]=(new Date).getTime())}),o.addEventListener("loadend",function(n){s[t]=(new Date).getTime();var o="undefined"==typeof a[t]?r[t]:a[t],p="undefined"==typeof u[t]?s[t]:u[t],g=(p-o)/1e3,c=8*l;e.downloadSpeed=Math.round(c/g),i.pluginApi.triggerListeners("bandwidthChecked")}),o.addEventListener("progress",function(e){l=e.loaded}),o.onreadystatechange=function(){2===o.readyState&&(a[t]=(new Date).getTime())};try{o.open("GET",n),o.timeout=2e3,o.send()}catch(p){e.downloadSpeed=1e5,i.pluginApi.triggerListeners("bandwidthChecked")}}function r(){if(_.playPosition=U.getTimePlayed(),!isNaN(U.getProgressPlayed())&&Math.round(_.playProgress)!==Math.round(U.getProgressPlayed())&&Math.round(U.getProgressPlayed())%10===0)switch(Math.round(U.getProgressPlayed())){case 0:i.pluginApi.triggerListeners("progress0");break;case 10:i.pluginApi.triggerListeners("progress10");break;case 20:i.pluginApi.triggerListeners("progress20");break;case 30:i.pluginApi.triggerListeners("progress30");break;case 40:i.pluginApi.triggerListeners("progress40");break;case 50:i.pluginApi.triggerListeners("progress50");break;case 60:i.pluginApi.triggerListeners("progress60");break;case 70:i.pluginApi.triggerListeners("progress70");break;case 80:i.pluginApi.triggerListeners("progress80");break;case 90:i.pluginApi.triggerListeners("progress90");break;case 100:i.pluginApi.triggerListeners("progress100");break;case 5:i.pluginApi.triggerListeners("progress5");break;case 15:i.pluginApi.triggerListeners("progress15");break;case 25:i.pluginApi.triggerListeners("progress25");break;case 35:i.pluginApi.triggerListeners("progress35");break;case 45:i.pluginApi.triggerListeners("progress45");break;case 55:i.pluginApi.triggerListeners("progress55");break;case 65:i.pluginApi.triggerListeners("progress65");break;case 75:i.pluginApi.triggerListeners("progress75");break;case 85:i.pluginApi.triggerListeners("progress85");break;case 95:i.pluginApi.triggerListeners("progress95");break;default:console.log("Played a percentage not in between 0 and 100... wait wat.")}if(Math.round(_.playProgress)!==Math.round(U.getProgressPlayed())&&"Safari"===i.pluginApi.platform().browser.name){var e=V.videoWidth,t=V.videoHeight;W.width=e,W.height=t,j.drawImage(V,0,0,e,t)}_.playProgress=U.getProgressPlayed(),_.bufferPercent=U.getPercentBuffered(),_.playPosition===_.oldPlayPosition?(Z||i.pluginApi.triggerListeners("buffering"),Z=!0):(Z=!1,i.pluginApi.triggerListeners("bufferingDone")),_.oldPlayPosition=_.playPosition,_.oldPlayProgress=_.playProgress,_.oldBufferPercent=_.bufferPercent,V.quality!=_.currentQuality&&i.pluginApi.isDone("bandwidthChecked")&&(V.quality=_.currentQuality,B())}function u(){return $}function a(){o(),l()}function l(){U.switchBitrate=function(e){return U},U.enterFullscreen=function(){return S(),U},U.getAvailableQualities=function(){return u()},U.getCurrentBitrate=function(){return $[_.currentQuality].bitrate},U.getCurrentQuality=function(){return $[_.currentQuality]},U.getDuration=function(){return i.pluginApi.exists(V)?Math.round(V.duration):0},U.getProgressPlayed=function(){return i.pluginApi.exists(V)?V.currentTime/(V.duration/100):0},U.getTimePlayed=function(){return i.pluginApi.exists(V)?V.currentTime:0},U.getTimeBuffered=function(){return i.pluginApi.exists(V)&&V.buffered.length?V.buffered.end(V.buffered.length-1):0},U.getPercentBuffered=function(){return i.pluginApi.exists(V)&&V.buffered.length?V.buffered.end(V.buffered.length-1)/V.duration*100:0},U.getPlaybackSpeed=function(){},U.getVolume=function(){return i.pluginApi.exists(V)?parseInt(100*V.volume):0},U.getSrc=function(){return!!i.pluginApi.exists(V)&&Q(_.currentQuality)},U.isMuted=function(){return!!i.pluginApi.exists(V)&&V.muted},U.getVideoElement=function(){return!!i.pluginApi.exists(V)&&V},U.isNativeFullscreen=function(){return Y},U.isPlaying=function(){return G},U.isQualityOverride=function(){return ie},U.isStopped=function(){return K},U.leaveFullscreen=function(){return C(),U},U.exitFullscreen=function(){return P(),U},U.mute=function(){return!!i.pluginApi.exists(V)&&(_.volumeBeforeMute=i.pluginApi.getVolume(),i.pluginApi.setVolume(0),V.muted=!0,i.pluginApi.triggerListeners("mute"),void i.pluginApi.triggerListeners("volumeChange"))},U.onFullscreenChange=function(e){N(e)},U.pause=function(){return E(),U},U.play=function(){return F(),_.playPromise},U.setTimePlayed=function(e){return I(e),U},U.setProgressPlayed=function(e){return T(e),U},U.setQuality=function(e){return R(e),U},U.setQualityOverride=function(e){return q(e),U},U.setVolume=function(e){return b(e),U},U.showMedia=function(e){M(e)},U.stop=function(){return z(),i.pluginApi.platform().os.mobile&&i.pluginApi.triggerListeners("stop"),U},U.unmute=function(){("iOS"!==i.pluginApi.platform().os.name||X)&&(V.muted=!1,i.pluginApi.setVolume(100),i.pluginApi.triggerListeners("unmute"),i.pluginApi.triggerListeners("volumeChange"))},U.slower=function(){return V.playbackRate>=ae+oe&&(V.playbackRate-=oe,i.pluginApi.triggerListeners("playbackSpeedChange")),U},U.faster=function(){return V.playbackRate<=le-oe&&(V.playbackRate+=oe,i.pluginApi.triggerListeners("playbackSpeedChange")),U},U.setSpeed=function(e){return e>=ae&&e<=le&&(V.playbackRate=e,i.pluginApi.triggerListeners("playbackSpeedChange")),U},U.resetSpeed=function(){return V.playbackRate=V.defaultPlaybackRate,i.pluginApi.triggerListeners("playbackSpeedChange"),U},U.getCurrentSpeed=function(){return V.playbackRate},U.changeQuality=function(e){return D(e),U},U.showDefaultControls=function(){return L(),U},U.hideDefaultControls=function(){return x(),U},U.enableIOSmobileautoplay=function(e){return w(e),U},U.enableIOSinlineplay=function(e){return k(e),U},U.appendNativeSubtitles=function(e,t,i,n){return g(e,t,i,n),U},U.setStageWidth=function(e){return c(e),U},U.setStageHeight=function(e){return d(e),U},U.getStageWidth=function(){return parseInt(V.style.width)},U.getStageHeight=function(){return parseInt(V.style.height)},U.getStageHeightAbs=function(){return parseInt(V.clientHeight)},U.getStageWidthAbs=function(){return parseInt(V.clientWidth)},U.setTop=function(e){e=isNaN(parseInt(e))?0:e,H.style.top=parseInt(e)+"px"},U.setBottom=function(e){e=isNaN(parseInt(e))?0:e,i.pluginApi.exists(H)&&(H.style.bottom=parseInt(e)+"px")},U.setLeft=function(e){e=isNaN(parseInt(e))?0:e,H.style.left=parseInt(e)+"px"},U.setRight=function(e){e=isNaN(parseInt(e))?0:e,H.style.right=parseInt(e)+"px"}}function o(){if(i.pluginApi.exists(i.parent)){i.parent.innerHTML="",H=document.createElement("div"),H.style.position="absolute",H.style.top="-1px",H.style.right="-1px",H.style.bottom="-1px",H.style.left="-1px",H.style.backgroundColor=i.pluginApi.getBackgroundColor(),H.style.color="#FFFFFF",i.parent.appendChild(H);var e=document.createElement("style");if(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),V=document.createElement("video"),V.style.width="100%",V.style.height="100%",V.style.backgroundColor=i.pluginApi.getBackgroundColor(),V.preload="auto",V.controlsList="",i.pluginApi.platform().os.mobile&&(V.addEventListener("seeked",f),V.addEventListener("play",v),V.addEventListener("pause",h),V.requestFullscreen?V.addEventListener("fullscreenchange",i.pluginApi.fullscreenListener):V.mozRequestFullScreen?V.addEventListener("mozfullscreenchange",i.pluginApi.fullscreenListener):V.webkitRequestFullScreen||V.webkitEnterFullScreen?V.addEventListener("webkitfullscreenchange",function(){"iOS"===i.pluginApi.platform().os.name&&(document.fullscreenElement=document.fullscreenElement?null:V,document.webkitFullscreenElement=document.webkitFullscreenElement?null:V),i.pluginApi.fullscreenListener()}):V.msRequestFullscreen&&V.addEventListener("MSFullscreenChange",i.pluginApi.fullscreenListener)),"iOS"===i.pluginApi.platform().os.name&&"9"===i.pluginApi.platform().os.version&&(V.removeEventListener("ended",m),V.addEventListener("ended",m)),"iOS"===i.pluginApi.platform().os.name&&"12"===i.pluginApi.platform().os.version,V.addEventListener("volumechange",p),V.addEventListener("abort",y),V.addEventListener("error",A),V.onabort=y,V.onerror=A,H.appendChild(V),"Safari"===i.pluginApi.platform().browser.name){W=document.createElement("canvas");var t=V.videoWidth,n=V.videoHeight;W.width=t,W.height=n,W.style.position="absolute",W.style.width="0%",W.style.transform="translateY(-50%)",W.style.top="90000px",W.style.left="90000px",j=W.getContext("2d"),H.appendChild(W),W.style.width="100%"}var r=50;i.pluginApi.exists(i.defaultVolume)&&(r=i.defaultVolume),V.volume=r/100,"iOS"===i.pluginApi.platform().os.name&&"9"===i.pluginApi.platform().os.version||i.pluginApi.addEvent(V,"ended",function(){X=!1,i.pluginApi.triggerListeners("finish"),i.pluginApi.stop(!0)})}}function p(e){"Android"===i.pluginApi.platform().os.name&&(V.muted||_.volumeBeforeMute===parseInt(100*V.volume)||b(_.volumeBeforeMute))}function g(e,t,i,n){if(!V)return!1;if(t){var r=document.createElement("style");r.type="text/css",r.innerHTML=".cliplister-viewer video::cue{background: ".concat(t.textBackground,";font-size: ").concat(t.textSize,";font-family: ").concat(t.textFont,";color: ").concat(t.textColor,";text-shadow: 1px  1px 1px ").concat(t.textOutlineColor,", 1px -1px 1px ").concat(t.textOutlineColor,", -1px  1px 1px ").concat(t.textOutlineColor,", -1px -1px 1px ").concat(t.textOutlineColor,";}"),document.head.appendChild(r)}if(e){var s=Array.from(V.textTracks),u=s.find(function(e){return e.language===i.tag&&e.kind===n});if(u){var a=u.cues&&Array.from(u.cues);a&&a.forEach(function(e){return u.removeCue(e)})}else u=V.addTextTrack(n,i.label,i.tag);e.forEach(function(e){return u.addCue(e)})}}function c(e){V&&(V.style.width=e+"%")}function d(e){V&&(V.style.height=e+"%")}function f(e){i.pluginApi.triggerListeners("seek")}function m(e){"iOS"===i.pluginApi.platform().os.name&&"9"===i.pluginApi.platform().os.version&&(X=!1,V.removeEventListener("ended",m),i.pluginApi.triggerListeners("finish"),i.pluginApi.stop(!0))}function v(e){X||(i.pluginApi.triggerListeners("initialPlay"),X=!0),"iOS"===i.pluginApi.platform().os.name&&"9"===i.pluginApi.platform().os.version&&(V.removeEventListener("ended",m),V.addEventListener("ended",m)),i.pluginApi.triggerListeners("play"),(!G||"iOS"===i.pluginApi.platform().os.name&&"9"===i.pluginApi.platform().os.version)&&i.pluginApi.triggerListeners("playMedia"),G=!0,K=!1,J=!0,ee.start()}function h(e){var t;i.pluginApi.triggerListeners("pause"),"Android"===i.pluginApi.platform().os.name&&2===(null===(t=e.path)||void 0===t?void 0:t.length)||V.ended||i.pluginApi.triggerListeners("pauseMedia"),G=!1,J=!1,i.pluginApi.triggerListeners("bufferingDone"),ee.stop()}function y(e){return!0}function A(e){1!==V.error.code&&(z(),_.errCounter++<10&&F())}function b(e){return!!i.pluginApi.exists(V)&&(V.muted&&0!=e&&(V.muted=!1,i.pluginApi.triggerListeners("unmute")),e&&(_.volumeBeforeMute=e),V.volume=e/100,void i.pluginApi.triggerListeners("volumeChange"))}function L(){return!!i.pluginApi.exists(V)&&(V.controls=!0,V.setAttribute("controls","controls"),void(V.controlsList="nodownload"))}function x(){return!!i.pluginApi.exists(V)&&(V.controlsList="",void V.removeAttribute("controlslist"))}function w(e){try{if(!i.pluginApi.exists(V))return!1;if(e=!!i.pluginApi.exists(e)&&!!e,_.volumeBeforeMute=i.pluginApi.getVolume(),V.removeAttribute("muted"),V.removeAttribute("autoplay"),!e)return!1;U.mute(),V.muted=!0,V.autoplay=!0,V.controls=!0,V.playsinline=!0,V.setAttribute("muted","muted"),V.setAttribute("autoplay","autoplay"),V.setAttribute("controls",!0),V.setAttribute("playsinline",!0),F()}catch(t){console.error(t)}}function k(e){return!!i.pluginApi.exists(V)&&(e=!!i.pluginApi.exists(e)&&!!e,_.volumeBeforeMute=i.pluginApi.getVolume(),!!e&&(i.pluginApi.mute(),V.controls=!0,V.playsinline=!0,V.setAttribute("controls","controls"),void V.setAttribute("playsinline",!0)))}function S(){try{V.requestFullscreen?V.requestFullscreen():V.msRequestFullscreen?V.msRequestFullscreen():V.mozRequestFullScreen?V.mozRequestFullScreen():V.webkitRequestFullscreen?V.webkitRequestFullscreen():V.webkitEnterFullscreen&&V.webkitEnterFullscreen()}catch(e){}}function P(){try{Document.exitFullscreen?Document.exitFullscreen():V.exitFullscreen?V.exitFullscreen():V.msExitFullscreen?V.msExitFullscreen():V.mozExitFullScreen?V.mozExitFullScreen():V.webkitExitFullscreen&&V.webkitExitFullscreen()}catch(e){}C()}function C(){i.pluginApi.platform().os.mobile&&"iOS"===i.pluginApi.platform().os.name&&i.pluginApi.resetViewerSize()}function E(){G&&(_.playPromise?_.playPromise.then(function(){V.pause()})["catch"](function(){V.pause()}):V.pause(),G=!1,J=!1,i.pluginApi.platform().os.mobile&&"iOS"===i.pluginApi.platform().os.name&&i.pluginApi.resetViewerSize(),i.pluginApi.triggerListeners("pause")),Z=!1,i.pluginApi.triggerListeners("bufferingDone"),ee.stop()}function F(){if(!G)if(se=!0,setTimeout(function(){se=!1},2e3),J=!0,""!=V.src){var e=V.play();if(e!==t){var n=setTimeout(function(){},2e3);_.playPromise=e.then(function(){if(clearTimeout(n),X||(setTimeout(function(){i.pluginApi.triggerListeners("initialPlay")},1e3),X=!0),"Safari"===i.pluginApi.platform().browser.name){var e=V.videoWidth,t=V.videoHeight;W.width=e,W.height=t,j.drawImage(V,0,0,e,t)}i.pluginApi.triggerListeners("bufferingDone"),ee.start(),i.pluginApi.triggerListeners("play"),G=!0,K=!1})["catch"](function(e){V.muted?z(!0):(V.muted=!0,F())})}else V.play(),X||(i.pluginApi.triggerListeners("initialPlay"),X=!0),i.pluginApi.triggerListeners("bufferingDone"),ee.start(),i.pluginApi.triggerListeners("play"),G=!0,K=!1}else B()}function I(e){e=parseFloat(e),V.duration?(se=!0,setTimeout(function(){se=!1},2e3),e=e>=0?e<=V.duration?e:V.duration:0,V.currentTime=e,i.pluginApi.triggerListeners("seek")):(_.setTime=e,V.onloadeddata=function(e){se=!0,setTimeout(function(){se=!1},2e3),_.setTime=_.setTime>=0?_.setTime<=V.duration?_.setTime:V.duration:0,_.currentTime=_.setTime,i.pluginApi.triggerListeners("seek")})}function T(e){V.duration?(e=parseFloat(e),se=!0,setTimeout(function(){se=!1},2e3),V.currentTime=e>0?V.duration/100*e:0,i.pluginApi.triggerListeners("seek")):(_.setPerc=e,V.onloadeddata=function(e){se=!0,setTimeout(function(){se=!1},2e3),_.currentTime=_.setPerc>0?V.duration/100*_.setPerc:0,i.pluginApi.triggerListeners("seek")})}function q(e){ie=e,i.pluginApi.triggerListeners("setQuality")}function M(r){if(i.pluginApi.exists(V)){var s=i.pluginApi.platform(),u=r.uri.split("/");if(V.protocol=u[0],V.baseUrl=u[2],V.crypt=u.pop(),V.costumer=u.pop(),"iOS"===s.os.name&&s.os.version>="10"||"Android"===s.os.name){var a="",l=i.pluginApi.getPlugInParam("PreviewImage","image"),o=i.pluginApi.getPlugInParam("PreviewImage","backgroundSize");l?(a=l,o&&(V.style.objectFit=o)):i.pluginApi.exists(r.previews)&&i.pluginApi.exists(r.previews.picture)?a=r.previews.picture:i.pluginApi.exists(r.thumbnail)?a=r.thumbnail:i.pluginApi.exists(r.prerolls)&&i.pluginApi.exists(r.prerolls.preroll)&&i.pluginApi.exists(r.prerolls.preroll.content)&&(a=r.prerolls.preroll.content),V.poster=a,V.preload="none",V.quality=i.pluginApi.exists(V.quality)?V.quality:O(e.downloadSpeed/1024),V.src="",V.src=Q(V.quality),V.addEventListener("volumechange",function(e){console.log("muted",V.muted),i.pluginApi.triggerListeners("".concat(V.muted?"":"un","mute"))},!1)}i.pluginApi.getVolume()||(V.muted=!0);var p=i.pluginApi.getFixedQuality();if(p){if(_.fixedSpeedOverride=t,"number"==typeof p)_.fixedSpeedOverride=p/.7*1024;else if(Number.isNaN(parseInt(p))){var g=$.find(function(e){return e.display.toLowerCase()===p.toLowerCase()});g?_.fixedSpeedOverride=parseInt(g.bitrate)/.7*1024:_.fixedSpeedOverride=t}else _.fixedSpeedOverride=parseInt(p)/.7*1024;e.downloadSpeed=_.fixedSpeedOverride}V.language=r.language,q(!0),"undefined"==typeof e.downloadSpeed?(n(Math.round(1e7*Math.random())),i.pluginApi.on("bandwidthChecked",function(){V.quality=O(e.downloadSpeed/1024),_.currentQuality=V.quality,i.pluginApi.triggerListeners("mediaReady")})):(i.pluginApi.isDone("bandwidthChecked")||i.pluginApi.triggerListeners("bandwidthChecked"),V.quality=O(e.downloadSpeed/1024),_.currentQuality=V.quality,i.pluginApi.triggerListeners("mediaReady"))}}function O(e){var t=0;return $.every(function(i,n,r){return!(.7*e<i.bitrate)&&(t=n,!0)}),t}function Q(e,t){var n=i.pluginApi.getAvailableQualities();return V.protocol+"//"+V.baseUrl+"/"+n[e].string+"/"+V.costumer+"/"+V.crypt}function R(t){function n(e){q(!0),e>=0&&e<=_.maxQuality&&(_.currentQuality=e)}_.fixedSpeedOverride&&(t=_.fixedSpeedOverride);var r=u();if(t instanceof Object){if(i.pluginApi.exists(t.number))n(t.number);else if(i.pluginApi.exists(t.bitrate))if("auto"===t)q(!1),_.currentQuality=O(e.downloadSpeed/1024);else for(var s=0;s<r.length;s++)if(t.bitrate===parseInt(r[s].bitrate)){n(t.bitrate);break}}else{var a=parseInt(t);if(a){if(a<r.length)n(t);else for(var s=0;s<r.length;s++)if(parseInt(t)===parseInt(r[s].bitrate)){n(s);break}}else"auto"===t&&(q(!1),_.currentQuality=O(e.downloadSpeed/1024))}i.pluginApi.triggerListeners("setQuality")}function B(){function t(){if(V.currentTime=_.currentTime||0,n&&!Y&&E(),J){G=!1,F(),i.pluginApi.triggerListeners("bufferingDone");var e=setInterval(function(){V.currentTime>_.currentTime&&(clearInterval(e),ee.start(),te.removeCanvas(),i.pluginApi.triggerListeners("changeSrc"),i.pluginApi.triggerListeners("bufferingDone"),i.pluginApi.triggerListeners("initialImagesLoaded"))},10)}V.removeEventListener("canplay",t),ue=!1}te.createCanvas();var n=Y;return re=!0,ne=!0,_.currentTime=V.currentTime,i.pluginApi.triggerListeners("qualityChange"),i.pluginApi.triggerListeners("setQuality"),_.playPromise?_.playPromise.then(function(){V.pause()})["catch"](function(){V.pause()}):V.pause(),te.refreshCanvas(),ee.stop(),i.pluginApi.triggerListeners("buffering"),"undefined"==typeof e.downloadSpeed?i.pluginApi.on("bandwidthChecked",function(){V.quality=i.pluginApi.exists(V.quality)?V.quality:O(e.downloadSpeed/1024),V.src="",V.src=Q(V.quality),V.load(),V.addEventListener("canplay",t)}):(V.quality=i.pluginApi.exists(V.quality)?V.quality:O(e.downloadSpeed/1024),V.src="",V.src=Q(V.quality),V.load(),V.addEventListener("canplay",t)),V.src}function D(e){R(parseInt(e))}function N(e){V.requestFullScreen?i.pluginApi.addEvent(V,"fullscreenchange",function(){e()}):V.mozRequestFullScreen?i.pluginApi.addEvent(V,"mozfullscreenchange",function(){e()}):V.webkitRequestFullScreen?i.pluginApi.addEvent(V,"webkitfullscreenchange",function(){e()}):V.msRequestFullscreen?i.pluginApi.addEvent(V,"MSFullscreenChange",function(){e()}):(i.pluginApi.addEvent(V,"webkitendfullscreen",function(){Y=!1,E(),e()}),i.pluginApi.addEvent(V,"webkitbeginfullscreen",function(){Y=!0,e()}))}function z(e){if(X=!1,!e&&(e=!1),!K||e){_.playPromise?_.playPromise.then(function(){V.pause()})["catch"](function(){V.pause()}):V.pause();try{V.currentTime=0}catch(t){}G=!1,J=!1,K=!0,i.pluginApi.triggerListeners("stop"),ee.stop()}Z=!1,i.pluginApi.triggerListeners("bufferingDone")}if(!(this instanceof s))return new s(i);var H,V,W,j,U=this,Y=!1,G=!1,X=!1,J=!1,K=!0,Z=!1,$=[{string:"v",display:"S",bitrate:"500"},{string:"vm",display:"M",bitrate:"1000"},{string:"vx",display:"L",bitrate:"3000"}],_={volumeBeforeMute:50,currentTime:0,setTime:0,setPerc:0,playPosition:0,oldPlayPosition:0,bufferPercent:null,oldBufferPercent:null,playProgress:null,oldPlayProgress:null,lastQualityChange:0,maxQuality:$.length-1,currentQuality:0,playPromise:null,errCounter:0,fixedSpeedOverride:t},ee={checkInterval:null,notifyInterval:null,start:function(){this.stop(),this.checkInterval=setInterval(r,150),this.notifyInterval=setInterval(function(){i.pluginApi.triggerListeners("progress")},100)},stop:function(){clearInterval(this.checkInterval),clearInterval(this.notifyInterval)}},te={canvas:null,createCanvas:function(){this.canvas&&(H.removeChild(this.canvas),this.canvas=null),this.canvas=document.createElement("canvas");var e=V.videoWidth,t=V.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 i=this.canvas.getContext("2d");i.drawImage(V,0,0,e,t),H.appendChild(this.canvas),this.canvas.style.width="100%"},refreshCanvas:function(){if(this.canvas){var e=V.videoWidth,t=V.videoHeight,i=this.canvas.getContext("2d");i.drawImage(V,0,0,e,t),this.canvas.style.top="50%",this.canvas.style.left="0px"}else this.createCanvas()},removeCanvas:function(){this.canvas&&(this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),H.contains(this.canvas)&&H.removeChild(this.canvas),this.canvas=null)}},ie=!1,ne=!0,re=!0,se=!1,ue=!1,ae=.5,le=2,oe=.25;return a(),this};r.prototype.type=i,r.prototype.version=n,e.Cliplister.addStage(r)}(window,void 0);"use strict";!function(e,t){var n="InnerControls",a="1.6",i="visual",o="inner",l=function r(){function l(){(!F&&!P.exists(R.animation)||!F&&R.animation)&&(O(!0),P.animateElementPosition(V,"bottom",1,300,function(){},!1,!0),P.showCursor())}function s(e){if(P.getStageType&&"audio"===P.getStageType())return!1;if(F&&!P.exists(R.animation)||F&&R.animation){clearTimeout(W);var n="undefined"!=typeof R.timeout?parseInt(R.timeout):2e3;n=e===t?n:1,W=setTimeout(function(){if(P.getStageType&&"audio"===P.getStageType())return!1;if(!U||e&&!X){O(!1),P.animateElementPosition(V,"bottom",-(_+1),300,function(){},!1,!0);for(var t=P.getRootElement().querySelectorAll(".containerTrigger"),n=0;n<t.length;n++)t[n].checked=!1;P.isFullscreen()&&P.hideCursor()}},n)}}function c(){return B}function d(){return I}function u(){return D}function p(){return A}function g(){return R}function v(){return H}function f(){return N}function b(){return z}function h(e,t){return P.dataset(e,"clBinding")==t?e:h(e.parentNode,t)}function m(e,t){if(P.dataset(e,"clBinding")==t)return e;for(var n=e.childNodes,a=0;a<n.length;a++)if(1==n[a].nodeType){var i=m(n[a],t);if(i)return i}}function y(){var e={};P.exists(R.breakpoints)&&(e=R.breakpoints,V.classList.remove("cl-breakpoint-l"),P.exists(e.s)&&P.getStageDimension().width<=e.s?V.classList.add("cl-breakpoint-s"):(V.classList.remove("cl-breakpoint-s"),P.exists(e.m)&&P.getStageDimension().width<=e.m?V.classList.add("cl-breakpoint-m"):(V.classList.remove("cl-breakpoint-m"),V.classList.add("cl-breakpoint-l"))));for(var t=P.getRootElement().querySelectorAll(".containerTrigger"),n=0;n<t.length;n++)t[n].checked=!1}function x(){var e=P.platform().os.mobile;if(e=!(P.exists(R.mobileDefaultControls)&&!R.mobileDefaultControls)&&e,P.platform().os.mobile&&e)try{P.on("stageSet",function(){P.showDefaultControls()}),P.isDone("stageSet")&&P.showDefaultControls()}catch(t){console.warn(t.message)}else{V=document.createElement("div"),V.style.position="absolute","IE"==P.platform().browser.name&&10==P.platform().browser.version&&V.classList.add("cl-ie10"),$=P.extend(!0,$,R.qualityLabels);var n=document.getElementsByTagName("head")[0];if(P.getShadowRoot()&&(n=P.getRootElement()),P.exists(R.template)){if("external"==R.template.type){var a=R.template.source.replace(/[^\/]*$/,"");P.ajax(R.template.source,function(e){var t=document.createElement("div"),i=e.responseText;i=i.replace(/(url\(['"]?)([\da-z\.\-_\/]+)(['"]?\))/g,"$1"+a+"$2$3"),t.innerHTML=i;var o=document.createElement("style");o.type="text/css",o.appendChild(document.createTextNode(t.getElementsByTagName("style")[0].innerHTML)),n.appendChild(o),V.innerHTML=t.querySelector("#video-test-container").innerHTML,C()})}}else{var i=" #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);}",o='<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>',r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(i)),n.appendChild(r);var c=document.createElement("div");c.innerHTML=o,V.innerHTML=c.querySelector("#video-test-container").innerHTML,setTimeout(C,1)}P.onPluginsBuilt(function(){P.disableCSSTransition(V),P.setElementPosition(V,"bottom","1",!1,!1),P.setElementSize(V,"width","100%",!1),P.setElementSize(V,"height",_),y(),P.enableCSSTransition(V)}),P.onMouseenter(V,function(){X=!0}),P.onMouseleave(V,function(){X=!1}),P.on(["play","pause"],function(){M()}),P.on("mouseenter",function(){U=!0,P.addEvent(document,"mousemove",M),l()}),P.on("mouseleave",function(){U=!1,s(),clearTimeout(Q),P.removeEvent(document,"mousemove",M)}),P.on("resize",function(){P.disableCSSTransition(V),y(),P.enableCSSTransition(V),s()}),s()}}function k(e){if(("fullscreen-enter"==e||"fullscreen-leave"==e)&&"IE"==P.platform().browser.name&&10==P.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","subtitles-button","transcript-button","quality-button","download-button","download","share-button","progress-bar"],n=!0;return t.indexOf(e)>=0&&(R.whitelist&&R.whitelist.indexOf(e)==-1||R.blacklist&&R.blacklist.indexOf(e)>-1)&&(n=!1),n}function w(e,n,a){function i(e,n){var a=0;return function(){var i=(new Date).getTime();if(!(i-a<e))return a=i,n.apply(t,arguments)}}if(1==e.which){var o=function(e){n!==t&&n(e)},l=function s(t){1==t.which&&P.removeEvent(document,"mousemove",r),P.removeEvent(document,"mouseup",s),a&&a(e)},r=i(20,o);P.addEvent(document,"mousemove",r),P.addEvent(document,"mouseup",l)}}function C(){R.parent.appendChild(V);for(var e=V.getElementsByTagName("*"),t=0;t<e.length;t++){var n=e[t];if(P.dataset(n,"clBinding")){var a=P.dataset(n,"clBinding"),i=P.dashSeparatedToCamelCase(a);Y.add(n,i),k(a)||(n.style.display="none")}}}function L(t){var n=e.open(t,"_blank");n.focus()}function E(e){return!B&&(B=e,!0)}function T(e){return!I&&(I=e,!0)}function S(e){return!R&&(R=e,P=R.pluginApi,!0)}function q(e){return!z&&(z=e,!0)}function M(){l(),clearTimeout(Q);var e="undefined"!=typeof R.timeout?parseInt(R.timeout):2e3;Q=setTimeout(function(){s(!0)},e)}function O(e){F=e}if(!(this instanceof r))return new r;var B,I,D,A,R,H,N,z,P,V;D=o,A=n,H=i,N=a;var W,Q,F=!0,U=!1,X=!1,_=0,Y={add:function(e,t){var n=null,a=t,i=/\s*(\d+)$/.exec(t);i&&(n=i[0],a=t.slice(0,i.index)),Y[a]&&("function"==typeof Y[a]&&Y[a](e),Y[a].add?Y[a].add(e,a,n):(Y[a].list||(Y[a].list=[]),Y[a].list.push(e)))},clear:function(e){var t=e;Y[t]&&Y[t].list&&(Y[t].list=[])},controls:function(e){_=parseInt(getComputedStyle(e).height),P.setElementSize(V,"height",_),P.enableMovementListening(B,V)},durationMinute:function(e){e.innerHTML=P.pad(0,2),P.on(["mediaReady","assetReady"],function(){e.innerHTML=P.pad(Math.floor(P.getDuration()/60),2)},{subsequent:!0}),P.on("play",function(){e.innerHTML=P.pad(Math.floor(P.getDuration()/60),2)},{subsequent:!0})},durationSecond:function(e){e.innerHTML=P.pad(0,2),P.on(["mediaReady","assetReady"],function(){e.innerHTML=P.pad(P.getDuration()%60,2)},{subsequent:!0}),P.on("play",function(){e.innerHTML=P.pad(P.getDuration()%60,2)},{subsequent:!0})},durationSeconds:function(e){e.innerHTML.innerHTML=0,P.on(["mediaReady","assetReady"],function(){e.innerHTML=P.pad(P.getDuration(),2)},{subsequent:!0}),P.on("play",function(){e.innerHTML=P.pad(P.getDuration(),2)},{subsequent:!0})},fullscreenEnter:function(e){P.addEvent(e,"click",P.enterFullscreen),P.on("fullscreenChange",function(){O(!1),P.isFullscreen()?e.style.display="none":e.style.display="block","IE"==P.platform().browser.name&&11==P.platform().browser.version?setTimeout(function(){P.checkResize()},750):P.checkResize()});var t=navigator.language||navigator.userLanguage,n=t.startsWith("de")?"Vollbild einschalten":"Enter Fullscreen";e.setAttribute("aria-label",n)},fullscreenLeave:function(e){P.addEvent(e,"click",P.leaveFullscreen),P.on("fullscreenChange",function(){O(!1),P.isFullscreen()?e.style.display="block":e.style.display="none","IE"==P.platform().browser.name&&11==P.platform().browser.version?setTimeout(function(){P.checkResize()},750):P.checkResize()});var t=navigator.language||navigator.userLanguage,n=t.startsWith("de")?"Vollbild verlassen":"Leave Fullscreen";e.setAttribute("aria-label",n)},pause:function(e){P.addEvent(e,"click",P.pause),P.on("play",function(){e.style.display="block"}),P.on(["pause","stop"],function(){e.style.display="none"});var t=navigator.language||navigator.userLanguage,n=(t.startsWith("de"),"pause");e.setAttribute("aria-label",n)},play:function(e){P.addEvent(e,"click",function(){P.play(),P.triggerListeners("userPlay")}),P.on("play",function(){e.style.display="none"}),P.on(["pause","stop"],function(){e.style.display="block"});var t=navigator.language||navigator.userLanguage,n=(t.startsWith("de"),"play");e.setAttribute("aria-label",n)},playbackSpeed:{},playbackSpeedText:function(e){P.on("playbackSpeedChange",function(){e.textContent="x"+P.getCurrentSpeed()})},playbackSpeedFaster:function(e){P.addEvent(e,"click",function(){P.faster()})},playbackSpeedSlower:function(e){P.addEvent(e,"click",function(){P.slower()})},progress:{},progressBar:function(e){function n(e,n){var a=0;return function(){var i=(new Date).getTime();if(!(i-a<e))return a=i,n.apply(t,arguments)}}P.addEvent(e,"click",function(t){var n=e.getBoundingClientRect(),a=e.getRootNode().dir||"ltr",i=n.left+document.body.scrollLeft,o="rtl"===a?100-Math.round((t.pageX-i)/parseInt(getComputedStyle(e).width)*100):Math.round((t.pageX-i)/parseInt(getComputedStyle(e).width)*100);o=Math.min(Math.max(o,0),100),P.setProgressPlayed(o)}),P.addEvent(e,"mouseenter",function(t){var n=e.getBoundingClientRect(),a=n.left+document.body.scrollLeft,i=Math.round((t.pageX-a)/parseInt(getComputedStyle(e).width)*100);P.triggerListeners("progressBarHoverStart",[t,i])}),P.addEvent(e,"mouseleave",function(t){var n=e.getBoundingClientRect(),a=n.left+document.body.scrollLeft;Math.round((t.pageX-a)/parseInt(getComputedStyle(e).width)*100);P.triggerListeners("progressBarHoverEnd",t)});var a=function(t){var n=t.target.getBoundingClientRect(),a=n.left+document.body.scrollLeft,i=Math.round((t.pageX-a)/parseInt(getComputedStyle(e).width)*100);P.triggerListeners("progressBarHover",[t,i])},i=n(100,a);P.addEvent(e,"mousemove",i)},progressBarFilled:function(e){P.on(["progress","seek"],function(){e.style.width=Math.floor(100*P.getProgressPlayed())/100+"%"}),P.on("stop",function(){e.style.width="0%"})},progressBarBuffered:function(e){P.on(["progress","seek"],function(){e.style.width=Math.floor(P.getPercentBuffered())+"%"})},progressBarSlider:function(e){P.addEvent(e,"mousedown",function(t){var n=h(e,"progress-bar"),a=n.getBoundingClientRect(),i=a.left+document.body.scrollLeft,o=e.getRootNode().dir||"ltr";w(t,function(e){var t="rtl"===o?100-Math.round((e.pageX-i)/parseInt(getComputedStyle(n).width)*100):Math.round((e.pageX-i)/parseInt(getComputedStyle(n).width)*100);t=Math.min(Math.max(t,0),100),P.setProgressPlayed(t)})})},qualityButton:{},qualityOverlay:function(e){var t,n=e.getElementsByTagName("*");if(n.length>0){for(var a={},i=0;i<n.length;i++)if(P.dataset(n[i],"clBinding")&&"quality-overlay-entry"==P.dataset(n[i],"clBinding")){t=n[i];break}for(;e.firstChild;)e.removeChild(e.firstChild);t.textContent=$.auto,P.dataset(t).del("clBinding"),a.auto=t,P.exists(R.qualityLabelsOrder)||(e.appendChild(t),Y.add(t,"qualityOverlayEntry")),P.on("stageSet",function(){var n=P.hls();if(n){var i=function(){var n=P.hls();n.on(Hls.Events.MANIFEST_PARSED,function(i,o){for(var l=n.levels,r=function(n){var i=t.cloneNode(!0);i.textContent=l[n].height+"p",function(e){P.addEvent(i,"click",function(t){P.setQuality(e),P.triggerListeners("setQuality"),P.triggerListeners("qualityChange")})}(n),a["hls_"+n]=i,e.appendChild(i),Y.add(i,"qualityOverlayEntry")},s=0;s<l.length;s++)r(s)})};P.addEvent(t,"click",function(){n.currentLevel=-1}),P.on("hlsReady",i)}else!function(){for(Y.clear("qualityOverlayEntry");e.firstChild;)e.removeChild(e.firstChild);P.exists(R.qualityLabelsOrder)||(e.appendChild(t),Y.add(t,"qualityOverlayEntry"));for(var n=P.getAvailableQualities(),i=0;i<n.length;i++)$[n[i].bitrate]=n[i].display;P.addEvent(t,"click",function(){P.setQuality("auto"),P.triggerListeners("userQualityChange")});for(var o=function(i){var o=t.cloneNode(!0);o.textContent=$[n[i].bitrate],function(e){P.addEvent(o,"click",function(){P.setQuality(n[e].bitrate),P.triggerListeners("userQualityChange")})}(i),a[n[i].bitrate]=o,P.exists(R.qualityLabelsOrder)||(e.appendChild(o),Y.add(o,"qualityOverlayEntry"))},l=0;l<n.length;l++)o(l);if(R.qualityLabelsOrder)for(j=0;j<R.qualityLabelsOrder.length;j++)e.appendChild(a[R.qualityLabelsOrder[j]]),Y.add(a[R.qualityLabelsOrder[j]],"qualityOverlayEntry")}()},{subsequent:!0})}},qualityOverlayEntry:function(e){var t=function(){var t=P.hls();if(!t){var n=P.getCurrentQuality();if(P.exists(n)){var a=$[P.getCurrentQuality().bitrate];e.textContent==a&&P.isQualityOverride()?e.classList.add("selected"):P.isQualityOverride()||e.textContent!=$.auto?e.classList.remove("selected"):e.classList.add("selected")}}};P.on(["stageSet","stageReady"],t,{subsequent:!0}),P.on(["qualityChange","setQuality"],t)},qualityText:function(e){var t=function(){var t=P.hls();if(!t){var n=P.getCurrentQuality();if(P.exists(n)){var a=$[P.getCurrentQuality().bitrate];e.textContent=P.isQualityOverride()?a:$.auto}}},n=function(){var t=P.hls();t.on(Hls.Events.LEVEL_SWITCH,function(n,a){var i=a.level;e.textContent=t.autoLevelEnabled?$.auto:t.levels[i].height+"p"})};P.isDone("hlsCG")?n():P.on("hlsCG",n,{subsequent:!1}),P.on(["stageSet","stageReady"],t,{subsequent:!0}),P.on("qualityChange",t)},downloadButton:{},downloadOverlay:function(t){var n,a=t.getElementsByTagName("*");if(a.length>0){var i=function(){var i=!1,o=!1;P.exists(R.download)&&(R.download.indexOf("download-derivates")>-1&&(i=P.getVideoDownloadLinks()),R.download.indexOf("streaming-derivates")>-1&&(o=P.getVideoStreamingLinks()));for(var l=0;l<a.length;j++)if(P.dataset(a[l],"clBinding")&&"download-overlay-entry"===P.dataset(a[l],"clBinding")){n=a[l];break}for(;t.firstChild;)t.removeChild(t.firstChild);if(i){var r=n.cloneNode(!0);r.textContent="Download:",r.style.fontWeight="bold",r.style.fontSize="12px",r.style.paddingLeft="10px",t.appendChild(r),Y.add(r,"downloadOverlayEntry"),t.parentElement.style.display="block",Array.isArray(i)||(i=[i]);for(var s=function(a){var o=new Date(i[a].valid_to),l=new Date;if(!(o>l))return"break";var r=n.cloneNode(!0),s=i[a].name;"."===s.charAt(s.length-5)?s=s.substring(0,s.length-5):"."===s.charAt(s.length-4)&&(s=s.substring(0,s.length-4)),s.length>20&&(s=s.substring(0,19)+" ..."),r.textContent=s,function(t){P.addEvent(r,"click",function(){e.open(i[t].location)})}(a),t.appendChild(r),Y.add(r,"downloadOverlayEntry")},c=0;c<i.length;c++){var d=s(c);if("break"===d)break}}if(o){var u=n.cloneNode(!0);u.textContent="Streaming:",u.style.fontWeight="bold",u.style.fontSize="12px",u.style.paddingLeft="10px",t.appendChild(u),Y.add(u,"downloadOverlayEntry"),t.parentElement.style.display="block",Array.isArray(o)||(o=[o]),o.sort(function(e,t){var n=/desktop /,a=e.fileType||e.formatName||e.name;a=a.toLowerCase();var i=a.match(n);null!==i&&0===i.index&&(a=a.substring(n.toString().length-2));var o=t.fileType||t.formatName||t.name;o=o.toLowerCase();var l=o.match(n);return null!==l&&0===l.index&&(o=o.substring(n.toString().length-2)),a<o?-1:a>o?1:0});var p=function(a){var i=new Date(o[a].valid_to),l=new Date;if(!(i>l))return"break";var r=n.cloneNode(!0),s=o[a].fileType||o[a].formatName||o[a].name;if("play"===s)return"continue";var c=/Desktop /,d=s.match(c);null!==d&&0===d.index&&(s=s.substring(c.toString().length-2)),s.length>20&&(s=s.substring(0,19)+" ..."),r.textContent=s,function(t){P.addEvent(r,"click",function(){e.open(o[t].location)})}(a),t.appendChild(r),Y.add(r,"downloadOverlayEntry")};e:for(var g=0;g<o.length;g++){var v=p(g);switch(v){case"break":break e;case"continue":continue}}}i||o||(t.parentElement.style.display="none")};P.on("mediaReady",i)}},downloadOverlayEntry:function(e){var t=function(){};P.on("mediaReady",t)},share:{},shareOverlay:{},shareLinkFacebook:function(t){var n=R.shareUrl||e.location;t.onclick=function(){L("http://www.facebook.com/sharer.php?u="+encodeURI(n))}},shareLinkTwitter:function(t){var n=R.shareUrl||e.location;t.onclick=function(){L("https://twitter.com/intent/tweet?url="+encodeURI(n))}},shareLinkGoogleplus:function(t){var n=R.shareUrl||e.location;t.onclick=function(){L("https://plus.google.com/share?url="+encodeURI(n))}},shareLinkWhatsapp:function(t){var n=R.shareUrl||e.location;t.onclick=function(){L("whatsapp://send?text="+n)}},timeMinute:function(e){e.innerHTML=P.pad(0,2),P.on(["progress","seek"],function(){e.innerHTML=P.pad(Math.floor(Math.floor(P.getTimePlayed())/60),2)}),P.on("stop",function(){e.innerHTML=P.pad(0,2)})},timeSecond:function(e){e.innerHTML=P.pad(0,2),P.on(["progress","seek"],function(){e.innerHTML=P.pad(Math.floor(P.getTimePlayed())%60,2)}),P.on("stop",function(){e.innerHTML=P.pad(0,2)})},timeSeconds:function(e){e.innerHTML.innerHTML=0,P.on(["progress","seek"],function(){e.innerHTML=Math.floor(P.getTimePlayed())}),P.on("stop",function(){e.innerHTML=0})},volume:{},volumeIncrease:function(e){P.addEvent(e,"click",function(e){var t=P.getVolume()+5;t<100&&(P.setVolume(t),P.triggerListeners("volumeChangeDone"))})},volumeDecrease:function(e){P.addEvent(e,"click",function(e){var t=P.getVolume()-5;t>=0&&(P.setVolume(t),P.triggerListeners("volumeChangeDone"))})},volumeBar:function(t){P.addEvent(t,"click",function(n){n.stopPropagation();var a=t.getBoundingClientRect();if(P.dataset(t,"clOrientation")&&"vertical"==P.dataset(t,"clOrientation")){var i=e.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,o=a.bottom+i,l=Math.round(o-n.pageY)/parseInt(getComputedStyle(t).height)*100;l<1?l=0:l>99&&(l=100),P.setVolume(l),P.triggerListeners("volumeChangeDone")}else{var r=e.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,s=a.left+r,c=Math.round((n.pageX-s)/parseInt(getComputedStyle(t).width)*100);c<1?c=0:c>99&&(c=100),P.setVolume(c),P.triggerListeners("volumeChangeDone")}}),P.on(["stageBuilt","stageReady","volumeChange"],function(){var e=P.getVolume(),n=m(t,"volume-bar-filled");n&&(P.dataset(t,"clOrientation")&&"vertical"==P.dataset(t,"clOrientation")?n.style.height=e+"%":n.style.width=e+"%")},{subsequent:!0})},volumeBarFilled:{},volumeBarSlider:function(t){P.addEvent(t,"click",function(e){e.stopPropagation()}),P.addEvent(t,"mousedown",function(n){n.stopPropagation();var a=h(t,"volume-bar-filled"),i=h(t,"volume-bar"),o=a.getBoundingClientRect();if(P.dataset(i,"clOrientation")&&"vertical"==P.dataset(i,"clOrientation")){var l=e.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,r=o.bottom+l,s=Math.round(r-n.pageY)/parseInt(getComputedStyle(i).height)*100+1;s<1?s=1:s>99&&(s=100),P.setVolume(s),w(n,function(e){var t=Math.round(r-e.pageY)/parseInt(getComputedStyle(i).height)*100;t<1?t=0:t>99&&(t=100),P.setVolume(t)},function(){P.triggerListeners("volumeChangeDone")})}else{var c=e.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,d=o.left+c,u=Math.round((n.pageX-d)/parseInt(getComputedStyle(i).width)*100)+1;u<1?u=1:u>99&&(u=100),P.setVolume(u),w(n,function(e){var t=Math.round((e.pageX-d)/parseInt(getComputedStyle(i).width)*100);t<1?t=0:t>99&&(t=100),P.setVolume(t),P.isPlaying()&&P.play()},function(){P.triggerListeners("volumeChangeDone")})}})},volumeStep:{volumeIcons:{},add:function(e,t,n){e.percent=n;var a=h(e,"controls");a.uniqueid||(a.uniqueid=P.Counter.getUniqueNumber()),this.volumeIcons[a.uniqueid]||(this.volumeIcons[a.uniqueid]={}),e.controlsUniqueid=a.uniqueid;var i=Object.keys(this.volumeIcons[e.controlsUniqueid]);e.min=parseInt(n),e.max=100;for(var o=0;o<i.length;o++)if(i[o]>e.percent){o>0&&(this.volumeIcons[a.uniqueid][i[o-1]].max=e.percent-1),e.max=this.volumeIcons[a.uniqueid][i[o]].percent-1;break}this.volumeIcons[a.uniqueid][n]=e,this.init(e)},init:function(e){if(P.addEvent(e,"click",function(){if(P.isMuted()){P.unmute();var t=navigator.language||navigator.userLanguage,n=t.startsWith("de")?"Stummschalten":"mute";e.setAttribute("aria-label",n)}else{P.mute();var a=navigator.language||navigator.userLanguage,i=a.startsWith("de")?"Stummschaltung aufheben":"unmute";e.setAttribute("aria-label",i)}}),P.on(["mediaReady","play","volumeChange"],function(){var t=P.getVolume();t>=e.min&&t<=e.max?e.style.display="block":e.style.display="none"}),P.isMuted()){var t=navigator.language||navigator.userLanguage,n=t.startsWith("de")?"Stummschalten":"mute";e.setAttribute("aria-label",n)}else{var a=navigator.language||navigator.userLanguage,i=a.startsWith("de")?"Stummschaltung aufheben":"unmute";e.setAttribute("aria-label",i)}}},subtitlesOverlay:function(e){var t,n=e.getElementsByTagName("*");if(n.length>0){var a=function(){var a,i=!1;i=P.getSubtitleTracks();for(var o=0;o<n.length;j++)if(P.dataset(n[o],"clBinding")&&"subtitles-overlay-entry"===P.dataset(n[o],"clBinding")){t=n[o];break}for(;e.firstChild;)e.removeChild(e.firstChild);if(i&&!(null===(a=R.blacklist)||void 0===a?void 0:a.includes(e.parentElement.dataset.clBinding))){e.parentElement.style.display="block",Array.isArray(i)||(i=[i]);for(var l=function(n){var a=t.cloneNode(!0),o=i[n].language.label;"subtitles"!==i[n].kind&&(o+=" - ".concat(i[n].kind)),a.textContent=o,a.setAttribute("aria-label",o),a.dataset.tag=i[n].language.tag,a.dataset.kind=i[n].kind,a.dataset.active=i[n].active,a.classList.toggle("cl-subtitle-active",i[n].active),function(e){P.addEvent(a,"click",function(){P.triggerListeners("activeSubtitleSet",{kind:i[e].kind,tag:i[e].language.tag})})}(n),e.appendChild(a),Y.add(a,"subtitlesOverlayEntry")},r=0;r<i.length;r++)l(r)}i?1===i.length&&(e.style.display="none"):e.parentElement.style.display="none"};P.on("subtitlesSet",a),P.isDone("subtitlesSet")&&a()}},subtitlesOverlayEntry:function(e){},subtitlesToggle:function(e){P.addEvent(e,"click",function(){P.setSubtitlesEnabled(!P.isSubtitlesEnabled())}),P.on("subtitlesEnable",function(){e.classList.remove("cl-video-control-subtitles-disabled");var t=navigator.language||navigator.userLanguage,n=t.startsWith("de")?"Untertitel ausschalten":"Turn off subtitles";e.setAttribute("aria-label",n)}),P.on("subtitlesDisable",function(){e.classList.add("cl-video-control-subtitles-disabled");var t=navigator.language||navigator.userLanguage,n=t.startsWith("de")?"Untertitel einschalten":"Turn on subtitles";e.setAttribute("aria-label",n)})},transcriptOverlay:function(e){var t,n=e.getElementsByTagName("*");if(n.length>0){var a=function(){var a,i=!1;i=P.getTranscriptTracks();for(var o=0;o<n.length;j++)if(P.dataset(n[o],"clBinding")&&"transcript-overlay-entry"===P.dataset(n[o],"clBinding")){t=n[o];break}for(;e.firstChild;)e.removeChild(e.firstChild);if(i&&!(null===(a=R.blacklist)||void 0===a?void 0:a.includes(e.parentElement.dataset.clBinding))){e.parentElement.style.display="block",Array.isArray(i)||(i=[i]);for(var l=function(n){var a=t.cloneNode(!0),o=i[n].language.label;"transcript"!==i[n].kind&&(o+=" - ".concat(i[n].kind)),a.textContent=o,a.setAttribute("aria-label",o),a.dataset.tag=i[n].language.tag,a.dataset.kind=i[n].kind,a.dataset.active=i[n].active,a.classList.toggle("cl-transcript-active",i[n].active),function(e){P.addEvent(a,"click",function(){P.setActiveTranscriptTrack(i[e].language.tag)})}(n),e.appendChild(a),Y.add(a,"transcriptOverlayEntry")},r=0;r<i.length;r++)l(r)}i?1===i.length&&(e.style.display="none"):e.parentElement.style.display="none"};P.on("transcriptSet",a),P.isDone("transcriptSet")&&a()}},transcriptOverlayEntry:function(e){},transcriptToggle:function(e){P.addEvent(e,"click",function(){P.setTranscriptEnabled(!P.isTranscriptEnabled())}),P.on("transcriptEnable",function(){e.classList.remove("cl-video-control-transcript-disabled");var t=navigator.language||navigator.userLanguage,n=t.startsWith("de")?"Transcript ausschalten":"Turn off transcript";e.setAttribute("aria-label",n)}),P.on("transcriptDisable",function(){e.classList.add("cl-video-control-transcript-disabled");var t=navigator.language||navigator.userLanguage,n=t.startsWith("de")?"Transcript einschalten":"Turn on transcript";e.setAttribute("aria-label",n)})}},$={auto:"Auto"};return{getId:c,getLayer:d,getMode:u,getName:p,getParams:g,getType:v,getVersion:f,getWrapper:b,init:x,setId:E,setLayer:T,setParams:S,setWrapper:q}};l.prototype.name=n,l.prototype.version=a,l.prototype.type=i,l.prototype.mode=o,e.Cliplister.addPlugin(l)}(window,void 0);!function(e,n){var i="ClickableVideo",t="1.1.1",r="visual",u="inner",o=function p(e){function n(){return b}function o(){return h}function l(){return w}function a(){return P}function s(){return e}function c(){return T}function g(){return k}function f(){return C}function m(){E=document.createElement("div"),E.style.position="absolute",e.pointer&&(E.style.cursor="pointer"),e.pluginApi.platform().os.mobile&&(E.style.webkitTapHighlightColor="rgba(0,0,0,0)"),e.pluginApi.transparentBackground(E),E.onclick=function(){if(I++,1==I)clearTimeout(F),F=setTimeout(function(){I=0,clearTimeout(F),e.pluginApi.isPlaying()?e.pluginApi.pause():(e.pluginApi.play(),e.pluginApi.triggerListeners("userPlay"))},200);else if(2==I){if("IE"===e.pluginApi.platform().browser.name&&10==e.pluginApi.platform().browser.version)return!1;I=0,clearTimeout(F),e.pluginApi.isFullscreen()?e.pluginApi.leaveFullscreen():e.pluginApi.enterFullscreen()}},e.parent.appendChild(E),e.pluginApi.onPluginsBuilt(function(){e.pluginApi.setElementSize(E,"width","100%",!1),e.pluginApi.setElementSize(E,"height","100%")})}function d(e){return!b&&(b=e,!0)}function y(e){return!h&&(h=e,!0)}function A(n){return!e&&(e=n,!0)}function v(e){return!C&&(C=e,!0)}if(!(this instanceof p))return new p(e);var b,h,w,P,e,T,k,C,E;w=u,P=i,T=r,k=t;var F,I=0;return{getId:n,getLayer:o,getMode:l,getName:a,getParams:s,getType:c,getVersion:g,getWrapper:f,init:m,setId:d,setLayer:y,setParams:A,setWrapper:v}};o.prototype.name=i,o.prototype.version=t,o.prototype.type=r,o.prototype.mode=u,e.Cliplister.addPlugin(o)}(window,void 0);!function(i,n){var e="PlayButton",t="1.1",u="visual",o="inner",p=function r(i){function n(){return v}function p(){return w}function l(){return x}function g(){return E}function s(){return i}function a(){return L}function c(){return N}function d(){return S}function f(){return!!P()&&(b=document.createElement("div"),b.style.position="absolute",i.pluginApi.exists(i.image)&&(b.style.backgroundImage="url("+i.image+")"),b.style.backgroundSize="100% auto",b.style.cursor="pointer",i.pluginApi.addEvent(b,"click",function(){i.pluginApi.play(),i.pluginApi.triggerListeners("userPlay")}),i.pluginApi.on(["play","autoNextShown"],function(){i.pluginApi.hidePlugin(v)}),i.pluginApi.on("stop",function(){i.pluginApi.isLooping()||i.pluginApi.exists(i.pluginApi.isPlayNext)&&i.pluginApi.isPlayNext()||i.pluginApi.showPlugin(v)}),i.pluginApi.onPluginsBuilt(function(){i.pluginApi.setElementPosition({element:b,position:"top",value:"50%",reposition:!1,fromMiddlePoint:{x:!0,y:!0}}),i.pluginApi.setElementPosition({element:b,position:"left",value:"50%",reposition:!1,fromMiddlePoint:{x:!0,y:!0}}),i.pluginApi.setElementSize(b,"width",i.width,!1),i.pluginApi.setElementSize(b,"height",i.height)}),void i.parent.appendChild(b))}function m(i){return!v&&(v=i,!0)}function h(i){return!w&&(w=i,!0)}function A(n){return!i&&(i=n,T=i.pluginApi,!0)}function y(i){return!S&&(S=i,!0)}function P(){return i.image?i.width?!!i.height||(i.pluginApi.log("The "+k.name+" plugin requires a height.",1),!1):(i.pluginApi.log("The "+k.name+" plugin requires a width.",1),!1):(i.pluginApi.log("The "+k.name+" plugin requires the image parameter.",1),!1)}if(!(this instanceof r))return new r(i);var v,w,x,E,L,N,S,T,b,k=this;return x=o,E=e,L=u,N=t,{getId:n,getLayer:p,getMode:l,getName:g,getParams:s,getType:a,getVersion:c,getWrapper:d,init:f,setId:m,setLayer:h,setParams:A,setWrapper:y}};p.prototype.name=e,p.prototype.version=t,p.prototype.type=u,p.prototype.mode=o,i.Cliplister.addPlugin(p)}(window,void 0);!function(e,t){var n="PreviewImage",i="1.2",o="visual",r="inner",s=function u(e){function t(){return x}function s(){return w}function a(){return P}function c(){return S}function l(){return e}function p(){return k}function g(){return z}function f(){return I}function d(){var t=L.getAsset(),n="";L.exists(e.image)?n=e.image:L.exists(t.previews)&&L.exists(t.previews.picture)?n=t.previews.picture:L.exists(t.thumbnail)?n=t.thumbnail:L.exists(t.prerolls)&&L.exists(t.prerolls.preroll)&&L.exists(t.prerolls.preroll.content)&&(n=t.prerolls.preroll.content),L.setBGImage(N,n)}function y(){N=document.createElement("div"),N.style.position="absolute",N.style.backgroundColor="#fff",N.style.backgroundPosition="center center",N.style.backgroundSize="cover",L.platform().os.mobile&&(N.style.backgroundSize="contain",N.style.backgroundRepeat="no-repeat"),e.backgroundSize&&(N.style.backgroundSize="contain"===e.backgroundSize?"contain":"cover"),e.pointer&&(N.style.cursor="pointer"),L.on("assetReady",function(){d()}),L.on(["play","autoNextShown"],function(){L.getStageType&&"audio"===L.getStageType()||(L.setBGImage(N,""),L.hidePlugin(x))}),L.on("autoNextCanceled",function(){d()}),L.on("stop",function(){L.isLooping()||L.exists(L.isPlayNext)&&L.isPlayNext()||(d(),L.showPlugin(x))}),L.on("finish",function(){L.isLooping()||L.isLastAsset()||(d(),L.showPlugin(x))}),N.onclick=function(){L.play()},e.parent.appendChild(N),L.onPluginsBuilt(function(){L.setElementSize(N,"width","100%",!1),L.setElementSize(N,"height","100%")})}function m(e){return!x&&(x=e,!0)}function v(e){return!w&&(w=e,!0)}function b(t){return e?(L=e.pluginApi,!1):(e=t,!0)}function h(e){return!I&&(I=e,!0)}if(!(this instanceof u))return new u(e);var x,w,P,S,e,k,z,I,L,N;P=r,S=n,k=o,z=i;return{getId:t,getLayer:s,getMode:a,getName:c,getParams:l,getType:p,getVersion:g,getWrapper:f,init:y,setId:m,setLayer:v,setParams:b,setWrapper:h}};s.prototype.name=n,s.prototype.version=i,s.prototype.type=o,s.prototype.mode=r,e.Cliplister.addPlugin(s)}(window,void 0);