(function(){var b=Function.prototype.call,a=Object.prototype,d=Array.prototype.slice,k,g;if(!Function.prototype.bind)Function.prototype.bind=function(n){var b=this;if("function"!=typeof b)throw new TypeError;var j=d.call(arguments,1),m=function(){if(this instanceof m){var a=function(){};a.prototype=b.prototype;var a=new a,g=b.apply(a,j.concat(d.call(arguments)));return null!==g&&Object(g)===g?g:a}return b.apply(n,j.concat(d.call(arguments)))};return m};g=b.bind(a.toString);k=b.bind(a.hasOwnProperty); if(!Array.isArray)Array.isArray=function(b){return"[object Array]"==g(b)};if(!Array.prototype.forEach)Array.prototype.forEach=function(b,a){var j=f(this),m=0,c=j.length>>>0;if("[object Function]"!=g(b))throw new TypeError;for(;m>>0,c=Array(m);if("[object Function]"!=g(b))throw new TypeError;for(var e=0;e>>0,c=[];if("[object Function]"!=g(b))throw new TypeError;for(var e=0;e>>0;if("[object Function]"!=g(b))throw new TypeError;for(var e=0;e>>0;if("[object Function]"!=g(b))throw new TypeError; for(var c=0;c>>0;if("[object Function]"!=g(b))throw new TypeError;if(!e&&1==arguments.length)throw new TypeError;var c=0,i;if(2<=arguments.length)i=arguments[1];else{do{if(c in a){i=a[c++];break}if(++c>=e)throw new TypeError;}while(1)}for(;c>>0;if("[object Function]"!=g(b))throw new TypeError;if(!c&&1==arguments.length)throw new TypeError;var e,c=c-1;if(2<=arguments.length)e=arguments[1];else{do{if(c in a){e=a[c--];break}if(0>--c)throw new TypeError;}while(1)}do c in this&&(e=b.call(void 0,e,a[c],c,a));while(c--);return e};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(b){var c=f(this),a=c.length>>>0;if(!a)return-1;var e=0;1>>0;if(!e)return-1;var a=e-1;1e&&(b[a]="0"+e);return b.slice(0,3).join("-")+"T"+b.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};b="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"; if(!String.prototype.trim||b.trim()){var b="["+b+"]",q=RegExp("^"+b+b+"*"),e=RegExp(b+b+"*$");String.prototype.trim=function(){return(""+this).replace(q,"").replace(e,"")}}if("0".split(void 0,0).length){var C=String.prototype.split;String.prototype.split=function(b,a){return void 0===b&&0===a?[]:C.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var D=String.prototype.substr;String.prototype.substr=function(b,a){return D.call(this,0>b?0>(b=this.length+b)?0:b:b,a)}}var y=function(b){b=+b; b!==b?b=-1:0!==b&&b!==1/0&&b!==-(1/0)&&(b=(0")[0].readyState;if(!c.track)try{new TextTrackCue(2,3,"")}catch(a){c.track=!0}var h=d.cfg.track,i=function(a){b(a.target).filter("track").each(g)}, g=function(){if(c.track||!h.override&&3==b.prop(this,"readyState"))h.override=!0,d.reTest("track"),document.removeEventListener("error",i,!0),this&&b.nodeName(this,"track")?d.error("track support was overwritten. Please check your vtt including your vtt mime-type"):d.info("track support was overwritten. due to bad browser support")},k=function(){document.addEventListener("error",i,!0);c.track?g():b("track").each(g)};h.override||(d.isReady("track")?k():b(k))}();d.register("mediaelement-core",function(b, d,q,s,o){h=swfobject.hasFlashPlayerVersion("9.0.115");var f=d.mediaelement,n=function(a,c){var a=b(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var t=a.attr("type");if(t)d.type=t,d.container=b.trim(t.split(";")[0]);else if(c||(c=a[0].nodeName.toLowerCase(),"source"==c&&(c=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),t=f.getTypeForSrc(d.src,c))d.type=t,d.container=t;if(t=a.attr("media"))d.media=t;return d},w=!h&&"postMessage"in q&&k,j= function(){var a;return function(){!a&&w&&(a=!0,d.loader.loadScript("https://www.youtube.com/player_api"),b(function(){d.polyfill("mediaelement-yt")}))}}(),m=function(){h?u():j()};d.addPolyfill("mediaelement-yt",{test:!w,d:["dom-support"]});f.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv", "f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};f.mimeTypes.source=b.extend({},f.mimeTypes.audio,f.mimeTypes.video);f.getTypeForSrc=function(a,c){if(-1!=a.indexOf("youtube.com/watch?")|| -1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],d;b.each(f.mimeTypes[c],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};f.srces=function(a,c){a=b(a);if(c)a.removeAttr("src").removeAttr("type").find("source").remove(),b.isArray(c)||(c=[c]),c.forEach(function(b){var c=s.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)}); else{var c=[],d=a[0].nodeName.toLowerCase(),f=n(a,d);f.src?c.push(f):b("source",a).each(function(){f=n(this,d);f.src&&c.push(f)});return c}};b.fn.loadMediaSrc=function(a,c){return this.each(function(){c!==o&&(b(this).removeAttr("poster"),c&&b.attr(this,"poster",c));f.srces(this,a);b(this).mediaLoad()})};f.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(","); f.canThirdPlaySrces=function(a,c){var d="";if(h||w)a=b(a),c=c||f.srces(a),b.each(c,function(b,a){if(a.container&&a.src&&(h&&-1!=f.swfMimeTypes.indexOf(a.container)||w&&"video/youtube"==a.container))return d=a,!1});return d};var p={};f.canNativePlaySrces=function(a,c){var d="";if(k){var a=b(a),h=(a[0].nodeName||"").toLowerCase();if(!p[h])return d;c=c||f.srces(a);b.each(c,function(b,c){if(c.type&&p[h].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};f.setError=function(a,c){c||(c="can't play sources"); b(a).pause().data("mediaerror",c);d.warn("mediaelementError: "+c);setTimeout(function(){b(a).data("mediaerror")&&b(a).trigger("mediaerror")},1)};var B=function(){var b;return function(a,c,e){d.ready(h?"mediaelement-swf":"mediaelement-yt",function(){f.createSWF?f.createSWF(a,c,e):b||(b=!0,m(),B(a,c,e))});!b&&w&&!f.createSWF&&j()}}(),z=function(b,a,c,d,e){c||!1!==c&&a&&"third"==a.isActive?(c=f.canThirdPlaySrces(b,d))?B(b,c,a):e?f.setError(b,!1):z(b,a,!1,d,!0):(c=f.canNativePlaySrces(b,d))?a&&"third"== a.isActive&&f.setActive(b,"html5",a):e?(f.setError(b,!1),a&&"third"==a.isActive&&f.setActive(b,"html5",a)):z(b,a,!0,d,!0)},F=/^(?:embed|object|datalist)$/i,A=function(a,c){var h=d.data(a,"mediaelementBase")||d.data(a,"mediaelementBase",{}),j=f.srces(a),g=a.parentNode;clearTimeout(h.loadTimer);b.data(a,"mediaerror",!1);if(j.length&&g&&!(1!=g.nodeType||F.test(g.nodeName||"")))c=c||d.data(a,"mediaelement"),z(a,c,i.preferFlash||o,j)};b(s).bind("ended",function(a){var c=d.data(a.target,"mediaelement"); (!g||c&&"html5"!=c.isActive||b.prop(a.target,"loop"))&&setTimeout(function(){!b.prop(a.target,"paused")&&b.prop(a.target,"loop")&&b(a.target).prop("currentTime",0).play()},1)});g||d.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var c=d.defineNodeNameProperty(a,"load",{prop:{value:function(){var b=d.data(this,"mediaelement");A(this,b);k&&(!b||"html5"==b.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});p[a]=d.defineNodeNameProperty(a, "canPlayType",{prop:{value:function(c){var d="";k&&p[a].prop._supvalue&&(d=p[a].prop._supvalue.call(this,c),"no"==d&&(d=""));!d&&h&&(c=b.trim((c||"").split(";")[0]),-1!=f.swfMimeTypes.indexOf(c)&&(d="maybe"));return d}}})});d.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var b=this,a=d.data(b,"mediaelementBase")||d.data(b,"mediaelementBase",{});clearTimeout(a.loadTimer);a.loadTimer=setTimeout(function(){A(b);b=null},9)}});q=function(){d.addReady(function(a,c){b("video, audio", a).add(c.filter("video, audio")).each(function(){b.browser.msie&&8=a.duration||a.duration===a._lastDuration)a.duration=d}catch(e){}a.duration&& a.duration!=a._lastDuration?(n(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&c.jwEvents.Model.META(b.extend({duration:a.duration},l),a),a._durationCalcs--):a._durationCalcs++}},p=function(b,a){3>b&&clearTimeout(a._canplaythroughTimer);if(3<=b&&3>a.readyState)a.readyState=b,n(a._elem,"canplay"),clearTimeout(a._canplaythroughTimer),a._canplaythroughTimer=setTimeout(function(){p(4,a)},4E3);if(4<=b&&4>a.readyState)a.readyState=b,n(a._elem,"canplaythrough");a.readyState=b};b.extend(b.event.customEvent, {updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});c.jwEvents={View:{PLAY:function(b){var a=o(b.id);if(a&&!a.stopPlayPause&&(a._ppFlag=!0,a.paused==b.state)){a.paused=!b.state;if(a.ended)a.ended=!1;n(a._elem,b.state?"play":"pause")}}},Model:{BUFFER:function(a){var l=o(a.id);if(l&&"percentage"in a&&l._bufferedEnd!=a.percentage){l.networkState=100==a.percentage?1:2;(isNaN(l.duration)||5a.percentage||100===a.percentage)&&m(l,a);if(l.ended)l.ended= !1;if(l.duration){2a.percentage?p(3,l):20a.percentage)l._bufferedStart=l.currentTime||0;l._bufferedEnd=a.percentage;l.buffered.length=1;if(100==a.percentage)l.networkState=1,p(4,l);b.event.trigger("progress",g,l._elem,!0)}}},META:function(b,a){if(a=a&&a.networkState?a:o(b.id))if("duration"in b){if(!a._metadata||!((!b.height||a.videoHeight==b.height)&&b.duration===a.duration)){a._metadata=!0;var c=a.duration;if(b.duration)a.duration= b.duration;a._lastDuration=a.duration;if(b.height||b.width)a.videoHeight=b.height||0,a.videoWidth=b.width||0;if(!a.networkState)a.networkState=2;1>a.readyState&&p(1,a);a.duration&&c!==a.duration&&n(a._elem,"durationchange");n(a._elem,"loadedmetadata")}}else a._callMeta=!0},TIME:function(b){var a=o(b.id);if(a&&a.currentTime!==b.position){a.currentTime=b.position;a.duration&&a.durationa.readyState&&p(2,a);if(a.ended)a.ended=!1;n(a._elem,"timeupdate")}},STATE:function(a){var b= o(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;p(1,b);n(b._elem,"waiting");break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||m(b,a);3>b.readyState&&p(3,b);if(b.ended)b.ended=!1;n(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,n(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&p(4,b),b.ended=!0,n(b._elem,"ended")}}},Controller:{ERROR:function(b){var a=o(b.id);a&&c.setError(a._elem,b.message)},SEEK:function(b){var a= o(b.id);if(a){if(a.ended)a.ended=!1;if(a.paused)try{a.jwapi.sendEvent("play","false")}catch(c){}if(a.currentTime!=b.position)a.currentTime=b.position,n(a._elem,"timeupdate")}},VOLUME:function(b){var a=o(b.id);if(a&&(b=b.percentage/100,a.volume!=b))a.volume=b,n(a._elem,"volumechange")},MUTE:function(b){if(!b.state){var a=o(b.id);if(a&&a.muted!=b.state)a.muted=b.state,n(a._elem,"volumechange")}}}};var B=function(a){var l=!0;b.each(c.jwEvents,function(c,d){b.each(d,function(b){try{a.jwapi["add"+c+"Listener"](b, "jQuery.webshims.mediaelement.jwEvents."+c+"."+b)}catch(d){return l=!1}})});return l},z=function(b){var a=b.actionQueue.length,c=0,d;if(a&&"third"==b.isActive)for(;b.actionQueue.length&&a>c;)c++,d=b.actionQueue.shift(),b.jwapi[d.fn].apply(b.jwapi,d.args);if(b.actionQueue.length)b.actionQueue=[]},F=function(a){a&&(a._ppFlag===g&&b.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("third"==a.isActive&&(a._ppFlag===g||!a.paused))try{b(a._elem).play()}catch(c){}},1)},A=function(a){if(a&& "video"==a._elemNodeName){var c,d,e,f,v,r,h,j,i=function(i,g){if(g&&i&&!(1>g||1>i||"third"!=a.isActive))if(c&&(c.remove(),c=!1),f=i,v=g,clearTimeout(h),d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e){r=r||b(a._elem).getShadowElement();var k;d&&!e?(k=r.height(),i*=k/g,g=k):!d&&e&&(k=r.width(),g*=k/i,i=k);j=!0;setTimeout(function(){j=!1},9);r.css({width:i,height:g})}},g=function(){if(!("third"!=a.isActive||b.prop(a._elem,"readyState")&&b.prop(this,"videoWidth"))){var r=b.prop(a._elem, "poster");if(r&&(d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e))c&&(c.remove(),c=!1),c=b(''),c.bind("load error alreadycomplete",function(){clearTimeout(h);var a=this,d=a.naturalWidth||a.width||a.offsetWidth,G=a.naturalHeight||a.height||a.offsetHeight;G&&d?(i(d,G),a=null):setTimeout(function(){d=a.naturalWidth||a.width||a.offsetWidth;G=a.naturalHeight||a.height||a.offsetHeight; i(d,G);c&&(c.remove(),c=!1);a=null},9);b(this).unbind()}).prop("src",r).appendTo("body").each(function(){this.complete||this.error?b(this).triggerHandler("alreadycomplete"):(clearTimeout(h),h=setTimeout(function(){b(a._elem).triggerHandler("error")},9999))})}};b(a._elem).bind("loadedmetadata",function(){i(b.prop(this,"videoWidth"),b.prop(this,"videoHeight"))}).bind("emptied",g).bind("swfstageresize updatemediaelementdimensions",function(){j||i(f,v)}).bind("emptied",function(){f=void 0;v=void 0}).triggerHandler("swfstageresize"); g();b.prop(a._elem,"readyState")&&i(b.prop(a._elem,"videoWidth"),b.prop(a._elem,"videoHeight"))}};c.playerResize=function(a){a&&(a=k.getElementById(a.replace(y,"")))&&b(a).triggerHandler("swfstageresize")};b(k).bind("emptied",function(a){a=f(a.target);F(a)});var E;c.jwPlayerReady=function(c){var d=o(c.id),e=0,f=function(){if(!(9h||6<=h)&&a.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady= !0;d.tryedReframeing=0;z(d);F(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(f,9*e),2d.tryedReframeing&&(d.tryedReframeing++,d.shadowElem.css({overflow:"visible"}),setTimeout(function(){d.shadowElem.css({overflow:"hidden"})},16))};if(d&&d.jwapi){if(!d.tryedReframeing)d.tryedReframeing=0;clearTimeout(E);d.jwData=c;d.shadowElem.removeClass("flashblocker-assumed");b.prop(d._elem,"volume",d.volume);b.prop(d._elem,"muted",d.muted);f()}};var H=b.noop;if(h){var K={play:1,playing:1}, t="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),J=t.map(function(a){return a+".webshimspolyfill"}).join(" "),L=function(c){var d=a.data(c.target,"mediaelement");d&&(c.originalEvent&&c.originalEvent.type===c.type)==("third"==d.activating)&&(c.stopImmediatePropagation(),K[c.type]&&d.isActive!=d.activating&&b(c.target).pause())},H=function(c){b(c).unbind(J).bind(J,L);t.forEach(function(b){a.moveToFirstEvent(c,b)})};H(k)}c.setActive=function(c,d, e){e||(e=a.data(c,"mediaelement"));if(e&&e.isActive!=d){"html5"!=d&&"third"!=d&&a.warn("wrong type for mediaelement activating: "+d);var f=a.data(c,"shadowData");e.activating=d;b(c).pause();e.isActive=d;"third"==d?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],b(c).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(b(c).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1);b(c).trigger("mediaelementapichange")}}; var O=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(c){if(c){var d=b,e=c.networkState;for(p(0,c);--d;)delete c[a[d]];c.actionQueue=[];c.buffered.length=0;e&&n(c._elem,"emptied")}}}(),I=function(a,c){var d=a._elem,e=a.shadowElem;b(d)[c?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!c?e.css({width:0,height:0}):e.css({width:d.style.width|| b(d).width(),height:d.style.height||b(d).height()})};c.createSWF=function(d,e,f){if(s){1>q?q=1:q++;var g=b.extend({},i.jwVars,{image:b.prop(d,"poster")||"",file:e.srcProp}),k=b(d).data("jwvars")||{};f||(f=a.data(d,"mediaelement"));if(f&&f.swfCreated)c.setActive(d,"third",f),O(f),f.currentSrc=e.srcProp,b.extend(g,k),i.changeJW(g,d,e,f,"load"),x(d,"sendEvent",["LOAD",g]);else{var v=b.prop(d,"controls"),r="jwplayer-"+a.getID(d),n=b.extend({},i.jwParams,b(d).data("jwparams")),m=d.nodeName.toLowerCase(), p=b.extend({},i.jwAttrs,{name:r,id:r},b(d).data("jwattrs")),o=b('
').css({position:"relative",overflow:"hidden"}),f=a.data(d,"mediaelement",a.objectCreate(D,{actionQueue:{value:[]},shadowElem:{value:o},_elemNodeName:{value:m},_elem:{value:d},currentSrc:{value:e.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(b){if(b>=f.buffered.length)a.error("buffered index size error");else return 0},end:function(b){if(b>= f.buffered.length)a.error("buffered index size error");else return(f.duration-f._bufferedStart)*f._bufferedEnd/100+f._bufferedStart},length:0}}}));I(f,v);o.insertBefore(d);h&&b.extend(f,{volume:b.prop(d,"volume"),muted:b.prop(d,"muted")});b.extend(g,{id:r,controlbar:v?i.jwVars.controlbar||("video"==m?"over":"bottom"):"video"==m?"none":"bottom",icons:""+(v&&"video"==m)},k,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});g.plugins=g.plugins?g.plugins+(","+j):j;a.addShadowDom(d,o);H(d);c.setActive(d, "third",f);i.changeJW(g,d,e,f,"embed");b(d).bind("updatemediaelementdimensions updateshadowdom",function(){I(f,b.prop(d,"controls"))});A(f);u.embedSWF(w,r,"100%","100%","9.0.0",!1,g,n,p,function(c){if(c.success)f.jwapi=c.ref,v||b(c.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!c.ref.parentNode&&o[0].parentNode||"none"==c.ref.style.display)o.addClass("flashblocker-assumed"),b(d).trigger("flashblocker"),a.warn("flashblocker assumed");b(c.ref).css({minHeight:"2px",minWidth:"2px", display:"block"})},9),E||(clearTimeout(E),E=setTimeout(function(){var d=b(c.ref);1d[0].offsetWidth||2>d[0].offsetHeight)&&a.warn("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){b(d).mediaLoad()}, 1)};var x=function(a,b,c,d){return(d=d||f(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10b||100a.browserVersion,P={object:1,OBJECT:1};b.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&q)for(b=0;b