(function(){var b=Function.prototype.call,a=Object.prototype,d=Array.prototype.slice,k,g;if(!Function.prototype.bind)Function.prototype.bind=function(e){var b=this;if("function"!=typeof b)throw new TypeError;var f=d.call(arguments,1),o=function(){if(this instanceof o){var a=function(){};a.prototype=b.prototype;var a=new a,g=b.apply(a,f.concat(d.call(arguments)));return null!==g&&Object(g)===g?g:a}return b.apply(e,f.concat(d.call(arguments)))};return o};g=b.bind(a.toString);k=b.bind(a.hasOwnProperty); if(!Array.isArray)Array.isArray=function(e){return"[object Array]"==g(e)};if(!Array.prototype.forEach)Array.prototype.forEach=function(e,b){var f=l(this),o=0,a=f.length>>>0;if("[object Function]"!=g(e))throw new TypeError;for(;o>>0,a=Array(o);if("[object Function]"!=g(e))throw new TypeError;for(var c=0;c>>0,c=[];if("[object Function]"!=g(e))throw new TypeError;for(var j=0;j>>0;if("[object Function]"!=g(e))throw new TypeError;for(var c=0;c>>0;if("[object Function]"!=g(e))throw new TypeError; for(var c=0;c>>0;if("[object Function]"!=g(e))throw new TypeError;if(!c&&1==arguments.length)throw new TypeError;var a=0,j;if(2<=arguments.length)j=arguments[1];else{do{if(a in b){j=b[a++];break}if(++a>=c)throw new TypeError;}while(1)}for(;a>>0;if("[object Function]"!=g(e))throw new TypeError;if(!a&&1==arguments.length)throw new TypeError;var c,a=a-1;if(2<=arguments.length)c=arguments[1];else{do{if(a in b){c=b[a--];break}if(0>--a)throw new TypeError;}while(1)}do a in this&&(c=e.call(void 0,c,b[a],a,b));while(a--);return c};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(e){var b=l(this),a=b.length>>>0;if(!a)return-1;var c=0;1>>0;if(!a)return-1;var c=a-1;1a&&(e[b]="0"+a);return e.slice(0,3).join("-")+"T"+e.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+"*"),u=RegExp(b+b+"*$");String.prototype.trim=function(){return(""+this).replace(q,"").replace(u,"")}}if("0".split(void 0,0).length){var j=String.prototype.split;String.prototype.split=function(b,a){return void 0===b&&0===a?[]:j.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var v=String.prototype.substr;String.prototype.substr=function(b,a){return v.call(this,0>b?0>(b=this.length+b)?0:b:b,a)}}var D=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 v=d.cfg.track,h=function(a){b(a.target).filter("track").each(g)}, g=function(){if(c.track||!v.override&&3==b.prop(this,"readyState"))v.override=!0,d.reTest("track"),document.removeEventListener("error",h,!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")},i=function(){document.addEventListener("error",h,!0);c.track?g():b("track").each(g)};v.override||(d.isReady("track")?i():b(i))}();d.register("mediaelement-core",function(b, d,q,m,l){p=swfobject.hasFlashPlayerVersion("9.0.115");var e=d.mediaelement,u=function(a,c){var a=b(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var s=a.attr("type");if(s)d.type=s,d.container=b.trim(s.split(";")[0]);else if(c||(c=a[0].nodeName.toLowerCase(),"source"==c&&(c=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),s=e.getTypeForSrc(d.src,c))d.type=s,d.container=s;if(s=a.attr("media"))d.media=s;return d},f=!p&&"postMessage"in q&&k,o= function(){var a;return function(){!a&&f&&(a=!0,d.loader.loadScript("https://www.youtube.com/player_api"),b(function(){d.polyfill("mediaelement-yt")}))}}(),r=function(){p?h():o()};d.addPolyfill("mediaelement-yt",{test:!f,d:["dom-support"]});e.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"]}};e.mimeTypes.source=b.extend({},e.mimeTypes.audio,e.mimeTypes.video);e.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(e.mimeTypes[c],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};e.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=m.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=[],e=a[0].nodeName.toLowerCase(),d=u(a,e);d.src?c.push(d):b("source",a).each(function(){d=u(this,e);d.src&&c.push(d)});return c}};b.fn.loadMediaSrc=function(a,c){return this.each(function(){c!==l&&(b(this).removeAttr("poster"),c&&b.attr(this,"poster",c));e.srces(this,a);b(this).mediaLoad()})};e.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(","); e.canThirdPlaySrces=function(a,c){var d="";if(p||f)a=b(a),c=c||e.srces(a),b.each(c,function(b,a){if(a.container&&a.src&&(p&&-1!=e.swfMimeTypes.indexOf(a.container)||f&&"video/youtube"==a.container))return d=a,!1});return d};var w={};e.canNativePlaySrces=function(a,c){var d="";if(k){var a=b(a),f=(a[0].nodeName||"").toLowerCase();if(!w[f])return d;c=c||e.srces(a);b.each(c,function(b,c){if(c.type&&w[f].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};e.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 E=function(){var b;return function(a,c,s){d.ready(p?t:"mediaelement-yt",function(){e.createSWF?e.createSWF(a,c,s):b||(b=!0,r(),E(a,c,s))});!b&&f&&!e.createSWF&&o()}}(),y=function(b,a,c,d,f){c||!1!==c&&a&&"third"==a.isActive?(c=e.canThirdPlaySrces(b,d))?E(b,c,a):f?e.setError(b,!1):y(b,a,!1,d,!0):(c=e.canNativePlaySrces(b,d))?a&&"third"==a.isActive&&e.setActive(b, "html5",a):f?(e.setError(b,!1),a&&"third"==a.isActive&&e.setActive(b,"html5",a)):y(b,a,!0,d,!0)},z=/^(?:embed|object|datalist)$/i,x=function(a,c){var f=d.data(a,"mediaelementBase")||d.data(a,"mediaelementBase",{}),h=e.srces(a),g=a.parentNode;clearTimeout(f.loadTimer);b.data(a,"mediaerror",!1);if(h.length&&g&&!(1!=g.nodeType||z.test(g.nodeName||"")))c=c||d.data(a,"mediaelement"),y(a,c,i.preferFlash||l,h)};b(m).on("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");x(this,b);k&&(!b||"html5"==b.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});w[a]=d.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(c){var d= "";k&&w[a].prop._supvalue&&(d=w[a].prop._supvalue.call(this,c),"no"==d&&(d=""));!d&&p&&(c=b.trim((c||"").split(";")[0]),-1!=e.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(){x(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(Q){}a.duration&& a.duration!=a._lastDuration?(e(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&c.jwEvents.Model.META(b.extend({duration:a.duration},B),a),a._durationCalcs--):a._durationCalcs++}},r=function(b,a){3>b&&clearTimeout(a._canplaythroughTimer);if(3<=b&&3>a.readyState)a.readyState=b,e(a._elem,"canplay"),clearTimeout(a._canplaythroughTimer),a._canplaythroughTimer=setTimeout(function(){r(4,a)},4E3);if(4<=b&&4>a.readyState)a.readyState=b,e(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=m(b.id);if(a&&!a.stopPlayPause&&(a._ppFlag=!0,a.paused==b.state)){a.paused=!b.state;if(a.ended)a.ended=!1;e(a._elem,b.state?"play":"pause")}}},Model:{BUFFER:function(a){var c=m(a.id);if(c&&"percentage"in a&&c._bufferedEnd!=a.percentage){c.networkState=100==a.percentage?1:2;(isNaN(c.duration)||5a.percentage||100===a.percentage)&&o(c,a);if(c.ended)c.ended= !1;if(c.duration){2a.percentage?r(3,c):20a.percentage)c._bufferedStart=c.currentTime||0;c._bufferedEnd=a.percentage;c.buffered.length=1;if(100==a.percentage)c.networkState=1,r(4,c);b.event.trigger("progress",g,c._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:m(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var c=b.duration;if(a.duration)b.duration= a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&r(1,b);b.duration&&c!==b.duration&&e(b._elem,"durationchange");e(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(b){var a=m(b.id);if(a&&a.currentTime!==b.position){a.currentTime=b.position;a.duration&&a.durationa.readyState&&r(2,a);if(a.ended)a.ended=!1;e(a._elem,"timeupdate")}},STATE:function(b){var a= m(b.id);if(a)switch(b.newstate){case "BUFFERING":if(a.ended)a.ended=!1;r(1,a);e(a._elem,"waiting");break;case "PLAYING":a.paused=!1;a._ppFlag=!0;a.duration||o(a,b);3>a.readyState&&r(3,a);if(a.ended)a.ended=!1;e(a._elem,"playing");break;case "PAUSED":if(!a.paused&&!a.stopPlayPause)a.paused=!0,a._ppFlag=!0,e(a._elem,"pause");break;case "COMPLETED":4>a.readyState&&r(4,a),a.ended=!0,e(a._elem,"ended")}}},Controller:{ERROR:function(a){var b=m(a.id);b&&c.setError(b._elem,a.message)},SEEK:function(a){var b= m(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(c){}if(b.currentTime!=a.position)b.currentTime=a.position,e(b._elem,"timeupdate")}},VOLUME:function(a){var b=m(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,e(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=m(a.id);if(b&&b.muted!=a.state)b.muted=a.state,e(b._elem,"volumechange")}}}};var w=function(a){var d=!0;b.each(c.jwEvents,function(c,e){b.each(e,function(b){try{a.jwapi["add"+c+"Listener"](b, "jQuery.webshims.mediaelement.jwEvents."+c+"."+b)}catch(e){return d=!1}})});return d},E=function(a){var b=a.actionQueue.length,c=0,d;if(b&&"third"==a.isActive)for(;a.actionQueue.length&&b>c;)c++,d=a.actionQueue.shift(),a.jwapi[d.fn].apply(a.jwapi,d.args);if(a.actionQueue.length)a.actionQueue=[]},y=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)};c.playerResize=function(a){a&& (a=k.getElementById(a.replace(D,"")))&&b(a).triggerHandler("swfstageresize")};b(k).on("emptied",function(a){a=l(a.target);y(a)});var z;c.jwPlayerReady=function(c){var d=m(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;E(d);y(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(z);d.jwData=c;d.shadowElem.removeClass("flashblocker-assumed");b.prop(d._elem,"volume",d.volume);b.prop(d._elem,"muted",d.muted);f()}};var x=b.noop;if(h){var K={play:1,playing:1},H="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),I=H.map(function(a){return a+ ".webshimspolyfill"}).join(" "),s=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())},x=function(c){b(c).off(I).on(I,s);H.forEach(function(b){a.moveToFirstEvent(c,b)})};x(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 L=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,f=c.networkState;for(r(0,c);--d;)delete c[a[d]];c.actionQueue=[];c.buffered.length=0;f&&e(c._elem,"emptied")}}}(),G=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,n){if(p){1>q?q=1:q++;var g=b.extend({},i.vars,{image:b.prop(d,"poster")||"",file:e.srcProp}), k=b(d).data("vars")||{};n||(n=a.data(d,"mediaelement"));if(n&&n.swfCreated)c.setActive(d,"third",n),L(n),n.currentSrc=e.srcProp,b.extend(g,k),i.changeSWF(g,d,e,n,"load"),A(d,"sendEvent",["LOAD",g]);else{var F=b.prop(d,"controls"),C="jwplayer-"+a.getID(d),l=b.extend({},i.params,b(d).data("params")),j=d.nodeName.toLowerCase(),o=b.extend({},i.attrs,{name:C,id:C},b(d).data("attrs")),m=b('
').css({position:"relative", overflow:"hidden"}),n=a.data(d,"mediaelement",a.objectCreate(v,{actionQueue:{value:[]},shadowElem:{value:m},_elemNodeName:{value:j},_elem:{value:d},currentSrc:{value:e.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(b){if(b>=n.buffered.length)a.error("buffered index size error");else return 0},end:function(b){if(b>=n.buffered.length)a.error("buffered index size error");else return(n.duration-n._bufferedStart)*n._bufferedEnd/100+n._bufferedStart},length:0}}}));G(n,F);m.insertBefore(d); h&&b.extend(n,{volume:b.prop(d,"volume"),muted:b.prop(d,"muted")});b.extend(g,{id:C,controlbar:F?i.vars.controlbar||("video"==j?"over":"bottom"):"video"==j?"none":"bottom",icons:""+(F&&"video"==j)},k,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});g.plugins=g.plugins?g.plugins+(","+f):f;a.addShadowDom(d,m);x(d);c.setActive(d,"third",n);i.changeSWF(g,d,e,n,"embed");b(d).on("updatemediaelementdimensions updateshadowdom",function(){G(n,b.prop(d,"controls"))});t.embedSWF(J,C,"100%","100%", "9.0.0",!1,g,l,o,function(c){if(c.success)n.jwapi=c.ref,F||b(c.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!c.ref.parentNode&&m[0].parentNode||"none"==c.ref.style.display)m.addClass("flashblocker-assumed"),b(d).trigger("flashblocker"),a.warn("flashblocker assumed");b(c.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),z||(clearTimeout(z),z=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 A=function(a,b,c,d){return(d=d||l(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10< d.actionQueue.length&&setTimeout(function(){5b||100a.browserVersion,O={object:1,OBJECT:1};b.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&q)for(b=0;b