ckplayer-plus 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- (function(b,h){typeof exports=="object"&&typeof module!="undefined"?module.exports=h():typeof define=="function"&&define.amd?define(h):(b=b||self,b.ckplayer=h())})(this,function(){"use strict";var language={play:"%E6%92%AD%E6%94%BE",pause:"%E6%9A%82%E5%81%9C",refresh:"%E9%87%8D%E6%92%AD",full:"%E5%85%A8%E5%B1%8F",exitFull:"%E9%80%80%E5%87%BA%E5%85%A8%E5%B1%8F",webFull:"%E9%A1%B5%E9%9D%A2%E5%85%A8%E5%B1%8F",exitWebFull:"%E9%80%80%E5%87%BA%E9%A1%B5%E9%9D%A2%E5%85%A8%E5%B1%8F",theatre:"%E5%89%A7%E5%9C%BA%E6%A8%A1%E5%BC%8F",exitTheatre:"%E9%80%80%E5%87%BA%E5%89%A7%E5%9C%BA%E6%A8%A1%E5%BC%8F",volume:"%E9%9F%B3%E9%87%8F%EF%BC%9A",muted:"%E9%9D%99%E9%9F%B3",exitmuted:"%E6%81%A2%E5%A4%8D%E9%9F%B3%E9%87%8F",seek:"seek%EF%BC%9A",waiting:"%E7%BC%93%E5%86%B2",live:"%E7%9B%B4%E6%92%AD%E4%B8%AD",backLive:"%E8%BF%94%E5%9B%9E%E7%9B%B4%E6%92%AD",lookBack:"%E5%9B%9E%E7%9C%8B%EF%BC%9A",next:"%E4%B8%8B%E4%B8%80%E9%9B%86",screenshot:"%E8%A7%86%E9%A2%91%E6%88%AA%E5%9B%BE",smallwindows:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E6%92%AD%E6%94%BE%E5%8A%9F%E8%83%BD",playbackrate:"%E5%80%8D%E9%80%9F",playbackrateSuffix:"%E5%80%8D",track:"%E5%AD%97%E5%B9%95",noTrack:"%E6%97%A0%E5%AD%97%E5%B9%95",definition:"%E6%B8%85%E6%99%B0%E5%BA%A6",switchTo:"%E5%88%87%E6%8D%A2%E6%88%90%EF%BC%9A",closeTime:"%7Bseconds%7D%E7%A7%92%E5%90%8E%E5%8F%AF%E5%85%B3%E9%97%AD%E5%B9%BF%E5%91%8A",closeAd:"%E5%85%B3%E9%97%AD%E5%B9%BF%E5%91%8A",second:"%E7%A7%92",details:"%E6%9F%A5%E7%9C%8B%E8%AF%A6%E6%83%85",copy:"%E5%A4%8D%E5%88%B6",copySucceeded:"%E5%A4%8D%E5%88%B6%E6%88%90%E5%8A%9F%EF%BC%8C%E5%8F%AF%E8%B4%B4%E7%B2%98%EF%BC%81",smallwindowsOpen:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%BC%80%E5%90%AF",smallwindowsClose:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%85%B3%E9%97%AD",screenshotStart:"%E6%88%AA%E5%9B%BE%E4%B8%AD%EF%BC%8C%E8%AF%B7%E7%A8%8D%E5%80%99...",screenshotClose:"%E6%88%AA%E5%9B%BE%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%85%B3%E9%97%AD",loopOpen:"%E5%BE%AA%E7%8E%AF%E6%92%AD%E6%94%BE",loopClose:"%E5%B7%B2%E5%85%B3%E9%97%AD%E5%BE%AA%E7%8E%AF%E6%92%AD%E6%94%BE",close:"%E5%85%B3%E9%97%AD",down:"%E4%B8%8B%E8%BD%BD",p50:"50%25",p75:"75%25",p100:"100%25",timeScheduleAdjust:{prohibit:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%8B%96%E5%8A%A8",prohibitBackOff:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E9%87%8D%E5%A4%8D%E8%A7%82%E7%9C%8B",prohibitForward:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E5%BF%AB%E8%BF%9B",prohibitLookBack:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%92%AD%E6%94%BE%E9%83%A8%E5%88%86%E5%86%85%E5%AE%B9",prohibitForwardNotViewed:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%92%AD%E6%94%BE%E6%9C%AA%E8%A7%82%E7%9C%8B%E7%9A%84%E9%83%A8%E5%88%86"},error:{noMessage:"%E6%9C%AA%E7%9F%A5%E9%94%99%E8%AF%AF",supportVideoError:"%E8%AF%A5%E6%B5%8F%E8%A7%88%E5%99%A8%E7%89%88%E6%9C%AC%E5%A4%AA%E4%BD%8E%EF%BC%8C%E5%BB%BA%E8%AE%AE%E6%9B%B4%E6%8D%A2%E6%88%90%E5%85%B6%E5%AE%83%E6%B5%8F%E8%A7%88%E5%99%A8",videoTypeError:"%E8%AF%A5%E6%B5%8F%E8%A7%88%E5%99%A8%E4%B8%8D%E6%94%AF%E6%8C%81%E6%92%AD%E6%94%BE%E8%AF%A5%E8%A7%86%E9%A2%91%EF%BC%8C%E5%BB%BA%E8%AE%AE%E6%9B%B4%E6%8D%A2%E6%88%90%E5%85%B6%E5%AE%83%E6%B5%8F%E8%A7%88%E5%99%A8",loadingFailed:"%E5%8A%A0%E8%BD%BD%E5%A4%B1%E8%B4%A5",emptied:"%E8%A7%86%E9%A2%91%E6%96%87%E4%BB%B6%E5%8A%A0%E8%BD%BD%E8%BF%87%E7%A8%8B%E4%B8%AD%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF",screenshot:"%E8%A7%86%E9%A2%91%E6%88%AA%E5%9B%BE%E5%A4%B1%E8%B4%A5",ajax:"Ajax%E6%95%B0%E6%8D%AE%E8%AF%B7%E6%B1%82%E9%94%99%E8%AF%AF",noVideoContainer:"%E6%9C%AA%E6%89%BE%E5%88%B0%E6%94%BE%E7%BD%AE%E8%A7%86%E9%A2%91%E7%9A%84%E5%AE%B9%E5%99%A8"}},videoObjectDefault={container:"",volume:.8,poster:"",autoplay:!1,loop:!1,live:!1,rotate:0,zoom:0,ad:null,backLive:!1,seek:0,next:null,loaded:"",plug:"",duration:0,preview:null,prompt:null,crossOrigin:"",video:null,type:"",playbackrate:1,ended:null,webFull:!1,theatre:null,controls:!1,rightBar:null,smallWindows:null,smallWindowsDrag:!0,screenshot:!1,timeScheduleAdjust:1,logo:"",menu:null,information:{"Load:":"{loadTime} second","Duration:":"{duration} second","Size:":"{videoWidth}x{videoHeight}","Volume:":"{volume}%","Fps:":"{fps}fps","Sudio decoded:":"{audioDecodedByteCount} Byte","Video decoded:":"{videoDecodedByteCount} Byte"},track:null,title:"",language:"",barHideTime:1500,playbackrateOpen:!0,playbackrateList:[.75,1,1.25,1.5,2,4],cookie:null,domain:null,cookiePath:"/",documentFocusPause:!1,mouseWheelVolume:2,keyVolume:2,errorShow:!0,pluginPath:"",autoPlug:!0,preferBuiltinPlug:!0,cdnFallback:!0},ckplayerPlusDefaultCdn="https://cdn.jsdelivr.net/npm/ckplayer-plus@1.1.0/dist/";function ckplayerEmbed(b){var h=[{title:"ckplayer",link:"http://www.ckplayer.com"},{title:"version:X3",underline:!0},{title:"about",click:"aboutShow"}],a={},k={},o=null,T=0,G="",le=!1,M=!0,F=!0,X=0,L=0,ae=null,st=0,Te=!1,Xe=0,lt=!1,ge=-1,De=-1,_e=0,oe=0,ve=0,te=-1,$=0,Me=!0,dt="",We=null,ze=null,pe=null,$e=null,Je=null,Oe=null,ut=null,ye=!0,Ie=null,ke=!1,si=0,Ce=0,Le=null,v=null,Ze=!1,Ji=!1,xt=!0,At=!0,Fe=null,W=null,He=null,ft=!1,e={},p=null,C=null,S=null,ne=null,O=null,_=null,Tt=!0,ct="",we=0,de=100,pt=!1,ht=!1,Be="ckplayer-player-cookie",ue="",Se=0,li=[],Bt=!0,Ue=!1;function Re(t){if(typeof t=="string"){var i=t.replace(/\(\s*\)\s*;?\s*$/,"").trim();if(/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*)*$/.test(i)){for(var n=i.split("."),r=typeof window!="undefined"?window:this,s=r,d=0;d<n.length;d++){if(s==null)return;r=s,s=s[n[d]]}if(typeof s=="function")return s.call(r)}}}var Ge=function(t){if(isUndefined(t))return f.add=f.into=Ge,f;language=decodeURIString(language),isUndefined(window.ckplayerLanguage)||(language=mergeObj(language,window.ckplayerLanguage)),B(),documentHidden(function(r){B("visibilityState",r)}),ct=getApp(),k={};for(var i in videoObjectDefault)k[i]=videoObjectDefault[i];if(valType(t)=="string"&&(t.substr(0,8)=="website:"||t.substr(0,4)=="url:")){var n="";t.substr(0,8)=="website:"&&(n=t.substring(8)),t.substr(0,4)=="url:"&&(n=t.substring(4)),ajax({url:n,success:function(r){return r?Ge(r):(Ve(language.error.ajax+",url:"+n),null)}})}else return valType(t)=="object"?(k=standardization(k,t),!isUndefined(t.container)&&t.container?(p=D(t.container),p?Ft(t):Ut(t)):Ut(t)):(Ve(language.error.noVideoContainer),null)},Ut=function(t){return documentReady(function(){return isUndefined(t.container)?di(t):(p=D(t.container),p?Ft(t):(Ve(language.error.noVideoContainer),null))}),null},di=function(t){if(valType(t.video)=="string"&&(t.video.substr(0,8)=="website:"||t.video.substr(0,4)=="url:")){k=standardization(k,t);var i="";t.video.substr(0,8)=="website:"&&(i=t.video.substring(8)),t.video.substr(0,4)=="url:"&&(i=t.video.substring(4)),ajax({url:i,success:function(n){return n?Ge(n):(Ve(language.error.ajax+",url:"+i),null)}})}else return Ve(language.error.noVideoContainer),null},Ft=function(t){if(a=standardization(k,t),a.language){if(!isUndefined(window.ckplayerLanguage))return language=mergeObj(language,window.ckplayerLanguage),vt(t);var i=Ke("language",a.language+".js");Ye(i,function(){return isUndefined(window.ckplayerLanguage)||(language=mergeObj(language,window.ckplayerLanguage)),vt(t)})}else return vt(t)},Ct=function(t){return!t||valType(t)!="string"?!0:/\/(?:assets|\.vite\/deps|_next\/static|chunks?)\/?$/i.test(t)},Ke=function(t,i){var n="";if(a&&a.pluginPath?n=a.pluginPath:typeof window!="undefined"&&window.ckplayerBasePath&&(n=window.ckplayerBasePath),n&&Ct(n)&&(n=""),n)return n.slice(-1)!=="/"&&(n+="/"),n+t+"/"+i;var r=getPath(t)+i;if(r&&r.indexOf(t+"/")>-1&&r.indexOf("undefined")===-1&&!Ct(getPath()))return r;var s=!a||a.cdnFallback!==!1,d=typeof window!="undefined"&&window.ckplayerPlusCdn?window.ckplayerPlusCdn:ckplayerPlusDefaultCdn;return!s||!d||d.indexOf("1.1.0")>-1?t+"/"+i:(d.slice(-1)!=="/"&&(d+="/"),d+t+"/"+i)},ui=function(t){var i="";if(valType(t)=="string"?i=t:valType(t)=="array"&&t.length?valType(t[0])=="array"&&t[0].length?i=t[0][0]:valType(t[0])=="string"&&(i=t[0]):valType(t)=="object"&&t&&(i=t.url||t.file||""),!i||valType(i)!="string"||i.substr(0,8)=="website:"||i.substr(0,4)=="url:")return"";var n=i.split("?")[0].split("#")[0].toLowerCase();return n.indexOf(".m3u8")>-1?"hls.js":n.indexOf(".flv")>-1?"flv.js":n.indexOf(".m2ts")>-1||n.indexOf(".mts")>-1||n.length>3&&n.substring(n.length-3)===".ts"?"mpegts.js":""},fi=function(t){if(a.autoPlug!==!1&&!a.plug){var i=ui(t);i&&(a.plug=i)}},vt=function(t){if(G=!(a.volume>0),!isUndefined(p)&&p!=null)valType(p)=="htmlarray"&&(p=p.eq(0));else return null;Yi(),Ue=valType(a.video)=="string"&&(a.video.substr(0,1)=="."&&a.video.indexOf("/")==-1||a.video.substr(0,1)=="#"),Ue&&(C=p.find(".ckplayer-ckplayer")?p.find(".ckplayer-ckplayer").eq(0):null,C&&(S=C.find(".ck-main")?C.find(".ck-main").eq(0):null),S&&(ne=S.find(".ck-video")?S.find(".ck-video").eq(0):null)),(!C||!S||!ne)&&(p.htm(""),C=w("ckplayer-ckplayer"),p.append(C),S=w("ck-main"),C.append(S),ne=w("ck-video"),S.append(ne)),o&&(o.remove(),o=null),Ue&&(o=D(a.video)?D(a.video).eq(0):null),o||(o=_i(),o.attr("width","100%").attr("height","100%"),ne.append(o)),o.volume=a.volume,a.autoplay?(f.volume(0),f.muted(),le=!0,o.attr("autoplay","autoplay"),F=!1):o.attr("preload","metadata"),p.loop=a.loop,p.loop&&o.attr("loop","loop"),a.controls?o.controls=!0:o.controls=!1;try{Ue||(o.attr("controlslist","nodownload"),o.attr("x-webkit-airplay","true"),o.attr("x5-video-orientation","portraint"),o.attr("playsinline","true"),o.attr("webkit-playsinline","true"),o.attr("x5-playsinline","true")),a.crossOrigin&&(o.useCORS=!0,o.crossOrigin=a.crossOrigin)}catch(i){}if(p.smallWindows=!0,p.webFull=!1,p.theatre=!1,hi(),a.rotate>0&&f.rotate(a.rotate),a.zoom>0&&f.zoom(a.zoom),isUndefined(o.canPlayType))return p.error={code:5,message:language.error.supportVideoError},B("error",p.error),se(),f;if(vi(),!isUndefined(a.loaded))if(valType(a.loaded)=="function")try{a.loaded(f)}catch(i){}else valType(a.loaded)=="string"&&typeof console!="undefined"&&console.warn&&console.warn("[ckplayer] vars.loaded as string is ignored for security. Pass a function instead.");return Pe(Ue?o.attr("src"):a.video),f},bt=function(){if(isUndefined(a.seek))return 0;if(valType(a.seek)=="number"&&a.seek>0)return a.seek;if(valType(a.seek)=="string"&&a.seek=="cookie"&&ue){var t=f.cookie(ue);return t&&t.time?t.time:0}return valType(a.seek)=="string"&&a.seek!==""&&!isNaN(parseFloat(a.seek))?parseFloat(a.seek):0},Lt=function(t){!t||t<=0||(L=t,$=Math.max($,t),te<0&&(te=t))},ci=function(){a.cookie&&(valType(a.cookie)=="array"&&a.cookie.length>=2&&(a.cookie[0]&&valType(a.cookie[0])=="string"&&(ue=a.cookie[0]),a.cookie[1]&&valType(a.cookie[1])=="number"&&(Se=a.cookie[1])),valType(a.cookie)=="object"&&!isUndefined(a.cookie.name)&&(ue=a.cookie.name,!isUndefined(a.cookie.hour)&&valType(a.cookie.hour)=="number"&&(Se=a.cookie.hour)),valType(a.cookie)=="string"&&(ue=a.cookie),ue&&(ue=ue.replace(/[ ]*,[ ]*|[ ]+/g,"").replace(/[ ]*;[ ]*|[ ]+/g,""))),L||Lt(bt())},St=function(t,i){if(!_||typeof _.startLoad!="function"||!o)return!1;(isNaN(t)||t<0)&&(t=0);var n=o.currentTime||0;if(!i){if(ge>=0&&Math.abs(ge-t)<1.5&&et(t)&&Math.abs(n-t)<2.5)return!0;if(et(t)&&Math.abs(n-t)<1.5)return ge=t,!0;if(De>=0&&Math.abs(De-t)<1.5&&Date.now()-_e<4e3)return!0}De=t,_e=Date.now(),ge=t;try{_.startLoad(t)}catch(r){return!1}return!0},pi=function(){if(je(),Te=!1,lt=!1,ge=-1,De=-1,_e=0,Xe=0,_){try{_.destroy()}catch(t){}_=null}if(O){try{O.pause(),O.unload(),O.detachMediaElement(),O.destroy()}catch(t){}O=null}},Pe=function(t){var i=0;if(fi(t),ci(),pi(),(o.attr("src")||o.htm())&&f.pause(),o.attr("src")&&!Ue&&(o.attr("src",""),o.removeAttr("src")),!isUndefined(o.textTracks)&&o.textTracks.length>0)for(i=o.find("track").length-1;i>-1;i--)o.find("track").eq(i).remove();Ue||o.htm(""),isUndefined(a.ad)||(v=a.ad);var n="";if(valType(t)=="string")if(t.substr(0,8)=="website:"||t.substr(0,4)=="url:"){var r="";t.substr(0,8)=="website:"&&(r=t.substring(8)),t.substr(0,4)=="url:"&&(r=t.substring(4)),ajax({url:r,success:function(d){d!=null?(a=standardization(k,d),Pe(a.video)):(p.error={code:8,message:language.error.ajax},B("error",p.error),se())}});return}else a.plug&&!Qe(t)?mt(t):Ue||o.attr("src",t),gt();else if(valType(t)=="array"){for(i=0;i<t.length;i++)if(valType(t[i])=="array")if(a.plug&&!Qe(t[i][0]))mt(t[i][0]);else{var s=' type="'+t[i][1]+'"';t[i].length>1&&(n+='<source src="'+decodeURIComponent(t[i][0])+'"'+s+">")}n&&o.htm(n),gt()}else valType(t)=="object"&&(a.plug?mt(t):(p.error={code:10,message:language.error.emptied},B("error",p.error),se()),gt());!isUndefined(o.find("source"))&&o.find("source").length>0&&o.find("source").eq(o.find("source").length-1).addListener("error",J.error),xi(),Rt(),Me&&qt()},mt=function(t){switch(a.plug){case"hls.js":Pt(t);break;case"flv.js":Dt(t);break;case"mpegts.js":Mt(t);break;case"dash.js":p.error={code:10,message:language.error.emptied},B("error",p.error),se();break;default:valType(a.plug)=="function"?a.plug(o,t):(p.error={code:10,message:language.error.emptied},B("error",p.error),se());break}},Pt=function(t){var i=function(){if(typeof Hls!="undefined"&&!isUndefined(Hls)&&Hls.isSupported()){if(_){try{_.destroy()}catch(s){}_=null}var n={maxBufferLength:30,maxMaxBufferLength:60},r=L;r||(r=bt()),r&&r>0&&(isUndefined(a.live)||!a.live)&&(n.startPosition=r,$=Math.max($,r),te<0&&(te=r),ge=r,De=r,_e=Date.now(),L=0,lt=!0,je()),_=new Hls(n),_.loadSource(t),_.attachMedia(o),_.on(Hls.Events.MANIFEST_PARSED,function(){lt||Ee()}),_.on(Hls.Events.FRAG_BUFFERED,function(s,d){if(!(ge<=0||!d||!d.frag)){var A=d.frag.start,u=A+d.frag.duration;ge>=A-.5&&ge<=u+.5&&(M||(M=!0,e.buffer&&e.buffer.hide()))}}),_.on(Hls.Events.ERROR,function(s,d){var A=9,u=language.error.loadingFailed,g=d.fatal;if(isUndefined(d.response)||(isUndefined(d.response.code)||(A=d.response.code),!isUndefined(d.response.text)&&d.response.text?u=d.response.text:isUndefined(s)||(u=s)),g&&d.type===Hls.ErrorTypes.MEDIA_ERROR&&_&&typeof _.recoverMediaError=="function")try{_.recoverMediaError(),g=!1}catch(x){}p.error={code:A,message:u},B("error",p.error),g&&se()})}else Qe(t)&&o.attr("src",t)};if(typeof Hls!="undefined"&&!isUndefined(Hls)&&!a.preferBuiltinPlug){i();return}Ye(Ke("hls.js","hls.min.js"),i)},Dt=function(t){var i=function(){if(typeof flvjs!="undefined"&&!isUndefined(flvjs)&&flvjs.isSupported()){var n={type:"flv",url:t};valType(t)=="object"&&(n=t),a.live&&(n.isLive=!0),O&&(O.pause(),O.unload(),O.detachMediaElement(),O.destroy(),O=null),O=flvjs.createPlayer(n),O.attachMediaElement(o),O.load(),O.on(flvjs.Events.METADATA_ARRIVED,function(r){J.loadedMetaData()}),O.on(flvjs.Events.ERROR,function(r,s,d){p.error={code:d.code,message:d.msg},B("error",p.error),se()})}};if(typeof flvjs!="undefined"&&!isUndefined(flvjs)&&!a.preferBuiltinPlug){i();return}Ye(Ke("flv.js","flv.min.js"),i)},Mt=function(t){var i=function(){if(typeof mpegts!="undefined"&&!isUndefined(mpegts)&&mpegts.getFeatureList().mseLivePlayback){var n={type:"mse",url:t};valType(t)=="object"&&(n=t),a.live&&(n.isLive=!0),O&&(O.pause(),O.unload(),O.detachMediaElement(),O.destroy(),O=null),O=mpegts.createPlayer(n),O.attachMediaElement(o),O.load(),O.on(mpegts.Events.METADATA_ARRIVED,function(r){J.loadedMetaData()}),O.on(mpegts.Events.ERROR,function(r,s,d){p.error={code:d.code,message:d.msg},B("error",p.error),se()})}};if(typeof mpegts!="undefined"&&!isUndefined(mpegts)&&!a.preferBuiltinPlug){i();return}Ye(Ke("mpegts.js","mpegts.min.js"),i)},Qe=function(t,i){var n=[{vidType:"video/ogg",codType:"theora, vorbis"},{vidType:"video/mp4",codType:"avc1.4D401E, mp4a.40.2"},{vidType:"video/mp4",codType:"avc1"},{vidType:"video/mp4",codType:"hevc"},{vidType:"video/webm",codType:"vp8.0, vorbis"},{vidType:"video/webm",codType:"vp9"},{vidType:"",codType:"application/x-mpegURL"},{vidType:"",codType:"application/vnd.apple.mpegurl"}],r={ogg:n[0],mp4:[n[1],n[2],n[3]],webm:[n[4],n[5]],m3u8:[n[6],n[7]]},s=[],d="",A=function(E){var P=E.vidType,N="";P?N=P+'; codecs="'+E.codType+'"':N=E.codType;var q=o.canPlayType(N);return q==""&&(q="no"),q},u=function(E){return E.replace(/.+\./,"")};if(isUndefined(i)){if(valType(t)=="string"){if(a.type)for(d in n)n[d].vidType==a.type&&s.push(n[d]);else if(u(t)&&u(t)in r){var g=r[u(t)];if(valType(g)=="array")for(var x=0;x<g.length;x++)s.push(g[x]);else s.push(g)}}}else s.push(n[i]);var U=!1;if(s.length>0)for(var x=0;x<s.length;x++)A(s[x])!="no"&&(U=!0);return!U&&!a.plug&&(p.error={code:6,message:language.error.videoTypeError},B("error",p.error),se()),U},hi=function(){e.loading=w("ck-loading"),S.append(e.loading),e.bar=w("ck-bar"),S.append(e.bar),e.rightBar=w("ck-right-bar ck-right-bar-hide"),S.append(e.rightBar),e.topBar=w("ck-top-bar ck-top-bar-hide"),S.append(e.topBar),e.bar.pbox=w("ck-bar-progress"),e.bar.pbox.bg=w("ck-bar-progress-bg"),e.bar.pbox.load=w("ck-bar-progress-load"),e.bar.pbox.bg.append(e.bar.pbox.load),e.bar.pbox.play=w("ck-bar-progress-play"),e.bar.pbox.bg.append(e.bar.pbox.play),e.bar.pbox.mouseLine=w("ck-bar-progress-mouseline"),e.bar.pbox.bg.append(e.bar.pbox.mouseLine),e.bar.pbox.slider=w("ck-bar-progress-slider"),e.bar.pbox.append(e.bar.pbox.bg).append(e.bar.pbox.slider),e.bar.append(e.bar.pbox),e.bar.mouseout(Fi).mouseover(Ci),valType(a.live)=="number"&&(e.bar.pbox.play.css({width:"100%"}),e.bar.pbox.slider.css({left:100-e.bar.pbox.slider.getWidth()*100/e.bar.pbox.bg.getWidth()+"%"})),e.bar.playAndPause=w("ck-bar-playandpause"),e.bar.append(e.bar.playAndPause),e.bar.playAndPause.play=V("ck-bar-btn ck-btn-play"),e.bar.playAndPause.play.click(f.play),e.bar.playAndPause.play.mouseover(function(){j(this,language.play)}),e.bar.playAndPause.append(e.bar.playAndPause.play),e.bar.playAndPause.pause=V("ck-bar-btn ck-btn-pause"),e.bar.playAndPause.pause.click(f.pause),e.bar.playAndPause.pause.mouseover(function(){j(this,language.pause)}),e.bar.playAndPause.append(e.bar.playAndPause.pause),e.bar.playAndPause.pause.hide(),e.bar.playAndPause.refresh=V("ck-bar-btn ck-btn-refresh"),e.bar.playAndPause.refresh.click(f.play),e.bar.playAndPause.refresh.mouseover(function(){j(this,language.refresh)}),e.bar.playAndPause.append(e.bar.playAndPause.refresh),e.bar.nextEpisode=w("ck-bar-btn ck-bar-next"),e.bar.append(e.bar.nextEpisode),e.bar.nextEpisode.click(Ii).mouseover(Oi).mouseout(function(){isUndefined(e.next)||f.closeLayer(e.next)}),isUndefined(a.next)&&e.bar.nextEpisode.hide();var t=formatSeconds(f.time())+"/"+formatSeconds(T);a.live&&(t=language.live),e.time=w("ck-bar-time",t),e.bar.append(e.time),e.bar.backLive=V("ck-btn-backlive",language.backLive),e.bar.append(e.bar.backLive),e.bar.backLive.mouseover(function(){j(this,language.backLive)}).click(function(){B("backLive")}),e.bar.backLive.hide(),e.bar.fullAndExit=w("ck-bar-fullandexit"),e.bar.append(e.bar.fullAndExit),e.bar.fullAndExit.full=V("ck-bar-btn ck-btn-full"),e.bar.fullAndExit.full.click(f.fullOrExit),e.bar.fullAndExit.full.mouseover(function(){j(this,language.full)}),e.bar.fullAndExit.append(e.bar.fullAndExit.full),e.bar.fullAndExit.exitFull=V("ck-bar-btn ck-btn-exitfull"),e.bar.fullAndExit.exitFull.click(f.fullOrExit),e.bar.fullAndExit.exitFull.mouseover(function(){j(this,language.exitFull)}),e.bar.fullAndExit.append(e.bar.fullAndExit.exitFull),e.bar.webFullAndExit=w("ck-bar-webfullandexit"),e.bar.append(e.bar.webFullAndExit),e.bar.webFullAndExit.webFull=V("ck-bar-btn ck-btn-webfull"),e.bar.webFullAndExit.webFull.click(f.webFull),e.bar.webFullAndExit.webFull.mouseover(function(){j(this,language.webFull)}),e.bar.webFullAndExit.append(e.bar.webFullAndExit.webFull),e.bar.webFullAndExit.exitWebFull=V("ck-bar-btn ck-btn-exitwebfull"),e.bar.webFullAndExit.exitWebFull.click(f.exitWebFull),e.bar.webFullAndExit.exitWebFull.mouseover(function(){j(this,language.exitWebFull)}),e.bar.webFullAndExit.append(e.bar.webFullAndExit.exitWebFull),a.webFull||e.bar.webFullAndExit.hide(),e.bar.theatreAndExit=w("ck-bar-theatreandexit"),e.bar.append(e.bar.theatreAndExit),e.bar.theatreAndExit.theatre=V("ck-bar-btn ck-btn-theatre"),e.bar.theatreAndExit.theatre.click(f.theatre),e.bar.theatreAndExit.theatre.mouseover(function(){j(this,language.theatre)}),e.bar.theatreAndExit.append(e.bar.theatreAndExit.theatre),e.bar.theatreAndExit.exitTheatre=V("ck-bar-btn ck-btn-exittheatre"),e.bar.theatreAndExit.exitTheatre.click(f.exitTheatre),e.bar.theatreAndExit.exitTheatre.mouseover(function(){j(this,language.exitTheatre)}),e.bar.theatreAndExit.append(e.bar.theatreAndExit.exitTheatre),a.theatre||e.bar.theatreAndExit.hide(),e.bar.vbox=w("ck-bar-volumebox"),e.bar.append(e.bar.vbox),e.bar.vbox.muted=V("ck-bar-btn ck-btn-muted"),e.bar.vbox.muted.click(f.muted),e.bar.vbox.append(e.bar.vbox.muted),e.bar.vbox.exitMuted=V("ck-bar-btn ck-btn-exitmuted"),e.bar.vbox.exitMuted.click(f.exitMuted),e.bar.vbox.append(e.bar.vbox.exitMuted),e.bar.vbox.volume=w("ck-bar-volume"),e.bar.vbox.append(e.bar.vbox.volume),e.bar.vbox.volume.box=w("ck-bar-volumex"),e.bar.vbox.volume.append(e.bar.vbox.volume.box),e.bar.vbox.volume.txt=w("ck-bar-volume-txt","0"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.txt),e.bar.vbox.volume.bg=w("ck-bar-volume-bg"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.bg),e.bar.vbox.volume.pp=w("ck-bar-volume-pp"),e.bar.vbox.volume.bg.append(e.bar.vbox.volume.pp),e.bar.vbox.volume.slider=w("ck-bar-volume-slider"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.slider),e.bar.vbox.mouseDown=!1,e.bar.vbox.volume.show(),wt(a.volume),Vi(),e.bar.vbox.volume.attr("style",""),e.bar.vbox.mouseover(function(){wt(o.muted?0:o.volume)}),e.bar.playbackrate=w("ck-bar-playbackrate-box"),e.bar.append(e.bar.playbackrate),e.bar.playbackrate.button=w("ck-bar-playbackrate",language.playbackrate),e.bar.playbackrate.append(e.bar.playbackrate.button),e.bar.playbackrate.bgbox=w("ck-bar-playbackrate-bg-box ck-list-bg-box"),e.bar.playbackrate.append(e.bar.playbackrate.bgbox),Pi(),e.bar.track=w("ck-bar-track-box"),e.bar.append(e.bar.track),e.bar.track.button=w("ck-bar-track",language.track),e.bar.track.append(e.bar.track.button),e.bar.track.bgbox=w("ck-bar-track-bg-box ck-list-bg-box"),e.bar.track.append(e.bar.track.bgbox),e.bar.track.hide(),e.bar.definition=w("ck-bar-definition-box"),e.bar.append(e.bar.definition),e.bar.definition.button=w("ck-bar-definition",language.definition),e.bar.definition.append(e.bar.definition.button),e.bar.definition.bgbox=w("ck-bar-definition-bg-box ck-list-bg-box"),e.bar.definition.append(e.bar.definition.bgbox),e.bar.definition.hide(),e.rightBar.screenshot=V("ck-bar-btn ck-btn-screenshot"),e.rightBar.append(e.rightBar.screenshot),e.rightBar.screenshot.mouseover(function(){j(this,language.screenshot,null,"left")}),e.rightBar.screenshot.click(f.screenshot),e.rightBar.smallwindows=w("ck-right-bar-smallwindows"),e.rightBar.append(e.rightBar.smallwindows),e.rightBar.smallwindows.open=V("ck-bar-btn ck-btn-smallwindows-open"),e.rightBar.smallwindows.open.click(function(){j(this,language.smallwindowsClose,null,"left"),f.smallWindows(!1)}),e.rightBar.smallwindows.open.mouseover(function(){j(this,language.smallwindowsOpen,null,"left")}),e.rightBar.smallwindows.append(e.rightBar.smallwindows.open),e.rightBar.smallwindows.close=V("ck-bar-btn ck-btn-smallwindows-close"),e.rightBar.smallwindows.close.click(function(){j(this,language.smallwindowsOpen,null,"left"),f.smallWindows(!0)}),e.rightBar.smallwindows.close.mouseover(function(){j(this,language.smallwindowsClose,null,"left")}),e.rightBar.smallwindows.append(e.rightBar.smallwindows.close),e.rightBar.loop=w("ck-right-bar-loop"),e.rightBar.append(e.rightBar.loop),e.rightBar.loop.open=V("ck-bar-btn ck-btn-loop-open"),e.rightBar.loop.open.click(function(){j(this,language.loopClose,null,"left"),f.loop(!1)}),e.rightBar.loop.open.mouseover(function(){j(this,language.loopOpen,null,"left")}),e.rightBar.loop.append(e.rightBar.loop.open),e.rightBar.loop.close=V("ck-bar-btn ck-btn-loop-close"),e.rightBar.loop.close.click(function(){j(this,language.loopOpen,null,"left"),f.loop(!0)}),e.rightBar.loop.close.mouseover(function(){j(this,language.loopClose,null,"left")}),e.rightBar.loop.append(e.rightBar.loop.close),e.rightBar.mouseout(Li).mouseover(Si),e.screenshot=w("ck-screenshot"),S.append(e.screenshot),e.screenshot.img=w("ck-screenshot-img"),e.screenshot.append(e.screenshot.img),e.screenshot.bar=w("ck-screenshot-bar"),e.screenshot.append(e.screenshot.bar),e.screenshot.bar.down=rt(language.down,"","ck-screenshot-btn ck-screenshot-down"),e.screenshot.bar.append(e.screenshot.bar.down),e.screenshot.bar.close=V("ck-screenshot-btn ck-screenshot-close",language.close),e.screenshot.bar.close.click(f.closeScreenshot),e.screenshot.bar.append(e.screenshot.bar.close),e.topBar.zoomEle=w("ck-top-bar-zoom"),e.topBar.zoomEle.zoom50=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom50),e.topBar.zoomEle.zoom50.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom50.append(e.topBar.zoomEle.zoom50.left),e.topBar.zoomEle.zoom50.left.button=w("ck-top-bar-zoom-button-50"),e.topBar.zoomEle.zoom50.left.append(e.topBar.zoomEle.zoom50.left.button),e.topBar.zoomEle.zoom50.right=w("ck-top-bar-zoom-right",language.p50),e.topBar.zoomEle.zoom50.append(e.topBar.zoomEle.zoom50.right),e.topBar.zoomEle.zoom50.click(function(){f.zoom(50)}),e.topBar.zoomEle.zoom75=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom75),e.topBar.zoomEle.zoom75.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom75.append(e.topBar.zoomEle.zoom75.left),e.topBar.zoomEle.zoom75.left.button=w("ck-top-bar-zoom-button-75"),e.topBar.zoomEle.zoom75.left.append(e.topBar.zoomEle.zoom75.left.button),e.topBar.zoomEle.zoom75.right=w("ck-top-bar-zoom-right",language.p75),e.topBar.zoomEle.zoom75.append(e.topBar.zoomEle.zoom75.right),e.topBar.zoomEle.zoom75.click(function(){f.zoom(75)}),e.topBar.zoomEle.zoom100=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom100),e.topBar.zoomEle.zoom100.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom100.append(e.topBar.zoomEle.zoom100.left),e.topBar.zoomEle.zoom100.left.button=w("ck-top-bar-zoom-button-100"),e.topBar.zoomEle.zoom100.left.append(e.topBar.zoomEle.zoom100.left.button),e.topBar.zoomEle.zoom100.right=w("ck-top-bar-zoom-right",language.p100),e.topBar.zoomEle.zoom100.append(e.topBar.zoomEle.zoom100.right),e.topBar.zoomEle.zoom100.click(function(){f.zoom(100)}),e.topBar.append(e.topBar.zoomEle),e.topBar.titleEle=w("ck-top-bar-title",a.title),e.topBar.append(e.topBar.titleEle),e.topBar.timeEle=w("ck-top-bar-time"),e.topBar.append(e.topBar.timeEle),e.centerPlay=w("ck-center-play"),e.centerPlay.click(f.play),S.append(e.centerPlay),e.buffer=w("ck-buffer"),S.append(e.buffer),e.message=w("ck-message"),S.append(e.message),e.tip=w("ck-tip"),S.append(e.tip),e.tip.content=w("ck-content ck-content-float-auto"),e.tip.append(e.tip.content),e.tip.triangle=w("ck-triangle ck-triangle-auto"),e.tip.append(e.tip.triangle),j(o,"ckplayer"),e.tip.minHeight=e.tip.getHeight(),j(),e.ad=w("ck-yytf"),S.append(e.ad),e.ad.link=w("ck-yytf-front-link"),e.ad.append(e.ad.link),e.ad.link.click(wi),e.ad.picture=w("ck-yytf-front-picture"),e.ad.append(e.ad.picture),e.ad.top=w("ck-yytf-top"),e.ad.append(e.ad.top),e.ad.top.countDown=w("ck-yytf-countdown"),e.ad.top.append(e.ad.top.countDown),e.ad.top.closeTime=w("ck-yytf-closetime"),e.ad.top.append(e.ad.top.closeTime),e.ad.top.closeAd=w("ck-yytf-closead",language.closeAd),e.ad.top.append(e.ad.top.closeAd),e.ad.top.closeAd.click(Ei),e.ad.bottom=w("ck-yytf-bottom"),e.ad.append(e.ad.bottom),e.ad.bottom.fullAndExit=w("ck-yytf-fullandexit"),e.ad.bottom.append(e.ad.bottom.fullAndExit),e.ad.bottom.fullAndExit.full=V("ck-yytf-btn ck-yytf-fullandexit-full"),e.ad.bottom.fullAndExit.full.click(f.full),e.ad.bottom.fullAndExit.append(e.ad.bottom.fullAndExit.full),e.ad.bottom.fullAndExit.exitFull=V("ck-yytf-btn ck-yytf-fullandexit-exitfull"),e.ad.bottom.fullAndExit.append(e.ad.bottom.fullAndExit.exitFull),e.ad.bottom.fullAndExit.exitFull.click(f.exitFull),e.ad.bottom.mutedAndExit=w("ck-yytf-mutedandexit"),e.ad.bottom.append(e.ad.bottom.mutedAndExit),e.ad.bottom.mutedAndExit.muted=V("ck-yytf-btn ck-yytf-mutedandexit-muted"),e.ad.bottom.mutedAndExit.append(e.ad.bottom.mutedAndExit.muted),e.ad.bottom.mutedAndExit.muted.click(f.muted),e.ad.bottom.mutedAndExit.exitMuted=V("ck-yytf-btn ck-yytf-mutedandexit-exitmuted"),e.ad.bottom.mutedAndExit.append(e.ad.bottom.mutedAndExit.exitMuted),e.ad.bottom.mutedAndExit.exitMuted.click(f.exitMuted),e.ad.bottom.details=w("ck-yytf-details",language.details),e.ad.bottom.append(e.ad.bottom.details),e.ad.hide(),e.adPause=w("ck-pause-yytf"),S.append(e.adPause),e.about=w("ck-about"),S.append(e.about),e.about.bar=w("ck-about-bar"),e.about.append(e.about.bar),e.about.bar.copy=V("ck-bar-btn ck-btn-about-copy"),e.about.bar.append(e.about.bar.copy),e.about.bar.copy.click(Ui),e.about.bar.copy.mouseover(function(){j(this,language.copy,null,"left")}),e.about.bar.close=V("ck-bar-btn ck-btn-about-close"),e.about.bar.close.click(Bi),e.about.bar.close.mouseover(function(){j(this,language.close,null,"left")}),e.about.bar.append(e.about.bar.close),e.tempTime=w("ck-tempTime"),S.append(e.tempTime),e.bar.playAndPause.refresh.hide(),a.controls?(f.bar(!1),f.rightBar(!1),e.loading.hide(),e.centerPlay.hide()):(Rt(),Ai(),Ti()),ct=="iphone"&&e.loading.hide(),ti(),C.mouseout(function(){F||Ne()}).mouseover(function(){e.bar.hasClass("ck-bar-out")||(e.bar.removeClass("ck-bar-out"),S.removeClass("ck-nocursor")),e.rightBar.css("display")=="block"&&e.rightBar.removeClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.removeClass("ck-top-bar-hide")}).mousemove(function(){e.bar.hasClass("ck-bar-out")&&(e.bar.removeClass("ck-bar-out"),B("mouseActive",!0),S.removeClass("ck-nocursor"),Ne()),e.rightBar.css("display")=="block"&&e.rightBar.removeClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.removeClass("ck-top-bar-hide")})},vi=function(){o.addListener("stalled",J.stalled),o.addListener("suspend",J.suspend),o.addListener("loadeddata",J.loadedData),o.addListener("loadstart",J.loadStart),o.addListener("loadedmetadata",J.loadedMetaData),o.addListener("canplay",J.canPlay),o.addListener("timeupdate",J.timeUpDate),o.addListener("seeking",J.seeking),o.addListener("seeked",J.seeked),o.addListener("waiting",J.waiting),o.addListener("play",J.play),o.addListener("pause",J.pause),o.addListener("volumechange",J.volumeChange),o.addListener("ended",J.ended),o.addListener("error",J.error),isUndefined(o.emptied)||o.addListener("emptied",J.emptied),ne.singleClick(function(){ht?ht=!1:f.playOrPause()}),S.doubleClick(f.fullOrExit),D(document).addListener("keydown",J.keydown),addListener(window,"resize",J.resize),isUndefined(a.smallWindows)||valType(a.smallWindows)=="boolean"&&a.smallWindows&&addListener(window,"scroll",Ri),p.mouseWheel(J.mouseWheel)},B=function(t,i){try{Fe!=null?(isUndefined(i)&&(i=null),W.dispatchEvent(t,i)):(Fe=function(){this.listeners={}},Fe.prototype.listeners=null,Fe.prototype.addEventListener=function(n,r){n in this.listeners||(this.listeners[n]=[]),this.listeners[n].push(r),He=this.listeners},Fe.prototype.removeEventListener=function(n,r){if(n in this.listeners){for(var s=this.listeners[n],d=0,A=s.length;d<A;d++)if(s[d]===r)return s.splice(d,1),this.removeEventListener(n,r);He=s}},Fe.prototype.dispatchEvent=function(n,r){if(n in this.listeners)for(var s=this.listeners[n],d=0,A=s.length;d<A;d++)s[d].call(this,r)},W=new Fe)}catch(n){console.error(n)}},bi=function(t){var i=[],n=cookie(Be),r=0,s=0,d=Math.floor(Date.now()*.001);if(t=Math.floor(t*100),t=t*.01,Se||(Se=365*24),!n)i.push([ue,t,d+Se*3600]);else{i=stringToArray(n);var A=!1,u=[[ue,t,d+Se*3600]];for(r=0;r<i.length;r++)i[r][2]>d&&i[r][0]!=ue&&s<19&&(u.push(i[r]),s++);i=u}i.length>0&&(cookie(Be,"delete",a.domain,a.cookiePath),cookie(Be,arrayToString(i),a.domain,a.cookiePath)),li=i},gt=function(){if(!isUndefined(o.textTracks)){var t=0;if(!isUndefined(a.track)&&valType(a.track)=="array"&&!o.find("track")){var i="",n=a.track;for(e.bar.track.show(),t=0;t<n.length;t++){var r="";!r&&!isUndefined(n[t].default)&&n[t].default&&(r=" default"),i+='<track src="'+n[t].src+'" srclang="'+n[t].srclang+'" kind="'+n[t].kind+'" label="'+n[t].label+'"'+r+">"}if(o){var s=o.htm()+i;o.htm(s)}o.find("track")&&!ft&&(ft=!0,Mi())}}},et=function(t){if(!o||isUndefined(o.buffered))return!1;try{for(var i=o.buffered,n=0;n<i.length;n++)if(t>=i.start(n)-.35&&t<=i.end(n)+.15)return!0}catch(r){}return!1},je=function(){ae&&(clearTimeout(ae),ae=null),st=0},Ee=function(t){if(!(!L||!o||Te)&&!(!isUndefined(a.live)&&(valType(a.live)=="boolean"&&a.live||valType(a.live)=="number"))){var i=L,n=T||o.duration||0;if(n&&isFinite(n)&&n>0&&i>=n&&(i=Math.max(0,n-.3)),i<=0){L=0,je();return}if(i>0&&($=Math.max($,i),te<0&&(te=i)),St(i,!!t)){je(),L=0;return}var r=!isUndefined(o.readyState)&&o.readyState>=2,s=et(i);if(!t&&!s&&(!r||o.readyState<3)&&(st++,st<=50)){ae&&clearTimeout(ae),ae=setTimeout(function(){Ee(!1)},200);return}je(),Te=!0,L=0;try{o.currentTime=i}catch(d){L=i,Te=!1}setTimeout(function(){Te=!1},800)}},mi=function(){if(Xe>=2)return!1;Xe++;var t=ve>0?ve:a.seek?parseFloat(a.seek):0;(isNaN(t)||t<0)&&(t=0);try{if(_&&typeof _.recoverMediaError=="function")return _.recoverMediaError(),t>0&&(L=t,Te=!1,setTimeout(function(){Ee(!0)},300)),!0}catch(n){}try{var i=Math.max(0,t-1.5);return L=t,Te=!1,o&&(o.currentTime=i),setTimeout(function(){if(Ee(!0),o&&o.paused&&a.autoplay)try{o.play()}catch(n){}},400),!0}catch(n){}return!1},Wt=function(){B("loadedMetaData",{width:C.getWidth(),height:C.getHeight(),videoWidth:p.videoWidth,videoHeight:p.videoHeight,duration:T,volume:p.volume}),B("duration",T),"error"in e&&e.error.hide(),xe("videoWidth",p.videoWidth),xe("videoHeight",p.videoHeight),xe("volume",parseInt(p.volume*100)),xe("duration",parseInt(T)),documentHidden(function(t){a.documentFocusPause&&(t=="show"?!Bt&&F&&f.play():(Bt=F,f.pause()))})},J={loadStart:function(){!a.controls&&ct!="iphone"&&e.loading.show(),e.centerPlay.hide(),B("loadstart")},canPlay:function(){e.loading.hide(),B("canplay"),Ee()},loadedData:function(){B("loadeddata")},loadedMetaData:function(){T=this.duration,!isUndefined(this.duration)&&a.duration&&(T=a.duration),a.live||(e.time.htm(formatSeconds(this.currentTime)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(this.currentTime)+"/"+formatSeconds(T))),e.loading.hide(),a.poster&&o.attr("poster",a.poster),!a.autoplay&&!a.controls&&(e.centerPlay.show(),e.buffer.hide()),p.duration=T,p.videoWidth=this.videoWidth,p.videoHeight=this.videoHeight,p.volume=this.volume,(p.videoWidth||p.videoHeight||T)&&Wt(),Ee();var t=0;isUndefined(this.buffered)||(t=this.buffered.length),t>0&&ii(),a.live?$t():$t(a.preview),!isUndefined(a.prompt)&&valType(a.prompt)=="array"&&!a.live?zi():Xt(),Me&&(qt(),Me=!1),ke=!1,Ce++,!isUndefined(v)&&!isUndefined(v.frontPlay)&&v.frontPlay&&Ce>1&&(f.play(),tt(T)),!isUndefined(v)&&!isUndefined(v.frontPlay)&&!v.frontPlay&&(f.volume(a.volume),f.play()),!a.autoplay&&Tt&&(Tt=!1,f.pause(),setTimeout(f.pause,300))},timeUpDate:function(){M||(M=!0,e.buffer.hide(),B("buffer","end"));var t=this.buffered.length;t>0&&ii(),!T&&this.duration&&(T=this.duration,p.duration=T,p.videoWidth=this.videoWidth,p.videoHeight=this.videoHeight,(p.videoWidth||p.videoHeight||T)&&Wt(),Ee()),oe=ve,ve=this.currentTime,$<oe&&($=oe),Qt(ve),B("time",ve),a.live||(e.time.htm(formatSeconds(ve)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(ve)+"/"+formatSeconds(T))),!isUndefined(v)&&!isUndefined(v.frontPlay)&&v.frontPlay&&Ce>1&&tt(T-ve),!isUndefined(e.error)&&e.error.css("display")=="block"&&e.error.hide(),ue&&bi(ve),xe("audioDecodedByteCount",this.webkitAudioDecodedByteCount||this.audioDecodedByteCount||0),xe("videoDecodedByteCount",this.webkitVideoDecodedByteCount||this.videoDecodedByteCount||0)},ended:function(){!isUndefined(v)&&!isUndefined(v.frontPlay)&&v.frontPlay?kt():(e.bar.playAndPause.pause.hide(),e.bar.playAndPause.play.hide(),e.bar.playAndPause.refresh.show(),B("ended"),Hi(),H())},error:function(t){if(!isUndefined(t.type)){var i=this.error,n=function(){var r=12,s=language.error.loadingFailed;if(isUndefined(i))p.error={code:r,message:s},t.target.attr("src")&&se();else{if(isUndefined(i.code)||(r=i.code),isUndefined(i.message)||(s=i.message),r===3&&mi()){p.error={code:r,message:s},B("error",p.error);return}p.error={code:r,message:s},se()}B("error",p.error)};if(t.type=="error")try{o.currentSrc?ajax({url:o.currentSrc,error:function(r){r&&valType(r)=="object"&&"code"in r&&r.code?(p.error=r,B("error",p.error),se()):n()},success:function(r){r||n()}}):n()}catch(r){n()}}},stalled:function(){B("stalled"),p.error={code:13,message:"load:stalled"},B("error",p.error)},suspend:function(){B("suspend")},emptied:function(){B("emptied"),p.error={code:7,message:language.error.emptied},B("error",p.error)},seeked:function(){Te=!1,Xe=0,F&&f.play(),ke=!1,B("seek",{time:this.currentTime,state:"seeked"}),B("seeked")},seeking:function(){F&&f.play();var t=this.currentTime;switch(te==-1&&(te=t),a.timeScheduleAdjust){case 0:if(oe!=t){ye=!1,f.seek(oe),H(language.timeScheduleAdjust.prohibit);return}break;case 2:if(t<oe){ye=!1,f.seek(oe),H(language.timeScheduleAdjust.prohibitBackOff);return}break;case 3:if(t>oe){ye=!1,f.seek(oe),H(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(t<te){ye=!1,f.seek(te),H(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(t>$){ye=!1,f.seek($),H(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}B("seek",{time:t,state:"seeking"}),B("seeking"),a.live||(e.time.htm(formatSeconds(t)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(t)+"/"+formatSeconds(T)))},waiting:function(){M=!1,B("buffer","start"),e.centerPlay.hide(),a.controls||e.buffer.show(),ye?H(language.waiting):ye=!0},play:function(){if(F=!1,e.bar.playAndPause.play.hide(),e.bar.playAndPause.pause.show(),e.bar.playAndPause.refresh.hide(),e.centerPlay.hide(),dt=="button"?e.bar.pbox.removeClass("ck-bar-progress-out"):e.bar.pbox.addClass("ck-bar-progress-out"),le&&(le=!1,f.exitMuted()),Ne(),it(),dt="",isUndefined(e.ended)||f.closeLayer(e.ended),"error"in e&&e.error.hide(),B("play"),!isUndefined(v)&&!isUndefined(v.front)&&isUndefined(v.frontPlay)){v.frontPlayI=0,v.frontPlay=!0,f.pause(),zt();return}L&&(isUndefined(a.live)||!isUndefined(a.live)&&valType(a.live)=="boolean"&&!a.live)&&Ee()},pause:function(){F=!0,(isUndefined(v)||isUndefined(v.frontPlay)||!isUndefined(v.frontPlay)&&!v.frontPlay)&&!isUndefined(v)&&!isUndefined(v.pause)?(isUndefined(v.pausePlayI)&&(v.pausePlayI=0),Ht()):a.controls||(e.centerPlay.show(),e.buffer.hide()),e.bar.playAndPause.pause.hide(),e.bar.playAndPause.play.show(),e.bar.playAndPause.refresh.hide(),e.bar.pbox.removeClass("ck-bar-progress-out"),ei(),B("pause"),e.bar.removeClass("ck-bar-out"),S.removeClass("ck-nocursor")},volumeChange:function(){if(this.volume==0&&!G&&(this.muted=!0),this.volume>0&&G&&(this.muted=!1),G!=this.muted&&(G=this.muted,qi(this.muted),p.muted=this.muted,B("muted",p.muted)),p.volume=this.volume,B("volume",this.volume),!isUndefined(e.bar.vbox)){var t=parseInt(this.volume*100);e.bar.vbox.volume.txt.htm(t),e.bar.vbox.mouseDown||wt(this.muted?0:this.volume),this.muted||H(language.volume+t+"%")}xe("volume",parseInt(this.volume*100))},resize:function(){var t=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement;t?(e.bar.fullAndExit.exitFull.show(),e.bar.fullAndExit.full.hide(),e.ad.bottom.fullAndExit.exitFull.show(),e.ad.bottom.fullAndExit.full.hide(),S.hasClass("ck-main-full")||S.addClass("ck-main-full"),H(language.full),e.bar.webFullAndExit.hide(),e.bar.theatreAndExit.hide(),isUndefined(e.menu)||S.append(e.menu)):(t=!1,e.bar.fullAndExit.full.show(),e.bar.fullAndExit.exitFull.hide(),e.ad.bottom.fullAndExit.full.show(),e.ad.bottom.fullAndExit.exitFull.hide(),S.hasClass("ck-main-full")&&S.removeClass("ck-main-full"),!isUndefined(a.webFull)&&a.webFull&&e.bar.webFullAndExit.show(),!isUndefined(a.theatre)&&!p.webFull&&e.bar.theatreAndExit.show(),isUndefined(e.menu)||D("body").append(e.menu),ne.css("width")!=S.css("width")&&f.zoom(100)),p.full!=t&&(p.full=t,B("full",t)),ce(),Qt(f.time())},keydown:function(t){t=window.event||t;var i=t.keyCode||t.which,n=f.volume(),r=function(){t.preventDefault?t.preventDefault():t.returnValue=!1};switch(i){case 32:r(),f.playOrPause();break;case 37:f.fastBack();break;case 39:f.fastNext();break;case 38:valType(a.keyVolume)=="number"&&(a.keyVolume==1||a.keyVolume==2&&p.full)&&(r(),f.volume(n+.1<1?n+=.1:1));break;case 40:valType(a.keyVolume)=="number"&&(a.keyVolume==1||a.keyVolume==2&&p.full)&&(r(),f.volume(n-.1>0?n-=.1:0));break;default:break}},mouseWheel:function(t){if(valType(a.mouseWheelVolume)=="number"&&(a.mouseWheelVolume==1||a.mouseWheelVolume==2&&p.full)){t=window.event||t;var i=f.volume();t.preventDefault?t.preventDefault():t.returnValue=!1,t.wheelDelta?(t.wheelDelta>0&&f.volume(i+.1<1?i+=.1:1),t.wheelDelta<0&&f.volume(i-.1>0?i-=.1:0)):t.detail&&(t.detail>0&&f.volume(i-.1>0?i-=.1:0),t.detail<0&&f.volume(i+.1<1?i+=.1:1))}}},zt=function(){if(v.frontPlayI==0&&(Kt(!1),e.ad.show(),v.front.video=!1,isUndefined(v.front.closeTime)||(v.front.closeTime>0?(e.ad.top.closeTime.show(),Ot()):e.ad.top.closeAd.show())),!isUndefined(v.front.node)&&v.front.node!=null&&(S.append(v.front.node),f.closeLayer(v.front.node),v.front.node=null),e.ad.picture.htm(""),e.ad.picture.hide(),e.ad.link.hide(),!isUndefined(v.front.list[v.frontPlayI])){var t=v.front.list[v.frontPlayI];Ze=!0,B("frontAd",t),t.type=="picture"?yi(t):t.type=="node"?ki(t):(e.ad.link.attr("data-link",t.link),gi(t.file)),isUndefined(t.link)?e.ad.bottom.details.hide():(e.ad.bottom.details.show(),e.ad.bottom.details.htm('<a href="'+t.link+'" target="blank">'+language.details+"</a>"))}},Ot=function(){isUndefined(v.front.closeSetTime)||(clearTimeout(v.front.closeSetTime),v.front.closeSetTime=null),e.ad.top.closeTime.htmReplace("{seconds}",v.front.closeTime,language.closeTime),v.front.closeTime--,v.front.closeTime>0?v.front.closeSetTime=setTimeout(Ot,1e3):(e.ad.top.closeAd.show(),e.ad.top.closeTime.hide())},tt=function(t){isUndefined(t)||(v.front.list[v.frontPlayI].time=t),v.front.countDown=0;for(var i=v.frontPlayI;i<v.front.list.length;i++)v.front.countDown+=parseInt(v.front.list[i].time);e.ad.top.countDown.htm(v.front.countDown+language.second)},It=function(){$e&&(clearTimeout($e),$e=null)},yt=function(){It();var t=v.front.list[v.frontPlayI];t.time>0?(t.time--,v.front.countDown--,e.ad.top.countDown.htm(v.front.countDown+language.second),$e=setTimeout(yt,1e3)):kt()},kt=function(){v.frontPlayI<v.front.list.length-1?(v.frontPlayI++,zt()):(!isUndefined(v.front.node)&&v.front.node!=null&&(S.append(v.front.node),f.closeLayer(v.front.node),v.front.node=null),e.ad.picture.htm(""),e.ad.picture.hide(),v.frontPlay=!1,e.ad.hide(),Gt(),L=0,Lt(bt()),v.front.video?Pe(a.video):f.play(),B("frontAdEnded",!0),Ze=!1)},gi=function(t){if(!isUndefined(t)){if(e.ad.picture.hide(),L=0,(o.attr("src")||o.htm())&&f.pause(),o.attr("src")&&(o.attr("src",""),o.removeAttr("src")),o.htm(""),a.plug&&!Qe(t))switch(a.plug){case"hls.js":Pt(t);break;case"flv.js":Dt(t);break;case"mpegts.js":Mt(t);break;default:p.error={code:10,message:language.error.emptied},B("error",p.error),se();break}else o.attr("src",t);v.front.video=!0,e.ad.link.show(),e.ad.bottom.mutedAndExit.show()}},yi=function(t){if(!isUndefined(t.file)){var i=null,n=0,r=function(){e.ad.picture.show(),e.ad.picture.htm(""),i=qe(t.file),e.ad.picture.append(i),i.addListener("load",function(){var s=this.getWidth(),d=this.getHeight();if(s>0||d>0){if(t.link){var A=rt("",t.link);A.append(this),e.ad.picture.append(A)}else e.ad.picture.append(this);i.unbind(),i.click(function(){B("frontAdClick",t)})}else n<10&&(n++,r())})};r(),tt(),yt(),e.ad.bottom.mutedAndExit.hide()}},ki=function(t){isUndefined(t.content)||(v.front.node=f.layer(t),v.front.node.css({"z-index":1}),e.ad.append(v.front.node),v.front.node.unbind(),v.front.node.click(function(){B("frontAdClick",t)}),tt(),yt(),e.ad.bottom.mutedAndExit.hide())},wi=function(){var t=e.ad.link.attr("data-link");window.open(t,"_blank")},Ei=function(){if(!isUndefined(v)&&!isUndefined(v.front)&&!isUndefined(v.front.closeButtonClick)){if(valType(v.front.closeButtonClick)=="function")try{v.front.closeButtonClick()}catch(t){console.error(t)}else if(valType(v.front.closeButtonClick)=="string")try{Re(v.front.closeButtonClick)}catch(t){console.error(t)}}else f.closeFrontAd()},Ht=function(){if(it(),!isUndefined(v)&&!isUndefined(v.pause)&&!isUndefined(v.pause.list)&&v.pause.list.length-1>=v.pausePlayI){var t=v.pause.list[v.pausePlayI];if(!isUndefined(v.pause.close)&&v.pause.close&&(v.pauseClose=V("ck-pause-close"),v.pauseClose.click(function(){e.centerPlay.show(),e.buffer.hide(),it()})),isUndefined(t.file))isUndefined(t.content)||(v.pause.node=f.layer(t),v.pauseClose&&v.pause.node.append(v.pauseClose),v.pause.node.click(function(){B("pauseAdClick",t)}));else{var i=null,n=0,r=function(){i=qe(t.file),e.adPause.show(),e.adPause.htm(""),e.adPause.append(i),i.addListener("load",function(){var s=this.getWidth(),d=this.getHeight();if(s>0||d>0){if(e.adPause.htm(""),t.link){var A=rt("",t.link);A.append(this),e.adPause.append(A)}else e.adPause.append(this);e.adPause.css({width:s+"px",height:d+"px"}),v.pauseClose&&e.adPause.append(v.pauseClose),i.click(function(){B("pauseAdClick",t)})}else n<10&&(n++,r())})};r()}B("pauseAd",t),!isUndefined(t.time)&&t.time>0&&(Je=setTimeout(function(){v.pausePlayI++,v.pausePlayI>v.pause.list.length-1&&(v.pausePlayI=0),Ht()},t.time*1e3))}},it=function(){Je&&(clearTimeout(Je),Je=null),e.adPause.hide(),!isUndefined(v)&&!isUndefined(v.pauseClose)&&v.pauseClose!=null&&(v.pauseClose.remove(),v.pauseClose=null),!isUndefined(v)&&!isUndefined(v.pause)&&!isUndefined(v.pause.node)&&v.pause.node&&(v.pause.node.unbind(),f.closeLayer(v.pause.node),B("pauseAdClose"))},f={width:function(t){return isUndefined(t)||(valType(t)=="number"&&(t+="px"),p.css({width:t}),ce()),C.getWidth()},height:function(t){return isUndefined(t)||(valType(t)=="number"&&(t+="px"),p.css({height:t}),ce()),C.getHeight()},videoWidth:function(){return o?o.videoWidth:null},videoHeight:function(){return o?o.videoHeight:null},zoom:function(t){if(!isUndefined(t)&&(valType(t)=="function"&&W.addEventListener("zoom",t),valType(t)=="number")){for(var i=[e.topBar.zoomEle.zoom50,e.topBar.zoomEle.zoom75,e.topBar.zoomEle.zoom100],n=0;n<i.length;n++)i[n].removeClass("ck-top-bar-zoom-container-focus");switch(t){case 50:i[0].addClass("ck-top-bar-zoom-container-focus");break;case 75:i[1].addClass("ck-top-bar-zoom-container-focus");break;case 100:i[2].addClass("ck-top-bar-zoom-container-focus");break}(t==50||t==75||t==100)&&(de=t,ce(),B("zoom",t))}return f},rotate:function(t){if(!isUndefined(t)&&(valType(t)=="function"&&W.addEventListener("rotate",t),valType(t)=="number")){var i=[0,90,180,270],n=0;i.length>t&&t>0?n=i[t]:i.indexOf(t)>-1&&(n=t),n!=we&&(B("rotate",n),we=n,ce())}},vars:function(t,i){if(!isUndefined(t)){if(valType(t)=="string"&&!isUndefined(i)){var n={};n[t]=i,t=n}var r=!1;for(var s in t)if(s in a&&t[s]!=a[s]){r=!0;break}r&&(a=standardization(a,t)),isUndefined(t.video)||(Me=!0,Pe(a.video)),isUndefined(t.title)||e.topBar.titleEle.htm(t.title)}},loadstart:function(t){!isUndefined(t)&&valType(t)=="function"&&W.addEventListener("loadstart",t)},loadeddata:function(t){!isUndefined(t)&&valType(t)=="function"&&W.addEventListener("loadeddata",t)},loadedMetaData:function(t){!isUndefined(t)&&valType(t)=="function"&&W.addEventListener("loadedMetaData",t)},canplay:function(t){!isUndefined(t)&&valType(t)=="function"&&W.addEventListener("canplay",t)},play:function(t){if(valType(t)=="object"&&(t.target==e.bar.playAndPause.play||t.target==e.bar.playAndPause.refresh)&&(dt="button"),!isUndefined(t)&&valType(t)=="function")W.addEventListener("play",t);else if(Ce>0&&o)try{o.play()}catch(i){console.error(i)}return f},pause:function(t){if(!isUndefined(t)&&valType(t)=="function")W.addEventListener("pause",t);else if(Ce>0&&o)try{o.pause()}catch(i){console.error(i)}return f},playOrPause:function(){return F?f.play():f.pause(),f},volume:function(t){if(!isUndefined(t))valType(t)=="function"?W.addEventListener("volume",t):valType(t)=="number"&&o&&(t<0&&(t=0),t>1&&(t=1),o.muted&&(o.volume=t*.5),o.volume=t);else if(o)return o.volume;return f},muted:function(t){return!isUndefined(t)&&valType(t)=="function"?W.addEventListener("muted",t):o&&(o.muted=!0),f},exitMuted:function(){return o&&(o.muted=!1,o.volume==0&&f.volume(a.volume>0?a.volume:.8)),f},time:function(t){if(!isUndefined(t)&&valType(t)=="function")W.addEventListener("time",t);else if(o)return o.currentTime||0},seek:function(t){if(!isUndefined(t))if(valType(t)=="function")W.addEventListener("seek",t);else{var i=null;if(valType(t)=="number"&&!isNaN(t)?i=t:valType(t)=="string"&&t!==""&&t!=="cookie"&&!isNaN(parseFloat(t))&&(i=parseFloat(t)),i!==null&&o){switch(i>0&&(L&&Math.abs(L-i)<.5||a.seek&&parseFloat(a.seek)>0&&Math.abs(parseFloat(a.seek)-i)<.5)&&($=Math.max($,i),te<0&&(te=i)),a.timeScheduleAdjust){case 0:return H(language.timeScheduleAdjust.prohibit),f;case 1:break;case 2:if(i<oe)return H(language.timeScheduleAdjust.prohibitBackOff),f;break;case 3:if(i>oe)return H(language.timeScheduleAdjust.prohibitForward),f;break;case 4:if(i<te){ye=!1;try{o.currentTime=te}catch(r){}return H(language.timeScheduleAdjust.prohibitLookBack),f}break;case 5:if(i>$){ye=!1;try{o.currentTime=$}catch(r){}return H(language.timeScheduleAdjust.prohibitForwardNotViewed),f}break}ke=!1;var n=o.readyState>=2||T&&isFinite(T)&&T>0;if(!n)return L=i,i>0&&($=Math.max($,i),te<0&&(te=i)),f;if(T&&isFinite(T)&&T>0&&i>T&&(i=Math.max(0,T-.3)),i<0&&(i=0),a.timeScheduleAdjust==5&&i>$&&L&&Math.abs(L-i)<.5&&($=Math.max($,i)),i>.5&&!et(i)&&o.readyState<3&&!_)return L=i,Ee(!1),f;if(St(i,!1))return L=0,f;try{o.currentTime=i,L=0,i>$&&a.timeScheduleAdjust!=5&&($=i)}catch(r){L=i}}}return f},buffer:function(t){return!isUndefined(t)&&valType(t)=="function"&&W.addEventListener("buffer",t),f},ended:function(t){return!isUndefined(t)&&valType(t)=="function"&&W.addEventListener("ended",t),f},next:function(t){return!isUndefined(t)&&valType(t)=="function"&&W.addEventListener("next",t),f},error:function(t){return!isUndefined(t)&&valType(t)=="function"&&W.addEventListener("error",t),f},emptied:function(t){return!isUndefined(t)&&valType(t)=="function"&&W.addEventListener("emptied",t),f},duration:function(t){if(!isUndefined(t)&&valType(t)=="function")W.addEventListener("duration",t);else return T||0},playbackRate:function(t){if(!isUndefined(t))valType(t)=="function"?W.addEventListener("playbackRate",t):valType(t)=="number"&&o&&(o.playbackRate=t,p.playbackRate=t,B("playbackRate",t),jt(t));else return o.playbackRate},track:function(t){if(isUndefined(t))return p.track;if(valType(t)=="function")W.addEventListener("track",t);else if(valType(t)=="number"&&o){var i=null;if(isUndefined(o.textTracks)||(i=o.textTracks),i&&valType(i)=="texttracklist"){for(var n=a.track,r=i.length-1;r>-1;r--)o.find("track").eq(r).remove();for(var r=0;r<n.length;r++){var s="";n[r].default=!1,r==t&&(s=" default",n[r].default=!0),i+='<track src="'+n[r].src+'" srclang="'+n[r].srclang+'" kind="'+n[r].kind+'" label="'+n[r].label+'"'+s+">"}if(o){var d=o.htm()+i;o.htm(d)}Vt(t)}}},fastBack:function(t){if(T!=0){(isUndefined(t)||valType(t)!="number")&&(t=20);var i=f.time();return i-t>0?i-=t:i=0,f.seek(i),f}},fastNext:function(t){if(T!=0){(isUndefined(t)||valType(t)!="number")&&(t=20);var i=f.time();return i+t<T?i+=t:i=T,f.seek(i),f}},definition:function(t){return isUndefined(t)||(valType(t)=="function"&&W.addEventListener("definition",t),valType(t)=="number"&&Yt(t)),f},fps:function(t){return!isUndefined(t)&&valType(t)=="function"&&W.addEventListener("fps",t),p.fps},playback:function(t){if(!isUndefined(t))valType(t)=="function"&&W.addEventListener("playback",t);else return si;return f},backLive:function(t){return isUndefined(t)||(valType(t)=="function"&&W.addEventListener("backLive",t),valType(t)=="boolean"&&(bool?e.bar.backLive.show():e.bar.backLive.hide())),f},full:function(t){if(!isUndefined(t)&&valType(t)=="function")W.addEventListener("full",t);else{if(pt)return;p.theatre&&f.exitTheatre(),p.webFull&&f.exitWebFull();var i=C.requestFullScreen||C.webkitRequestFullScreen||C.mozRequestFullScreen||C.oRequestFullscreen||C.msRequestFullscreen;if(!isUndefined(i))i.call(C);else if(isUndefined(window.ActiveXObject)){if(!isUndefined(o.webkitEnterFullscreen)||!isUndefined(o.webkitEnterFullScreen)){var r=o.webkitEnterFullscreen||o.webkitEnterFullScreen;r.call(o)}}else{var n=new ActiveXObject("WScript.Shell");n!==null&&n.SendKeys("{F11}")}f.zoom(100)}return f},exitFull:function(){var t=document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen||document.oCancelFullScreen||document.msExitFullscreen;if(!isUndefined(t))t.call(document);else if(!isUndefined(window.ActiveXObject)){var i=new ActiveXObject("WScript.Shell");i!==null&&i.SendKeys("{F11}")}return f},fullOrExit:function(){var t=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement;return t?f.exitFull():f.full(),f},webFull:function(t){return!isUndefined(t)&&valType(t)=="function"?W.addEventListener("webfull",t):(nt(),isUndefined(a.theatre)||e.bar.theatreAndExit.hide(),C.css({position:"fixed",top:0,left:0,height:"100%","z-index":getMaxZIndex()+1}),e.bar.webFullAndExit.webFull.hide(),e.bar.webFullAndExit.exitWebFull.show(),p.webFull=!0,B("webfull",!0),ce()),f},exitWebFull:function(){return C.css({position:"relative"}),e.bar.webFullAndExit.webFull.show(),e.bar.webFullAndExit.exitWebFull.hide(),isUndefined(a.theatre)||(e.bar.theatreAndExit.show(),e.bar.theatreAndExit.theatre.show(),e.bar.theatreAndExit.exitTheatre.hide()),C.attr("style",""),p.webFull=!1,B("webfull",!1),ce(),f},theatre:function(t){if(!isUndefined(t)&&valType(t)=="function")W.addEventListener("theatre",t);else{if(valType(a.theatre)=="array"&&a.theatre.length==2){var i=a.theatre[0];valType(i)=="function"&&i(),valType(i)=="string"&&Re(i)}else nt(),C.css({position:"absolute",top:p.offset().top,left:0,height:p.getHeight()+"px","z-index":getMaxZIndex()+1}),e.bar.theatreAndExit.theatre.hide(),e.bar.theatreAndExit.exitTheatre.show();p.theatre=!0,B("theatre",!0),ce()}return f},exitTheatre:function(){if(valType(a.theatre)=="array"&&a.theatre.length==2){var t=a.theatre[1];valType(t)=="function"&&t(),valType(t)=="string"&&Re(t)}else C.css({position:"relative"}),e.bar.theatreAndExit.theatre.show(),e.bar.theatreAndExit.exitTheatre.hide(),C.attr("style",""),p.theatre=!1;return B("theatre",!1),ce(),f},smallWindows:function(t){return isUndefined(t)||(valType(t)=="function"&&W.addEventListener("smallWindows",t),valType(t)=="boolean"&&(t?(e.rightBar.smallwindows.open.show(),e.rightBar.smallwindows.close.hide(),p.smallWindows=!0):(e.rightBar.smallwindows.open.hide(),e.rightBar.smallwindows.close.show(),p.smallWindows=!1),B("smallWindows",p.smallWindows),ce())),p.smallWindows},loop:function(t){return isUndefined(t)||(valType(t)=="function"&&W.addEventListener("loop",t),valType(t)=="boolean"&&o&&(t?(e.rightBar.loop.open.show(),e.rightBar.loop.close.hide(),p.loop=!0,o.attr("loop","loop"),B("loop",!0)):(e.rightBar.loop.open.hide(),e.rightBar.loop.close.show(),p.loop=!1,o.attr("loop",!1),o.removeAttr("loop"),B("loop",!1)))),p.loop},screenshot:function(t){if(!isUndefined(t)&&valType(t)=="function")W.addEventListener("screenshot",t);else if(!isUndefined(a.screenshot)&&a.screenshot&&o)try{H(language.screenshotStart,!0);var i=D(document.createElement("canvas"));i.width=o.videoWidth,i.height=o.videoHeight,i.getContext("2d").drawImage(o,0,0,o.videoWidth,o.videoHeight);var n=i.toDataURL("image/png");B("screenshot",n),Le&&(Le.remove(),Le=null),Le=qe(n),Le.addListener("load",function(){e.screenshot.img.append(Le),e.screenshot.show().css({width:this.getWidth()+"px"})});var r=dataURLtoBlob(n),s=URL.createObjectURL(r),d="video";return a.title&&(d=a.title),e.screenshot.bar.down.attr("href",s).attr("download",d),n}catch(A){H(language.error.screenshot,!0)}else H(language.screenshotClose,!0);return f},closeScreenshot:function(t){return!isUndefined(t)&&valType(t)=="boolean"&&!t?e.screenshot.show():e.screenshot.hide(),f},layer:function(t,i){if(isUndefined(t))return null;var n=!1;isUndefined(i)||(n=i);var r=null;if(valType(t)=="object"&&("class"in t&&"content"in t?(r=w(t.class),r.htm(t.content)):"content"in t&&(t=t.content)),valType(t)=="string"&&(t.substr(0,1)=="."||t.substr(0,1)=="#"?r=Xi(t):(r=w("ck-layer"),r.htm(t))),r){var s=r.css("z-index");s=="auto"&&(s=101),s<101&&(s=101),s>200&&(s=200),isUndefined(r.cssDisplay)&&(r.cssPosition=r.css("position"),r.cssDisplay=r.css("display")),r.css({position:"absolute","z-index":s}),n?e.bar.append(r):S.append(r),r.CK=C,r.show()}return r},closeLayer:function(t){if(valType(t)=="string"){var i=D(t);isUndefined(i)||i.length>0&&(t=i.eq(0))}if(!isUndefined(t)&&valType(t)=="htmlobject"){if(isUndefined(t.captureParentNode))t.remove();else{var n=t.captureParentNode;if(t.nextElement)try{n.insertBefore(t,t.nextElement)}catch(r){n.append(t)}else if(t.prevElement)try{n.insertAfter(t,t.prevElement)}catch(r){n.append(t)}else n.append(t);t.css({display:t.cssDisplay})}isUndefined(t.cssDisplay)||t.css({display:t.cssDisplay,position:t.cssPosition})}return f},message:function(t){return H(t),f},closeFrontAd:function(){return Ze&&!isUndefined(v)&&!isUndefined(v.front)&&!isUndefined(v.front.list)&&(v.frontPlayI=v.front.list.length-1,kt(),It()),f},addListener:function(t,i){W.addEventListener(t,i)},removeListener:function(t,i){W.removeEventListener(t,i)},bar:function(t){xt=t,t?e.bar.show():e.bar.hide()},rightBar:function(t){At=t,t?e.rightBar.show():e.rightBar.hide()},mouseActive:function(t){return!isUndefined(t)&&valType(t)=="function"&&W.addEventListener("mouseActive",t),this},cookie:function(t){if(t=="delete")return cookie(Be,"delete",a.domain),null;!isUndefined(t)&&t&&(t=t.replace(/[ ]*,[ ]*|[ ]+/g,"").replace(/[ ]*;[ ]*|[ ]+/g,""));var i=cookie(Be);if(i){var n=stringToArray(i),r=[],s=parseInt(Date.now()*.001);for(d=0;d<n.length;d++)parseInt(n[d][2])>s&&r.push(n[d]);if(n=r,n.length>0){cookie(Be,"delete",a.domain,a.cookiePath),cookie(Be,arrayToString(n),a.domain,a.cookiePath);for(var d=0;d<n.length;d++)if(n[d]={name:n[d][0],time:n[d][1],expirationTime:date("Y-m-d H:i:s",n[d][2]),expirationTimeStamp:n[d][2]},!isUndefined(t)&&t==n[d].name)return n[d];return n}else cookie(Be,"delete",a.domain,a.cookiePath)}return null},visibilityState:function(t){return!isUndefined(t)&&valType(t)=="function"&&(isUndefined(document.visibilityState)||t(document.visibilityState==="visible"?"show":"hidden"),W.addEventListener("visibilityState",t)),this},remove:function(){var t={};if(He!=null){for(var i in He)t[i]=He[i];for(var i in t){var n=t[i];if(n)for(var r=0;r<n.length;r++){var s=n[r];W.removeEventListener(i,s)}}}return Ze&&this.closeFrontAd(),O&&(O.pause(),O.unload(),O.detachMediaElement(),O.destroy(),O=null),_&&(_.stopLoad(),_.detachMedia()),Ce=0,ft=!1,Me=!0,o&&(o.unbind(),o.remove(),o=null),isUndefined(e.menu)||e.menu.remove(),p&&(p.unbind(),p.htm("")),null}},xi=function(){a.autoplay?(e.bar.playAndPause.play.hide(),e.bar.playAndPause.pause.show()):(e.bar.playAndPause.play.show(),e.bar.playAndPause.pause.hide()),G?e.bar.vbox.muted.hide():e.bar.vbox.exitMuted.hide(),isUndefined(a.next)?e.bar.nextEpisode.hide():e.bar.nextEpisode.show(),!isUndefined(a.webFull)&&a.webFull&&!p.full?e.bar.webFullAndExit.show():e.bar.webFullAndExit.hide(),!isUndefined(a.theatre)&&!p.full&&!p.webFull?e.bar.theatreAndExit.show():e.bar.theatreAndExit.hide(),!isUndefined(a.rightBar)&&a.rightBar?e.rightBar.show():e.rightBar.hide(),(!a.live||valType(a.live)=="number")&&(ke=!1,Ni()),(a.live||valType(a.live)=="number")&&(e.time.htm(language.live),e.tempTime.htm(language.live)),valType(a.smallWindows)=="boolean"&&!a.smallWindows&&(p.smallWindows=!1,e.rightBar.smallwindows.open.hide(),e.rightBar.smallwindows.close.show()),p.loop?(e.rightBar.loop.open.show(),e.rightBar.loop.close.hide()):(e.rightBar.loop.open.hide(),e.rightBar.loop.close.show()),!isUndefined(a.backLive)&&a.backLive&&e.bar.backLive.show(),a.volume==0&&f.muted()},Rt=function(){!isUndefined(a.logo)&&isUndefined(e.logo)&&(e.logo=w("ck-logo"),qe(a.logo).addListener("load",function(){S.append(e.logo),e.logo.append(this)}).addListener("error",function(){e.logo.remove()}))},Ai=function(){if(!isUndefined(a.information)&&!isUndefined(e.about)&&valType(a.information)=="object"){var t=a.information,i="",n=D(document.createElement("ul")),r="";for(i in t){var s=w("div").attr("class","ck-about-title"),d=w("div").attr("class","ck-about-content"),A=D(document.createElement("li"));s.htm(i),d.htm(t[i]),A.append(s),A.append(d),n.append(A),r+=i+":"+t[i]+`
2
- `}e.about.append(n),e.about.textareaText=r,e.about.textareaEle=D(document.createElement("textarea")),S.append(e.about.textareaEle),e.about.textareaEle.hide()}},Ti=function(){!isUndefined(a.menu)&&a.menu&&(h=a.menu),e.menu=w("ckplayer-ckplayer-menu");for(var t=0;t<h.length;t++){var i=h[t],n=w("ck-li");if(isUndefined(i.underline)||n.addClass("ck-underline"),!isUndefined(i.link)&&!isUndefined(i.title))n.append(rt(i.title,i.link)),e.menu.append(n);else if(!isUndefined(i.javascript)&&!isUndefined(i.title))n.append(ni(i.title,i.javascript)),e.menu.append(n);else if(!isUndefined(i.click)&&!isUndefined(i.title)){var r=ni(i.title);r.attr("data-click",i.click.toString()),r.click(function(){Re(D(this).attr("data-click")),e.menu.hide()}),n.append(r),e.menu.append(n)}else isUndefined(i.title)||(n.htm(i.title),e.menu.append(n))}D("body").append(e.menu),S.oncontextmenu=function(u){var g=u||window.event,x=be(g);if(g.button==2){g.returnvalue=!1;var U=x.x-2,E=x.y-2;return e.menu.show(),e.menu.css({left:U+"px",top:E+"px"}),!1}return!0};var s=null,d=function(){s&&(clearTimeout(s),s=null)},A=function(){d(),s=setTimeout(function(){e.menu.hide()},200)};e.menu.mouseout(A),e.menu.mouseover(d)},Zi=function(){e.about.show(),e.menu.hide()},Bi=function(){e.about.hide()},Ui=function(){e.about.textareaEle.show(),e.about.textareaEle.select(),document.execCommand("Copy"),e.about.textareaEle.hide(),H(language.copySucceeded,!0)},fe=function(){var t=e.bar.getHeight();return parseFloat(e.bar.pbox.css("top"))<0&&(t-=parseInt(e.bar.pbox.css("top"))),t},Ne=function(){pe&&(clearTimeout(pe),pe=null),pe=setTimeout(function(){F||(e.bar.addClass("ck-bar-out"),B("mouseActive",!1),p.full&&S.addClass("ck-nocursor"),e.rightBar.css("display")=="block"&&e.rightBar.addClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.addClass("ck-top-bar-hide")),pe=null},a.barHideTime)},Fi=function(){F||(e.bar.pbox.addClass("ck-bar-progress-out"),Ne())},Ci=function(){F||(e.bar.pbox.removeClass("ck-bar-progress-out"),pe&&(clearTimeout(pe),pe=null))},Li=function(){F||Ne()},Si=function(){F||pe&&(clearTimeout(pe),pe=null)},Pi=function(){var t=a.playbackrateList,i=a.playbackrate;e.bar.playbackrate.bg=w("ck-list-bg"),e.bar.playbackrate.bgbox.append(e.bar.playbackrate.bg),e.bar.playbackrate.bg.p=[];for(var n=t.length-1;n>-1;n--){var r=V("ck-list-p",t[n]+language.playbackrateSuffix);r.attr("data-i",n).attr("data-val",t[n]),e.bar.playbackrate.bg.p.push(r),e.bar.playbackrate.bg.append(r),r.click(Di)}if(e.bar.playbackrate.hide(),!isUndefined(a.playbackrateOpen)&&a.playbackrateOpen){e.bar.playbackrate.show(),e.bar.playbackrate.bgbox.show();var s=e.bar.playbackrate.bg.getWidth(),d=e.bar.playbackrate.bg.getHeight(),A=e.bar.playbackrate.button.getWidth();e.bar.playbackrate.bg.css({width:s+10+"px"}),s=e.bar.playbackrate.bg.getWidth(),fe()>e.bar.getHeight()&&(d+=fe()-e.bar.getHeight()),e.bar.playbackrate.bgbox.attr("style",""),e.bar.playbackrate.bgbox.css({width:s+"px",height:d+2+"px",left:-(s-A)*.5+"px"}),e.bar.playbackrate.button.mouseover(function(){s=e.bar.playbackrate.bg.getWidth(),A=e.bar.playbackrate.button.getWidth(),e.bar.playbackrate.bgbox.css({left:-(s-A)*.5+"px"})}),jt(i)}},Di=function(t){e.bar.playbackrate.bgbox.hide(),setTimeout(function(){e.bar.playbackrate.bgbox.removeCss("display")},300),H(language.switchTo+D(this).htm()),f.playbackRate(parseFloat(D(this).attr("data-val")))},jt=function(t){e.bar.playbackrate.bg.find("button").each(function(i,n){var r=parseFloat(n.attr("data-val"));n.removeClass("ck-list-p-focus"),t==r?(n.addClass("ck-list-p-focus"),t!=1?e.bar.playbackrate.button.htm(n.htm()):e.bar.playbackrate.button.htm(language.playbackrate)):n.removeClass("ck-list-p-focus")})},Mi=function(){var t=a.track,i=-1;e.bar.track.bgbox.htm(""),e.bar.track.bg=w("ck-list-bg"),e.bar.track.bgbox.append(e.bar.track.bg),e.bar.track.bg.p=[];for(var n=null,r=t.length-1;r>-1;r--)n=V("ck-list-p",t[r].label),n.attr("data-i",r).attr("data-title",t[r].label),e.bar.track.bg.p.push(n),e.bar.track.bg.append(n),!isUndefined(t[r].default)&&t[r].default&&(i=r),n.click(Nt);n=V("ck-list-p",language.noTrack),n.attr("data-i",-1).attr("data-title",language.noTrack),e.bar.track.bg.p.push(n),e.bar.track.bg.append(n),n.click(Nt),e.bar.track.hide(),e.bar.track.show(),e.bar.track.bgbox.show();var s=e.bar.track.bg.getWidth(),d=e.bar.track.bg.getHeight(),A=e.bar.track.button.getWidth();e.bar.track.bg.css({width:s+10+"px"}),s=e.bar.track.bg.getWidth(),fe()>e.bar.getHeight()&&(d+=fe()-e.bar.getHeight()),e.bar.track.bgbox.attr("style",""),e.bar.track.bgbox.css({width:s+"px",height:d+2+"px",left:-(s-A)*.5+"px"}),e.bar.track.button.mouseover(function(){s=e.bar.track.bg.getWidth(),A=e.bar.track.button.getWidth(),e.bar.track.bgbox.css({left:-(s-A)*.5+"px"})}),Vt(i)},Nt=function(t){e.bar.track.bgbox.hide(),setTimeout(function(){e.bar.track.bgbox.removeCss("display")},300),H(language.switchTo+D(this).attr("data-title")),f.track(parseFloat(D(this).attr("data-i")))},Vt=function(t){e.bar.track.bg.find("button").each(function(i,n){var r=parseInt(n.attr("data-i"));t==r?(e.bar.track.button.htm(n.attr("data-title")),r>-1?(p.track=a.track[r],B("track",a.track[r])):(p.track=null,B("track",null)),n.addClass("ck-list-p-focus")):n.removeClass("ck-list-p-focus")})},qt=function(){var t=-1,i=o.currentSrc;if(isUndefined(e.bar.definition.bg)||(e.bar.definition.bgbox.htm(""),e.bar.definition.bgbox.attr("style",""),e.bar.definition.button.htm(language.definition)),valType(a.video)=="array"){var n=a.video;e.bar.definition.bg=w("ck-list-bg"),e.bar.definition.bgbox.append(e.bar.definition.bg),e.bar.definition.bg.p=[];for(var r=n.length-1;r>-1;r--){var s=V("ck-list-p",n[r][2]);s.attr("data-i",r).attr("data-video",n[r][0]).attr("data-type",n[r][1]).attr("data-title",n[r][2]),e.bar.definition.bg.p.push(s),e.bar.definition.bg.append(s),i&&i.indexOf(n[r][0])>-1&&(t=r),s.click(Wi)}e.bar.definition.show(),e.bar.definition.bgbox.show();var d=e.bar.definition.bg.getWidth(),A=e.bar.definition.bg.getHeight(),u=e.bar.definition.button.getWidth();e.bar.definition.bg.css({width:d+10+"px"}),d=e.bar.definition.bg.getWidth(),fe()>e.bar.getHeight()&&(A+=fe()-e.bar.getHeight()),e.bar.definition.bgbox.attr("style",""),e.bar.definition.bgbox.css({width:d+"px",height:A+2+"px",left:-(d-u)*.5+"px"}),e.bar.definition.button.mouseover(function(){d=e.bar.definition.bg.getWidth(),u=e.bar.definition.button.getWidth(),e.bar.definition.bgbox.css({left:-(d-u)*.5+"px"})})}t>-1&&e.bar.definition.bg.find("button").each(function(g,x){var U=parseInt(x.attr("data-i"));t==U?x.addClass("ck-list-p-focus"):x.removeClass("ck-list-p-focus")})},Wi=function(t){e.bar.definition.bgbox.hide(),setTimeout(function(){e.bar.definition.bgbox.removeCss("display")},300),Yt(parseInt(D(this).attr("data-i")))},Yt=function(t){e.bar.definition.bg.find("button").each(function(i,n){var r=parseInt(n.attr("data-i"));if(t==r){if(!isUndefined(o.textTracks)&&o.textTracks.length>0)for(var s=o.find("track").length-1;s>-1;s--)o.find("track").eq(s).remove();L=f.time(),o.attr("autoplay","autoplay"),Pe(n.attr("data-video")),H(language.switchTo+n.htm()),e.bar.definition.button.htm(n.htm()),n.addClass("ck-list-p-focus"),B("definition",{id:r,video:n.attr("data-video"),title:n.attr("data-title")})}else n.removeClass("ck-list-p-focus")})},Xt=function(){var t=0;if(!isUndefined(e.prompt)&&valType(e.prompt)=="array"){for(t=e.prompt.length;t>-1;t--)isUndefined(e.prompt[t])||e.prompt[t].remove();e.prompt=null}e.prompt=[]},zi=function(){Xt();for(var t=0;t<a.prompt.length;t++){var i=a.prompt[t];if(!isUndefined(i)&&"words"in i&&"time"in i&&!isUndefined(i.time)&&!isUndefined(i.words)&&valType(i.time)=="number"){var n=w("ck-bar-progress-prompt");n.attr("data-words",i.words).attr("data-time",i.time),e.bar.pbox.bg.append(n);var r=n.getWidth()*.5/e.bar.pbox.bg.getWidth()*50,s=i.time/T*100-r;s<0&&(s=0),s>100&&(s=100),n.css({left:s+"%"}),n.mouseover(function(){this.attr("data-words")&&_t(this)}),n.mouseout(function(){this.attr("data-words")&&_t()}),e.prompt.push(n)}}},_t=function(t){if(isUndefined(e.promptWords)&&(e.promptWords=w("ck-prompt-words"),S.append(e.promptWords),e.promptWords.content=w("ck-prompt-content"),e.promptWords.append(e.promptWords.content)),isUndefined(t)){e.promptWords.content.htm(""),e.promptWords.hide();return}e.promptWords.content.htm(t.attr("data-words")),e.promptWords.show();var i=e.promptWords.getWidth(),n=e.promptWords.getHeight(),r=e.bar.pbox.bg,s=parseFloat(t.attr("data-time")),d=C.getHeight()-fe(),A=t.offset().left-C.offset().left+t.getWidth()*.5-i*.5;isUndefined(e.preview)?(d=C.getHeight()-parseFloat(fe()+e.tip.minHeight+parseInt(e.tip.css("margin-bottom"))),d-=fe()-e.bar.getHeight()):d=C.getHeight()-parseFloat(fe()+e.preview.smallHight+parseInt(e.preview.css("margin-bottom"))),d-=parseFloat(e.promptWords.css("margin-bottom")),d-=n,A-=parseFloat(e.promptWords.css("margin-right")),A<0&&(A=0),A>C.getWidth()-i&&(A=C.getWidth()-i),e.promptWords.css({top:d+"px",left:A+"px"})},$t=function(t){if(isUndefined(e.preview)||(e.preview.remove(),e.preview=null),!isUndefined(t)){e.preview=w("ck-preview"),S.append(e.preview),isUndefined(a.preview.type)&&(a.preview.type=0),a.preview.type==1&&(e.preview.bg=w("ck-preview-bg"),e.preview.append(e.preview.bg));var i=[],n=function(d,A,u,g){if(a.preview.type==1){e.preview.bg.img=[];for(var x=0;x<i.length;x++)for(var U=0;U<A/g;U++){var E=w("ck-preview-img");E.attr("data-img",i[x]).attr("data-i",U),E.css({width:d+"px",height:g+"px","background-position":"left "+-(U*g)+"px"}),e.preview.bg.append(E),e.preview.bg.img.push(E)}e.preview.bg.css({width:d*(A/g)*(i.length+1)+"px",height:g+"px"})}e.preview.bigWidth=d,e.preview.bigHight=A,e.preview.smallWidth=u,e.preview.smallHight=g,a.preview.type==1&&(e.preview.frame=w("ck-preview-frame"),e.preview.append(e.preview.frame),e.preview.frame.css({width:u+"px",height:g-parseFloat(e.preview.frame.css("border-width"))*2+"px"}))};if(valType(a.preview)=="object")if(valType(a.preview.file)=="array"){i=a.preview.file;var r=[10,10];if(valType(a.preview.thumbnail)=="array"&&a.preview.thumbnail.length>1&&(valType(a.preview.thumbnail[0])=="number"&&(r[0]=a.preview.thumbnail[0]),valType(a.preview.thumbnail[1])=="number"&&(r[1]=a.preview.thumbnail[1]),a.preview.thumbnail=r),i[0]){var s=qe(i[0],"ck-preview-load-img").addListener("load",function(){n(this.getWidth(),this.getHeight(),this.getWidth()/r[0],this.getHeight()/r[1]),this.remove()});S.append(s)}}else e.preview.removeChild(),e.preview=null;else e.preview.removeChild(),e.preview=null}},Jt=function(t){if(Ie&&(clearTimeout(Ie),Ie=null),t<0&&!isUndefined(e.preview)){Ie=setTimeout(function(){e.preview.hide(),Ie=null},200);return}if(!isUndefined(e.preview)&&!isUndefined(a.preview.thumbnail)&&T>0){isUndefined(a.preview.type)&&(a.preview.type=0);var i=2,n=a.preview.thumbnail;isUndefined(a.preview.scale)||(i=a.preview.scale);var r=0,s=0,d=0,A=0,u=0,g=e.preview.smallWidth,x=e.preview.smallHight,U=t*e.bar.pbox.bg.getWidth()/T+(e.bar.pbox.bg.offset().left-C.offset().left);if(e.preview.css("display")=="none"&&e.preview.show(),e.preview.css({height:x+"px"}),a.preview.type==1){r=parseInt(t/(i*n[0])),s=parseInt(t/i);var E=r-5,P=r+5;E<0&&(E=0),P>e.preview.bg.img.length-1&&(P=e.preview.bg.img.length-1);for(var N=E;N<P;N++)if(e.preview.bg.img[N].attr("data-img")){var q=e.preview.bg.img[N].css("background-position");e.preview.bg.img[N].css({background:"url("+e.preview.bg.img[N].attr("data-img")+") no-repeat"}),e.preview.bg.img[N].attr("data-img",""),e.preview.bg.img[N].css("background-position",q)}if(u=e.preview.frame.getWidth(),A=U-u*.5,d=-(s*g+g*.5)+U,A<0&&(A=0,U=(u-g)*.5,d=-(s*g)+U),A>e.preview.getWidth()-e.preview.frame.getWidth()){var K=A-(e.preview.getWidth()-e.preview.frame.getWidth());A=e.preview.getWidth()-e.preview.frame.getWidth(),d-=K}e.preview.bg.css({left:d+"px"}),e.preview.frame.css({left:A+"px"})}else{var Y=t/i/(n[0]*n[1]);s=parseInt(Y);var Q=parseInt((Y-s)*100),me=parseInt(Q/n[0]),I=Q%n[0],ee=a.preview.file;d=U-g*.5,d<0&&(d=0),d>C.getWidth()-g&&(d=C.getWidth()-g),e.preview.css({width:e.preview.smallWidth+"px",background:"url("+ee[s]+") no-repeat","background-position":"-"+I*g+"px -"+me*x+"px",left:d+"px"})}}},se=function(){if(e.loading.hide(),!(a.controls||!a.errorShow)){isUndefined(e.error)&&(e.error=w("ck-error"),S.append(e.error));var t=p.error.message;t||(t=language.error.noMessage);var i=t+"(code:"+p.error.code+")";e.error.htm(i),e.error.show()}},Ve=function(t){var i=w("ckplayer-error",t);D("body").append(i)},Oi=function(){if(!isUndefined(a.next)){if(valType(a.next)=="object"){if("content"in a.next){e.next=f.layer(a.next);return}if("title"in a.next){j(e.bar.nextEpisode,a.next.title);return}}j(e.bar.nextEpisode,language.next)}},Ii=function(){valType(a.next)=="object"&&("click"in a.next&&(valType(a.next.click)=="function"?a.next.click():valType(a.next.click)=="string"&&Re(a.next.click)),"link"in a.next&&(window.location.href=a.next.link),B("next"))},Hi=function(){if(!p.loop&&!isUndefined(a.ended)){it(),e.ended=f.layer(a.ended),e.ended&&e.centerPlay.hide();return}},Ri=function(){if(p.smallWindows){if(p.webFull||p.theatre||p.full){nt();return}var t=document.documentElement.scrollTop||document.body.scrollTop;t>p.offset().top+p.getHeight()?C.hasClass("ckplayer-ckplayer-smallwindow")||(C.addClass("ckplayer-ckplayer-smallwindow"),B("smallWindows",!0),pt=!0,a.smallWindowsDrag&&Zt(!0),Kt(),ce()):nt()}},nt=function(){C.hasClass("ckplayer-ckplayer-smallwindow")&&(C.removeClass("ckplayer-ckplayer-smallwindow"),a.smallWindowsDrag&&Zt(),B("smallWindows",!1),pt=!1,Gt(),ce())},Zt=function(t){var i=D(document),n=0,r=0,s=0,d=0,A=!1;isUndefined(t)||(A=t);var u=function(U){U.preventDefault&&U.preventDefault(),U=U||window.event;var E=be(U);s=E.x,d=E.y,i.mousemove(g),i.mouseup(x),C.css({cursor:"move"})},g=function(U){U=U||window.event;var E=be(U),P=C.offset();r=E.y-d,n=E.x-s,s=E.x,d=E.y;var N=P.left+n,q=P.top+r;C.css({left:N+"px",top:q+"px"}),C.css("position")!="fixed"&&C.css({position:"fixed"}),ht=!0},x=function(){i.removeListener("mousemove",g),i.removeListener("mouseup",x),C.css({cursor:"default"})};A?C.mousedown(u):C.unbind("mousedown")},ce=function(){var t=C.getWidth()*de*.01,i=C.getHeight()*de*.01,n=ne.getWidth(),r=ne.getHeight();if(ne.css({transform:"rotate("+we+"deg)","-ms-transform":"rotate("+we+"deg)","-moz-transform":"rotate("+we+"deg)","-webkit-transform":"rotate("+we+"deg)","-o-transform":"rotate("+we+"deg)",width:de+"%",height:de+"%"}),we!=0&&we!=180){if(r>t&&n>i){r/t>n/i?ne.css({height:de+"%",width:i+"px"}):ne.css({width:de+"%",height:t+"px"});return}if(r<t&&n<i){t>i?ne.css({height:de+"%",width:i+"px"}):r/n>=t/i?ne.css({width:de+"%",height:t+"px"}):ne.css({height:de+"%",width:i+"px"});return}if(r>=t&&n<=i){ne.css({width:de+"%",height:t+"px"});return}n>=i&&r<t&&ne.css({height:de+"%",width:i+"px"})}},Gt=function(){xt&&(e.bar.show(),e.topBar.show()),At&&e.rightBar.show(),e.tempTime.hide(),isUndefined(e.logo)||e.logo.show()},Kt=function(t){isUndefined(t)&&(t=!0),e.bar.hide(),e.topBar.hide(),e.rightBar.hide(),t&&e.tempTime.show(),isUndefined(e.logo)||e.logo.hide()},H=function(t,i){e.message.htm("");var n=function(){e.message.removeClass("ck-message-right").removeClass("ck-animate-bouncein").removeClass("ck-animate"),e.message.hide()};t?(e.message.htm(t),e.message.show(),e.message.hasClass("ck-animate")||e.message.addClass("ck-animate ck-animate-bouncein"),!isUndefined(i)&&i&&(e.message.hasClass("ck-message-right")||e.message.addClass("ck-message-right")),We&&(clearTimeout(We),We=null),We=setTimeout(function(){n(),We=null},1500)):n()},j=function(t,i,n,r){e.tip.content.htm(""),i?(e.tip.content.htm(i),e.tip.show(),e.tip.hasClass("ck-animate")||e.tip.addClass("ck-animate ck-animate-bouncein"),isUndefined(r)&&(r="auto"),r=="left"?(e.tip.content.removeClass("ck-content-float-auto").addClass("ck-content-float-left"),e.tip.triangle.removeClass("ck-triangle-auto").addClass("ck-triangle-left")):(e.tip.content.removeClass("ck-content-float-left").addClass("ck-content-float-auto"),e.tip.triangle.removeClass("ck-triangle-left").addClass("ck-triangle-auto")),ji(t,n,r),isUndefined(Oe)&&(Oe=function(){ze&&(clearTimeout(ze),ze=null)},ut=function(s){Oe(),ze=setTimeout(function(){j(),ze=null},100),s&&s.removeListener("mouseout",ut)}),Oe(),t.mouseout(function(){ut(t)})):(e.tip.hide(),e.tip.removeClass("ck-animate"),e.tip.removeClass("ck-animate-bouncein"))},ji=function(t,i,n){var r=t.offset(),s=C.offset(),d=e.tip.getWidth(),A=e.tip.getHeight(),u=t.getWidth(),g=0,x=r.top-s.top-A;fe()>e.bar.getHeight()&&(x-=fe()-e.bar.getHeight()),d>u?g=r.left-s.left-(d-u)*.5:g=r.left-s.left+(u-d)*.5,n=="left"&&(g=r.left-s.left-d,x=r.top-s.top),isUndefined(i)||(g=i.x-s.left-d*.5),g<0&&(g=0),x<0&&(x=0),g>S.getWidth()-d&&(g=S.getWidth()-d),x>S.getHeight()-A&&(x=S.getHeight()-A),e.tip.css({left:g+"px",top:x-parseInt(e.tip.css("margin-bottom"))+"px"})},Ni=function(){var t=e.bar.pbox.bg,i=e.bar.pbox.play,n=e.bar.pbox.slider,r=e.bar.pbox.mouseLine;n.unbind(),t.unbind();var s=0,d=0,A=D(document),u=0,g=function(I){if(I.preventDefault&&I.preventDefault(),!!a.timeScheduleAdjust){I=I||window.event;var ee=n.offset(),he=t.offset(),Z=be(I);ke=!0,d=Z.x;var R=ee.left-he.left;u=R*T/(t.getWidth()-n.getWidth()),n.removeListener("mousedown",g),n.removeListener("touchstart",g),A.mousemove(x),A.mouseup(U),n.touchmove(x),n.touchend(U),ot(!0)}},x=function(I){I=I||window.event;var ee=n.offset(),he=t.offset(),Z=be(I);ke=!0,s=d-Z.x,d=Z.x;var R=ee.left-s-he.left;R<0&&(R=0),R>t.getWidth()-n.getWidth()&&(R=t.getWidth()-n.getWidth()),e.bar.pbox.addClass("ck-bar-progress-slider-move");var re="";if(a.live)re=ri(R*at()/(t.getWidth()-n.getWidth()));else{switch(re=R*T/(t.getWidth()-n.getWidth()),a.timeScheduleAdjust){case 2:re<u&&(R=-1e3,H(language.timeScheduleAdjust.prohibitBackOff));break;case 3:if(re>u){R=-1e3,H(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(re<te){R=-1e3,f.seek(te),H(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(re>$){R=-1e3,f.seek($),H(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}re=formatSeconds(re)}j(n,re),R>=0?(n.css({left:R+"px"}),i.css({width:R+n.getWidth()*.5+"px"})):ke=!1},U=function(){if(ot(),A.removeListener("mousemove",x),A.removeListener("mouseup",U),n.removeListener("touchmove",x),n.removeListener("touchend",U),n.mousedown(g),n.touchstart(g),a.live){var ee=parseInt(a.live+i.getWidth()*at()/(t.getWidth()-n.getWidth()*.5));B("playback",{time:ee,date:date("Y-m-d H:i:s",ee)}),B("seek",{time:ee,state:"seeking",date:date("Y-m-d H:i:s",ee)})}else{var I=i.getWidth()*T/(t.getWidth()-n.getWidth()*.5);I>T&&(I=T),L=0,f.seek(I)}e.bar.pbox.removeClass("ck-bar-progress-slider-move"),E&&j()},E=!0,P=function(){var I="";a.live?I=language.live:I=formatSeconds(parseInt(n.css("left"))*T/(t.getWidth()-n.getWidth())),E=!1,j(n,I)},N=function(){E=!0};n.mousedown(g),n.mouseover(P),n.mouseleave(N),n.touchstart(g);var q=function(I){I=I||window.event;var ee=be(I),he=t.offset(),Z=ee.x-he.left;if(p.full&&(Z+=C.offset().left),a.live){var re=parseInt(a.live+at()*Z/t.getWidth());B("playback",{time:re,date:date("Y-m-d H:i:s",re)}),B("seek",{time:re,state:"seeking",date:date("Y-m-d H:i:s",re)})}else{var R=T*Z/t.getWidth();switch(a.timeScheduleAdjust){case 0:H(language.timeScheduleAdjust.prohibit);return;case 2:if(R<oe){H(language.timeScheduleAdjust.prohibitBackOff);return}break;case 3:if(R>oe){H(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(R<te){H(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(R>$){H(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}L=0,f.seek(R)}Z>t.getWidth()-n.getWidth()*.5&&(Z=t.getWidth()-n.getWidth()*.5),Z<n.getWidth()*.5&&(Z=n.getWidth()*.5),ke=!0,i.css({width:Z+"px"}),n.css({left:Z-n.getWidth()*.5+"px"})},Y=null,K=function(I){I=I||window.event;var ee=be(I),he=t.offset(),Z=ee.x-he.left;Q(),p.full&&(Z+=C.offset().left);var R=0;a.live?R=ri(at()*Z/t.getWidth()):(R=T*Z/t.getWidth(),Jt(R),R=formatSeconds(R)),j(t,R,ee),r.css({left:Z-e.bar.pbox.mouseLine.getWidth()*.5+"px"})},Y=null,Q=function(){Y&&(clearTimeout(Y),Y=null),Oe()},me=function(I){Q(),Y=setTimeout(function(){Jt(-1)},30)};t.mousedown(q),t.mousemove(K),t.mouseout(me),r.mouseover(Q)},Vi=function(){var t=e.bar.vbox.volume.box,i=e.bar.vbox.volume.bg,n=e.bar.vbox.volume.pp,r=e.bar.vbox.volume.slider,s=D(document),d=0,A=0,u=function(E){E.preventDefault&&E.preventDefault(),ot(!0),E=E||window.event;var P=be(E);A=P.y,r.removeListener("mousedown",u),r.removeListener("touchstart",u),e.bar.vbox.mouseDown=!0,s.mousemove(g),s.mouseup(x),r.touchmove(g),r.touchend(x)},g=function(E){E=E||window.event;var P=be(E),N=r.offset(),q=t.offset(),K=i.offset();d=P.y-A,A=P.y;var Y=N.top-q.top+d,Q=K.top-q.top,me=K.top+i.getHeight()-q.top-r.getHeight();Y<Q&&(Y=Q),Y>me&&(Y=me),r.css({top:Y+"px"});var I=Y-Q+r.getHeight()*.5;n.css({"margin-top":I+"px"});var ee=(i.getHeight()-I-r.getHeight()*.5)/(i.getHeight()-r.getHeight());f.volume(ee)},x=function(){ot(),s.removeListener("mousemove",g),s.removeListener("mouseup",x),r.removeListener("touchmove",g),r.removeListener("touchend",x),r.mousedown(u),r.touchstart(u),e.bar.vbox.mouseDown=!1};r.mousedown(u),r.touchstart(u);var U=function(E){E=E||window.event;var P=be(E),N=i.offset(),q=P.y-N.top,K=i.getHeight(),Y=1-q/K;f.volume(Y)};i.mousedown(U)},Qt=function(t){if(!(valType(a.live)=="boolean"&&a.live)&&!ke){var i=e.bar.pbox.bg,n=e.bar.pbox.slider,r=t/T*100;valType(a.live)=="number"&&(r="100"),e.bar.pbox.play.css({width:r+"%"});var s=n.getWidth()/i.getWidth()*100,d=r-s*.5;d<0&&(d=0),d>100-s&&(d=100-s),e.bar.pbox.slider.css({left:d+"%"}),ei()}},ei=function(){var t=e.bar.pbox.bg,i=e.bar.pbox.slider,n=0;e.bar.pbox.css("transition-duration")&&(n=parseFloat(e.bar.pbox.css("transition-duration"))*1e3+20);var r=function(){var s=parseInt(e.bar.pbox.slider.css("left"));s<0&&(s=0,e.bar.pbox.slider.css({left:s+"px"})),s>t.getWidth()-i.getWidth()&&(s=t.getWidth()-i.getWidth(),e.bar.pbox.slider.css({left:s+"px"}))};setTimeout(r,n)},ti=function(){e.topBar.timeEle.htm(date("H:i:s")),setTimeout(ti,1e3)},wt=function(t){if(!isUndefined(e.bar.vbox)){var i=e.bar.vbox.volume.box,n=e.bar.vbox.volume.bg,r=e.bar.vbox.volume.pp,s=e.bar.vbox.volume.slider;e.bar.vbox.volume.txt.htm(parseInt(t*100));var d=n.getHeight();if(d){var A=d-t*d;r.css({"margin-top":A+"px"});var u=n.offset().top-i.offset().top+A-s.getHeight()*.5;s.css({top:u+"px"})}}},ii=function(){if(o){var t=o.buffered.length;if(t>0){var i=o.buffered.end(t-1);X<i&&(X=i),xe("loadTime",parseInt(X*100)*.01),e.bar.pbox.load.css("width",X/T*100+"%")}}},qi=function(t){t?(e.bar.vbox.muted.hide(),e.bar.vbox.exitMuted.show(),e.ad.bottom.mutedAndExit.muted.hide(),e.ad.bottom.mutedAndExit.exitMuted.show(),H(language.muted)):(e.bar.vbox.muted.show(),e.bar.vbox.exitMuted.hide(),e.ad.bottom.mutedAndExit.muted.show(),e.ad.bottom.mutedAndExit.exitMuted.hide())},xe=function(t,i){if(isUndefined(e.about.sourceData)&&!isUndefined(e.about.find("ul"))){e.about.sourceData=e.about.find("ul").eq(0).htm(),e.about.objData={};for(var n=/{(.*?)}/g,r=e.about.sourceData.match(n);r=n.exec(e.about.sourceData);)e.about.objData[r[1]]="0"}if(!isUndefined(e.about.find("ul"))){var n=null,s=e.about.sourceData,d=e.about.textareaText;if(e.about.objData){for(var A in e.about.objData)if(t!=A){n=new RegExp("{"+A+"}","g");var u=e.about.objData[A];isUndefined(u)&&(u="0"),s=s.replace(n,u),d=d.replace(n,u)}}return n=new RegExp("{"+t+"}","g"),s=s.replace(n,i||""),d=d.replace(n,i||""),e.about.textareaEle.htm(d),e.about.objData[t]=i,e.about.find("ul").eq(0).htm(s)}},Yi=function(){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(x){window.setTimeout(x,16.666666666666668)},i,n,r,s,d,A;s=0,d=Date.now();var u=function(){A=Date.now()-d,s+=1,A>=1e3&&(d+=A,g(s),s=0),t(u)},g=function(x){x!=p.fps&&(p.fps=x,xe("fps",x),B("fps",x))};isUndefined(p.fps)&&(p.fps=0),u()},Xi=function(t){var i=D(t);if(!isUndefined(i))return valType(i)=="htmlarray"&&(i=i[0]),isUndefined(i.captureParentNode)&&(i.captureParentNode=i.parentNode,i.prevElement=i.prev(),i.nextElement=i.next()),i},D=function(t,i){var n=null;document&&(n=document),isUndefined(i)||(n=i);var r=[];if(t)if(valType(t)=="htmlobject"||valType(t)=="object"){if(r=t,!isUndefined(r.ckplayer))return r}else if(valType(t)=="string"&&t!="")switch(t.substr(0,1)){case".":if(t=t.substr(1,t.length),n.getElementsByClassName){if(r=n.getElementsByClassName(t),!r.length)return null}else if(!n&&document.getElementsByClassName){if(r=document.getElementsByClassName(t),!r.length)return null}else{var A=new RegExp(" "+t+" ","i"),s=null;n.getElementsByTagName?s=n.getElementsByTagName("*"):s=document.getElementsByTagName("*");for(var d=0;d<s.length;d++)A.test(" "+s[d].className+" ")&&r.push(s[d])}r&&r.length===0&&(r=null);break;case"#":t=t.substr(1,t.length),n.getElementById?r=n.getElementById(t):r=document.getElementById(t);break;default:var A=new RegExp(" "+t+" ","i");n.getElementsByTagName?r=n.getElementsByTagName(t):r=document.getElementsByTagName(t),r?t=="body"||t=="document"||t=="html"?r=r[0]:r.length===0&&(r=null):r=null;break}else r=t;else r=document;if(r)if(valType(r)=="htmlobject"||valType(r)=="object"||valType(r)=="document")r.ckplayer="Thanks for using",r.find=function(u){return D(u,this)},r.attr=function(u,g){return isUndefined(g)?this.getAttribute(u):(this.setAttribute(u,g),this)},r.removeAttr=function(u){return this.removeAttribute(u),this},r.css=function(u,g){var x=function(q){if(q.indexOf("-")!=-1){var K=q.split("-"),Y=K[0],Q="",me="";return K.length>1&&(Q=K[1].substr(0,1).toLocaleUpperCase()+K[1].substr(1,K[1].length-1)),K.length>2&&(Q=K[2].substr(0,1).toLocaleUpperCase()+K[2].substr(1,K[2].length-1)),Y+Q+me}return q};if(isUndefined(g)){if(!isUndefined(u)&&valType(u)=="string")return this.currentStyle?this.currentStyle[u]:document.defaultView.getComputedStyle(this,null)[u];if(isUndefined(u))return this.currentStyle?this.currentStyle:document.defaultView.getComputedStyle(this,null)}if(valType(u)!="object"){var U=x(u);if(this.length>1)for(var E=0;E<this.length;E++)this[E].style[U]=g;else this.style[U]=g}else for(var P in u){var N=x(P);if(valType(this)=="htmlarray")for(var E=0;E<this.length;E++)this[E].style[N]=u[P];else this.style[N]=u[P]}return this},r.hasClass=function(u){if(isUndefined(u))return!1;var g=new RegExp("(\\s|^)"+u+"(\\s|$)");return!!(this.className&&this.className.match(g))},r.addClass=function(u){return this.hasClass(u)||(this.className&&this.className.substr(this.className.length-1,1)!=" "&&(this.className+=" "),this.className+=u),this},r.removeClass=function(u){return this.hasClass(u)&&(this.className=this.className.replace(new RegExp("(\\s|^)"+u+"(\\s|$)")," "),this.className.substr(this.className.length-1,1)==" "&&(this.className=this.className.substr(0,this.className.length-1)),this.className||this.removeAttribute("class")),this},r.searchClass=function(u){for(var g=this.className.split(" "),x=0;x<g.length;x++)if(g[x].substr(0,u.length)==u)return g[x];return this},r.removeCss=function(u){var g=this.attr("style");if(g){for(var x=g.split(";"),U={},E=0;E<x.length;E++){var P=x[E].split(":");P.length==2&&P[0]&&P[0].trim()!=u&&(U[P[0].trim()]=P[1].trim())}this.attr("style",""),this.css(U)}},r.addListener=function(u,g,x){return addListener(this,u,g,x)},r.removeListener=function(u,g,x){return removeListener(this,u,g,x)},r.prev=function(){return prev(this)},r.next=function(){return next(this)},r.append=function(u){return this.appendChild(u),this},r.remove=function(){return isUndefined(this.parentNode)||this.parentNode.removeChild(this),null},r.bind=function(u,g,x){return addListener(this,u,g,x)},r.unbind=function(u,g){var x=0,U=[];if(!isUndefined(g))r.removeListener(u,g);else if(isUndefined(u)){if(!isUndefined(this.listenerList))for(U=this.listenerList,x=0;x<U.length;x++)r.removeListener(U[x][0],U[x][1])}else if(!isUndefined(this.listenerList))for(U=this.listenerList,x=0;x<U.length;x++)U[x][0]==u&&r.removeListener(u,U[x][1])},r.htm=function(u){if(!isUndefined(u))r.innerHTML=u;else return r.innerHTML},r.htmReplace=function(u,g,x){if(!isUndefined(g)&&!isUndefined(u)){isUndefined(this.attr("data-htm"))&&this.attr("data-htm",x);var U=this.attr("data-htm"),E=new RegExp(u,"g");U=U.replace(E,g),this.htm(U)}},r.offset=function(){for(var u=this.offsetParent,g=this.offsetLeft,x=this.offsetTop;u&&u.tagName!=="BODY";)/MSIE 8\.0/.test(navigator.userAgent)||(g+=u.clientLeft,x+=u.clientTop),g+=u.offsetLeft,x+=u.offsetTop,u=u.offsetParent;return{top:x,left:g}},r.fixed=function(){return this.css("position")=="fixed"?!0:isUndefined(this.offsetParent)?!1:D(this.offsetParent).fixed()},r.getWidth=function(){return this.offsetWidth},r.getHeight=function(){return this.offsetHeight},isUndefined(r.width)&&(r.width=function(){return this.offsetWidth}),isUndefined(r.height)&&(r.height=function(){return this.offsetWidth}),r.resize=function(u){addListener(window,"resize",u)},r.click=function(u){return addListener(this,"click",u),this},r.singleClick=function(u){return isUndefined(this.dbClick)&&(ai(this),this.dbClick=!0),this.addListener("sigClick",u),this},r.doubleClick=function(u){return isUndefined(this.dbClick)&&(ai(this),this.dbClick=!0),this.addListener("dobClick",u),this},r.mouseover=function(u){return addListener(this,"mouseover",u),this},r.mouseout=function(u){return addListener(this,"mouseout",u),this},r.mousedown=function(u){return addListener(this,"mousedown",u),this},r.mouseup=function(u){return addListener(this,"mouseup",u),this},r.mousemove=function(u){return addListener(this,"mousemove",u),this},r.mouseWheel=function(u){return addListener(this,"mousewheel",u),addListener(this,"DOMMouseScroll",u,!1),this},r.mouseleave=function(u){return addListener(this,"mouseleave",u),this},r.touchstart=function(u){return addListener(this,"touchstart",u),this},r.touchmove=function(u){return addListener(this,"touchmove",u),this},r.touchend=function(u){return addListener(this,"touchend",u),this},r.show=function(){return this.css("display","block"),this},r.hide=function(){return this.css("display","none"),this},r.animate=function(u,g,x,U){if(isUndefined(this.CK))return r;var E=this,P=this.CK,N=P.getWidth(),q=P.getHeight(),K=10;if(this.timerTween=null,this.tweenPlay=!0,isUndefined(u))return this;(isUndefined(g)||g==0)&&(g=1e3),(isUndefined(x)||x=="")&&(x="None.easeIn");var Y=x.split("."),Q={None:{easeIn:function(l,c,m,y){return m*l/y+c},easeOut:function(l,c,m,y){return m*l/y+c},easeInOut:function(l,c,m,y){return m*l/y+c}},Quadratic:{easeIn:function(l,c,m,y){return m*(l/=y)*l+c},easeOut:function(l,c,m,y){return-m*(l/=y)*(l-2)+c},easeInOut:function(l,c,m,y){return(l/=y/2)<1?m/2*l*l+c:-m/2*(--l*(l-2)-1)+c}},Cubic:{easeIn:function(l,c,m,y){return m*(l/=y)*l*l+c},easeOut:function(l,c,m,y){return m*((l=l/y-1)*l*l+1)+c},easeInOut:function(l,c,m,y){return(l/=y/2)<1?m/2*l*l*l+c:m/2*((l-=2)*l*l+2)+c}},Quartic:{easeIn:function(l,c,m,y){return m*(l/=y)*l*l*l+c},easeOut:function(l,c,m,y){return-m*((l=l/y-1)*l*l*l-1)+c},easeInOut:function(l,c,m,y){return(l/=y/2)<1?m/2*l*l*l*l+c:-m/2*((l-=2)*l*l*l-2)+c}},Quintic:{easeIn:function(l,c,m,y){return m*(l/=y)*l*l*l*l+c},easeOut:function(l,c,m,y){return m*((l=l/y-1)*l*l*l*l+1)+c},easeInOut:function(l,c,m,y){return(l/=y/2)<1?m/2*l*l*l*l*l+c:m/2*((l-=2)*l*l*l*l+2)+c}},Sine:{easeIn:function(l,c,m,y){return-m*Math.cos(l/y*(Math.PI/2))+m+c},easeOut:function(l,c,m,y){return m*Math.sin(l/y*(Math.PI/2))+c},easeInOut:function(l,c,m,y){return-m/2*(Math.cos(Math.PI*l/y)-1)+c}},Exponential:{easeIn:function(l,c,m,y){return l==0?c:m*Math.pow(2,10*(l/y-1))+c},easeOut:function(l,c,m,y){return l==y?c+m:m*(-Math.pow(2,-10*l/y)+1)+c},easeInOut:function(l,c,m,y){return l==0?c:l==y?c+m:(l/=y/2)<1?m/2*Math.pow(2,10*(l-1))+c:m/2*(-Math.pow(2,-10*--l)+2)+c}},Circular:{easeIn:function(l,c,m,y){return-m*(Math.sqrt(1-(l/=y)*l)-1)+c},easeOut:function(l,c,m,y){return m*Math.sqrt(1-(l=l/y-1)*l)+c},easeInOut:function(l,c,m,y){return(l/=y/2)<1?-m/2*(Math.sqrt(1-l*l)-1)+c:m/2*(Math.sqrt(1-(l-=2)*l)+1)+c}},Elastic:{easeIn:function(l,c,m,y,z,ie){if(l==0)return c;if((l/=y)==1)return c+m;if(ie||(ie=y*.3),!z||z<Math.abs(m)){z=m;var Ae=ie/4}else var Ae=ie/(2*Math.PI)*Math.asin(m/z);return-(z*Math.pow(2,10*(l-=1))*Math.sin((l*y-Ae)*(2*Math.PI)/ie))+c},easeOut:function(l,c,m,y,z,ie){if(l==0)return c;if((l/=y)==1)return c+m;if(ie||(ie=y*.3),!z||z<Math.abs(m)){z=m;var Ae=ie/4}else var Ae=ie/(2*Math.PI)*Math.asin(m/z);return z*Math.pow(2,-10*l)*Math.sin((l*y-Ae)*(2*Math.PI)/ie)+m+c},easeInOut:function(l,c,m,y,z,ie){if(l==0)return c;if((l/=y/2)==2)return c+m;if(ie||(ie=y*(.3*1.5)),!z||z<Math.abs(m)){z=m;var Ae=ie/4}else var Ae=ie/(2*Math.PI)*Math.asin(m/z);return l<1?-.5*(z*Math.pow(2,10*(l-=1))*Math.sin((l*y-Ae)*(2*Math.PI)/ie))+c:z*Math.pow(2,-10*(l-=1))*Math.sin((l*y-Ae)*(2*Math.PI)/ie)*.5+m+c}},Back:{easeIn:function(l,c,m,y,z){return z==null&&(z=1.70158),m*(l/=y)*l*((z+1)*l-z)+c},easeOut:function(l,c,m,y,z){return z==null&&(z=1.70158),m*((l=l/y-1)*l*((z+1)*l+z)+1)+c},easeInOut:function(l,c,m,y,z){return z==null&&(z=1.70158),(l/=y/2)<1?m/2*(l*l*(((z*=1.525)+1)*l-z))+c:m/2*((l-=2)*l*(((z*=1.525)+1)*l+z)+2)+c}},Bounce:{easeIn:function(l,c,m,y){return m-Q.Bounce.easeOut(y-l,0,m,y)+c},easeOut:function(l,c,m,y){return(l/=y)<1/2.75?m*(7.5625*l*l)+c:l<2/2.75?m*(7.5625*(l-=1.5/2.75)*l+.75)+c:l<2.5/2.75?m*(7.5625*(l-=2.25/2.75)*l+.9375)+c:m*(7.5625*(l-=2.625/2.75)*l+.984375)+c},easeInOut:function(l,c,m,y){return l<y/2?Q.Bounce.easeIn(l*2,0,m,y)*.5+c:Q.Bounce.easeOut(l*2-y,0,m,y)*.5+m*.5+c}}};if(Y.length!=2||!(Y[0]in Q)||!(Y[1]in Q[Y[0]]))return null;var me=Q[Y[0]][Y[1]],I=function(l){var c=l[1],m=0,y=0;switch(l[0]){case"width":m=E.getWidth(),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*q*.01:y=parseInt(c);break;case"height":m=E.getHeight(),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*q*.01:y=parseInt(c);break;case"left":isUndefined(E.css("left"))?m=E.offset().left-P.offset().left:m=parseInt(E.css("left")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*N*.01:y=parseInt(c),E.css("right","auto");break;case"right":isUndefined(E.css("right"))?m=P.getWidth()-(E.offset().left-P.offset().left+E.getWidth()):m=parseInt(E.css("right")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*N*.01:y=parseInt(c),E.css("left","auto");break;case"top":isUndefined(E.css("top"))?m=E.offset().top-P.offset().top:m=parseInt(E.css("top")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*q*.01:y=parseInt(c),E.css("bottom","auto");break;case"bottom":isUndefined(E.css("bottom"))?m=P.getHeight()-(E.offset().top-P.offset().top+E.getHeight()):m=parseInt(E.css("bottom")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*q*.01:y=parseInt(c),E.css("top","auto");break;case"alpha":!isUndefined(E.css("filter"))&&E.css("filter")!="none"?m=Number(E.css("filter"))*100:!isUndefined(E.css("opacity"))&&E.css("opacity")!="none"?m=E.css("opacity")*100:m=100,c.substring(c.length-1,c.length)=="%"?y=parseInt(c):y=c*100;break}return y-=m,m!=y?{type:l[0],current:m,result:y}:null},ee=function(){E.timerTween!=null&&(clearInterval(E.timerTween),E.timerTween=null)};u=u.replace(/[ ]*,[ ]*|[ ]+/g,";");for(var he=[],Z=u.split(";"),R=0;R<Z.length;R++){var re=Z[R].split(":");if(re.length==2){var oi=I(re);oi&&he.push(oi)}}var Et=0,$i=function(){var l={};if(E.tweenPlay)if(Et<g){Et+=K;for(var c=0;c<he.length;c++){var m=he[c],y=Math.ceil(me(Et,m.current,m.result,g));switch(m.type){case"width":l.width=y+"px",l.overflow="hidden";break;case"height":l.height=y+"px",l.overflow="hidden";break;case"left":l.left=y+"px";break;case"right":l.right=y+"px";break;case"top":l.top=y+"px";break;case"bottom":l.bottom=y+"px";break;case"alpha":l.filter="alpha(opacity:"+y*.01+")",l.opacity=y*.01;break}}E.css(l)}else ee(),isUndefined(U)||U(E)};return ee(),this.timerTween=setInterval($i,K),this},r.animatePlay=function(){return isUndefined(this.timerTween)||(this.tweenPlay=!0),this},r.animatePause=function(){return isUndefined(this.timerTween)||(this.tweenPlay=!1),this};else{r.each=function(u){for(var g in this)if(this.hasOwnProperty(g))if(valType(this[g])=="htmlobject")u(g,this[g]);else try{this[0].nodeName||u(g,this[g])}catch(x){u(g,this[g])}},r.eq=function(u){return valType(this)=="htmlarray"&&this.length>=u+1?this[u]:null};for(var d=0;d<r.length;d++)if(D)try{r[d]=D(r[d])}catch(g){}}return r},w=function(t,i){var n=document.createElement("div"),r=D(n);return t&&r.addClass(t),i&&r.htm(i),r},_i=function(){var t=document.createElement("video"),i=D(t);return i},V=function(t,i){var n=document.createElement("button"),r=D(n);return r.attr("type","button"),t&&r.addClass(t),i&&r.htm(i),r},rt=function(t,i,n){var r=document.createElement("a"),s=D(r);return t&&s.htm(t),!isUndefined(i)&&i&&(s.attr("href",i),s.attr("target","_blank")),n&&s.addClass(n),s},ni=function(t,i){var n=document.createElement("a"),r=D(n);return t&&r.htm(t),!isUndefined(i)&&i?r.attr("href","javascript:"+i+"()"):r.attr("href","javascript:;"),r},qe=function(t,i){var n=document.createElement("img"),r=D(n);return i&&(n.className=i),t&&(n.src=t),r},be=function(t){var i=t||window.event;isUndefined(i)&&(i={clientX:0,clientY:0});var n=i.clientX+(document.documentElement.scrollLeft||D("body").scrollLeft),r=i.clientY+(document.documentElement.scrollTop||D("body").scrollTop);return(isUndefined(n.toString())||n.toString()=="NaN")&&(n=i.touches[0].clientX),(isUndefined(r.toString())||r.toString()=="NaN")&&(r=i.touches[0].clientY),n.toString()=="NaN"&&(n=0),r.toString()=="NaN"&&(r=0),{x:n,y:r}},at=function(){var t=Date.now(),i=a.live;return i.toString().length<13&&(i=i*1e3),t-i},ri=function(t){var i=a.live;return i.toString().length<13&&(i=i*1e3),i+=t,language.lookBack+date("H:i:s",i)},Ye=function(t,i,n){var r=function(){};if(isUndefined(i)||(r=i),checkJs(t)){r();return}var s=document.createElement("script");s.type="text/javascript";var d=!1,A=null,u=function(){A&&clearInterval(A),!d&&(d=!0,valType(r)=="function"&&r())},g=function(){A=setInterval(function(){try{!isUndefined(s.readyState)&&s.readyState=="complete"&&u()}catch(P){}},10)},x=function(){try{s.parentNode&&s.parentNode.removeChild(s)}catch(P){}},U=function(){removeListener(s,"load",U),removeListener(s,"error",E),u()},E=function(){if(removeListener(s,"load",U),removeListener(s,"error",E),x(),!n&&(!a||a.cdnFallback!==!1)){var P=typeof window!="undefined"&&window.ckplayerPlusCdn?window.ckplayerPlusCdn:ckplayerPlusDefaultCdn,N=String(t).match(/\/(hls\.js|flv\.js|mpegts\.js|language)\/([^/?#]+)(?:[?#].*)?$/i);if(P&&P.indexOf("1.1.0")===-1&&N){P.slice(-1)!=="/"&&(P+="/");var q=P+N[1]+"/"+N[2];if(q!==t){Ye(q,i,!0);return}}}};try{addListener(s,"load",U),addListener(s,"error",E)}catch(P){g()}s.src=t,D("head").eq(0).append(s)},ai=function(t){var i=null,n=0;t=D(t),t.click(function(){if(i||(i=setTimeout(function(){try{t.dispatchEvent(new Event("sigClick"))}catch(d){var s=document.createEvent("HTMLEvents");s.initEvent("sigClick",!1,!0),t.dispatchEvent(s)}n=0,i=null},260)),!n)n=new Date().getTime();else if(new Date().getTime()-n<230){try{t.dispatchEvent(new Event("dobClick"))}catch(s){var r=document.createEvent("HTMLEvents");r.initEvent("dobClick",!1,!0),t.dispatchEvent(r)}clearTimeout(i),n=0,i=null}})},ot=function(t){isUndefined(t)&&(t=!1);var i=function(n){n.preventDefault()};t?D("body").addListener("touchmove",i,{passive:!1}):D("body").removeListener("touchmove",i,{passive:!1})};return Ge(b)}function ajax(cObj){var callback=null,obj={method:"get",dataType:"json",charset:"utf-8",async:!0,url:"",data:null,success:null,error:null};if(obj=standardization(obj,cObj),!isUndefined(obj.url)){var errorFun=function(b){!isUndefined(obj.error)&&valType(obj.error)=="function"?obj.error(b):obj.success(null)},successFun=function(b){!isUndefined(obj.success)&&valType(obj.success)=="function"&&obj.success(b)},createXHR=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(b){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(h){}}},formatParams=function(b){var h=[];for(var a in b)h.push(encodeURIComponent(a)+"="+encodeURIComponent(b[a]));return h.join("&")};if(valType(cObj)!="object"){isUndefined(obj.error)||obj.error(event);return}if(obj.dataType==="json"||obj.dataType==="text"||obj.dataType==="html"||obj.dataType==="xml"){var xhr=createXHR();if(callback=function(){if(xhr.status===200)if(obj.dataType==="json")try{var jsonData;try{jsonData=JSON.parse(xhr.responseText)}catch(parseErr){jsonData=eval("("+xhr.responseText+")")}successFun(jsonData)}catch(b){successFun(null)}else successFun(xhr.responseText);else errorFun({code:xhr.status,message:xhr.statusText})},obj.data=formatParams(obj.data),obj.method==="get"&&!isUndefined(obj.data)&&obj.data!=""&&(obj.url.indexOf("?")==-1?obj.url+="?"+obj.data:obj.url+="&"+obj.data),obj.async===!0&&addListener(xhr,"readystatechange",function(b){this.readyState===4&&callback!=null&&callback()}),xhr.open(obj.method,obj.url,obj.async),obj.method==="post")try{xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),xhr.setRequestHeader("charset",obj.charset),xhr.send(obj.data)}catch(b){callback()}else try{xhr.send(null)}catch(b){callback()}obj.async===!1&&callback()}else if(obj.dataType==="jsonp"){var oHead=document.getElementsByTagName("head")[0],oScript=document.createElement("script"),callbackName="callback"+new Date().getTime(),params=formatParams(obj.data)+"&callback="+callbackName;oScript.src=obj.url.split("?")+"?"+params,oHead.insertBefore(oScript,oHead.firstChild),window[callbackName]=function(b){!isUndefined(obj.success)&&valType(obj.success)==="function"&&obj.success(b),oHead.removeChild(oScript)}}}}function documentReady(b){var h=!1,a=null,k=function(){a&&clearInterval(a),!h&&(h=!0,valType(b)=="function"&&b())},o=function(){a=setInterval(function(){try{!isUndefined(document.readyState)&&document.readyState=="complete"&&k()}catch(G){}},10)},T=function(){valType(b)=="function"&&b(),removeListener(window,"load",T)};if(!isUndefined(document.body))valType(b)=="function"&&b();else try{addListener(window,"load",T)}catch(G){o()}}function getPath(b){if(typeof window!="undefined"&&window.ckplayerBasePath){var h=window.ckplayerBasePath;if(/\/(?:assets|\.vite\/deps|_next\/static|chunks?)\/?$/i.test(h)&&(h=""),h)return h.slice(-1)!=="/"&&(h+="/"),isUndefined(b)?h:h+b+"/"}for(var a=document.scripts||[],k=a.length?a[a.length-1].src:"",o=0;o<a.length;o++){var T=a[o].getAttribute("name")||a[o].getAttribute("data-name"),G=a[o].src.slice(a[o].src.lastIndexOf("/")+1,a[o].src.lastIndexOf("."));if(T&&(T=="ckplayer"||T=="ckplayer.min"||T=="ckplayer-plus")||a[o].src&&(G=="ckplayer"||G=="ckplayer.min"||G.indexOf("ckplayer")===0)){k=a[o].src;break}}var le="";return k&&k.lastIndexOf("/js/")>-1?le=k.substring(0,k.lastIndexOf("/js/")+1):k&&k.lastIndexOf("/")>-1&&(le=k.substring(0,k.lastIndexOf("/")+1)),isUndefined(b)||(le+=b+"/"),le}function checkJs(b){for(var h=document.scripts,a=0;a<h.length;a++)if(h[a].src==b)return h[a];return!1}function getMaxZIndex(){for(var b=document.all||document.querySelectorAll("*"),h=-1,a=0;a<b.length;a++){var k=null;try{k=window.getComputedStyle(b[a],null).zIndex}catch(o){b[a].style&&(k=b[a].style.zIndex)}k!="auto"&&parseInt(k)>h&&(h=parseInt(k))}return h}function getWindowSize(){return{width:window.innerWidth,height:window.innerHeight}}function standardization(b,h){var a={},k;for(k in b)a[k]=b[k];for(k in h)k in a&&(a[k]=h[k]);return a}function mergeObj(b,h){var a={},k;for(k in b)a[k]=b[k];for(k in h)if(k in a)switch(valType(a[k])){case"object":valType(h[k])=="object"&&(a[k]=mergeObj(a[k],h[k]));break;default:valType(a[k])==valType(h[k])&&(a[k]=h[k]);break}return a}function valType(b){if(typeof b=="undefined")return"undefined";var h=Object.prototype.toString.call(b).split(" ")[1].replace("]","").toLowerCase();return h.substr(0,4)=="html"&&(h.substr(-7)=="element"||h.substr(-8)=="document"||h=="window")&&(h="htmlobject"),(h=="htmlcollection"||h=="nodelist")&&(h="htmlarray"),h}function isUndefined(b){try{return valType(b)==="undefined"||b===void 0||b===null||valType(b)==="number"&&isNaN(b)}catch(h){return!0}return!1}function prev(b){var h=b.previousSibling;if(h==null)return null;if(h.nodeType==3){var a=prev(h);if(a&&a.nodeType==1)return a}else return h.nodeType==1?h:!1}function next(b){var h=b.nextSibling;if(h==null)return null;if(h.nodeType==3){var a=next(h);if(a&&a.nodeType==1)return a}else return h.nodeType==1?h:!1}function addListener(b,h,a,k){if(isUndefined(k)&&(k=!1),b.addEventListener)try{b.addEventListener(h,a,k)}catch(o){}else if(b.attachEvent)try{b.attachEvent("on"+h,a)}catch(o){}else b["on"+h]=a;return isUndefined(b.listenerList)&&(b.listenerList=[]),b.listenerList.push([h,a]),b}function removeListener(b,h,a,k){if(isUndefined(k)&&(k=!1),b.removeEventListener)try{b.removeEventListener(h,a,k)}catch(G){}else if(b.detachEvent)try{b.detachEvent("on"+h,a)}catch(G){}else b["on"+h]=null;if(!isUndefined(b.listenerList)){for(var o=[],T=0;T<b.listenerList.length;T++)(b.listenerList[T][0]!=h||b.listenerList[T][1]!=a)&&o.push(b.listenerList[T]);b.listenerList=o}return b}function formatSeconds(b){isUndefined(b)&&(b=0);var h=parseInt(b);isUndefined(h)&&(h=0),h<0&&(h=0);var a=Math.floor(h/3600)<10?"0"+Math.floor(h/3600):Math.floor(h/3600),k=Math.floor(h/60%60)<10?"0"+Math.floor(h/60%60):Math.floor(h/60%60),o=Math.floor(h%60)<10?"0"+Math.floor(h%60):Math.floor(h%60),T="";return a!=="00"&&(T+=a+":"),T+=k+":"+o,T}function date(b,h){isUndefined(h)&&(h=new Date),h.toString().length<13&&(h=h*1e3);var a,k=h?new Date(h):new Date,o=function(F,X){return(F=F+"").length<X?new Array(++X-F.length).join("0")+F:F},T=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],G={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"},le=["","January","February","March","April","May","June","July","August","September","October","November","December"],M={d:function(){return o(M.j(),2)},D:function(){return M.l().substr(0,3)},j:function(){return k.getDate()},l:function(){return T[M.w()]},N:function(){return M.w()+1},S:function(){return G[M.j()]?G[M.j()]:"th"},w:function(){return k.getDay()},z:function(){return(k-new Date(k.getFullYear()+"/1/1"))/864e5>>0},W:function(){var F=M.z(),X=364+M.L()-F,L,ae=(new Date(k.getFullYear()+"/1/1").getDay()||7)-1;return X<=2&&(k.getDay()||7)-1<=2-X?1:F<=2&&ae>=4&&F>=6-ae?(L=new Date(k.getFullYear()-1+"/12/31"),date("W",Math.round(L.getTime()/1e3))):1+(ae<=3?(F+ae)/7:(F-(7-ae))/7)>>0},F:function(){return le[M.n()]},m:function(){return o(M.n(),2)},M:function(){return M.F().substr(0,3)},n:function(){return k.getMonth()+1},t:function(){var F;return(F=k.getMonth()+1)==2?28+M.L():F&1&&F<8||!(F&1)&&F>7?31:30},L:function(){var F=M.Y();return!(F&3)&&(F%100||!(F%400))?1:0},Y:function(){return k.getFullYear()},y:function(){return(k.getFullYear()+"").slice(2)},a:function(){return k.getHours()>11?"pm":"am"},A:function(){return M.a().toUpperCase()},B:function(){var F=(k.getTimezoneOffset()+60)*60,X=k.getHours()*3600+k.getMinutes()*60+k.getSeconds()+F,L=Math.floor(X/86.4);return L>1e3&&(L-=1e3),L<0&&(L+=1e3),String(L).length==1&&(L="00"+L),String(L).length==2&&(L="0"+L),L},g:function(){return k.getHours()%12||12},G:function(){return k.getHours()},h:function(){return o(M.g(),2)},H:function(){return o(k.getHours(),2)},i:function(){return o(k.getMinutes(),2)},s:function(){return o(k.getSeconds(),2)},O:function(){var F=o(Math.abs(k.getTimezoneOffset()/60*100),4);return k.getTimezoneOffset()>0?F="-"+F:F="+"+F,F},P:function(){var F=M.O();return F.substr(0,3)+":"+F.substr(3,2)},c:function(){return M.Y()+"-"+M.m()+"-"+M.d()+"T"+M.h()+":"+M.i()+":"+M.s()+M.P()},U:function(){return Math.round(k.getTime()/1e3)}};return b.replace(/([a-zA-Z])/g,function(F,X){var L="";return F!=X?L=X:M[X]?L=M[X]():L=X,L})}function dataURLtoBlob(b){for(var h=b.split(","),a=h[0].match(/:(.*?);/)[1],k=atob(h[1]),o=k.length,T=new Uint8Array(o);o--;)T[o]=k.charCodeAt(o);return new Blob([T],{type:a})}function decodeURIString(b){for(var h in b){if(valType(b[h])=="string"&&b[h])try{b[h]=decodeURI(b[h])}catch(a){}valType(b[h])=="object"&&(b[h]=decodeURIString(b[h]))}return b}function getApp(){var b=navigator.userAgent.toLowerCase();if(b.indexOf("iphone")>-1)return"iphone"}function cookie(b,h,a,k){isUndefined(a)&&(a=""),isUndefined(k)&&(k="/");var o=";domain="+a+";path="+k;location.protocol=="https"&&(o+=";SameSite=None;Secure=true");var T=function(M,F){var X=31104e6,L=new Date;L.setTime(L.getTime()+X);try{document.cookie=M+"="+escape(F)+";expires="+L.toGMTString()+o}catch(ae){console.error(ae)}},G=function(M){var F,X=new RegExp("(^| )"+M+"=([^;]*)(;|$)");return(F=document.cookie.match(X))?unescape(F[2]):null},le=function(M){var F=new Date;F.setTime(F.getTime()-1);var X=G(M);X!=null&&(document.cookie=M+"="+X+";expires="+F.toGMTString()+o)};if(!isUndefined(b)&&!isUndefined(h))return h=="delete"?(le(b),null):(T(b,h),G(b));if(!isUndefined(b)&&isUndefined(h))return G(b);isUndefined(b)}function arrayToString(b){var h="";if(!isUndefined(b))for(var a=0;a<b.length;a++){var k=b[a];a>0&&(h+=",");for(var o=0;o<k.length;o++)o>0&&(h+=";"),valType(k[o])=="number"?h+=parseInt(k[o]*100):h+=k[o]}return h}function stringToArray(b){var h=[];if(!isUndefined(b))for(var a=b.split(","),k=0;k<a.length;k++){var o=a[k].split(";");o[1]=parseInt(o[1])*.01,o[2]=parseInt(o[2])*.01,h.push(o)}return h}function documentHidden(b){isUndefined(document.visibilityState)||(b(document.visibilityState==="visible"?"show":"hidden"),addListener(document,"visibilitychange",function(){b(document.visibilityState==="visible"?"show":"hidden")}))}return ckplayerEmbed});
1
+ (function(v,p){typeof exports=="object"&&typeof module!="undefined"?module.exports=p():typeof define=="function"&&define.amd?define(p):(v=v||self,v.ckplayer=p())})(this,function(){"use strict";var language={play:"%E6%92%AD%E6%94%BE",pause:"%E6%9A%82%E5%81%9C",refresh:"%E9%87%8D%E6%92%AD",full:"%E5%85%A8%E5%B1%8F",exitFull:"%E9%80%80%E5%87%BA%E5%85%A8%E5%B1%8F",webFull:"%E9%A1%B5%E9%9D%A2%E5%85%A8%E5%B1%8F",exitWebFull:"%E9%80%80%E5%87%BA%E9%A1%B5%E9%9D%A2%E5%85%A8%E5%B1%8F",theatre:"%E5%89%A7%E5%9C%BA%E6%A8%A1%E5%BC%8F",exitTheatre:"%E9%80%80%E5%87%BA%E5%89%A7%E5%9C%BA%E6%A8%A1%E5%BC%8F",volume:"%E9%9F%B3%E9%87%8F%EF%BC%9A",muted:"%E9%9D%99%E9%9F%B3",exitmuted:"%E6%81%A2%E5%A4%8D%E9%9F%B3%E9%87%8F",seek:"seek%EF%BC%9A",waiting:"%E7%BC%93%E5%86%B2",live:"%E7%9B%B4%E6%92%AD%E4%B8%AD",backLive:"%E8%BF%94%E5%9B%9E%E7%9B%B4%E6%92%AD",lookBack:"%E5%9B%9E%E7%9C%8B%EF%BC%9A",next:"%E4%B8%8B%E4%B8%80%E9%9B%86",screenshot:"%E8%A7%86%E9%A2%91%E6%88%AA%E5%9B%BE",smallwindows:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E6%92%AD%E6%94%BE%E5%8A%9F%E8%83%BD",playbackrate:"%E5%80%8D%E9%80%9F",playbackrateSuffix:"%E5%80%8D",track:"%E5%AD%97%E5%B9%95",noTrack:"%E6%97%A0%E5%AD%97%E5%B9%95",definition:"%E6%B8%85%E6%99%B0%E5%BA%A6",switchTo:"%E5%88%87%E6%8D%A2%E6%88%90%EF%BC%9A",closeTime:"%7Bseconds%7D%E7%A7%92%E5%90%8E%E5%8F%AF%E5%85%B3%E9%97%AD%E5%B9%BF%E5%91%8A",closeAd:"%E5%85%B3%E9%97%AD%E5%B9%BF%E5%91%8A",second:"%E7%A7%92",details:"%E6%9F%A5%E7%9C%8B%E8%AF%A6%E6%83%85",copy:"%E5%A4%8D%E5%88%B6",copySucceeded:"%E5%A4%8D%E5%88%B6%E6%88%90%E5%8A%9F%EF%BC%8C%E5%8F%AF%E8%B4%B4%E7%B2%98%EF%BC%81",smallwindowsOpen:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%BC%80%E5%90%AF",smallwindowsClose:"%E5%B0%8F%E7%AA%97%E5%8F%A3%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%85%B3%E9%97%AD",screenshotStart:"%E6%88%AA%E5%9B%BE%E4%B8%AD%EF%BC%8C%E8%AF%B7%E7%A8%8D%E5%80%99...",screenshotClose:"%E6%88%AA%E5%9B%BE%E5%8A%9F%E8%83%BD%E5%B7%B2%E5%85%B3%E9%97%AD",loopOpen:"%E5%BE%AA%E7%8E%AF%E6%92%AD%E6%94%BE",loopClose:"%E5%B7%B2%E5%85%B3%E9%97%AD%E5%BE%AA%E7%8E%AF%E6%92%AD%E6%94%BE",close:"%E5%85%B3%E9%97%AD",down:"%E4%B8%8B%E8%BD%BD",p50:"50%25",p75:"75%25",p100:"100%25",timeScheduleAdjust:{prohibit:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%8B%96%E5%8A%A8",prohibitBackOff:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E9%87%8D%E5%A4%8D%E8%A7%82%E7%9C%8B",prohibitForward:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E5%BF%AB%E8%BF%9B",prohibitLookBack:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%92%AD%E6%94%BE%E9%83%A8%E5%88%86%E5%86%85%E5%AE%B9",prohibitForwardNotViewed:"%E8%A7%86%E9%A2%91%E7%A6%81%E6%AD%A2%E6%92%AD%E6%94%BE%E6%9C%AA%E8%A7%82%E7%9C%8B%E7%9A%84%E9%83%A8%E5%88%86"},error:{noMessage:"%E6%9C%AA%E7%9F%A5%E9%94%99%E8%AF%AF",supportVideoError:"%E8%AF%A5%E6%B5%8F%E8%A7%88%E5%99%A8%E7%89%88%E6%9C%AC%E5%A4%AA%E4%BD%8E%EF%BC%8C%E5%BB%BA%E8%AE%AE%E6%9B%B4%E6%8D%A2%E6%88%90%E5%85%B6%E5%AE%83%E6%B5%8F%E8%A7%88%E5%99%A8",videoTypeError:"%E8%AF%A5%E6%B5%8F%E8%A7%88%E5%99%A8%E4%B8%8D%E6%94%AF%E6%8C%81%E6%92%AD%E6%94%BE%E8%AF%A5%E8%A7%86%E9%A2%91%EF%BC%8C%E5%BB%BA%E8%AE%AE%E6%9B%B4%E6%8D%A2%E6%88%90%E5%85%B6%E5%AE%83%E6%B5%8F%E8%A7%88%E5%99%A8",loadingFailed:"%E5%8A%A0%E8%BD%BD%E5%A4%B1%E8%B4%A5",emptied:"%E8%A7%86%E9%A2%91%E6%96%87%E4%BB%B6%E5%8A%A0%E8%BD%BD%E8%BF%87%E7%A8%8B%E4%B8%AD%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF",screenshot:"%E8%A7%86%E9%A2%91%E6%88%AA%E5%9B%BE%E5%A4%B1%E8%B4%A5",ajax:"Ajax%E6%95%B0%E6%8D%AE%E8%AF%B7%E6%B1%82%E9%94%99%E8%AF%AF",noVideoContainer:"%E6%9C%AA%E6%89%BE%E5%88%B0%E6%94%BE%E7%BD%AE%E8%A7%86%E9%A2%91%E7%9A%84%E5%AE%B9%E5%99%A8"}},videoObjectDefault={container:"",volume:.8,poster:"",autoplay:!1,loop:!1,live:!1,rotate:0,zoom:0,ad:null,backLive:!1,seek:0,next:null,loaded:null,plug:"",duration:0,preview:null,prompt:null,crossOrigin:"",video:null,type:"",playbackrate:1,ended:null,webFull:!1,theatre:null,controls:!1,rightBar:null,smallWindows:null,smallWindowsDrag:!0,screenshot:!1,timeScheduleAdjust:1,logo:"",menu:null,information:{"Load:":"{loadTime} second","Duration:":"{duration} second","Size:":"{videoWidth}x{videoHeight}","Volume:":"{volume}%","Fps:":"{fps}fps","Sudio decoded:":"{audioDecodedByteCount} Byte","Video decoded:":"{videoDecodedByteCount} Byte"},track:null,title:"",language:"",barHideTime:1500,playbackrateOpen:!0,playbackrateList:[.75,1,1.25,1.5,2,4],cookie:null,domain:null,cookiePath:"/",documentFocusPause:!1,mouseWheelVolume:2,keyVolume:2,errorShow:!0,pluginPath:"",autoPlug:!0,preferBuiltinPlug:!0,cdnFallback:!0},ckplayerPlusDefaultCdn="https://cdn.jsdelivr.net/npm/ckplayer-plus@1.1.2/dist/";function ckplayerEmbed(v){var p=[{title:"ckplayer",link:"http://www.ckplayer.com"},{title:"version:X3",underline:!0},{title:"about",click:"aboutShow"}],a={},k={},o=null,T=0,G="",de=!1,M=!0,L=!0,_=0,F=0,ne=null,Ie=0,we=!1,He=!1,Le=0,Ft=!1,oe=-1,ue=!1,Re=-1,Qe=0,se=0,me=0,te=-1,$=0,je=!0,pt="",Ne=null,Ve=null,ve=null,et=null,tt=null,qe=null,ht=null,Ee=!0,Ye=null,xe=!1,hi=0,Ce=0,De=null,h=null,it=!1,rn=!1,Lt=!0,Ct=!0,Se=null,z=null,Xe=null,vt=!1,e={},b=null,C=null,S=null,re=null,I=null,D=null,St=!0,bt="",Ae=0,fe=100,mt=!1,gt=!1,Ue="ckplayer-player-cookie",ce="",Me=0,vi=[],Pt=!0,Fe=!1;function _e(t){if(typeof t=="string"){var i=t.replace(/\(\s*\)\s*;?\s*$/,"").trim();if(/^[A-Za-z_$][\w$]*(\.[A-Za-z_$][\w$]*)*$/.test(i)){for(var r=i.split("."),n=typeof window!="undefined"?window:this,s=n,l=0;l<r.length;l++){if(s==null)return;n=s,s=s[r[l]]}if(typeof s=="function")return s.call(n)}}}var nt=function(t){if(isUndefined(t))return f.add=f.into=nt,f;language=decodeURIString(language),isUndefined(window.ckplayerLanguage)||(language=mergeObj(language,window.ckplayerLanguage)),B(),documentHidden(function(n){B("visibilityState",n)}),bt=getApp(),k={};for(var i in videoObjectDefault)k[i]=videoObjectDefault[i];if(valType(t)=="string"&&(t.substr(0,8)=="website:"||t.substr(0,4)=="url:")){var r="";t.substr(0,8)=="website:"&&(r=t.substring(8)),t.substr(0,4)=="url:"&&(r=t.substring(4)),ajax({url:r,success:function(n){return n?nt(n):(Ze(language.error.ajax+",url:"+r),null)}})}else return valType(t)=="object"?(k=standardization(k,t),!isUndefined(t.container)&&t.container?(b=W(t.container),b?Mt(t):Dt(t)):Dt(t)):(Ze(language.error.noVideoContainer),null)},Dt=function(t){return documentReady(function(){return isUndefined(t.container)?bi(t):(b=W(t.container),b?Mt(t):(Ze(language.error.noVideoContainer),null))}),null},bi=function(t){if(valType(t.video)=="string"&&(t.video.substr(0,8)=="website:"||t.video.substr(0,4)=="url:")){k=standardization(k,t);var i="";t.video.substr(0,8)=="website:"&&(i=t.video.substring(8)),t.video.substr(0,4)=="url:"&&(i=t.video.substring(4)),ajax({url:i,success:function(r){return r?nt(r):(Ze(language.error.ajax+",url:"+i),null)}})}else return Ze(language.error.noVideoContainer),null},Mt=function(t){if(a=standardization(k,t),a.language){if(!isUndefined(window.ckplayerLanguage))return language=mergeObj(language,window.ckplayerLanguage),yt(t);var i=rt("language",a.language+".js");Ke(i,function(){return isUndefined(window.ckplayerLanguage)||(language=mergeObj(language,window.ckplayerLanguage)),yt(t)})}else return yt(t)},Wt=function(t){return!t||valType(t)!="string"?!0:/\/(?:assets|\.vite\/deps|_next\/static|chunks?)\/?$/i.test(t)},rt=function(t,i){var r="";if(a&&a.pluginPath?r=a.pluginPath:typeof window!="undefined"&&window.ckplayerBasePath&&(r=window.ckplayerBasePath),r&&Wt(r)&&(r=""),r)return r.slice(-1)!=="/"&&(r+="/"),r+t+"/"+i;var n=getPath(t)+i;if(n&&n.indexOf(t+"/")>-1&&n.indexOf("undefined")===-1&&!Wt(getPath()))return n;var s=!a||a.cdnFallback!==!1,l=typeof window!="undefined"&&window.ckplayerPlusCdn?window.ckplayerPlusCdn:ckplayerPlusDefaultCdn;return!s||!l||l.indexOf("1.1.2")>-1?t+"/"+i:(l.slice(-1)!=="/"&&(l+="/"),l+t+"/"+i)},mi=function(t){var i="";if(valType(t)=="string"?i=t:valType(t)=="array"&&t.length?valType(t[0])=="array"&&t[0].length?i=t[0][0]:valType(t[0])=="string"&&(i=t[0]):valType(t)=="object"&&t&&(i=t.url||t.file||""),!i||valType(i)!="string"||i.substr(0,8)=="website:"||i.substr(0,4)=="url:")return"";var r=i.split("?")[0].split("#")[0].toLowerCase();return r.indexOf(".m3u8")>-1?"hls.js":r.indexOf(".flv")>-1?"flv.js":r.indexOf(".m2ts")>-1||r.indexOf(".mts")>-1||r.length>3&&r.substring(r.length-3)===".ts"?"mpegts.js":""},gi=function(t){if(a.autoPlug!==!1&&!a.plug){var i=mi(t);i&&(a.plug=i)}},yt=function(t){if(G=!(a.volume>0),!isUndefined(b)&&b!=null)valType(b)=="htmlarray"&&(b=b.eq(0));else return null;Qi(),Fe=valType(a.video)=="string"&&(a.video.substr(0,1)=="."&&a.video.indexOf("/")==-1||a.video.substr(0,1)=="#"),Fe&&(C=b.find(".ckplayer-ckplayer")?b.find(".ckplayer-ckplayer").eq(0):null,C&&(S=C.find(".ck-main")?C.find(".ck-main").eq(0):null),S&&(re=S.find(".ck-video")?S.find(".ck-video").eq(0):null)),(!C||!S||!re)&&(b.htm(""),C=w("ckplayer-ckplayer"),b.append(C),S=w("ck-main"),C.append(S),re=w("ck-video"),S.append(re)),o&&(o.remove(),o=null),Fe&&(o=W(a.video)?W(a.video).eq(0):null),o||(o=tn(),o.attr("width","100%").attr("height","100%"),re.append(o)),o.volume=a.volume,a.autoplay?(f.volume(0),f.muted(),de=!0,o.attr("preload","auto"),He=!0):o.attr("preload","metadata"),b.loop=a.loop,b.loop&&o.attr("loop","loop"),a.controls?o.controls=!0:o.controls=!1;try{Fe||(o.attr("controlslist","nodownload"),o.attr("x-webkit-airplay","true"),o.attr("x5-video-orientation","portraint"),o.attr("playsinline","true"),o.attr("webkit-playsinline","true"),o.attr("x5-playsinline","true")),a.crossOrigin&&(o.useCORS=!0,o.crossOrigin=a.crossOrigin)}catch(i){}if(b.smallWindows=!0,b.webFull=!1,b.theatre=!1,wi(),a.rotate>0&&f.rotate(a.rotate),a.zoom>0&&f.zoom(a.zoom),isUndefined(o.canPlayType))return b.error={code:5,message:language.error.supportVideoError},B("error",b.error),le(),f;if(Ei(),!isUndefined(a.loaded))if(valType(a.loaded)=="function")try{a.loaded(f)}catch(i){}else valType(a.loaded)=="string"&&typeof console!="undefined"&&console.warn&&console.warn("[ckplayer] vars.loaded as string is ignored for security. Pass a function instead.");return We(Fe?o.attr("src"):a.video),f},kt=function(){if(isUndefined(a.seek))return 0;if(valType(a.seek)=="number"&&a.seek>0)return a.seek;if(valType(a.seek)=="string"&&a.seek=="cookie"&&ce){var t=f.cookie(ce);return t&&t.time?t.time:0}return valType(a.seek)=="string"&&a.seek!==""&&!isNaN(parseFloat(a.seek))?parseFloat(a.seek):0},zt=function(t){!t||t<=0||(F=t,$=Math.max($,t),te<0&&(te=t))},yi=function(){a.cookie&&(valType(a.cookie)=="array"&&a.cookie.length>=2&&(a.cookie[0]&&valType(a.cookie[0])=="string"&&(ce=a.cookie[0]),a.cookie[1]&&valType(a.cookie[1])=="number"&&(Me=a.cookie[1])),valType(a.cookie)=="object"&&!isUndefined(a.cookie.name)&&(ce=a.cookie.name,!isUndefined(a.cookie.hour)&&valType(a.cookie.hour)=="number"&&(Me=a.cookie.hour)),valType(a.cookie)=="string"&&(ce=a.cookie),ce&&(ce=ce.replace(/[ ]*,[ ]*|[ ]+/g,"").replace(/[ ]*;[ ]*|[ ]+/g,""))),F||zt(kt())},Ot=function(t,i){if(!D||typeof D.startLoad!="function"||!o)return!1;(isNaN(t)||t<0)&&(t=0);var r=o.currentTime||0;if(!i){if(oe>=0&&Math.abs(oe-t)<1.5&&ot(t)&&Math.abs(r-t)<2.5)return!0;if(ot(t)&&Math.abs(r-t)<1.5)return oe=t,!0;if(Re>=0&&Math.abs(Re-t)<1.5&&Date.now()-Qe<4e3)return!0}Re=t,Qe=Date.now(),oe=t;try{D.startLoad(t)}catch(n){return!1}return!0},ki=function(){if($e(),we=!1,Ft=!1,oe=-1,ue=!1,Re=-1,Qe=0,Le=0,D){try{D.destroy()}catch(t){}D=null}if(I){try{I.pause(),I.unload(),I.detachMediaElement(),I.destroy()}catch(t){}I=null}},We=function(t){var i=0;if(gi(t),yi(),ki(),(o.attr("src")||o.htm())&&f.pause(),o.attr("src")&&!Fe&&(o.attr("src",""),o.removeAttr("src")),!isUndefined(o.textTracks)&&o.textTracks.length>0)for(i=o.find("track").length-1;i>-1;i--)o.find("track").eq(i).remove();Fe||o.htm(""),isUndefined(a.ad)||(h=a.ad);var r="";if(valType(t)=="string")if(t.substr(0,8)=="website:"||t.substr(0,4)=="url:"){var n="";t.substr(0,8)=="website:"&&(n=t.substring(8)),t.substr(0,4)=="url:"&&(n=t.substring(4)),ajax({url:n,success:function(l){l!=null?(a=standardization(k,l),We(a.video)):(b.error={code:8,message:language.error.ajax},B("error",b.error),le())}});return}else a.plug&&!at(t)?wt(t):Fe||o.attr("src",t),Et();else if(valType(t)=="array"){for(i=0;i<t.length;i++)if(valType(t[i])=="array")if(a.plug&&!at(t[i][0]))wt(t[i][0]);else{var s=' type="'+t[i][1]+'"';t[i].length>1&&(r+='<source src="'+decodeURIComponent(t[i][0])+'"'+s+">")}r&&o.htm(r),Et()}else valType(t)=="object"&&(a.plug?wt(t):(b.error={code:10,message:language.error.emptied},B("error",b.error),le()),Et());!isUndefined(o.find("source"))&&o.find("source").length>0&&o.find("source").eq(o.find("source").length-1).addListener("error",J.error),Si(),_t(),je&&Gt()},wt=function(t){switch(a.plug){case"hls.js":It(t);break;case"flv.js":Ht(t);break;case"mpegts.js":Rt(t);break;case"dash.js":b.error={code:10,message:language.error.emptied},B("error",b.error),le();break;default:valType(a.plug)=="function"?a.plug(o,t):(b.error={code:10,message:language.error.emptied},B("error",b.error),le());break}},It=function(t){var i=function(){if(typeof Hls!="undefined"&&!isUndefined(Hls)&&Hls.isSupported()){if(D){try{D.destroy()}catch(s){}D=null}var r={maxBufferLength:30,maxMaxBufferLength:60},n=F;n||(n=kt()),n&&n>0&&(isUndefined(a.live)||!a.live)&&($=Math.max($,n),te<0&&(te=n),F=n,oe=n,ue=!0),D=new Hls(r),D.loadSource(t),D.attachMedia(o),D.on(Hls.Events.MANIFEST_PARSED,function(){if(ue&&F>0){var s=ze(F);try{D.startLoad(s)}catch(l){}setTimeout(function(){if(!(!ue||!F)){var l=F;if(Oe(l)){Pe(l);return}var E=ze(l);ue=!1,Pe(E)}},5e3);return}Ft||ge()}),D.on(Hls.Events.FRAG_BUFFERED,function(s,l){if(ue&&F>0){Oe(F)&&Pe(F);return}if(!(oe<=0||!l||!l.frag)){var E=l.frag.start,u=E+l.frag.duration;oe>=E-.5&&oe<=u+.5&&(M||(M=!0,e.buffer&&e.buffer.hide()))}}),D.on(Hls.Events.ERROR,function(s,l){var E=9,u=language.error.loadingFailed,g=l.fatal;if(isUndefined(l.response)||(isUndefined(l.response.code)||(E=l.response.code),!isUndefined(l.response.text)&&l.response.text?u=l.response.text:isUndefined(s)||(u=s)),g&&l.type===Hls.ErrorTypes.MEDIA_ERROR&&D&&typeof D.recoverMediaError=="function")try{D.recoverMediaError(),g=!1}catch(A){}b.error={code:E,message:u},B("error",b.error),g&&le()})}else at(t)&&o.attr("src",t)};if(typeof Hls!="undefined"&&!isUndefined(Hls)&&!a.preferBuiltinPlug){i();return}Ke(rt("hls.js","hls.min.js"),i)},Ht=function(t){var i=function(){if(typeof flvjs!="undefined"&&!isUndefined(flvjs)&&flvjs.isSupported()){var r={type:"flv",url:t};valType(t)=="object"&&(r=t),a.live&&(r.isLive=!0),I&&(I.pause(),I.unload(),I.detachMediaElement(),I.destroy(),I=null),I=flvjs.createPlayer(r),I.attachMediaElement(o),I.load(),I.on(flvjs.Events.METADATA_ARRIVED,function(n){J.loadedMetaData()}),I.on(flvjs.Events.ERROR,function(n,s,l){b.error={code:l.code,message:l.msg},B("error",b.error),le()})}};if(typeof flvjs!="undefined"&&!isUndefined(flvjs)&&!a.preferBuiltinPlug){i();return}Ke(rt("flv.js","flv.min.js"),i)},Rt=function(t){var i=function(){if(typeof mpegts!="undefined"&&!isUndefined(mpegts)&&mpegts.getFeatureList().mseLivePlayback){var r={type:"mse",url:t};valType(t)=="object"&&(r=t),a.live&&(r.isLive=!0),I&&(I.pause(),I.unload(),I.detachMediaElement(),I.destroy(),I=null),I=mpegts.createPlayer(r),I.attachMediaElement(o),I.load(),I.on(mpegts.Events.METADATA_ARRIVED,function(n){J.loadedMetaData()}),I.on(mpegts.Events.ERROR,function(n,s,l){b.error={code:l.code,message:l.msg},B("error",b.error),le()})}};if(typeof mpegts!="undefined"&&!isUndefined(mpegts)&&!a.preferBuiltinPlug){i();return}Ke(rt("mpegts.js","mpegts.min.js"),i)},at=function(t,i){var r=[{vidType:"video/ogg",codType:"theora, vorbis"},{vidType:"video/mp4",codType:"avc1.4D401E, mp4a.40.2"},{vidType:"video/mp4",codType:"avc1"},{vidType:"video/mp4",codType:"hevc"},{vidType:"video/webm",codType:"vp8.0, vorbis"},{vidType:"video/webm",codType:"vp9"},{vidType:"",codType:"application/x-mpegURL"},{vidType:"",codType:"application/vnd.apple.mpegurl"}],n={ogg:r[0],mp4:[r[1],r[2],r[3]],webm:[r[4],r[5]],m3u8:[r[6],r[7]]},s=[],l="",E=function(x){var P=x.vidType,V="";P?V=P+'; codecs="'+x.codType+'"':V=x.codType;var Y=o.canPlayType(V);return Y==""&&(Y="no"),Y},u=function(x){return x.replace(/.+\./,"")};if(isUndefined(i)){if(valType(t)=="string"){if(a.type)for(l in r)r[l].vidType==a.type&&s.push(r[l]);else if(u(t)&&u(t)in n){var g=n[u(t)];if(valType(g)=="array")for(var A=0;A<g.length;A++)s.push(g[A]);else s.push(g)}}}else s.push(r[i]);var U=!1;if(s.length>0)for(var A=0;A<s.length;A++)E(s[A])!="no"&&(U=!0);return!U&&!a.plug&&(b.error={code:6,message:language.error.videoTypeError},B("error",b.error),le()),U},wi=function(){e.loading=w("ck-loading"),S.append(e.loading),e.bar=w("ck-bar"),S.append(e.bar),e.rightBar=w("ck-right-bar ck-right-bar-hide"),S.append(e.rightBar),e.topBar=w("ck-top-bar ck-top-bar-hide"),S.append(e.topBar),e.bar.pbox=w("ck-bar-progress"),e.bar.pbox.bg=w("ck-bar-progress-bg"),e.bar.pbox.load=w("ck-bar-progress-load"),e.bar.pbox.bg.append(e.bar.pbox.load),e.bar.pbox.play=w("ck-bar-progress-play"),e.bar.pbox.bg.append(e.bar.pbox.play),e.bar.pbox.mouseLine=w("ck-bar-progress-mouseline"),e.bar.pbox.bg.append(e.bar.pbox.mouseLine),e.bar.pbox.slider=w("ck-bar-progress-slider"),e.bar.pbox.append(e.bar.pbox.bg).append(e.bar.pbox.slider),e.bar.append(e.bar.pbox),e.bar.mouseout(zi).mouseover(Oi),valType(a.live)=="number"&&(e.bar.pbox.play.css({width:"100%"}),e.bar.pbox.slider.css({left:100-e.bar.pbox.slider.getWidth()*100/e.bar.pbox.bg.getWidth()+"%"})),e.bar.playAndPause=w("ck-bar-playandpause"),e.bar.append(e.bar.playAndPause),e.bar.playAndPause.play=q("ck-bar-btn ck-btn-play"),e.bar.playAndPause.play.click(f.play),e.bar.playAndPause.play.mouseover(function(){N(this,language.play)}),e.bar.playAndPause.append(e.bar.playAndPause.play),e.bar.playAndPause.pause=q("ck-bar-btn ck-btn-pause"),e.bar.playAndPause.pause.click(f.pause),e.bar.playAndPause.pause.mouseover(function(){N(this,language.pause)}),e.bar.playAndPause.append(e.bar.playAndPause.pause),e.bar.playAndPause.pause.hide(),e.bar.playAndPause.refresh=q("ck-bar-btn ck-btn-refresh"),e.bar.playAndPause.refresh.click(f.play),e.bar.playAndPause.refresh.mouseover(function(){N(this,language.refresh)}),e.bar.playAndPause.append(e.bar.playAndPause.refresh),e.bar.nextEpisode=w("ck-bar-btn ck-bar-next"),e.bar.append(e.bar.nextEpisode),e.bar.nextEpisode.click(Xi).mouseover(Yi).mouseout(function(){isUndefined(e.next)||f.closeLayer(e.next)}),isUndefined(a.next)&&e.bar.nextEpisode.hide();var t=formatSeconds(f.time())+"/"+formatSeconds(T);a.live&&(t=language.live),e.time=w("ck-bar-time",t),e.bar.append(e.time),e.bar.backLive=q("ck-btn-backlive",language.backLive),e.bar.append(e.bar.backLive),e.bar.backLive.mouseover(function(){N(this,language.backLive)}).click(function(){B("backLive")}),e.bar.backLive.hide(),e.bar.fullAndExit=w("ck-bar-fullandexit"),e.bar.append(e.bar.fullAndExit),e.bar.fullAndExit.full=q("ck-bar-btn ck-btn-full"),e.bar.fullAndExit.full.click(f.fullOrExit),e.bar.fullAndExit.full.mouseover(function(){N(this,language.full)}),e.bar.fullAndExit.append(e.bar.fullAndExit.full),e.bar.fullAndExit.exitFull=q("ck-bar-btn ck-btn-exitfull"),e.bar.fullAndExit.exitFull.click(f.fullOrExit),e.bar.fullAndExit.exitFull.mouseover(function(){N(this,language.exitFull)}),e.bar.fullAndExit.append(e.bar.fullAndExit.exitFull),e.bar.webFullAndExit=w("ck-bar-webfullandexit"),e.bar.append(e.bar.webFullAndExit),e.bar.webFullAndExit.webFull=q("ck-bar-btn ck-btn-webfull"),e.bar.webFullAndExit.webFull.click(f.webFull),e.bar.webFullAndExit.webFull.mouseover(function(){N(this,language.webFull)}),e.bar.webFullAndExit.append(e.bar.webFullAndExit.webFull),e.bar.webFullAndExit.exitWebFull=q("ck-bar-btn ck-btn-exitwebfull"),e.bar.webFullAndExit.exitWebFull.click(f.exitWebFull),e.bar.webFullAndExit.exitWebFull.mouseover(function(){N(this,language.exitWebFull)}),e.bar.webFullAndExit.append(e.bar.webFullAndExit.exitWebFull),a.webFull||e.bar.webFullAndExit.hide(),e.bar.theatreAndExit=w("ck-bar-theatreandexit"),e.bar.append(e.bar.theatreAndExit),e.bar.theatreAndExit.theatre=q("ck-bar-btn ck-btn-theatre"),e.bar.theatreAndExit.theatre.click(f.theatre),e.bar.theatreAndExit.theatre.mouseover(function(){N(this,language.theatre)}),e.bar.theatreAndExit.append(e.bar.theatreAndExit.theatre),e.bar.theatreAndExit.exitTheatre=q("ck-bar-btn ck-btn-exittheatre"),e.bar.theatreAndExit.exitTheatre.click(f.exitTheatre),e.bar.theatreAndExit.exitTheatre.mouseover(function(){N(this,language.exitTheatre)}),e.bar.theatreAndExit.append(e.bar.theatreAndExit.exitTheatre),a.theatre||e.bar.theatreAndExit.hide(),e.bar.vbox=w("ck-bar-volumebox"),e.bar.append(e.bar.vbox),e.bar.vbox.muted=q("ck-bar-btn ck-btn-muted"),e.bar.vbox.muted.click(f.muted),e.bar.vbox.append(e.bar.vbox.muted),e.bar.vbox.exitMuted=q("ck-bar-btn ck-btn-exitmuted"),e.bar.vbox.exitMuted.click(f.exitMuted),e.bar.vbox.append(e.bar.vbox.exitMuted),e.bar.vbox.volume=w("ck-bar-volume"),e.bar.vbox.append(e.bar.vbox.volume),e.bar.vbox.volume.box=w("ck-bar-volumex"),e.bar.vbox.volume.append(e.bar.vbox.volume.box),e.bar.vbox.volume.txt=w("ck-bar-volume-txt","0"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.txt),e.bar.vbox.volume.bg=w("ck-bar-volume-bg"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.bg),e.bar.vbox.volume.pp=w("ck-bar-volume-pp"),e.bar.vbox.volume.bg.append(e.bar.vbox.volume.pp),e.bar.vbox.volume.slider=w("ck-bar-volume-slider"),e.bar.vbox.volume.box.append(e.bar.vbox.volume.slider),e.bar.vbox.mouseDown=!1,e.bar.vbox.volume.show(),Bt(a.volume),Gi(),e.bar.vbox.volume.attr("style",""),e.bar.vbox.mouseover(function(){Bt(o.muted?0:o.volume)}),e.bar.playbackrate=w("ck-bar-playbackrate-box"),e.bar.append(e.bar.playbackrate),e.bar.playbackrate.button=w("ck-bar-playbackrate",language.playbackrate),e.bar.playbackrate.append(e.bar.playbackrate.button),e.bar.playbackrate.bgbox=w("ck-bar-playbackrate-bg-box ck-list-bg-box"),e.bar.playbackrate.append(e.bar.playbackrate.bgbox),Ri(),e.bar.track=w("ck-bar-track-box"),e.bar.append(e.bar.track),e.bar.track.button=w("ck-bar-track",language.track),e.bar.track.append(e.bar.track.button),e.bar.track.bgbox=w("ck-bar-track-bg-box ck-list-bg-box"),e.bar.track.append(e.bar.track.bgbox),e.bar.track.hide(),e.bar.definition=w("ck-bar-definition-box"),e.bar.append(e.bar.definition),e.bar.definition.button=w("ck-bar-definition",language.definition),e.bar.definition.append(e.bar.definition.button),e.bar.definition.bgbox=w("ck-bar-definition-bg-box ck-list-bg-box"),e.bar.definition.append(e.bar.definition.bgbox),e.bar.definition.hide(),e.rightBar.screenshot=q("ck-bar-btn ck-btn-screenshot"),e.rightBar.append(e.rightBar.screenshot),e.rightBar.screenshot.mouseover(function(){N(this,language.screenshot,null,"left")}),e.rightBar.screenshot.click(f.screenshot),e.rightBar.smallwindows=w("ck-right-bar-smallwindows"),e.rightBar.append(e.rightBar.smallwindows),e.rightBar.smallwindows.open=q("ck-bar-btn ck-btn-smallwindows-open"),e.rightBar.smallwindows.open.click(function(){N(this,language.smallwindowsClose,null,"left"),f.smallWindows(!1)}),e.rightBar.smallwindows.open.mouseover(function(){N(this,language.smallwindowsOpen,null,"left")}),e.rightBar.smallwindows.append(e.rightBar.smallwindows.open),e.rightBar.smallwindows.close=q("ck-bar-btn ck-btn-smallwindows-close"),e.rightBar.smallwindows.close.click(function(){N(this,language.smallwindowsOpen,null,"left"),f.smallWindows(!0)}),e.rightBar.smallwindows.close.mouseover(function(){N(this,language.smallwindowsClose,null,"left")}),e.rightBar.smallwindows.append(e.rightBar.smallwindows.close),e.rightBar.loop=w("ck-right-bar-loop"),e.rightBar.append(e.rightBar.loop),e.rightBar.loop.open=q("ck-bar-btn ck-btn-loop-open"),e.rightBar.loop.open.click(function(){N(this,language.loopClose,null,"left"),f.loop(!1)}),e.rightBar.loop.open.mouseover(function(){N(this,language.loopOpen,null,"left")}),e.rightBar.loop.append(e.rightBar.loop.open),e.rightBar.loop.close=q("ck-bar-btn ck-btn-loop-close"),e.rightBar.loop.close.click(function(){N(this,language.loopOpen,null,"left"),f.loop(!0)}),e.rightBar.loop.close.mouseover(function(){N(this,language.loopClose,null,"left")}),e.rightBar.loop.append(e.rightBar.loop.close),e.rightBar.mouseout(Ii).mouseover(Hi),e.screenshot=w("ck-screenshot"),S.append(e.screenshot),e.screenshot.img=w("ck-screenshot-img"),e.screenshot.append(e.screenshot.img),e.screenshot.bar=w("ck-screenshot-bar"),e.screenshot.append(e.screenshot.bar),e.screenshot.bar.down=ut(language.down,"","ck-screenshot-btn ck-screenshot-down"),e.screenshot.bar.append(e.screenshot.bar.down),e.screenshot.bar.close=q("ck-screenshot-btn ck-screenshot-close",language.close),e.screenshot.bar.close.click(f.closeScreenshot),e.screenshot.bar.append(e.screenshot.bar.close),e.topBar.zoomEle=w("ck-top-bar-zoom"),e.topBar.zoomEle.zoom50=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom50),e.topBar.zoomEle.zoom50.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom50.append(e.topBar.zoomEle.zoom50.left),e.topBar.zoomEle.zoom50.left.button=w("ck-top-bar-zoom-button-50"),e.topBar.zoomEle.zoom50.left.append(e.topBar.zoomEle.zoom50.left.button),e.topBar.zoomEle.zoom50.right=w("ck-top-bar-zoom-right",language.p50),e.topBar.zoomEle.zoom50.append(e.topBar.zoomEle.zoom50.right),e.topBar.zoomEle.zoom50.click(function(){f.zoom(50)}),e.topBar.zoomEle.zoom75=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom75),e.topBar.zoomEle.zoom75.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom75.append(e.topBar.zoomEle.zoom75.left),e.topBar.zoomEle.zoom75.left.button=w("ck-top-bar-zoom-button-75"),e.topBar.zoomEle.zoom75.left.append(e.topBar.zoomEle.zoom75.left.button),e.topBar.zoomEle.zoom75.right=w("ck-top-bar-zoom-right",language.p75),e.topBar.zoomEle.zoom75.append(e.topBar.zoomEle.zoom75.right),e.topBar.zoomEle.zoom75.click(function(){f.zoom(75)}),e.topBar.zoomEle.zoom100=w("ck-top-bar-zoom-container"),e.topBar.zoomEle.append(e.topBar.zoomEle.zoom100),e.topBar.zoomEle.zoom100.left=w("ck-top-bar-zoom-left"),e.topBar.zoomEle.zoom100.append(e.topBar.zoomEle.zoom100.left),e.topBar.zoomEle.zoom100.left.button=w("ck-top-bar-zoom-button-100"),e.topBar.zoomEle.zoom100.left.append(e.topBar.zoomEle.zoom100.left.button),e.topBar.zoomEle.zoom100.right=w("ck-top-bar-zoom-right",language.p100),e.topBar.zoomEle.zoom100.append(e.topBar.zoomEle.zoom100.right),e.topBar.zoomEle.zoom100.click(function(){f.zoom(100)}),e.topBar.append(e.topBar.zoomEle),e.topBar.titleEle=w("ck-top-bar-title",a.title),e.topBar.append(e.topBar.titleEle),e.topBar.timeEle=w("ck-top-bar-time"),e.topBar.append(e.topBar.timeEle),e.centerPlay=w("ck-center-play"),e.centerPlay.click(f.play),S.append(e.centerPlay),e.buffer=w("ck-buffer"),S.append(e.buffer),e.message=w("ck-message"),S.append(e.message),e.tip=w("ck-tip"),S.append(e.tip),e.tip.content=w("ck-content ck-content-float-auto"),e.tip.append(e.tip.content),e.tip.triangle=w("ck-triangle ck-triangle-auto"),e.tip.append(e.tip.triangle),N(o,"ckplayer"),e.tip.minHeight=e.tip.getHeight(),N(),e.ad=w("ck-yytf"),S.append(e.ad),e.ad.link=w("ck-yytf-front-link"),e.ad.append(e.ad.link),e.ad.link.click(Li),e.ad.picture=w("ck-yytf-front-picture"),e.ad.append(e.ad.picture),e.ad.top=w("ck-yytf-top"),e.ad.append(e.ad.top),e.ad.top.countDown=w("ck-yytf-countdown"),e.ad.top.append(e.ad.top.countDown),e.ad.top.closeTime=w("ck-yytf-closetime"),e.ad.top.append(e.ad.top.closeTime),e.ad.top.closeAd=w("ck-yytf-closead",language.closeAd),e.ad.top.append(e.ad.top.closeAd),e.ad.top.closeAd.click(Ci),e.ad.bottom=w("ck-yytf-bottom"),e.ad.append(e.ad.bottom),e.ad.bottom.fullAndExit=w("ck-yytf-fullandexit"),e.ad.bottom.append(e.ad.bottom.fullAndExit),e.ad.bottom.fullAndExit.full=q("ck-yytf-btn ck-yytf-fullandexit-full"),e.ad.bottom.fullAndExit.full.click(f.full),e.ad.bottom.fullAndExit.append(e.ad.bottom.fullAndExit.full),e.ad.bottom.fullAndExit.exitFull=q("ck-yytf-btn ck-yytf-fullandexit-exitfull"),e.ad.bottom.fullAndExit.append(e.ad.bottom.fullAndExit.exitFull),e.ad.bottom.fullAndExit.exitFull.click(f.exitFull),e.ad.bottom.mutedAndExit=w("ck-yytf-mutedandexit"),e.ad.bottom.append(e.ad.bottom.mutedAndExit),e.ad.bottom.mutedAndExit.muted=q("ck-yytf-btn ck-yytf-mutedandexit-muted"),e.ad.bottom.mutedAndExit.append(e.ad.bottom.mutedAndExit.muted),e.ad.bottom.mutedAndExit.muted.click(f.muted),e.ad.bottom.mutedAndExit.exitMuted=q("ck-yytf-btn ck-yytf-mutedandexit-exitmuted"),e.ad.bottom.mutedAndExit.append(e.ad.bottom.mutedAndExit.exitMuted),e.ad.bottom.mutedAndExit.exitMuted.click(f.exitMuted),e.ad.bottom.details=w("ck-yytf-details",language.details),e.ad.bottom.append(e.ad.bottom.details),e.ad.hide(),e.adPause=w("ck-pause-yytf"),S.append(e.adPause),e.about=w("ck-about"),S.append(e.about),e.about.bar=w("ck-about-bar"),e.about.append(e.about.bar),e.about.bar.copy=q("ck-bar-btn ck-btn-about-copy"),e.about.bar.append(e.about.bar.copy),e.about.bar.copy.click(Wi),e.about.bar.copy.mouseover(function(){N(this,language.copy,null,"left")}),e.about.bar.close=q("ck-bar-btn ck-btn-about-close"),e.about.bar.close.click(Mi),e.about.bar.close.mouseover(function(){N(this,language.close,null,"left")}),e.about.bar.append(e.about.bar.close),e.tempTime=w("ck-tempTime"),S.append(e.tempTime),e.bar.playAndPause.refresh.hide(),a.controls?(f.bar(!1),f.rightBar(!1),e.loading.hide(),e.centerPlay.hide()):(_t(),Pi(),Di()),bt=="iphone"&&e.loading.hide(),li(),C.mouseout(function(){L||Je()}).mouseover(function(){e.bar.hasClass("ck-bar-out")||(e.bar.removeClass("ck-bar-out"),S.removeClass("ck-nocursor")),e.rightBar.css("display")=="block"&&e.rightBar.removeClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.removeClass("ck-top-bar-hide")}).mousemove(function(){e.bar.hasClass("ck-bar-out")&&(e.bar.removeClass("ck-bar-out"),B("mouseActive",!0),S.removeClass("ck-nocursor"),Je()),e.rightBar.css("display")=="block"&&e.rightBar.removeClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.removeClass("ck-top-bar-hide")})},Ei=function(){o.addListener("stalled",J.stalled),o.addListener("suspend",J.suspend),o.addListener("loadeddata",J.loadedData),o.addListener("loadstart",J.loadStart),o.addListener("loadedmetadata",J.loadedMetaData),o.addListener("canplay",J.canPlay),o.addListener("timeupdate",J.timeUpDate),o.addListener("seeking",J.seeking),o.addListener("seeked",J.seeked),o.addListener("waiting",J.waiting),o.addListener("play",J.play),o.addListener("pause",J.pause),o.addListener("volumechange",J.volumeChange),o.addListener("ended",J.ended),o.addListener("error",J.error),isUndefined(o.emptied)||o.addListener("emptied",J.emptied),re.singleClick(function(){gt?gt=!1:f.playOrPause()}),S.doubleClick(f.fullOrExit),W(document).addListener("keydown",J.keydown),addListener(window,"resize",J.resize),isUndefined(a.smallWindows)||valType(a.smallWindows)=="boolean"&&a.smallWindows&&addListener(window,"scroll",$i),b.mouseWheel(J.mouseWheel)},B=function(t,i){try{Se!=null?(isUndefined(i)&&(i=null),z.dispatchEvent(t,i)):(Se=function(){this.listeners={}},Se.prototype.listeners=null,Se.prototype.addEventListener=function(r,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push(n),Xe=this.listeners},Se.prototype.removeEventListener=function(r,n){if(r in this.listeners){for(var s=this.listeners[r],l=0,E=s.length;l<E;l++)if(s[l]===n)return s.splice(l,1),this.removeEventListener(r,n);Xe=s}},Se.prototype.dispatchEvent=function(r,n){if(r in this.listeners)for(var s=this.listeners[r],l=0,E=s.length;l<E;l++)s[l].call(this,n)},z=new Se)}catch(r){console.error(r)}},xi=function(t){var i=[],r=cookie(Ue),n=0,s=0,l=Math.floor(Date.now()*.001);if(t=Math.floor(t*100),t=t*.01,Me||(Me=365*24),!r)i.push([ce,t,l+Me*3600]);else{i=stringToArray(r);var E=!1,u=[[ce,t,l+Me*3600]];for(n=0;n<i.length;n++)i[n][2]>l&&i[n][0]!=ce&&s<19&&(u.push(i[n]),s++);i=u}i.length>0&&(cookie(Ue,"delete",a.domain,a.cookiePath),cookie(Ue,arrayToString(i),a.domain,a.cookiePath)),vi=i},Et=function(){if(!isUndefined(o.textTracks)){var t=0;if(!isUndefined(a.track)&&valType(a.track)=="array"&&!o.find("track")){var i="",r=a.track;for(e.bar.track.show(),t=0;t<r.length;t++){var n="";!n&&!isUndefined(r[t].default)&&r[t].default&&(n=" default"),i+='<track src="'+r[t].src+'" srclang="'+r[t].srclang+'" kind="'+r[t].kind+'" label="'+r[t].label+'"'+n+">"}if(o){var s=o.htm()+i;o.htm(s)}o.find("track")&&!vt&&(vt=!0,Ni())}}},ot=function(t){if(!o||isUndefined(o.buffered))return!1;try{for(var i=o.buffered,r=0;r<i.length;r++)if(t>=i.start(r)-.35&&t<=i.end(r)+.15)return!0}catch(n){}return!1},Ai=function(t){if(!D||isNaN(t)||t<0)return null;try{var i=-1;typeof D.currentLevel=="number"&&D.currentLevel>=0?i=D.currentLevel:typeof D.firstLevel=="number"&&D.firstLevel>=0?i=D.firstLevel:i=0;var r=D.levels&&D.levels[i]&&D.levels[i].details,n=r&&r.fragments;if(!n||!n.length)return null;for(var s=0;s<n.length;s++){var l=n[s];if(l){var E=l.start||0,u=E+(l.duration||0);if(t>=E-.05&&t<u+.05)return l}}return n[n.length-1]}catch(g){}return null},ze=function(t){if(isNaN(t)||t<=0)return 0;var i=Ai(t);return i&&!isUndefined(i.start)?Math.max(0,i.start):Math.max(0,t-12)},Oe=function(t){if(!o||isUndefined(o.buffered)||isNaN(t)||t<0||!ot(t))return!1;var i=ze(t);try{for(var r=o.buffered,n=0;n<r.length;n++){var s=r.start(n),l=r.end(n);if(i>=s-.35&&t<=l+.15)return!0}}catch(E){}return!1},Pe=function(t){ue=!1,jt(t),setTimeout(function(){if(o&&(e.buffer&&e.buffer.hide(),M=!0,a.autoplay||He)){try{var i=o.play();i&&typeof i.then=="function"&&i.catch(function(){})}catch(r){}He=!1}},120)},$e=function(){ne&&(clearTimeout(ne),ne=null),Ie=0},xt=function(){!He||!o||!a.autoplay||F||we||Ce<1||(He=!1,f.play())},jt=function(t){$e(),we=!0,F=0;try{o.currentTime=t}catch(i){F=t,we=!1}setTimeout(function(){we=!1},800)},ge=function(t){if(!(!F||!o||we)&&!(!isUndefined(a.live)&&(valType(a.live)=="boolean"&&a.live||valType(a.live)=="number"))){var i=F,r=T||o.duration||0;if(r&&isFinite(r)&&r>0&&i>=r&&(i=Math.max(0,r-.3)),i<=0){F=0,$e();return}if(i>0&&($=Math.max($,i),te<0&&(te=i)),ue){Oe(i)&&Pe(i);return}if(D&&typeof D.startLoad=="function"){if(!Oe(i)&&i>1){ue=!0,oe=i;try{D.startLoad(ze(i))}catch(n){}Ie++,Ie<=50&&(ne&&clearTimeout(ne),ne=setTimeout(function(){ge(!1)},200));return}if(Ot(i,!!t)){$e(),F=0;return}}if(!t&&!isUndefined(o.readyState)&&o.readyState<1&&(Ie++,Ie<=50)){ne&&clearTimeout(ne),ne=setTimeout(function(){ge(!1)},200);return}jt(i)}},Ti=function(){if(Le>=3)return!1;Le++;var t=oe>0?oe:me>0?me:a.seek?parseFloat(a.seek):0;(isNaN(t)||t<0)&&(t=0);var i=ze(t);Le>=2&&(i=Math.max(0,i-10)),we=!1,$e();try{D&&typeof D.recoverMediaError=="function"&&D.recoverMediaError()}catch(n){}if(t>0&&D&&typeof D.startLoad=="function"){var r=Le>=3?i:t;F=r,oe=t,ue=!0,Re=-1,Qe=0;try{D.startLoad(i)}catch(n){}return setTimeout(function(){Oe(r)?Pe(r):Le>=2?Pe(i):ge(!1)},600),!0}try{return Pe(Math.max(0,t-1.5)),!0}catch(n){}return!1},Nt=function(){B("loadedMetaData",{width:C.getWidth(),height:C.getHeight(),videoWidth:b.videoWidth,videoHeight:b.videoHeight,duration:T,volume:b.volume}),B("duration",T),"error"in e&&e.error.hide(),Te("videoWidth",b.videoWidth),Te("videoHeight",b.videoHeight),Te("volume",parseInt(b.volume*100)),Te("duration",parseInt(T)),documentHidden(function(t){a.documentFocusPause&&(t=="show"?!Pt&&L&&f.play():(Pt=L,f.pause()))})},J={loadStart:function(){!a.controls&&bt!="iphone"&&e.loading.show(),e.centerPlay.hide(),B("loadstart")},canPlay:function(){e.loading.hide(),B("canplay"),ge(),xt()},loadedData:function(){B("loadeddata")},loadedMetaData:function(){T=this.duration,!isUndefined(this.duration)&&a.duration&&(T=a.duration),a.live||(e.time.htm(formatSeconds(this.currentTime)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(this.currentTime)+"/"+formatSeconds(T))),e.loading.hide(),a.poster&&o.attr("poster",a.poster),!a.autoplay&&!a.controls&&(e.centerPlay.show(),e.buffer.hide()),b.duration=T,b.videoWidth=this.videoWidth,b.videoHeight=this.videoHeight,b.volume=this.volume,(b.videoWidth||b.videoHeight||T)&&Nt(),ge();var t=0;isUndefined(this.buffered)||(t=this.buffered.length),t>0&&di(),a.live?ti():ti(a.preview),!isUndefined(a.prompt)&&valType(a.prompt)=="array"&&!a.live?qi():Qt(),je&&(Gt(),je=!1),xe=!1,Ce++,xt(),!isUndefined(h)&&!isUndefined(h.frontPlay)&&h.frontPlay&&Ce>1&&(f.play(),st(T)),!isUndefined(h)&&!isUndefined(h.frontPlay)&&!h.frontPlay&&(f.volume(a.volume),f.play()),!a.autoplay&&St&&(St=!1,f.pause(),setTimeout(f.pause,300))},timeUpDate:function(){M||(M=!0,e.buffer.hide(),B("buffer","end"));var t=this.buffered.length;t>0&&di(),!T&&this.duration&&(T=this.duration,b.duration=T,b.videoWidth=this.videoWidth,b.videoHeight=this.videoHeight,(b.videoWidth||b.videoHeight||T)&&Nt(),ge()),se=me,me=this.currentTime,$<se&&($=se),oi(me),B("time",me),a.live||(e.time.htm(formatSeconds(me)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(me)+"/"+formatSeconds(T))),!isUndefined(h)&&!isUndefined(h.frontPlay)&&h.frontPlay&&Ce>1&&st(T-me),!isUndefined(e.error)&&e.error.css("display")=="block"&&e.error.hide(),ce&&xi(me),Te("audioDecodedByteCount",this.webkitAudioDecodedByteCount||this.audioDecodedByteCount||0),Te("videoDecodedByteCount",this.webkitVideoDecodedByteCount||this.videoDecodedByteCount||0)},ended:function(){!isUndefined(h)&&!isUndefined(h.frontPlay)&&h.frontPlay?Tt():(e.bar.playAndPause.pause.hide(),e.bar.playAndPause.play.hide(),e.bar.playAndPause.refresh.show(),B("ended"),_i(),R())},error:function(t){if(!isUndefined(t.type)){var i=this.error,r=function(){var n=12,s=language.error.loadingFailed;if(isUndefined(i))b.error={code:n,message:s},t.target.attr("src")&&le();else{if(isUndefined(i.code)||(n=i.code),isUndefined(i.message)||(s=i.message),n===3&&Ti())return;b.error={code:n,message:s},le()}B("error",b.error)};if(t.type=="error")try{o.currentSrc?ajax({url:o.currentSrc,error:function(n){n&&valType(n)=="object"&&"code"in n&&n.code?(b.error=n,B("error",b.error),le()):r()},success:function(n){n||r()}}):r()}catch(n){r()}}},stalled:function(){B("stalled")},suspend:function(){B("suspend")},emptied:function(){B("emptied"),b.error={code:7,message:language.error.emptied},B("error",b.error)},seeked:function(){we=!1,Le=0,xt(),xe=!1,B("seek",{time:this.currentTime,state:"seeked"}),B("seeked")},seeking:function(){L&&!we&&!ue&&!F&&f.play();var t=this.currentTime;switch(te==-1&&(te=t),a.timeScheduleAdjust){case 0:if(se!=t){Ee=!1,f.seek(se),R(language.timeScheduleAdjust.prohibit);return}break;case 2:if(t<se){Ee=!1,f.seek(se),R(language.timeScheduleAdjust.prohibitBackOff);return}break;case 3:if(t>se){Ee=!1,f.seek(se),R(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(t<te){Ee=!1,f.seek(te),R(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(t>$){Ee=!1,f.seek($),R(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}B("seek",{time:t,state:"seeking"}),B("seeking"),a.live||(e.time.htm(formatSeconds(t)+"/"+formatSeconds(T)),e.tempTime.htm(formatSeconds(t)+"/"+formatSeconds(T)))},waiting:function(){M=!1,B("buffer","start"),e.centerPlay.hide(),a.controls||e.buffer.show(),Ee?R(language.waiting):Ee=!0},play:function(){if(L=!1,e.bar.playAndPause.play.hide(),e.bar.playAndPause.pause.show(),e.bar.playAndPause.refresh.hide(),e.centerPlay.hide(),pt=="button"?e.bar.pbox.removeClass("ck-bar-progress-out"):e.bar.pbox.addClass("ck-bar-progress-out"),de&&(de=!1,f.exitMuted()),Je(),lt(),pt="",isUndefined(e.ended)||f.closeLayer(e.ended),"error"in e&&e.error.hide(),B("play"),!isUndefined(h)&&!isUndefined(h.front)&&isUndefined(h.frontPlay)){h.frontPlayI=0,h.frontPlay=!0,f.pause(),Vt();return}F&&(isUndefined(a.live)||!isUndefined(a.live)&&valType(a.live)=="boolean"&&!a.live)&&ge()},pause:function(){L=!0,(isUndefined(h)||isUndefined(h.frontPlay)||!isUndefined(h.frontPlay)&&!h.frontPlay)&&!isUndefined(h)&&!isUndefined(h.pause)?(isUndefined(h.pausePlayI)&&(h.pausePlayI=0),Xt()):a.controls||(e.centerPlay.show(),e.buffer.hide()),e.bar.playAndPause.pause.hide(),e.bar.playAndPause.play.show(),e.bar.playAndPause.refresh.hide(),e.bar.pbox.removeClass("ck-bar-progress-out"),si(),B("pause"),e.bar.removeClass("ck-bar-out"),S.removeClass("ck-nocursor")},volumeChange:function(){if(this.volume==0&&!G&&(this.muted=!0),this.volume>0&&G&&(this.muted=!1),G!=this.muted&&(G=this.muted,Ki(this.muted),b.muted=this.muted,B("muted",b.muted)),b.volume=this.volume,B("volume",this.volume),!isUndefined(e.bar.vbox)){var t=parseInt(this.volume*100);e.bar.vbox.volume.txt.htm(t),e.bar.vbox.mouseDown||Bt(this.muted?0:this.volume),this.muted||R(language.volume+t+"%")}Te("volume",parseInt(this.volume*100))},resize:function(){var t=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement;t?(e.bar.fullAndExit.exitFull.show(),e.bar.fullAndExit.full.hide(),e.ad.bottom.fullAndExit.exitFull.show(),e.ad.bottom.fullAndExit.full.hide(),S.hasClass("ck-main-full")||S.addClass("ck-main-full"),R(language.full),e.bar.webFullAndExit.hide(),e.bar.theatreAndExit.hide(),isUndefined(e.menu)||S.append(e.menu)):(t=!1,e.bar.fullAndExit.full.show(),e.bar.fullAndExit.exitFull.hide(),e.ad.bottom.fullAndExit.full.show(),e.ad.bottom.fullAndExit.exitFull.hide(),S.hasClass("ck-main-full")&&S.removeClass("ck-main-full"),!isUndefined(a.webFull)&&a.webFull&&e.bar.webFullAndExit.show(),!isUndefined(a.theatre)&&!b.webFull&&e.bar.theatreAndExit.show(),isUndefined(e.menu)||W("body").append(e.menu),re.css("width")!=S.css("width")&&f.zoom(100)),b.full!=t&&(b.full=t,B("full",t)),he(),oi(f.time())},keydown:function(t){t=window.event||t;var i=t.keyCode||t.which,r=f.volume(),n=function(){t.preventDefault?t.preventDefault():t.returnValue=!1};switch(i){case 32:n(),f.playOrPause();break;case 37:f.fastBack();break;case 39:f.fastNext();break;case 38:valType(a.keyVolume)=="number"&&(a.keyVolume==1||a.keyVolume==2&&b.full)&&(n(),f.volume(r+.1<1?r+=.1:1));break;case 40:valType(a.keyVolume)=="number"&&(a.keyVolume==1||a.keyVolume==2&&b.full)&&(n(),f.volume(r-.1>0?r-=.1:0));break;default:break}},mouseWheel:function(t){if(valType(a.mouseWheelVolume)=="number"&&(a.mouseWheelVolume==1||a.mouseWheelVolume==2&&b.full)){t=window.event||t;var i=f.volume();t.preventDefault?t.preventDefault():t.returnValue=!1,t.wheelDelta?(t.wheelDelta>0&&f.volume(i+.1<1?i+=.1:1),t.wheelDelta<0&&f.volume(i-.1>0?i-=.1:0)):t.detail&&(t.detail>0&&f.volume(i-.1>0?i-=.1:0),t.detail<0&&f.volume(i+.1<1?i+=.1:1))}}},Vt=function(){if(h.frontPlayI==0&&(ai(!1),e.ad.show(),h.front.video=!1,isUndefined(h.front.closeTime)||(h.front.closeTime>0?(e.ad.top.closeTime.show(),qt()):e.ad.top.closeAd.show())),!isUndefined(h.front.node)&&h.front.node!=null&&(S.append(h.front.node),f.closeLayer(h.front.node),h.front.node=null),e.ad.picture.htm(""),e.ad.picture.hide(),e.ad.link.hide(),!isUndefined(h.front.list[h.frontPlayI])){var t=h.front.list[h.frontPlayI];it=!0,B("frontAd",t),t.type=="picture"?Ui(t):t.type=="node"?Fi(t):(e.ad.link.attr("data-link",t.link),Bi(t.file)),isUndefined(t.link)?e.ad.bottom.details.hide():(e.ad.bottom.details.show(),e.ad.bottom.details.htm('<a href="'+t.link+'" target="blank">'+language.details+"</a>"))}},qt=function(){isUndefined(h.front.closeSetTime)||(clearTimeout(h.front.closeSetTime),h.front.closeSetTime=null),e.ad.top.closeTime.htmReplace("{seconds}",h.front.closeTime,language.closeTime),h.front.closeTime--,h.front.closeTime>0?h.front.closeSetTime=setTimeout(qt,1e3):(e.ad.top.closeAd.show(),e.ad.top.closeTime.hide())},st=function(t){isUndefined(t)||(h.front.list[h.frontPlayI].time=t),h.front.countDown=0;for(var i=h.frontPlayI;i<h.front.list.length;i++)h.front.countDown+=parseInt(h.front.list[i].time);e.ad.top.countDown.htm(h.front.countDown+language.second)},Yt=function(){et&&(clearTimeout(et),et=null)},At=function(){Yt();var t=h.front.list[h.frontPlayI];t.time>0?(t.time--,h.front.countDown--,e.ad.top.countDown.htm(h.front.countDown+language.second),et=setTimeout(At,1e3)):Tt()},Tt=function(){h.frontPlayI<h.front.list.length-1?(h.frontPlayI++,Vt()):(!isUndefined(h.front.node)&&h.front.node!=null&&(S.append(h.front.node),f.closeLayer(h.front.node),h.front.node=null),e.ad.picture.htm(""),e.ad.picture.hide(),h.frontPlay=!1,e.ad.hide(),ri(),F=0,zt(kt()),h.front.video?We(a.video):f.play(),B("frontAdEnded",!0),it=!1)},Bi=function(t){if(!isUndefined(t)){if(e.ad.picture.hide(),F=0,(o.attr("src")||o.htm())&&f.pause(),o.attr("src")&&(o.attr("src",""),o.removeAttr("src")),o.htm(""),a.plug&&!at(t))switch(a.plug){case"hls.js":It(t);break;case"flv.js":Ht(t);break;case"mpegts.js":Rt(t);break;default:b.error={code:10,message:language.error.emptied},B("error",b.error),le();break}else o.attr("src",t);h.front.video=!0,e.ad.link.show(),e.ad.bottom.mutedAndExit.show()}},Ui=function(t){if(!isUndefined(t.file)){var i=null,r=0,n=function(){e.ad.picture.show(),e.ad.picture.htm(""),i=Ge(t.file),e.ad.picture.append(i),i.addListener("load",function(){var s=this.getWidth(),l=this.getHeight();if(s>0||l>0){if(t.link){var E=ut("",t.link);E.append(this),e.ad.picture.append(E)}else e.ad.picture.append(this);i.unbind(),i.click(function(){B("frontAdClick",t)})}else r<10&&(r++,n())})};n(),st(),At(),e.ad.bottom.mutedAndExit.hide()}},Fi=function(t){isUndefined(t.content)||(h.front.node=f.layer(t),h.front.node.css({"z-index":1}),e.ad.append(h.front.node),h.front.node.unbind(),h.front.node.click(function(){B("frontAdClick",t)}),st(),At(),e.ad.bottom.mutedAndExit.hide())},Li=function(){var t=e.ad.link.attr("data-link");window.open(t,"_blank")},Ci=function(){if(!isUndefined(h)&&!isUndefined(h.front)&&!isUndefined(h.front.closeButtonClick)){if(valType(h.front.closeButtonClick)=="function")try{h.front.closeButtonClick()}catch(t){console.error(t)}else if(valType(h.front.closeButtonClick)=="string")try{_e(h.front.closeButtonClick)}catch(t){console.error(t)}}else f.closeFrontAd()},Xt=function(){if(lt(),!isUndefined(h)&&!isUndefined(h.pause)&&!isUndefined(h.pause.list)&&h.pause.list.length-1>=h.pausePlayI){var t=h.pause.list[h.pausePlayI];if(!isUndefined(h.pause.close)&&h.pause.close&&(h.pauseClose=q("ck-pause-close"),h.pauseClose.click(function(){e.centerPlay.show(),e.buffer.hide(),lt()})),isUndefined(t.file))isUndefined(t.content)||(h.pause.node=f.layer(t),h.pauseClose&&h.pause.node.append(h.pauseClose),h.pause.node.click(function(){B("pauseAdClick",t)}));else{var i=null,r=0,n=function(){i=Ge(t.file),e.adPause.show(),e.adPause.htm(""),e.adPause.append(i),i.addListener("load",function(){var s=this.getWidth(),l=this.getHeight();if(s>0||l>0){if(e.adPause.htm(""),t.link){var E=ut("",t.link);E.append(this),e.adPause.append(E)}else e.adPause.append(this);e.adPause.css({width:s+"px",height:l+"px"}),h.pauseClose&&e.adPause.append(h.pauseClose),i.click(function(){B("pauseAdClick",t)})}else r<10&&(r++,n())})};n()}B("pauseAd",t),!isUndefined(t.time)&&t.time>0&&(tt=setTimeout(function(){h.pausePlayI++,h.pausePlayI>h.pause.list.length-1&&(h.pausePlayI=0),Xt()},t.time*1e3))}},lt=function(){tt&&(clearTimeout(tt),tt=null),e.adPause.hide(),!isUndefined(h)&&!isUndefined(h.pauseClose)&&h.pauseClose!=null&&(h.pauseClose.remove(),h.pauseClose=null),!isUndefined(h)&&!isUndefined(h.pause)&&!isUndefined(h.pause.node)&&h.pause.node&&(h.pause.node.unbind(),f.closeLayer(h.pause.node),B("pauseAdClose"))},f={width:function(t){return isUndefined(t)||(valType(t)=="number"&&(t+="px"),b.css({width:t}),he()),C.getWidth()},height:function(t){return isUndefined(t)||(valType(t)=="number"&&(t+="px"),b.css({height:t}),he()),C.getHeight()},videoWidth:function(){return o?o.videoWidth:null},videoHeight:function(){return o?o.videoHeight:null},zoom:function(t){if(!isUndefined(t)&&(valType(t)=="function"&&z.addEventListener("zoom",t),valType(t)=="number")){for(var i=[e.topBar.zoomEle.zoom50,e.topBar.zoomEle.zoom75,e.topBar.zoomEle.zoom100],r=0;r<i.length;r++)i[r].removeClass("ck-top-bar-zoom-container-focus");switch(t){case 50:i[0].addClass("ck-top-bar-zoom-container-focus");break;case 75:i[1].addClass("ck-top-bar-zoom-container-focus");break;case 100:i[2].addClass("ck-top-bar-zoom-container-focus");break}(t==50||t==75||t==100)&&(fe=t,he(),B("zoom",t))}return f},rotate:function(t){if(!isUndefined(t)&&(valType(t)=="function"&&z.addEventListener("rotate",t),valType(t)=="number")){var i=[0,90,180,270],r=0;i.length>t&&t>0?r=i[t]:i.indexOf(t)>-1&&(r=t),r!=Ae&&(B("rotate",r),Ae=r,he())}},vars:function(t,i){if(!isUndefined(t)){if(valType(t)=="string"&&!isUndefined(i)){var r={};r[t]=i,t=r}var n=!1;for(var s in t)if(s in a&&t[s]!=a[s]){n=!0;break}n&&(a=standardization(a,t)),isUndefined(t.video)||(je=!0,We(a.video)),isUndefined(t.title)||e.topBar.titleEle.htm(t.title)}},loadstart:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("loadstart",t)},loadeddata:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("loadeddata",t)},loadedMetaData:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("loadedMetaData",t)},canplay:function(t){!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("canplay",t)},play:function(t){if(valType(t)=="object"&&(t.target==e.bar.playAndPause.play||t.target==e.bar.playAndPause.refresh)&&(pt="button"),!isUndefined(t)&&valType(t)=="function")z.addEventListener("play",t);else if(Ce>0&&o)try{var i=o.play();i&&typeof i.catch=="function"&&i.catch(function(){})}catch(r){}return f},pause:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("pause",t);else if(Ce>0&&o)try{o.pause()}catch(i){console.error(i)}return f},playOrPause:function(){return L?f.play():f.pause(),f},volume:function(t){if(!isUndefined(t))valType(t)=="function"?z.addEventListener("volume",t):valType(t)=="number"&&o&&(t<0&&(t=0),t>1&&(t=1),o.muted&&(o.volume=t*.5),o.volume=t);else if(o)return o.volume;return f},muted:function(t){return!isUndefined(t)&&valType(t)=="function"?z.addEventListener("muted",t):o&&(o.muted=!0),f},exitMuted:function(){return o&&(o.muted=!1,o.volume==0&&f.volume(a.volume>0?a.volume:.8)),f},time:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("time",t);else if(o)return o.currentTime||0},seek:function(t){if(!isUndefined(t))if(valType(t)=="function")z.addEventListener("seek",t);else{var i=null;if(valType(t)=="number"&&!isNaN(t)?i=t:valType(t)=="string"&&t!==""&&t!=="cookie"&&!isNaN(parseFloat(t))&&(i=parseFloat(t)),i!==null&&o){switch(i>0&&(F&&Math.abs(F-i)<.5||a.seek&&parseFloat(a.seek)>0&&Math.abs(parseFloat(a.seek)-i)<.5)&&($=Math.max($,i),te<0&&(te=i)),a.timeScheduleAdjust){case 0:return R(language.timeScheduleAdjust.prohibit),f;case 1:break;case 2:if(i<se)return R(language.timeScheduleAdjust.prohibitBackOff),f;break;case 3:if(i>se)return R(language.timeScheduleAdjust.prohibitForward),f;break;case 4:if(i<te){Ee=!1;try{o.currentTime=te}catch(n){}return R(language.timeScheduleAdjust.prohibitLookBack),f}break;case 5:if(i>$){Ee=!1;try{o.currentTime=$}catch(n){}return R(language.timeScheduleAdjust.prohibitForwardNotViewed),f}break}xe=!1;var r=o.readyState>=2||T&&isFinite(T)&&T>0;if(!r)return F=i,i>0&&($=Math.max($,i),te<0&&(te=i)),f;if(T&&isFinite(T)&&T>0&&i>T&&(i=Math.max(0,T-.3)),i<0&&(i=0),a.timeScheduleAdjust==5&&i>$&&F&&Math.abs(F-i)<.5&&($=Math.max($,i)),i>.5&&!ot(i)&&o.readyState<3&&!D)return F=i,ge(!1),f;if(D&&i>1&&!Oe(i)){F=i,ue=!0,oe=i;try{D.startLoad(ze(i))}catch(n){}return ge(!1),f}if(Ot(i,!1))return F=0,f;try{o.currentTime=i,F=0,i>$&&a.timeScheduleAdjust!=5&&($=i)}catch(n){F=i}}}return f},buffer:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("buffer",t),f},ended:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("ended",t),f},next:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("next",t),f},error:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("error",t),f},emptied:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("emptied",t),f},duration:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("duration",t);else return T||0},playbackRate:function(t){if(!isUndefined(t))valType(t)=="function"?z.addEventListener("playbackRate",t):valType(t)=="number"&&o&&(o.playbackRate=t,b.playbackRate=t,B("playbackRate",t),$t(t));else return o.playbackRate},track:function(t){if(isUndefined(t))return b.track;if(valType(t)=="function")z.addEventListener("track",t);else if(valType(t)=="number"&&o){var i=null;if(isUndefined(o.textTracks)||(i=o.textTracks),i&&valType(i)=="texttracklist"){for(var r=a.track,n=i.length-1;n>-1;n--)o.find("track").eq(n).remove();for(var n=0;n<r.length;n++){var s="";r[n].default=!1,n==t&&(s=" default",r[n].default=!0),i+='<track src="'+r[n].src+'" srclang="'+r[n].srclang+'" kind="'+r[n].kind+'" label="'+r[n].label+'"'+s+">"}if(o){var l=o.htm()+i;o.htm(l)}Zt(t)}}},fastBack:function(t){if(T!=0){(isUndefined(t)||valType(t)!="number")&&(t=20);var i=f.time();return i-t>0?i-=t:i=0,f.seek(i),f}},fastNext:function(t){if(T!=0){(isUndefined(t)||valType(t)!="number")&&(t=20);var i=f.time();return i+t<T?i+=t:i=T,f.seek(i),f}},definition:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("definition",t),valType(t)=="number"&&Kt(t)),f},fps:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("fps",t),b.fps},playback:function(t){if(!isUndefined(t))valType(t)=="function"&&z.addEventListener("playback",t);else return hi;return f},backLive:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("backLive",t),valType(t)=="boolean"&&(bool?e.bar.backLive.show():e.bar.backLive.hide())),f},full:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("full",t);else{if(mt)return;b.theatre&&f.exitTheatre(),b.webFull&&f.exitWebFull();var i=C.requestFullScreen||C.webkitRequestFullScreen||C.mozRequestFullScreen||C.oRequestFullscreen||C.msRequestFullscreen;if(!isUndefined(i))i.call(C);else if(isUndefined(window.ActiveXObject)){if(!isUndefined(o.webkitEnterFullscreen)||!isUndefined(o.webkitEnterFullScreen)){var n=o.webkitEnterFullscreen||o.webkitEnterFullScreen;n.call(o)}}else{var r=new ActiveXObject("WScript.Shell");r!==null&&r.SendKeys("{F11}")}f.zoom(100)}return f},exitFull:function(){var t=document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen||document.oCancelFullScreen||document.msExitFullscreen;if(!isUndefined(t))t.call(document);else if(!isUndefined(window.ActiveXObject)){var i=new ActiveXObject("WScript.Shell");i!==null&&i.SendKeys("{F11}")}return f},fullOrExit:function(){var t=document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement;return t?f.exitFull():f.full(),f},webFull:function(t){return!isUndefined(t)&&valType(t)=="function"?z.addEventListener("webfull",t):(dt(),isUndefined(a.theatre)||e.bar.theatreAndExit.hide(),C.css({position:"fixed",top:0,left:0,height:"100%","z-index":getMaxZIndex()+1}),e.bar.webFullAndExit.webFull.hide(),e.bar.webFullAndExit.exitWebFull.show(),b.webFull=!0,B("webfull",!0),he()),f},exitWebFull:function(){return C.css({position:"relative"}),e.bar.webFullAndExit.webFull.show(),e.bar.webFullAndExit.exitWebFull.hide(),isUndefined(a.theatre)||(e.bar.theatreAndExit.show(),e.bar.theatreAndExit.theatre.show(),e.bar.theatreAndExit.exitTheatre.hide()),C.attr("style",""),b.webFull=!1,B("webfull",!1),he(),f},theatre:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("theatre",t);else{if(valType(a.theatre)=="array"&&a.theatre.length==2){var i=a.theatre[0];valType(i)=="function"&&i(),valType(i)=="string"&&_e(i)}else dt(),C.css({position:"absolute",top:b.offset().top,left:0,height:b.getHeight()+"px","z-index":getMaxZIndex()+1}),e.bar.theatreAndExit.theatre.hide(),e.bar.theatreAndExit.exitTheatre.show();b.theatre=!0,B("theatre",!0),he()}return f},exitTheatre:function(){if(valType(a.theatre)=="array"&&a.theatre.length==2){var t=a.theatre[1];valType(t)=="function"&&t(),valType(t)=="string"&&_e(t)}else C.css({position:"relative"}),e.bar.theatreAndExit.theatre.show(),e.bar.theatreAndExit.exitTheatre.hide(),C.attr("style",""),b.theatre=!1;return B("theatre",!1),he(),f},smallWindows:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("smallWindows",t),valType(t)=="boolean"&&(t?(e.rightBar.smallwindows.open.show(),e.rightBar.smallwindows.close.hide(),b.smallWindows=!0):(e.rightBar.smallwindows.open.hide(),e.rightBar.smallwindows.close.show(),b.smallWindows=!1),B("smallWindows",b.smallWindows),he())),b.smallWindows},loop:function(t){return isUndefined(t)||(valType(t)=="function"&&z.addEventListener("loop",t),valType(t)=="boolean"&&o&&(t?(e.rightBar.loop.open.show(),e.rightBar.loop.close.hide(),b.loop=!0,o.attr("loop","loop"),B("loop",!0)):(e.rightBar.loop.open.hide(),e.rightBar.loop.close.show(),b.loop=!1,o.attr("loop",!1),o.removeAttr("loop"),B("loop",!1)))),b.loop},screenshot:function(t){if(!isUndefined(t)&&valType(t)=="function")z.addEventListener("screenshot",t);else if(!isUndefined(a.screenshot)&&a.screenshot&&o)try{R(language.screenshotStart,!0);var i=W(document.createElement("canvas"));i.width=o.videoWidth,i.height=o.videoHeight,i.getContext("2d").drawImage(o,0,0,o.videoWidth,o.videoHeight);var r=i.toDataURL("image/png");B("screenshot",r),De&&(De.remove(),De=null),De=Ge(r),De.addListener("load",function(){e.screenshot.img.append(De),e.screenshot.show().css({width:this.getWidth()+"px"})});var n=dataURLtoBlob(r),s=URL.createObjectURL(n),l="video";return a.title&&(l=a.title),e.screenshot.bar.down.attr("href",s).attr("download",l),r}catch(E){R(language.error.screenshot,!0)}else R(language.screenshotClose,!0);return f},closeScreenshot:function(t){return!isUndefined(t)&&valType(t)=="boolean"&&!t?e.screenshot.show():e.screenshot.hide(),f},layer:function(t,i){if(isUndefined(t))return null;var r=!1;isUndefined(i)||(r=i);var n=null;if(valType(t)=="object"&&("class"in t&&"content"in t?(n=w(t.class),n.htm(t.content)):"content"in t&&(t=t.content)),valType(t)=="string"&&(t.substr(0,1)=="."||t.substr(0,1)=="#"?n=en(t):(n=w("ck-layer"),n.htm(t))),n){var s=n.css("z-index");s=="auto"&&(s=101),s<101&&(s=101),s>200&&(s=200),isUndefined(n.cssDisplay)&&(n.cssPosition=n.css("position"),n.cssDisplay=n.css("display")),n.css({position:"absolute","z-index":s}),r?e.bar.append(n):S.append(n),n.CK=C,n.show()}return n},closeLayer:function(t){if(valType(t)=="string"){var i=W(t);isUndefined(i)||i.length>0&&(t=i.eq(0))}if(!isUndefined(t)&&valType(t)=="htmlobject"){if(isUndefined(t.captureParentNode))t.remove();else{var r=t.captureParentNode;if(t.nextElement)try{r.insertBefore(t,t.nextElement)}catch(n){r.append(t)}else if(t.prevElement)try{r.insertAfter(t,t.prevElement)}catch(n){r.append(t)}else r.append(t);t.css({display:t.cssDisplay})}isUndefined(t.cssDisplay)||t.css({display:t.cssDisplay,position:t.cssPosition})}return f},message:function(t){return R(t),f},closeFrontAd:function(){return it&&!isUndefined(h)&&!isUndefined(h.front)&&!isUndefined(h.front.list)&&(h.frontPlayI=h.front.list.length-1,Tt(),Yt()),f},addListener:function(t,i){z.addEventListener(t,i)},removeListener:function(t,i){z.removeEventListener(t,i)},bar:function(t){Lt=t,t?e.bar.show():e.bar.hide()},rightBar:function(t){Ct=t,t?e.rightBar.show():e.rightBar.hide()},mouseActive:function(t){return!isUndefined(t)&&valType(t)=="function"&&z.addEventListener("mouseActive",t),this},cookie:function(t){if(t=="delete")return cookie(Ue,"delete",a.domain),null;!isUndefined(t)&&t&&(t=t.replace(/[ ]*,[ ]*|[ ]+/g,"").replace(/[ ]*;[ ]*|[ ]+/g,""));var i=cookie(Ue);if(i){var r=stringToArray(i),n=[],s=parseInt(Date.now()*.001);for(l=0;l<r.length;l++)parseInt(r[l][2])>s&&n.push(r[l]);if(r=n,r.length>0){cookie(Ue,"delete",a.domain,a.cookiePath),cookie(Ue,arrayToString(r),a.domain,a.cookiePath);for(var l=0;l<r.length;l++)if(r[l]={name:r[l][0],time:r[l][1],expirationTime:date("Y-m-d H:i:s",r[l][2]),expirationTimeStamp:r[l][2]},!isUndefined(t)&&t==r[l].name)return r[l];return r}else cookie(Ue,"delete",a.domain,a.cookiePath)}return null},visibilityState:function(t){return!isUndefined(t)&&valType(t)=="function"&&(isUndefined(document.visibilityState)||t(document.visibilityState==="visible"?"show":"hidden"),z.addEventListener("visibilityState",t)),this},remove:function(){var t={};if(Xe!=null){for(var i in Xe)t[i]=Xe[i];for(var i in t){var r=t[i];if(r)for(var n=0;n<r.length;n++){var s=r[n];z.removeEventListener(i,s)}}}return it&&this.closeFrontAd(),I&&(I.pause(),I.unload(),I.detachMediaElement(),I.destroy(),I=null),D&&(D.stopLoad(),D.detachMedia()),Ce=0,vt=!1,je=!0,o&&(o.unbind(),o.remove(),o=null),isUndefined(e.menu)||e.menu.remove(),b&&(b.unbind(),b.htm("")),null}},Si=function(){a.autoplay?(e.bar.playAndPause.play.hide(),e.bar.playAndPause.pause.show()):(e.bar.playAndPause.play.show(),e.bar.playAndPause.pause.hide()),G?e.bar.vbox.muted.hide():e.bar.vbox.exitMuted.hide(),isUndefined(a.next)?e.bar.nextEpisode.hide():e.bar.nextEpisode.show(),!isUndefined(a.webFull)&&a.webFull&&!b.full?e.bar.webFullAndExit.show():e.bar.webFullAndExit.hide(),!isUndefined(a.theatre)&&!b.full&&!b.webFull?e.bar.theatreAndExit.show():e.bar.theatreAndExit.hide(),!isUndefined(a.rightBar)&&a.rightBar?e.rightBar.show():e.rightBar.hide(),(!a.live||valType(a.live)=="number")&&(xe=!1,Zi()),(a.live||valType(a.live)=="number")&&(e.time.htm(language.live),e.tempTime.htm(language.live)),valType(a.smallWindows)=="boolean"&&!a.smallWindows&&(b.smallWindows=!1,e.rightBar.smallwindows.open.hide(),e.rightBar.smallwindows.close.show()),b.loop?(e.rightBar.loop.open.show(),e.rightBar.loop.close.hide()):(e.rightBar.loop.open.hide(),e.rightBar.loop.close.show()),!isUndefined(a.backLive)&&a.backLive&&e.bar.backLive.show(),a.volume==0&&f.muted()},_t=function(){!isUndefined(a.logo)&&isUndefined(e.logo)&&(e.logo=w("ck-logo"),Ge(a.logo).addListener("load",function(){S.append(e.logo),e.logo.append(this)}).addListener("error",function(){e.logo.remove()}))},Pi=function(){if(!isUndefined(a.information)&&!isUndefined(e.about)&&valType(a.information)=="object"){var t=a.information,i="",r=W(document.createElement("ul")),n="";for(i in t){var s=w("div").attr("class","ck-about-title"),l=w("div").attr("class","ck-about-content"),E=W(document.createElement("li"));s.htm(i),l.htm(t[i]),E.append(s),E.append(l),r.append(E),n+=i+":"+t[i]+`
2
+ `}e.about.append(r),e.about.textareaText=n,e.about.textareaEle=W(document.createElement("textarea")),S.append(e.about.textareaEle),e.about.textareaEle.hide()}},Di=function(){!isUndefined(a.menu)&&a.menu&&(p=a.menu),e.menu=w("ckplayer-ckplayer-menu");for(var t=0;t<p.length;t++){var i=p[t],r=w("ck-li");if(isUndefined(i.underline)||r.addClass("ck-underline"),!isUndefined(i.link)&&!isUndefined(i.title))r.append(ut(i.title,i.link)),e.menu.append(r);else if(!isUndefined(i.javascript)&&!isUndefined(i.title))r.append(ui(i.title,i.javascript)),e.menu.append(r);else if(!isUndefined(i.click)&&!isUndefined(i.title)){var n=ui(i.title);n.attr("data-click",i.click.toString()),n.click(function(){_e(W(this).attr("data-click")),e.menu.hide()}),r.append(n),e.menu.append(r)}else isUndefined(i.title)||(r.htm(i.title),e.menu.append(r))}W("body").append(e.menu),S.oncontextmenu=function(u){var g=u||window.event,A=ye(g);if(g.button==2){g.returnvalue=!1;var U=A.x-2,x=A.y-2;return e.menu.show(),e.menu.css({left:U+"px",top:x+"px"}),!1}return!0};var s=null,l=function(){s&&(clearTimeout(s),s=null)},E=function(){l(),s=setTimeout(function(){e.menu.hide()},200)};e.menu.mouseout(E),e.menu.mouseover(l)},an=function(){e.about.show(),e.menu.hide()},Mi=function(){e.about.hide()},Wi=function(){e.about.textareaEle.show(),e.about.textareaEle.select(),document.execCommand("Copy"),e.about.textareaEle.hide(),R(language.copySucceeded,!0)},pe=function(){var t=e.bar.getHeight();return parseFloat(e.bar.pbox.css("top"))<0&&(t-=parseInt(e.bar.pbox.css("top"))),t},Je=function(){ve&&(clearTimeout(ve),ve=null),ve=setTimeout(function(){L||(e.bar.addClass("ck-bar-out"),B("mouseActive",!1),b.full&&S.addClass("ck-nocursor"),e.rightBar.css("display")=="block"&&e.rightBar.addClass("ck-right-bar-hide"),e.topBar.css("display")=="block"&&e.topBar.addClass("ck-top-bar-hide")),ve=null},a.barHideTime)},zi=function(){L||(e.bar.pbox.addClass("ck-bar-progress-out"),Je())},Oi=function(){L||(e.bar.pbox.removeClass("ck-bar-progress-out"),ve&&(clearTimeout(ve),ve=null))},Ii=function(){L||Je()},Hi=function(){L||ve&&(clearTimeout(ve),ve=null)},Ri=function(){var t=a.playbackrateList,i=a.playbackrate;e.bar.playbackrate.bg=w("ck-list-bg"),e.bar.playbackrate.bgbox.append(e.bar.playbackrate.bg),e.bar.playbackrate.bg.p=[];for(var r=t.length-1;r>-1;r--){var n=q("ck-list-p",t[r]+language.playbackrateSuffix);n.attr("data-i",r).attr("data-val",t[r]),e.bar.playbackrate.bg.p.push(n),e.bar.playbackrate.bg.append(n),n.click(ji)}if(e.bar.playbackrate.hide(),!isUndefined(a.playbackrateOpen)&&a.playbackrateOpen){e.bar.playbackrate.show(),e.bar.playbackrate.bgbox.show();var s=e.bar.playbackrate.bg.getWidth(),l=e.bar.playbackrate.bg.getHeight(),E=e.bar.playbackrate.button.getWidth();e.bar.playbackrate.bg.css({width:s+10+"px"}),s=e.bar.playbackrate.bg.getWidth(),pe()>e.bar.getHeight()&&(l+=pe()-e.bar.getHeight()),e.bar.playbackrate.bgbox.attr("style",""),e.bar.playbackrate.bgbox.css({width:s+"px",height:l+2+"px",left:-(s-E)*.5+"px"}),e.bar.playbackrate.button.mouseover(function(){s=e.bar.playbackrate.bg.getWidth(),E=e.bar.playbackrate.button.getWidth(),e.bar.playbackrate.bgbox.css({left:-(s-E)*.5+"px"})}),$t(i)}},ji=function(t){e.bar.playbackrate.bgbox.hide(),setTimeout(function(){e.bar.playbackrate.bgbox.removeCss("display")},300),R(language.switchTo+W(this).htm()),f.playbackRate(parseFloat(W(this).attr("data-val")))},$t=function(t){e.bar.playbackrate.bg.find("button").each(function(i,r){var n=parseFloat(r.attr("data-val"));r.removeClass("ck-list-p-focus"),t==n?(r.addClass("ck-list-p-focus"),t!=1?e.bar.playbackrate.button.htm(r.htm()):e.bar.playbackrate.button.htm(language.playbackrate)):r.removeClass("ck-list-p-focus")})},Ni=function(){var t=a.track,i=-1;e.bar.track.bgbox.htm(""),e.bar.track.bg=w("ck-list-bg"),e.bar.track.bgbox.append(e.bar.track.bg),e.bar.track.bg.p=[];for(var r=null,n=t.length-1;n>-1;n--)r=q("ck-list-p",t[n].label),r.attr("data-i",n).attr("data-title",t[n].label),e.bar.track.bg.p.push(r),e.bar.track.bg.append(r),!isUndefined(t[n].default)&&t[n].default&&(i=n),r.click(Jt);r=q("ck-list-p",language.noTrack),r.attr("data-i",-1).attr("data-title",language.noTrack),e.bar.track.bg.p.push(r),e.bar.track.bg.append(r),r.click(Jt),e.bar.track.hide(),e.bar.track.show(),e.bar.track.bgbox.show();var s=e.bar.track.bg.getWidth(),l=e.bar.track.bg.getHeight(),E=e.bar.track.button.getWidth();e.bar.track.bg.css({width:s+10+"px"}),s=e.bar.track.bg.getWidth(),pe()>e.bar.getHeight()&&(l+=pe()-e.bar.getHeight()),e.bar.track.bgbox.attr("style",""),e.bar.track.bgbox.css({width:s+"px",height:l+2+"px",left:-(s-E)*.5+"px"}),e.bar.track.button.mouseover(function(){s=e.bar.track.bg.getWidth(),E=e.bar.track.button.getWidth(),e.bar.track.bgbox.css({left:-(s-E)*.5+"px"})}),Zt(i)},Jt=function(t){e.bar.track.bgbox.hide(),setTimeout(function(){e.bar.track.bgbox.removeCss("display")},300),R(language.switchTo+W(this).attr("data-title")),f.track(parseFloat(W(this).attr("data-i")))},Zt=function(t){e.bar.track.bg.find("button").each(function(i,r){var n=parseInt(r.attr("data-i"));t==n?(e.bar.track.button.htm(r.attr("data-title")),n>-1?(b.track=a.track[n],B("track",a.track[n])):(b.track=null,B("track",null)),r.addClass("ck-list-p-focus")):r.removeClass("ck-list-p-focus")})},Gt=function(){var t=-1,i=o.currentSrc;if(isUndefined(e.bar.definition.bg)||(e.bar.definition.bgbox.htm(""),e.bar.definition.bgbox.attr("style",""),e.bar.definition.button.htm(language.definition)),valType(a.video)=="array"){var r=a.video;e.bar.definition.bg=w("ck-list-bg"),e.bar.definition.bgbox.append(e.bar.definition.bg),e.bar.definition.bg.p=[];for(var n=r.length-1;n>-1;n--){var s=q("ck-list-p",r[n][2]);s.attr("data-i",n).attr("data-video",r[n][0]).attr("data-type",r[n][1]).attr("data-title",r[n][2]),e.bar.definition.bg.p.push(s),e.bar.definition.bg.append(s),i&&i.indexOf(r[n][0])>-1&&(t=n),s.click(Vi)}e.bar.definition.show(),e.bar.definition.bgbox.show();var l=e.bar.definition.bg.getWidth(),E=e.bar.definition.bg.getHeight(),u=e.bar.definition.button.getWidth();e.bar.definition.bg.css({width:l+10+"px"}),l=e.bar.definition.bg.getWidth(),pe()>e.bar.getHeight()&&(E+=pe()-e.bar.getHeight()),e.bar.definition.bgbox.attr("style",""),e.bar.definition.bgbox.css({width:l+"px",height:E+2+"px",left:-(l-u)*.5+"px"}),e.bar.definition.button.mouseover(function(){l=e.bar.definition.bg.getWidth(),u=e.bar.definition.button.getWidth(),e.bar.definition.bgbox.css({left:-(l-u)*.5+"px"})})}t>-1&&e.bar.definition.bg.find("button").each(function(g,A){var U=parseInt(A.attr("data-i"));t==U?A.addClass("ck-list-p-focus"):A.removeClass("ck-list-p-focus")})},Vi=function(t){e.bar.definition.bgbox.hide(),setTimeout(function(){e.bar.definition.bgbox.removeCss("display")},300),Kt(parseInt(W(this).attr("data-i")))},Kt=function(t){e.bar.definition.bg.find("button").each(function(i,r){var n=parseInt(r.attr("data-i"));if(t==n){if(!isUndefined(o.textTracks)&&o.textTracks.length>0)for(var s=o.find("track").length-1;s>-1;s--)o.find("track").eq(s).remove();F=f.time(),o.attr("autoplay","autoplay"),We(r.attr("data-video")),R(language.switchTo+r.htm()),e.bar.definition.button.htm(r.htm()),r.addClass("ck-list-p-focus"),B("definition",{id:n,video:r.attr("data-video"),title:r.attr("data-title")})}else r.removeClass("ck-list-p-focus")})},Qt=function(){var t=0;if(!isUndefined(e.prompt)&&valType(e.prompt)=="array"){for(t=e.prompt.length;t>-1;t--)isUndefined(e.prompt[t])||e.prompt[t].remove();e.prompt=null}e.prompt=[]},qi=function(){Qt();for(var t=0;t<a.prompt.length;t++){var i=a.prompt[t];if(!isUndefined(i)&&"words"in i&&"time"in i&&!isUndefined(i.time)&&!isUndefined(i.words)&&valType(i.time)=="number"){var r=w("ck-bar-progress-prompt");r.attr("data-words",i.words).attr("data-time",i.time),e.bar.pbox.bg.append(r);var n=r.getWidth()*.5/e.bar.pbox.bg.getWidth()*50,s=i.time/T*100-n;s<0&&(s=0),s>100&&(s=100),r.css({left:s+"%"}),r.mouseover(function(){this.attr("data-words")&&ei(this)}),r.mouseout(function(){this.attr("data-words")&&ei()}),e.prompt.push(r)}}},ei=function(t){if(isUndefined(e.promptWords)&&(e.promptWords=w("ck-prompt-words"),S.append(e.promptWords),e.promptWords.content=w("ck-prompt-content"),e.promptWords.append(e.promptWords.content)),isUndefined(t)){e.promptWords.content.htm(""),e.promptWords.hide();return}e.promptWords.content.htm(t.attr("data-words")),e.promptWords.show();var i=e.promptWords.getWidth(),r=e.promptWords.getHeight(),n=e.bar.pbox.bg,s=parseFloat(t.attr("data-time")),l=C.getHeight()-pe(),E=t.offset().left-C.offset().left+t.getWidth()*.5-i*.5;isUndefined(e.preview)?(l=C.getHeight()-parseFloat(pe()+e.tip.minHeight+parseInt(e.tip.css("margin-bottom"))),l-=pe()-e.bar.getHeight()):l=C.getHeight()-parseFloat(pe()+e.preview.smallHight+parseInt(e.preview.css("margin-bottom"))),l-=parseFloat(e.promptWords.css("margin-bottom")),l-=r,E-=parseFloat(e.promptWords.css("margin-right")),E<0&&(E=0),E>C.getWidth()-i&&(E=C.getWidth()-i),e.promptWords.css({top:l+"px",left:E+"px"})},ti=function(t){if(isUndefined(e.preview)||(e.preview.remove(),e.preview=null),!isUndefined(t)){e.preview=w("ck-preview"),S.append(e.preview),isUndefined(a.preview.type)&&(a.preview.type=0),a.preview.type==1&&(e.preview.bg=w("ck-preview-bg"),e.preview.append(e.preview.bg));var i=[],r=function(l,E,u,g){if(a.preview.type==1){e.preview.bg.img=[];for(var A=0;A<i.length;A++)for(var U=0;U<E/g;U++){var x=w("ck-preview-img");x.attr("data-img",i[A]).attr("data-i",U),x.css({width:l+"px",height:g+"px","background-position":"left "+-(U*g)+"px"}),e.preview.bg.append(x),e.preview.bg.img.push(x)}e.preview.bg.css({width:l*(E/g)*(i.length+1)+"px",height:g+"px"})}e.preview.bigWidth=l,e.preview.bigHight=E,e.preview.smallWidth=u,e.preview.smallHight=g,a.preview.type==1&&(e.preview.frame=w("ck-preview-frame"),e.preview.append(e.preview.frame),e.preview.frame.css({width:u+"px",height:g-parseFloat(e.preview.frame.css("border-width"))*2+"px"}))};if(valType(a.preview)=="object")if(valType(a.preview.file)=="array"){i=a.preview.file;var n=[10,10];if(valType(a.preview.thumbnail)=="array"&&a.preview.thumbnail.length>1&&(valType(a.preview.thumbnail[0])=="number"&&(n[0]=a.preview.thumbnail[0]),valType(a.preview.thumbnail[1])=="number"&&(n[1]=a.preview.thumbnail[1]),a.preview.thumbnail=n),i[0]){var s=Ge(i[0],"ck-preview-load-img").addListener("load",function(){r(this.getWidth(),this.getHeight(),this.getWidth()/n[0],this.getHeight()/n[1]),this.remove()});S.append(s)}}else e.preview.removeChild(),e.preview=null;else e.preview.removeChild(),e.preview=null}},ii=function(t){if(Ye&&(clearTimeout(Ye),Ye=null),t<0&&!isUndefined(e.preview)){Ye=setTimeout(function(){e.preview.hide(),Ye=null},200);return}if(!isUndefined(e.preview)&&!isUndefined(a.preview.thumbnail)&&T>0){isUndefined(a.preview.type)&&(a.preview.type=0);var i=2,r=a.preview.thumbnail;isUndefined(a.preview.scale)||(i=a.preview.scale);var n=0,s=0,l=0,E=0,u=0,g=e.preview.smallWidth,A=e.preview.smallHight,U=t*e.bar.pbox.bg.getWidth()/T+(e.bar.pbox.bg.offset().left-C.offset().left);if(e.preview.css("display")=="none"&&e.preview.show(),e.preview.css({height:A+"px"}),a.preview.type==1){n=parseInt(t/(i*r[0])),s=parseInt(t/i);var x=n-5,P=n+5;x<0&&(x=0),P>e.preview.bg.img.length-1&&(P=e.preview.bg.img.length-1);for(var V=x;V<P;V++)if(e.preview.bg.img[V].attr("data-img")){var Y=e.preview.bg.img[V].css("background-position");e.preview.bg.img[V].css({background:"url("+e.preview.bg.img[V].attr("data-img")+") no-repeat"}),e.preview.bg.img[V].attr("data-img",""),e.preview.bg.img[V].css("background-position",Y)}if(u=e.preview.frame.getWidth(),E=U-u*.5,l=-(s*g+g*.5)+U,E<0&&(E=0,U=(u-g)*.5,l=-(s*g)+U),E>e.preview.getWidth()-e.preview.frame.getWidth()){var K=E-(e.preview.getWidth()-e.preview.frame.getWidth());E=e.preview.getWidth()-e.preview.frame.getWidth(),l-=K}e.preview.bg.css({left:l+"px"}),e.preview.frame.css({left:E+"px"})}else{var X=t/i/(r[0]*r[1]);s=parseInt(X);var Q=parseInt((X-s)*100),ke=parseInt(Q/r[0]),H=Q%r[0],ee=a.preview.file;l=U-g*.5,l<0&&(l=0),l>C.getWidth()-g&&(l=C.getWidth()-g),e.preview.css({width:e.preview.smallWidth+"px",background:"url("+ee[s]+") no-repeat","background-position":"-"+H*g+"px -"+ke*A+"px",left:l+"px"})}}},le=function(){if(e.loading.hide(),!(a.controls||!a.errorShow)){isUndefined(e.error)&&(e.error=w("ck-error"),S.append(e.error));var t=b.error.message;t||(t=language.error.noMessage);var i=t+"(code:"+b.error.code+")";e.error.htm(i),e.error.show()}},Ze=function(t){var i=w("ckplayer-error",t);W("body").append(i)},Yi=function(){if(!isUndefined(a.next)){if(valType(a.next)=="object"){if("content"in a.next){e.next=f.layer(a.next);return}if("title"in a.next){N(e.bar.nextEpisode,a.next.title);return}}N(e.bar.nextEpisode,language.next)}},Xi=function(){valType(a.next)=="object"&&("click"in a.next&&(valType(a.next.click)=="function"?a.next.click():valType(a.next.click)=="string"&&_e(a.next.click)),"link"in a.next&&(window.location.href=a.next.link),B("next"))},_i=function(){if(!b.loop&&!isUndefined(a.ended)){lt(),e.ended=f.layer(a.ended),e.ended&&e.centerPlay.hide();return}},$i=function(){if(b.smallWindows){if(b.webFull||b.theatre||b.full){dt();return}var t=document.documentElement.scrollTop||document.body.scrollTop;t>b.offset().top+b.getHeight()?C.hasClass("ckplayer-ckplayer-smallwindow")||(C.addClass("ckplayer-ckplayer-smallwindow"),B("smallWindows",!0),mt=!0,a.smallWindowsDrag&&ni(!0),ai(),he()):dt()}},dt=function(){C.hasClass("ckplayer-ckplayer-smallwindow")&&(C.removeClass("ckplayer-ckplayer-smallwindow"),a.smallWindowsDrag&&ni(),B("smallWindows",!1),mt=!1,ri(),he())},ni=function(t){var i=W(document),r=0,n=0,s=0,l=0,E=!1;isUndefined(t)||(E=t);var u=function(U){U.preventDefault&&U.preventDefault(),U=U||window.event;var x=ye(U);s=x.x,l=x.y,i.mousemove(g),i.mouseup(A),C.css({cursor:"move"})},g=function(U){U=U||window.event;var x=ye(U),P=C.offset();n=x.y-l,r=x.x-s,s=x.x,l=x.y;var V=P.left+r,Y=P.top+n;C.css({left:V+"px",top:Y+"px"}),C.css("position")!="fixed"&&C.css({position:"fixed"}),gt=!0},A=function(){i.removeListener("mousemove",g),i.removeListener("mouseup",A),C.css({cursor:"default"})};E?C.mousedown(u):C.unbind("mousedown")},he=function(){var t=C.getWidth()*fe*.01,i=C.getHeight()*fe*.01,r=re.getWidth(),n=re.getHeight();if(re.css({transform:"rotate("+Ae+"deg)","-ms-transform":"rotate("+Ae+"deg)","-moz-transform":"rotate("+Ae+"deg)","-webkit-transform":"rotate("+Ae+"deg)","-o-transform":"rotate("+Ae+"deg)",width:fe+"%",height:fe+"%"}),Ae!=0&&Ae!=180){if(n>t&&r>i){n/t>r/i?re.css({height:fe+"%",width:i+"px"}):re.css({width:fe+"%",height:t+"px"});return}if(n<t&&r<i){t>i?re.css({height:fe+"%",width:i+"px"}):n/r>=t/i?re.css({width:fe+"%",height:t+"px"}):re.css({height:fe+"%",width:i+"px"});return}if(n>=t&&r<=i){re.css({width:fe+"%",height:t+"px"});return}r>=i&&n<t&&re.css({height:fe+"%",width:i+"px"})}},ri=function(){Lt&&(e.bar.show(),e.topBar.show()),Ct&&e.rightBar.show(),e.tempTime.hide(),isUndefined(e.logo)||e.logo.show()},ai=function(t){isUndefined(t)&&(t=!0),e.bar.hide(),e.topBar.hide(),e.rightBar.hide(),t&&e.tempTime.show(),isUndefined(e.logo)||e.logo.hide()},R=function(t,i){e.message.htm("");var r=function(){e.message.removeClass("ck-message-right").removeClass("ck-animate-bouncein").removeClass("ck-animate"),e.message.hide()};t?(e.message.htm(t),e.message.show(),e.message.hasClass("ck-animate")||e.message.addClass("ck-animate ck-animate-bouncein"),!isUndefined(i)&&i&&(e.message.hasClass("ck-message-right")||e.message.addClass("ck-message-right")),Ne&&(clearTimeout(Ne),Ne=null),Ne=setTimeout(function(){r(),Ne=null},1500)):r()},N=function(t,i,r,n){e.tip.content.htm(""),i?(e.tip.content.htm(i),e.tip.show(),e.tip.hasClass("ck-animate")||e.tip.addClass("ck-animate ck-animate-bouncein"),isUndefined(n)&&(n="auto"),n=="left"?(e.tip.content.removeClass("ck-content-float-auto").addClass("ck-content-float-left"),e.tip.triangle.removeClass("ck-triangle-auto").addClass("ck-triangle-left")):(e.tip.content.removeClass("ck-content-float-left").addClass("ck-content-float-auto"),e.tip.triangle.removeClass("ck-triangle-left").addClass("ck-triangle-auto")),Ji(t,r,n),isUndefined(qe)&&(qe=function(){Ve&&(clearTimeout(Ve),Ve=null)},ht=function(s){qe(),Ve=setTimeout(function(){N(),Ve=null},100),s&&s.removeListener("mouseout",ht)}),qe(),t.mouseout(function(){ht(t)})):(e.tip.hide(),e.tip.removeClass("ck-animate"),e.tip.removeClass("ck-animate-bouncein"))},Ji=function(t,i,r){var n=t.offset(),s=C.offset(),l=e.tip.getWidth(),E=e.tip.getHeight(),u=t.getWidth(),g=0,A=n.top-s.top-E;pe()>e.bar.getHeight()&&(A-=pe()-e.bar.getHeight()),l>u?g=n.left-s.left-(l-u)*.5:g=n.left-s.left+(u-l)*.5,r=="left"&&(g=n.left-s.left-l,A=n.top-s.top),isUndefined(i)||(g=i.x-s.left-l*.5),g<0&&(g=0),A<0&&(A=0),g>S.getWidth()-l&&(g=S.getWidth()-l),A>S.getHeight()-E&&(A=S.getHeight()-E),e.tip.css({left:g+"px",top:A-parseInt(e.tip.css("margin-bottom"))+"px"})},Zi=function(){var t=e.bar.pbox.bg,i=e.bar.pbox.play,r=e.bar.pbox.slider,n=e.bar.pbox.mouseLine;r.unbind(),t.unbind();var s=0,l=0,E=W(document),u=0,g=function(H){if(H.preventDefault&&H.preventDefault(),!!a.timeScheduleAdjust){H=H||window.event;var ee=r.offset(),be=t.offset(),Z=ye(H);xe=!0,l=Z.x;var j=ee.left-be.left;u=j*T/(t.getWidth()-r.getWidth()),r.removeListener("mousedown",g),r.removeListener("touchstart",g),E.mousemove(A),E.mouseup(U),r.touchmove(A),r.touchend(U),ct(!0)}},A=function(H){H=H||window.event;var ee=r.offset(),be=t.offset(),Z=ye(H);xe=!0,s=l-Z.x,l=Z.x;var j=ee.left-s-be.left;j<0&&(j=0),j>t.getWidth()-r.getWidth()&&(j=t.getWidth()-r.getWidth()),e.bar.pbox.addClass("ck-bar-progress-slider-move");var ae="";if(a.live)ae=fi(j*ft()/(t.getWidth()-r.getWidth()));else{switch(ae=j*T/(t.getWidth()-r.getWidth()),a.timeScheduleAdjust){case 2:ae<u&&(j=-1e3,R(language.timeScheduleAdjust.prohibitBackOff));break;case 3:if(ae>u){j=-1e3,R(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(ae<te){j=-1e3,f.seek(te),R(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(ae>$){j=-1e3,f.seek($),R(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}ae=formatSeconds(ae)}N(r,ae),j>=0?(r.css({left:j+"px"}),i.css({width:j+r.getWidth()*.5+"px"})):xe=!1},U=function(){if(ct(),E.removeListener("mousemove",A),E.removeListener("mouseup",U),r.removeListener("touchmove",A),r.removeListener("touchend",U),r.mousedown(g),r.touchstart(g),a.live){var ee=parseInt(a.live+i.getWidth()*ft()/(t.getWidth()-r.getWidth()*.5));B("playback",{time:ee,date:date("Y-m-d H:i:s",ee)}),B("seek",{time:ee,state:"seeking",date:date("Y-m-d H:i:s",ee)})}else{var H=i.getWidth()*T/(t.getWidth()-r.getWidth()*.5);H>T&&(H=T),F=0,f.seek(H)}e.bar.pbox.removeClass("ck-bar-progress-slider-move"),x&&N()},x=!0,P=function(){var H="";a.live?H=language.live:H=formatSeconds(parseInt(r.css("left"))*T/(t.getWidth()-r.getWidth())),x=!1,N(r,H)},V=function(){x=!0};r.mousedown(g),r.mouseover(P),r.mouseleave(V),r.touchstart(g);var Y=function(H){H=H||window.event;var ee=ye(H),be=t.offset(),Z=ee.x-be.left;if(b.full&&(Z+=C.offset().left),a.live){var ae=parseInt(a.live+ft()*Z/t.getWidth());B("playback",{time:ae,date:date("Y-m-d H:i:s",ae)}),B("seek",{time:ae,state:"seeking",date:date("Y-m-d H:i:s",ae)})}else{var j=T*Z/t.getWidth();switch(a.timeScheduleAdjust){case 0:R(language.timeScheduleAdjust.prohibit);return;case 2:if(j<se){R(language.timeScheduleAdjust.prohibitBackOff);return}break;case 3:if(j>se){R(language.timeScheduleAdjust.prohibitForward);return}break;case 4:if(j<te){R(language.timeScheduleAdjust.prohibitLookBack);return}break;case 5:if(j>$){R(language.timeScheduleAdjust.prohibitForwardNotViewed);return}break}F=0,f.seek(j)}Z>t.getWidth()-r.getWidth()*.5&&(Z=t.getWidth()-r.getWidth()*.5),Z<r.getWidth()*.5&&(Z=r.getWidth()*.5),xe=!0,i.css({width:Z+"px"}),r.css({left:Z-r.getWidth()*.5+"px"})},X=null,K=function(H){H=H||window.event;var ee=ye(H),be=t.offset(),Z=ee.x-be.left;Q(),b.full&&(Z+=C.offset().left);var j=0;a.live?j=fi(ft()*Z/t.getWidth()):(j=T*Z/t.getWidth(),ii(j),j=formatSeconds(j)),N(t,j,ee),n.css({left:Z-e.bar.pbox.mouseLine.getWidth()*.5+"px"})},X=null,Q=function(){X&&(clearTimeout(X),X=null),qe()},ke=function(H){Q(),X=setTimeout(function(){ii(-1)},30)};t.mousedown(Y),t.mousemove(K),t.mouseout(ke),n.mouseover(Q)},Gi=function(){var t=e.bar.vbox.volume.box,i=e.bar.vbox.volume.bg,r=e.bar.vbox.volume.pp,n=e.bar.vbox.volume.slider,s=W(document),l=0,E=0,u=function(x){x.preventDefault&&x.preventDefault(),ct(!0),x=x||window.event;var P=ye(x);E=P.y,n.removeListener("mousedown",u),n.removeListener("touchstart",u),e.bar.vbox.mouseDown=!0,s.mousemove(g),s.mouseup(A),n.touchmove(g),n.touchend(A)},g=function(x){x=x||window.event;var P=ye(x),V=n.offset(),Y=t.offset(),K=i.offset();l=P.y-E,E=P.y;var X=V.top-Y.top+l,Q=K.top-Y.top,ke=K.top+i.getHeight()-Y.top-n.getHeight();X<Q&&(X=Q),X>ke&&(X=ke),n.css({top:X+"px"});var H=X-Q+n.getHeight()*.5;r.css({"margin-top":H+"px"});var ee=(i.getHeight()-H-n.getHeight()*.5)/(i.getHeight()-n.getHeight());f.volume(ee)},A=function(){ct(),s.removeListener("mousemove",g),s.removeListener("mouseup",A),n.removeListener("touchmove",g),n.removeListener("touchend",A),n.mousedown(u),n.touchstart(u),e.bar.vbox.mouseDown=!1};n.mousedown(u),n.touchstart(u);var U=function(x){x=x||window.event;var P=ye(x),V=i.offset(),Y=P.y-V.top,K=i.getHeight(),X=1-Y/K;f.volume(X)};i.mousedown(U)},oi=function(t){if(!(valType(a.live)=="boolean"&&a.live)&&!xe){var i=e.bar.pbox.bg,r=e.bar.pbox.slider,n=t/T*100;valType(a.live)=="number"&&(n="100"),e.bar.pbox.play.css({width:n+"%"});var s=r.getWidth()/i.getWidth()*100,l=n-s*.5;l<0&&(l=0),l>100-s&&(l=100-s),e.bar.pbox.slider.css({left:l+"%"}),si()}},si=function(){var t=e.bar.pbox.bg,i=e.bar.pbox.slider,r=0;e.bar.pbox.css("transition-duration")&&(r=parseFloat(e.bar.pbox.css("transition-duration"))*1e3+20);var n=function(){var s=parseInt(e.bar.pbox.slider.css("left"));s<0&&(s=0,e.bar.pbox.slider.css({left:s+"px"})),s>t.getWidth()-i.getWidth()&&(s=t.getWidth()-i.getWidth(),e.bar.pbox.slider.css({left:s+"px"}))};setTimeout(n,r)},li=function(){e.topBar.timeEle.htm(date("H:i:s")),setTimeout(li,1e3)},Bt=function(t){if(!isUndefined(e.bar.vbox)){var i=e.bar.vbox.volume.box,r=e.bar.vbox.volume.bg,n=e.bar.vbox.volume.pp,s=e.bar.vbox.volume.slider;e.bar.vbox.volume.txt.htm(parseInt(t*100));var l=r.getHeight();if(l){var E=l-t*l;n.css({"margin-top":E+"px"});var u=r.offset().top-i.offset().top+E-s.getHeight()*.5;s.css({top:u+"px"})}}},di=function(){if(o){var t=o.buffered.length;if(t>0){var i=o.buffered.end(t-1);_<i&&(_=i),Te("loadTime",parseInt(_*100)*.01),e.bar.pbox.load.css("width",_/T*100+"%")}}},Ki=function(t){t?(e.bar.vbox.muted.hide(),e.bar.vbox.exitMuted.show(),e.ad.bottom.mutedAndExit.muted.hide(),e.ad.bottom.mutedAndExit.exitMuted.show(),R(language.muted)):(e.bar.vbox.muted.show(),e.bar.vbox.exitMuted.hide(),e.ad.bottom.mutedAndExit.muted.show(),e.ad.bottom.mutedAndExit.exitMuted.hide())},Te=function(t,i){if(isUndefined(e.about.sourceData)&&!isUndefined(e.about.find("ul"))){e.about.sourceData=e.about.find("ul").eq(0).htm(),e.about.objData={};for(var r=/{(.*?)}/g,n=e.about.sourceData.match(r);n=r.exec(e.about.sourceData);)e.about.objData[n[1]]="0"}if(!isUndefined(e.about.find("ul"))){var r=null,s=e.about.sourceData,l=e.about.textareaText;if(e.about.objData){for(var E in e.about.objData)if(t!=E){r=new RegExp("{"+E+"}","g");var u=e.about.objData[E];isUndefined(u)&&(u="0"),s=s.replace(r,u),l=l.replace(r,u)}}return r=new RegExp("{"+t+"}","g"),s=s.replace(r,i||""),l=l.replace(r,i||""),e.about.textareaEle.htm(l),e.about.objData[t]=i,e.about.find("ul").eq(0).htm(s)}},Qi=function(){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(A){window.setTimeout(A,16.666666666666668)},i,r,n,s,l,E;s=0,l=Date.now();var u=function(){E=Date.now()-l,s+=1,E>=1e3&&(l+=E,g(s),s=0),t(u)},g=function(A){A!=b.fps&&(b.fps=A,Te("fps",A),B("fps",A))};isUndefined(b.fps)&&(b.fps=0),u()},en=function(t){var i=W(t);if(!isUndefined(i))return valType(i)=="htmlarray"&&(i=i[0]),isUndefined(i.captureParentNode)&&(i.captureParentNode=i.parentNode,i.prevElement=i.prev(),i.nextElement=i.next()),i},W=function(t,i){var r=null;document&&(r=document),isUndefined(i)||(r=i);var n=[];if(t)if(valType(t)=="htmlobject"||valType(t)=="object"){if(n=t,!isUndefined(n.ckplayer))return n}else if(valType(t)=="string"&&t!="")switch(t.substr(0,1)){case".":if(t=t.substr(1,t.length),r.getElementsByClassName){if(n=r.getElementsByClassName(t),!n.length)return null}else if(!r&&document.getElementsByClassName){if(n=document.getElementsByClassName(t),!n.length)return null}else{var E=new RegExp(" "+t+" ","i"),s=null;r.getElementsByTagName?s=r.getElementsByTagName("*"):s=document.getElementsByTagName("*");for(var l=0;l<s.length;l++)E.test(" "+s[l].className+" ")&&n.push(s[l])}n&&n.length===0&&(n=null);break;case"#":t=t.substr(1,t.length),r.getElementById?n=r.getElementById(t):n=document.getElementById(t);break;default:var E=new RegExp(" "+t+" ","i");r.getElementsByTagName?n=r.getElementsByTagName(t):n=document.getElementsByTagName(t),n?t=="body"||t=="document"||t=="html"?n=n[0]:n.length===0&&(n=null):n=null;break}else n=t;else n=document;if(n)if(valType(n)=="htmlobject"||valType(n)=="object"||valType(n)=="document")n.ckplayer="Thanks for using",n.find=function(u){return W(u,this)},n.attr=function(u,g){return isUndefined(g)?this.getAttribute(u):(this.setAttribute(u,g),this)},n.removeAttr=function(u){return this.removeAttribute(u),this},n.css=function(u,g){var A=function(Y){if(Y.indexOf("-")!=-1){var K=Y.split("-"),X=K[0],Q="",ke="";return K.length>1&&(Q=K[1].substr(0,1).toLocaleUpperCase()+K[1].substr(1,K[1].length-1)),K.length>2&&(Q=K[2].substr(0,1).toLocaleUpperCase()+K[2].substr(1,K[2].length-1)),X+Q+ke}return Y};if(isUndefined(g)){if(!isUndefined(u)&&valType(u)=="string")return this.currentStyle?this.currentStyle[u]:document.defaultView.getComputedStyle(this,null)[u];if(isUndefined(u))return this.currentStyle?this.currentStyle:document.defaultView.getComputedStyle(this,null)}if(valType(u)!="object"){var U=A(u);if(this.length>1)for(var x=0;x<this.length;x++)this[x].style[U]=g;else this.style[U]=g}else for(var P in u){var V=A(P);if(valType(this)=="htmlarray")for(var x=0;x<this.length;x++)this[x].style[V]=u[P];else this.style[V]=u[P]}return this},n.hasClass=function(u){if(isUndefined(u))return!1;var g=new RegExp("(\\s|^)"+u+"(\\s|$)");return!!(this.className&&this.className.match(g))},n.addClass=function(u){return this.hasClass(u)||(this.className&&this.className.substr(this.className.length-1,1)!=" "&&(this.className+=" "),this.className+=u),this},n.removeClass=function(u){return this.hasClass(u)&&(this.className=this.className.replace(new RegExp("(\\s|^)"+u+"(\\s|$)")," "),this.className.substr(this.className.length-1,1)==" "&&(this.className=this.className.substr(0,this.className.length-1)),this.className||this.removeAttribute("class")),this},n.searchClass=function(u){for(var g=this.className.split(" "),A=0;A<g.length;A++)if(g[A].substr(0,u.length)==u)return g[A];return this},n.removeCss=function(u){var g=this.attr("style");if(g){for(var A=g.split(";"),U={},x=0;x<A.length;x++){var P=A[x].split(":");P.length==2&&P[0]&&P[0].trim()!=u&&(U[P[0].trim()]=P[1].trim())}this.attr("style",""),this.css(U)}},n.addListener=function(u,g,A){return addListener(this,u,g,A)},n.removeListener=function(u,g,A){return removeListener(this,u,g,A)},n.prev=function(){return prev(this)},n.next=function(){return next(this)},n.append=function(u){return this.appendChild(u),this},n.remove=function(){return isUndefined(this.parentNode)||this.parentNode.removeChild(this),null},n.bind=function(u,g,A){return addListener(this,u,g,A)},n.unbind=function(u,g){var A=0,U=[];if(!isUndefined(g))n.removeListener(u,g);else if(isUndefined(u)){if(!isUndefined(this.listenerList))for(U=this.listenerList,A=0;A<U.length;A++)n.removeListener(U[A][0],U[A][1])}else if(!isUndefined(this.listenerList))for(U=this.listenerList,A=0;A<U.length;A++)U[A][0]==u&&n.removeListener(u,U[A][1])},n.htm=function(u){if(!isUndefined(u))n.innerHTML=u;else return n.innerHTML},n.htmReplace=function(u,g,A){if(!isUndefined(g)&&!isUndefined(u)){isUndefined(this.attr("data-htm"))&&this.attr("data-htm",A);var U=this.attr("data-htm"),x=new RegExp(u,"g");U=U.replace(x,g),this.htm(U)}},n.offset=function(){for(var u=this.offsetParent,g=this.offsetLeft,A=this.offsetTop;u&&u.tagName!=="BODY";)/MSIE 8\.0/.test(navigator.userAgent)||(g+=u.clientLeft,A+=u.clientTop),g+=u.offsetLeft,A+=u.offsetTop,u=u.offsetParent;return{top:A,left:g}},n.fixed=function(){return this.css("position")=="fixed"?!0:isUndefined(this.offsetParent)?!1:W(this.offsetParent).fixed()},n.getWidth=function(){return this.offsetWidth},n.getHeight=function(){return this.offsetHeight},isUndefined(n.width)&&(n.width=function(){return this.offsetWidth}),isUndefined(n.height)&&(n.height=function(){return this.offsetWidth}),n.resize=function(u){addListener(window,"resize",u)},n.click=function(u){return addListener(this,"click",u),this},n.singleClick=function(u){return isUndefined(this.dbClick)&&(ci(this),this.dbClick=!0),this.addListener("sigClick",u),this},n.doubleClick=function(u){return isUndefined(this.dbClick)&&(ci(this),this.dbClick=!0),this.addListener("dobClick",u),this},n.mouseover=function(u){return addListener(this,"mouseover",u),this},n.mouseout=function(u){return addListener(this,"mouseout",u),this},n.mousedown=function(u){return addListener(this,"mousedown",u),this},n.mouseup=function(u){return addListener(this,"mouseup",u),this},n.mousemove=function(u){return addListener(this,"mousemove",u),this},n.mouseWheel=function(u){return addListener(this,"mousewheel",u),addListener(this,"DOMMouseScroll",u,!1),this},n.mouseleave=function(u){return addListener(this,"mouseleave",u),this},n.touchstart=function(u){return addListener(this,"touchstart",u),this},n.touchmove=function(u){return addListener(this,"touchmove",u),this},n.touchend=function(u){return addListener(this,"touchend",u),this},n.show=function(){return this.css("display","block"),this},n.hide=function(){return this.css("display","none"),this},n.animate=function(u,g,A,U){if(isUndefined(this.CK))return n;var x=this,P=this.CK,V=P.getWidth(),Y=P.getHeight(),K=10;if(this.timerTween=null,this.tweenPlay=!0,isUndefined(u))return this;(isUndefined(g)||g==0)&&(g=1e3),(isUndefined(A)||A=="")&&(A="None.easeIn");var X=A.split("."),Q={None:{easeIn:function(d,c,m,y){return m*d/y+c},easeOut:function(d,c,m,y){return m*d/y+c},easeInOut:function(d,c,m,y){return m*d/y+c}},Quadratic:{easeIn:function(d,c,m,y){return m*(d/=y)*d+c},easeOut:function(d,c,m,y){return-m*(d/=y)*(d-2)+c},easeInOut:function(d,c,m,y){return(d/=y/2)<1?m/2*d*d+c:-m/2*(--d*(d-2)-1)+c}},Cubic:{easeIn:function(d,c,m,y){return m*(d/=y)*d*d+c},easeOut:function(d,c,m,y){return m*((d=d/y-1)*d*d+1)+c},easeInOut:function(d,c,m,y){return(d/=y/2)<1?m/2*d*d*d+c:m/2*((d-=2)*d*d+2)+c}},Quartic:{easeIn:function(d,c,m,y){return m*(d/=y)*d*d*d+c},easeOut:function(d,c,m,y){return-m*((d=d/y-1)*d*d*d-1)+c},easeInOut:function(d,c,m,y){return(d/=y/2)<1?m/2*d*d*d*d+c:-m/2*((d-=2)*d*d*d-2)+c}},Quintic:{easeIn:function(d,c,m,y){return m*(d/=y)*d*d*d*d+c},easeOut:function(d,c,m,y){return m*((d=d/y-1)*d*d*d*d+1)+c},easeInOut:function(d,c,m,y){return(d/=y/2)<1?m/2*d*d*d*d*d+c:m/2*((d-=2)*d*d*d*d+2)+c}},Sine:{easeIn:function(d,c,m,y){return-m*Math.cos(d/y*(Math.PI/2))+m+c},easeOut:function(d,c,m,y){return m*Math.sin(d/y*(Math.PI/2))+c},easeInOut:function(d,c,m,y){return-m/2*(Math.cos(Math.PI*d/y)-1)+c}},Exponential:{easeIn:function(d,c,m,y){return d==0?c:m*Math.pow(2,10*(d/y-1))+c},easeOut:function(d,c,m,y){return d==y?c+m:m*(-Math.pow(2,-10*d/y)+1)+c},easeInOut:function(d,c,m,y){return d==0?c:d==y?c+m:(d/=y/2)<1?m/2*Math.pow(2,10*(d-1))+c:m/2*(-Math.pow(2,-10*--d)+2)+c}},Circular:{easeIn:function(d,c,m,y){return-m*(Math.sqrt(1-(d/=y)*d)-1)+c},easeOut:function(d,c,m,y){return m*Math.sqrt(1-(d=d/y-1)*d)+c},easeInOut:function(d,c,m,y){return(d/=y/2)<1?-m/2*(Math.sqrt(1-d*d)-1)+c:m/2*(Math.sqrt(1-(d-=2)*d)+1)+c}},Elastic:{easeIn:function(d,c,m,y,O,ie){if(d==0)return c;if((d/=y)==1)return c+m;if(ie||(ie=y*.3),!O||O<Math.abs(m)){O=m;var Be=ie/4}else var Be=ie/(2*Math.PI)*Math.asin(m/O);return-(O*Math.pow(2,10*(d-=1))*Math.sin((d*y-Be)*(2*Math.PI)/ie))+c},easeOut:function(d,c,m,y,O,ie){if(d==0)return c;if((d/=y)==1)return c+m;if(ie||(ie=y*.3),!O||O<Math.abs(m)){O=m;var Be=ie/4}else var Be=ie/(2*Math.PI)*Math.asin(m/O);return O*Math.pow(2,-10*d)*Math.sin((d*y-Be)*(2*Math.PI)/ie)+m+c},easeInOut:function(d,c,m,y,O,ie){if(d==0)return c;if((d/=y/2)==2)return c+m;if(ie||(ie=y*(.3*1.5)),!O||O<Math.abs(m)){O=m;var Be=ie/4}else var Be=ie/(2*Math.PI)*Math.asin(m/O);return d<1?-.5*(O*Math.pow(2,10*(d-=1))*Math.sin((d*y-Be)*(2*Math.PI)/ie))+c:O*Math.pow(2,-10*(d-=1))*Math.sin((d*y-Be)*(2*Math.PI)/ie)*.5+m+c}},Back:{easeIn:function(d,c,m,y,O){return O==null&&(O=1.70158),m*(d/=y)*d*((O+1)*d-O)+c},easeOut:function(d,c,m,y,O){return O==null&&(O=1.70158),m*((d=d/y-1)*d*((O+1)*d+O)+1)+c},easeInOut:function(d,c,m,y,O){return O==null&&(O=1.70158),(d/=y/2)<1?m/2*(d*d*(((O*=1.525)+1)*d-O))+c:m/2*((d-=2)*d*(((O*=1.525)+1)*d+O)+2)+c}},Bounce:{easeIn:function(d,c,m,y){return m-Q.Bounce.easeOut(y-d,0,m,y)+c},easeOut:function(d,c,m,y){return(d/=y)<1/2.75?m*(7.5625*d*d)+c:d<2/2.75?m*(7.5625*(d-=1.5/2.75)*d+.75)+c:d<2.5/2.75?m*(7.5625*(d-=2.25/2.75)*d+.9375)+c:m*(7.5625*(d-=2.625/2.75)*d+.984375)+c},easeInOut:function(d,c,m,y){return d<y/2?Q.Bounce.easeIn(d*2,0,m,y)*.5+c:Q.Bounce.easeOut(d*2-y,0,m,y)*.5+m*.5+c}}};if(X.length!=2||!(X[0]in Q)||!(X[1]in Q[X[0]]))return null;var ke=Q[X[0]][X[1]],H=function(d){var c=d[1],m=0,y=0;switch(d[0]){case"width":m=x.getWidth(),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c);break;case"height":m=x.getHeight(),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c);break;case"left":isUndefined(x.css("left"))?m=x.offset().left-P.offset().left:m=parseInt(x.css("left")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*V*.01:y=parseInt(c),x.css("right","auto");break;case"right":isUndefined(x.css("right"))?m=P.getWidth()-(x.offset().left-P.offset().left+x.getWidth()):m=parseInt(x.css("right")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*V*.01:y=parseInt(c),x.css("left","auto");break;case"top":isUndefined(x.css("top"))?m=x.offset().top-P.offset().top:m=parseInt(x.css("top")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c),x.css("bottom","auto");break;case"bottom":isUndefined(x.css("bottom"))?m=P.getHeight()-(x.offset().top-P.offset().top+x.getHeight()):m=parseInt(x.css("bottom")),c.substring(c.length-1,c.length)=="%"?y=parseInt(c)*Y*.01:y=parseInt(c),x.css("top","auto");break;case"alpha":!isUndefined(x.css("filter"))&&x.css("filter")!="none"?m=Number(x.css("filter"))*100:!isUndefined(x.css("opacity"))&&x.css("opacity")!="none"?m=x.css("opacity")*100:m=100,c.substring(c.length-1,c.length)=="%"?y=parseInt(c):y=c*100;break}return y-=m,m!=y?{type:d[0],current:m,result:y}:null},ee=function(){x.timerTween!=null&&(clearInterval(x.timerTween),x.timerTween=null)};u=u.replace(/[ ]*,[ ]*|[ ]+/g,";");for(var be=[],Z=u.split(";"),j=0;j<Z.length;j++){var ae=Z[j].split(":");if(ae.length==2){var pi=H(ae);pi&&be.push(pi)}}var Ut=0,nn=function(){var d={};if(x.tweenPlay)if(Ut<g){Ut+=K;for(var c=0;c<be.length;c++){var m=be[c],y=Math.ceil(ke(Ut,m.current,m.result,g));switch(m.type){case"width":d.width=y+"px",d.overflow="hidden";break;case"height":d.height=y+"px",d.overflow="hidden";break;case"left":d.left=y+"px";break;case"right":d.right=y+"px";break;case"top":d.top=y+"px";break;case"bottom":d.bottom=y+"px";break;case"alpha":d.filter="alpha(opacity:"+y*.01+")",d.opacity=y*.01;break}}x.css(d)}else ee(),isUndefined(U)||U(x)};return ee(),this.timerTween=setInterval(nn,K),this},n.animatePlay=function(){return isUndefined(this.timerTween)||(this.tweenPlay=!0),this},n.animatePause=function(){return isUndefined(this.timerTween)||(this.tweenPlay=!1),this};else{n.each=function(u){for(var g in this)if(this.hasOwnProperty(g))if(valType(this[g])=="htmlobject")u(g,this[g]);else try{this[0].nodeName||u(g,this[g])}catch(A){u(g,this[g])}},n.eq=function(u){return valType(this)=="htmlarray"&&this.length>=u+1?this[u]:null};for(var l=0;l<n.length;l++)if(W)try{n[l]=W(n[l])}catch(g){}}return n},w=function(t,i){var r=document.createElement("div"),n=W(r);return t&&n.addClass(t),i&&n.htm(i),n},tn=function(){var t=document.createElement("video"),i=W(t);return i},q=function(t,i){var r=document.createElement("button"),n=W(r);return n.attr("type","button"),t&&n.addClass(t),i&&n.htm(i),n},ut=function(t,i,r){var n=document.createElement("a"),s=W(n);return t&&s.htm(t),!isUndefined(i)&&i&&(s.attr("href",i),s.attr("target","_blank")),r&&s.addClass(r),s},ui=function(t,i){var r=document.createElement("a"),n=W(r);return t&&n.htm(t),!isUndefined(i)&&i?n.attr("href","javascript:"+i+"()"):n.attr("href","javascript:;"),n},Ge=function(t,i){var r=document.createElement("img"),n=W(r);return i&&(r.className=i),t&&(r.src=t),n},ye=function(t){var i=t||window.event;isUndefined(i)&&(i={clientX:0,clientY:0});var r=i.clientX+(document.documentElement.scrollLeft||W("body").scrollLeft),n=i.clientY+(document.documentElement.scrollTop||W("body").scrollTop);return(isUndefined(r.toString())||r.toString()=="NaN")&&(r=i.touches[0].clientX),(isUndefined(n.toString())||n.toString()=="NaN")&&(n=i.touches[0].clientY),r.toString()=="NaN"&&(r=0),n.toString()=="NaN"&&(n=0),{x:r,y:n}},ft=function(){var t=Date.now(),i=a.live;return i.toString().length<13&&(i=i*1e3),t-i},fi=function(t){var i=a.live;return i.toString().length<13&&(i=i*1e3),i+=t,language.lookBack+date("H:i:s",i)},Ke=function(t,i,r){var n=function(){};if(isUndefined(i)||(n=i),checkJs(t)){n();return}var s=document.createElement("script");s.type="text/javascript";var l=!1,E=null,u=function(){E&&clearInterval(E),!l&&(l=!0,valType(n)=="function"&&n())},g=function(){E=setInterval(function(){try{!isUndefined(s.readyState)&&s.readyState=="complete"&&u()}catch(P){}},10)},A=function(){try{s.parentNode&&s.parentNode.removeChild(s)}catch(P){}},U=function(){removeListener(s,"load",U),removeListener(s,"error",x),u()},x=function(){if(removeListener(s,"load",U),removeListener(s,"error",x),A(),!r&&(!a||a.cdnFallback!==!1)){var P=typeof window!="undefined"&&window.ckplayerPlusCdn?window.ckplayerPlusCdn:ckplayerPlusDefaultCdn,V=String(t).match(/\/(hls\.js|flv\.js|mpegts\.js|language)\/([^/?#]+)(?:[?#].*)?$/i);if(P&&P.indexOf("1.1.2")===-1&&V){P.slice(-1)!=="/"&&(P+="/");var Y=P+V[1]+"/"+V[2];if(Y!==t){Ke(Y,i,!0);return}}}};try{addListener(s,"load",U),addListener(s,"error",x)}catch(P){g()}s.src=t,W("head").eq(0).append(s)},ci=function(t){var i=null,r=0;t=W(t),t.click(function(){if(i||(i=setTimeout(function(){try{t.dispatchEvent(new Event("sigClick"))}catch(l){var s=document.createEvent("HTMLEvents");s.initEvent("sigClick",!1,!0),t.dispatchEvent(s)}r=0,i=null},260)),!r)r=new Date().getTime();else if(new Date().getTime()-r<230){try{t.dispatchEvent(new Event("dobClick"))}catch(s){var n=document.createEvent("HTMLEvents");n.initEvent("dobClick",!1,!0),t.dispatchEvent(n)}clearTimeout(i),r=0,i=null}})},ct=function(t){isUndefined(t)&&(t=!1);var i=function(r){r.preventDefault()};t?W("body").addListener("touchmove",i,{passive:!1}):W("body").removeListener("touchmove",i,{passive:!1})};return nt(v)}function ajax(cObj){var callback=null,obj={method:"get",dataType:"json",charset:"utf-8",async:!0,url:"",data:null,success:null,error:null};if(obj=standardization(obj,cObj),!isUndefined(obj.url)){var errorFun=function(v){!isUndefined(obj.error)&&valType(obj.error)=="function"?obj.error(v):obj.success(null)},successFun=function(v){!isUndefined(obj.success)&&valType(obj.success)=="function"&&obj.success(v)},createXHR=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(v){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(p){}}},formatParams=function(v){var p=[];for(var a in v)p.push(encodeURIComponent(a)+"="+encodeURIComponent(v[a]));return p.join("&")};if(valType(cObj)!="object"){isUndefined(obj.error)||obj.error(event);return}if(obj.dataType==="json"||obj.dataType==="text"||obj.dataType==="html"||obj.dataType==="xml"){var xhr=createXHR();if(callback=function(){if(xhr.status===200)if(obj.dataType==="json")try{var jsonData;try{jsonData=JSON.parse(xhr.responseText)}catch(parseErr){jsonData=eval("("+xhr.responseText+")")}successFun(jsonData)}catch(v){successFun(null)}else successFun(xhr.responseText);else errorFun({code:xhr.status,message:xhr.statusText})},obj.data=formatParams(obj.data),obj.method==="get"&&!isUndefined(obj.data)&&obj.data!=""&&(obj.url.indexOf("?")==-1?obj.url+="?"+obj.data:obj.url+="&"+obj.data),obj.async===!0&&addListener(xhr,"readystatechange",function(v){this.readyState===4&&callback!=null&&callback()}),xhr.open(obj.method,obj.url,obj.async),obj.method==="post")try{xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),xhr.setRequestHeader("charset",obj.charset),xhr.send(obj.data)}catch(v){callback()}else try{xhr.send(null)}catch(v){callback()}obj.async===!1&&callback()}else if(obj.dataType==="jsonp"){var oHead=document.getElementsByTagName("head")[0],oScript=document.createElement("script"),callbackName="callback"+new Date().getTime(),params=formatParams(obj.data)+"&callback="+callbackName;oScript.src=obj.url.split("?")+"?"+params,oHead.insertBefore(oScript,oHead.firstChild),window[callbackName]=function(v){!isUndefined(obj.success)&&valType(obj.success)==="function"&&obj.success(v),oHead.removeChild(oScript)}}}}function documentReady(v){var p=!1,a=null,k=function(){a&&clearInterval(a),!p&&(p=!0,valType(v)=="function"&&v())},o=function(){a=setInterval(function(){try{!isUndefined(document.readyState)&&document.readyState=="complete"&&k()}catch(G){}},10)},T=function(){valType(v)=="function"&&v(),removeListener(window,"load",T)};if(!isUndefined(document.body))valType(v)=="function"&&v();else try{addListener(window,"load",T)}catch(G){o()}}function getPath(v){if(typeof window!="undefined"&&window.ckplayerBasePath){var p=window.ckplayerBasePath;if(/\/(?:assets|\.vite\/deps|_next\/static|chunks?)\/?$/i.test(p)&&(p=""),p)return p.slice(-1)!=="/"&&(p+="/"),isUndefined(v)?p:p+v+"/"}for(var a=document.scripts||[],k=a.length?a[a.length-1].src:"",o=0;o<a.length;o++){var T=a[o].getAttribute("name")||a[o].getAttribute("data-name"),G=a[o].src.slice(a[o].src.lastIndexOf("/")+1,a[o].src.lastIndexOf("."));if(T&&(T=="ckplayer"||T=="ckplayer.min"||T=="ckplayer-plus")||a[o].src&&(G=="ckplayer"||G=="ckplayer.min"||G.indexOf("ckplayer")===0)){k=a[o].src;break}}var de="";return k&&k.lastIndexOf("/js/")>-1?de=k.substring(0,k.lastIndexOf("/js/")+1):k&&k.lastIndexOf("/")>-1&&(de=k.substring(0,k.lastIndexOf("/")+1)),isUndefined(v)||(de+=v+"/"),de}function checkJs(v){for(var p=document.scripts,a=0;a<p.length;a++)if(p[a].src==v)return p[a];return!1}function getMaxZIndex(){for(var v=document.all||document.querySelectorAll("*"),p=-1,a=0;a<v.length;a++){var k=null;try{k=window.getComputedStyle(v[a],null).zIndex}catch(o){v[a].style&&(k=v[a].style.zIndex)}k!="auto"&&parseInt(k)>p&&(p=parseInt(k))}return p}function getWindowSize(){return{width:window.innerWidth,height:window.innerHeight}}function standardization(v,p){var a={},k;for(k in v)a[k]=v[k];for(k in p)k in a&&(a[k]=p[k]);return a}function mergeObj(v,p){var a={},k;for(k in v)a[k]=v[k];for(k in p)if(k in a)switch(valType(a[k])){case"object":valType(p[k])=="object"&&(a[k]=mergeObj(a[k],p[k]));break;default:valType(a[k])==valType(p[k])&&(a[k]=p[k]);break}return a}function valType(v){if(typeof v=="undefined")return"undefined";var p=Object.prototype.toString.call(v).split(" ")[1].replace("]","").toLowerCase();return p.substr(0,4)=="html"&&(p.substr(-7)=="element"||p.substr(-8)=="document"||p=="window")&&(p="htmlobject"),(p=="htmlcollection"||p=="nodelist")&&(p="htmlarray"),p}function isUndefined(v){try{return valType(v)==="undefined"||v===void 0||v===null||valType(v)==="number"&&isNaN(v)}catch(p){return!0}return!1}function prev(v){var p=v.previousSibling;if(p==null)return null;if(p.nodeType==3){var a=prev(p);if(a&&a.nodeType==1)return a}else return p.nodeType==1?p:!1}function next(v){var p=v.nextSibling;if(p==null)return null;if(p.nodeType==3){var a=next(p);if(a&&a.nodeType==1)return a}else return p.nodeType==1?p:!1}function addListener(v,p,a,k){if(isUndefined(k)&&(k=!1),v.addEventListener)try{v.addEventListener(p,a,k)}catch(o){}else if(v.attachEvent)try{v.attachEvent("on"+p,a)}catch(o){}else v["on"+p]=a;return isUndefined(v.listenerList)&&(v.listenerList=[]),v.listenerList.push([p,a]),v}function removeListener(v,p,a,k){if(isUndefined(k)&&(k=!1),v.removeEventListener)try{v.removeEventListener(p,a,k)}catch(G){}else if(v.detachEvent)try{v.detachEvent("on"+p,a)}catch(G){}else v["on"+p]=null;if(!isUndefined(v.listenerList)){for(var o=[],T=0;T<v.listenerList.length;T++)(v.listenerList[T][0]!=p||v.listenerList[T][1]!=a)&&o.push(v.listenerList[T]);v.listenerList=o}return v}function formatSeconds(v){isUndefined(v)&&(v=0);var p=parseInt(v);isUndefined(p)&&(p=0),p<0&&(p=0);var a=Math.floor(p/3600)<10?"0"+Math.floor(p/3600):Math.floor(p/3600),k=Math.floor(p/60%60)<10?"0"+Math.floor(p/60%60):Math.floor(p/60%60),o=Math.floor(p%60)<10?"0"+Math.floor(p%60):Math.floor(p%60),T="";return a!=="00"&&(T+=a+":"),T+=k+":"+o,T}function date(v,p){isUndefined(p)&&(p=new Date),p.toString().length<13&&(p=p*1e3);var a,k=p?new Date(p):new Date,o=function(L,_){return(L=L+"").length<_?new Array(++_-L.length).join("0")+L:L},T=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],G={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"},de=["","January","February","March","April","May","June","July","August","September","October","November","December"],M={d:function(){return o(M.j(),2)},D:function(){return M.l().substr(0,3)},j:function(){return k.getDate()},l:function(){return T[M.w()]},N:function(){return M.w()+1},S:function(){return G[M.j()]?G[M.j()]:"th"},w:function(){return k.getDay()},z:function(){return(k-new Date(k.getFullYear()+"/1/1"))/864e5>>0},W:function(){var L=M.z(),_=364+M.L()-L,F,ne=(new Date(k.getFullYear()+"/1/1").getDay()||7)-1;return _<=2&&(k.getDay()||7)-1<=2-_?1:L<=2&&ne>=4&&L>=6-ne?(F=new Date(k.getFullYear()-1+"/12/31"),date("W",Math.round(F.getTime()/1e3))):1+(ne<=3?(L+ne)/7:(L-(7-ne))/7)>>0},F:function(){return de[M.n()]},m:function(){return o(M.n(),2)},M:function(){return M.F().substr(0,3)},n:function(){return k.getMonth()+1},t:function(){var L;return(L=k.getMonth()+1)==2?28+M.L():L&1&&L<8||!(L&1)&&L>7?31:30},L:function(){var L=M.Y();return!(L&3)&&(L%100||!(L%400))?1:0},Y:function(){return k.getFullYear()},y:function(){return(k.getFullYear()+"").slice(2)},a:function(){return k.getHours()>11?"pm":"am"},A:function(){return M.a().toUpperCase()},B:function(){var L=(k.getTimezoneOffset()+60)*60,_=k.getHours()*3600+k.getMinutes()*60+k.getSeconds()+L,F=Math.floor(_/86.4);return F>1e3&&(F-=1e3),F<0&&(F+=1e3),String(F).length==1&&(F="00"+F),String(F).length==2&&(F="0"+F),F},g:function(){return k.getHours()%12||12},G:function(){return k.getHours()},h:function(){return o(M.g(),2)},H:function(){return o(k.getHours(),2)},i:function(){return o(k.getMinutes(),2)},s:function(){return o(k.getSeconds(),2)},O:function(){var L=o(Math.abs(k.getTimezoneOffset()/60*100),4);return k.getTimezoneOffset()>0?L="-"+L:L="+"+L,L},P:function(){var L=M.O();return L.substr(0,3)+":"+L.substr(3,2)},c:function(){return M.Y()+"-"+M.m()+"-"+M.d()+"T"+M.h()+":"+M.i()+":"+M.s()+M.P()},U:function(){return Math.round(k.getTime()/1e3)}};return v.replace(/([a-zA-Z])/g,function(L,_){var F="";return L!=_?F=_:M[_]?F=M[_]():F=_,F})}function dataURLtoBlob(v){for(var p=v.split(","),a=p[0].match(/:(.*?);/)[1],k=atob(p[1]),o=k.length,T=new Uint8Array(o);o--;)T[o]=k.charCodeAt(o);return new Blob([T],{type:a})}function decodeURIString(v){for(var p in v){if(valType(v[p])=="string"&&v[p])try{v[p]=decodeURI(v[p])}catch(a){}valType(v[p])=="object"&&(v[p]=decodeURIString(v[p]))}return v}function getApp(){var v=navigator.userAgent.toLowerCase();if(v.indexOf("iphone")>-1)return"iphone"}function cookie(v,p,a,k){isUndefined(a)&&(a=""),isUndefined(k)&&(k="/");var o=";domain="+a+";path="+k;location.protocol=="https"&&(o+=";SameSite=None;Secure=true");var T=function(M,L){var _=31104e6,F=new Date;F.setTime(F.getTime()+_);try{document.cookie=M+"="+escape(L)+";expires="+F.toGMTString()+o}catch(ne){console.error(ne)}},G=function(M){var L,_=new RegExp("(^| )"+M+"=([^;]*)(;|$)");return(L=document.cookie.match(_))?unescape(L[2]):null},de=function(M){var L=new Date;L.setTime(L.getTime()-1);var _=G(M);_!=null&&(document.cookie=M+"="+_+";expires="+L.toGMTString()+o)};if(!isUndefined(v)&&!isUndefined(p))return p=="delete"?(de(v),null):(T(v,p),G(v));if(!isUndefined(v)&&isUndefined(p))return G(v);isUndefined(v)}function arrayToString(v){var p="";if(!isUndefined(v))for(var a=0;a<v.length;a++){var k=v[a];a>0&&(p+=",");for(var o=0;o<k.length;o++)o>0&&(p+=";"),valType(k[o])=="number"?p+=parseInt(k[o]*100):p+=k[o]}return p}function stringToArray(v){var p=[];if(!isUndefined(v))for(var a=v.split(","),k=0;k<a.length;k++){var o=a[k].split(";");o[1]=parseInt(o[1])*.01,o[2]=parseInt(o[2])*.01,p.push(o)}return p}function documentHidden(v){isUndefined(document.visibilityState)||(v(document.visibilityState==="visible"?"show":"hidden"),addListener(document,"visibilitychange",function(){v(document.visibilityState==="visible"?"show":"hidden")}))}return ckplayerEmbed});