vendor/assets/javascripts/webshims/minified/shims/combos/26.js in webshims-rails-0.4.4 vs vendor/assets/javascripts/webshims/minified/shims/combos/26.js in webshims-rails-0.4.5

- old
+ new

@@ -1,79 +2 @@ -jQuery.webshims.register("dom-extend",function(a,g,h,i,l){var v=g.modules,q=/\s*,\s*/,p={},s={},n={},u={},r={},o=a.fn.val,y=function(e,d,b,c,k){return k?o.call(a(e)):o.call(a(e),b)};a.fn.val=function(e){var d=this[0];arguments.length&&null==e&&(e="");if(!arguments.length)return!d||1!==d.nodeType?o.call(this):a.prop(d,"value",e,"val",!0);if(a.isArray(e))return o.apply(this,arguments);var b=a.isFunction(e);return this.each(function(c){d=this;1===d.nodeType&&(b?(c=e.call(d,c,a.prop(d,"value",l,"val", -!0)),null==c&&(c=""),a.prop(d,"value",c,"val")):a.prop(d,"value",e,"val"))})};var w="_webshimsLib"+Math.round(1E3*Math.random()),x=function(e,d,b){e=e.jquery?e[0]:e;if(!e)return b||{};var c=a.data(e,w);b!==l&&(c||(c=a.data(e,w,{})),d&&(c[d]=b));return d?c&&c[d]:c};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(e){a.fn[e.name]=function(){return this.map(function(){var a=x(this, -"shadowData");return a&&a[e.prop]||this})}});["removeAttr","prop","attr"].forEach(function(e){p[e]=a[e];a[e]=function(d,b,c,k,t){var f="val"==k,z=!f?p[e]:y;if(!d||!s[b]||1!==d.nodeType||!f&&k&&"attr"==e&&a.attrFn[b])return z(d,b,c,k,t);var A=(d.nodeName||"").toLowerCase(),j=n[A],g="attr"==e&&(!1===c||null===c)?"removeAttr":e,o,h,i;j||(j=n["*"]);j&&(j=j[b]);j&&(o=j[g]);if(o){if("value"==b)h=o.isVal,o.isVal=f;if("removeAttr"===g)return o.value.call(d);if(c===l)return o.get?o.get.call(d):o.value;o.set&& -("attr"==e&&!0===c&&(c=b),i=o.set.call(d,c));if("value"==b)o.isVal=h}else i=z(d,b,c,k,t);if((c!==l||"removeAttr"===g)&&r[A]&&r[A][b]){var m;m="removeAttr"==g?!1:"prop"==g?!!c:!0;r[A][b].forEach(function(b){if(!b.only||(b.only="prop"==e)||"attr"==b.only&&"prop"!=e)b.call(d,c,m,f?"val":g,e)})}return i};u[e]=function(d,b,c){n[d]||(n[d]={});n[d][b]||(n[d][b]={});var k=n[d][b][e],t=function(a,d,k){return d&&d[a]?d[a]:k&&k[a]?k[a]:"prop"==e&&"value"==b?function(a){return c.isVal?y(this,b,a,!1,0===arguments.length): -p[e](this,b,a)}:"prop"==e&&"value"==a&&c.value.apply?function(c){var a=p[e](this,b);a&&a.apply&&(a=a.apply(this,arguments));return a}:function(c){return p[e](this,b,c)}};n[d][b][e]=c;if(c.value===l){if(!c.set)c.set=c.writeable?t("set",c,k):g.cfg.useStrict&&"prop"==b?function(){throw b+" is readonly on "+d;}:a.noop;if(!c.get)c.get=t("get",c,k)}["value","get","set"].forEach(function(b){c[b]&&(c["_sup"+b]=t(b,k))})}});var B=!a.browser.msie||8<parseInt(a.browser.version,10),m=function(){var a=g.getPrototypeOf(i.createElement("foobar")), -d=Object.prototype.hasOwnProperty;return function(b,c,k){var t=i.createElement(b),f=g.getPrototypeOf(t);if(B&&f&&a!==f&&(!t[c]||!d.call(t,c))){var z=t[c];k._supvalue=function(){return z&&z.apply?z.apply(this,arguments):z};f[c]=k.value}else k._supvalue=function(){var b=x(this,"propValue");return b&&b[c]&&b[c].apply?b[c].apply(this,arguments):b&&b[c]},j.extendValue(b,c,k.value);k.value._supvalue=k._supvalue}}(),j=function(){var e={};g.addReady(function(b,c){var d={},z=function(e){d[e]||(d[e]=a(b.getElementsByTagName(e)), -c[0]&&a.nodeName(c[0],e)&&(d[e]=d[e].add(c)))};a.each(e,function(b,c){z(b);!c||!c.forEach?g.warn("Error: with "+b+"-property. methods: "+c):c.forEach(function(c){d[b].each(c)})});d=null});var d,b=a([]),c=function(b,c){e[b]?e[b].push(c):e[b]=[c];a.isDOMReady&&(d||a(i.getElementsByTagName(b))).each(c)};return{createTmpCache:function(c){a.isDOMReady&&(d=d||a(i.getElementsByTagName(c)));return d||b},flushTmpCache:function(){d=null},content:function(b,e){c(b,function(){var b=a.attr(this,e);null!=b&&a.attr(this, -e,b)})},createElement:function(b,a){c(b,a)},extendValue:function(b,e,d){c(b,function(){a(this).each(function(){x(this,"propValue",{})[e]=this[e];this[e]=d})})}}}(),f=function(a,d){if(a.defaultValue===l)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[d||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(g,{getID:function(){var e=(new Date).getTime();return function(d){var d=a(d),b=d.attr("id");b||(e++,b="ID-"+e,d.attr("id",b)); -return b}}(),extendUNDEFProp:function(e,d){a.each(d,function(b,c){b in e||(e[b]=c)})},createPropDefault:f,data:x,moveToFirstEvent:function(){var e=a._data?"_data":"data";return function(d,b,c){if((d=(a[e](d,"events")||{})[b])&&1<d.length)b=d.pop(),c||(c="bind"),"bind"==c&&d.delegateCount?d.splice(d.delegateCount,0,b):d.unshift(b)}}(),addShadowDom:function(){var e,d,b,c={init:!1,runs:0,test:function(){var b=c.getHeight(),a=c.getWidth();b!=c.height||a!=c.width?(c.height=b,c.width=a,c.handler({type:"docresize"}), -c.runs++,30>c.runs&&setTimeout(c.test,30)):c.runs=0},handler:function(k){clearTimeout(e);e=setTimeout(function(){if("resize"==k.type){var e=a(h).width(),f=a(h).width();if(f==d&&e==b)return;d=f;b=e;c.height=c.getHeight();c.width=c.getWidth()}a.event.trigger("updateshadowdom")},"resize"==k.type?50:9)},_create:function(){a.each({Height:"getHeight",Width:"getWidth"},function(b,a){var e=i.body,d=i.documentElement;c[a]=function(){return Math.max(e["scroll"+b],d["scroll"+b],e["offset"+b],d["offset"+b],d["client"+ -b])}})},start:function(){if(!this.init&&i.body)this.init=!0,this._create(),this.height=c.getHeight(),this.width=c.getWidth(),setInterval(this.test,400),a(this.test),a(h).bind("load",this.test),a(h).bind("resize",this.handler),function(){var b=a.fn.animate,e;a.fn.animate=function(){clearTimeout(e);e=setTimeout(function(){c.test();c.handler({type:"animationstart"})},19);return b.apply(this,arguments)}}()}};a.event.customEvent.updateshadowdom=!0;g.docObserve=function(){g.ready("DOM",function(){c.start()})}; -return function(b,c,e){e=e||{};b.jquery&&(b=b[0]);c.jquery&&(c=c[0]);var d=a.data(b,w)||a.data(b,w,{}),A=a.data(c,w)||a.data(c,w,{}),f={};if(e.shadowFocusElement){if(e.shadowFocusElement){if(e.shadowFocusElement.jquery)e.shadowFocusElement=e.shadowFocusElement[0];f=a.data(e.shadowFocusElement,w)||a.data(e.shadowFocusElement,w,f)}}else e.shadowFocusElement=c;d.hasShadow=c;f.nativeElement=A.nativeElement=b;f.shadowData=A.shadowData=d.shadowData={nativeElement:b,shadowElement:c,shadowFocusElement:e.shadowFocusElement}; -e.shadowChilds&&e.shadowChilds.each(function(){x(this,"shadowData",A.shadowData)});if(e.data)f.shadowData.data=A.shadowData.data=d.shadowData.data=e.data;e=null;g.docObserve()}}(),propTypes:{standard:function(a){f(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,""+d)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){f(a);if(!a.prop)a.prop={set:function(d){d?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}, -src:function(){var e=i.createElement("a");e.style.display="none";return function(d,b){f(d);if(!d.prop)d.prop={set:function(b){d.attr.set.call(this,b)},get:function(){var c=this.getAttribute(b),d;if(null==c)return"";e.setAttribute("href",c+"");if(!a.support.hrefNormalized){try{a(e).insertAfter(this),d=e.getAttribute("href",4)}catch(f){d=e.getAttribute("href",4)}a(e).detach()}return d||e.href}}}}(),enumarated:function(a){f(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,d)},get:function(){var d= -(a.attr.get.call(this)||"").toLowerCase();if(!d||-1==a.limitedTo.indexOf(d))d=a.defaultValue;return d}}}},reflectProperties:function(e,d){"string"==typeof d&&(d=d.split(q));d.forEach(function(b){g.defineNodeNamesProperty(e,b,{prop:{set:function(c){a.attr(this,b,c)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(e,d,b){s[d]=!0;if(b.reflect)g.propTypes[b.propType||"standard"](b,d);["prop","attr","removeAttr"].forEach(function(c){var k=b[c];k&&(k="prop"===c?a.extend({writeable:!0}, -k):a.extend({},k,{writeable:!0}),u[c](e,d,k),"*"!=e&&g.cfg.extendNative&&"prop"==c&&k.value&&a.isFunction(k.value)&&m(e,d,k),b[c]=k)});b.initAttr&&j.content(e,d);return b},defineNodeNameProperties:function(a,d,b,c){for(var k in d)!c&&d[k].initAttr&&j.createTmpCache(a),b&&!d[k][b]&&(d[k][b]={},["value","set","get"].forEach(function(a){a in d[k]&&(d[k][b][a]=d[k][a],delete d[k][a])})),d[k]=g.defineNodeNameProperty(a,k,d[k]);c||j.flushTmpCache();return d},createElement:function(e,d,b){var c;a.isFunction(d)&& -(d={after:d});j.createTmpCache(e);d.before&&j.createElement(e,d.before);b&&(c=g.defineNodeNameProperties(e,b,!1,!0));d.after&&j.createElement(e,d.after);j.flushTmpCache();return c},onNodeNamesPropertyModify:function(e,d,b,c){"string"==typeof e&&(e=e.split(q));a.isFunction(b)&&(b={set:b});e.forEach(function(a){r[a]||(r[a]={});"string"==typeof d&&(d=d.split(q));b.initAttr&&j.createTmpCache(a);d.forEach(function(d){r[a][d]||(r[a][d]=[],s[d]=!0);if(b.set){if(c)b.set.only=c;r[a][d].push(b.set)}b.initAttr&& -j.content(a,d)});j.flushTmpCache()})},defineNodeNamesBooleanProperty:function(e,d,b){b||(b={});if(a.isFunction(b))b.set=b;g.defineNodeNamesProperty(e,d,{attr:{set:function(a){this.setAttribute(d,a);b.set&&b.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?l:d}},removeAttr:{value:function(){this.removeAttribute(d);b.set&&b.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:b.initAttr||!1})},contentAttr:function(a,d,b){if(a.nodeName){if(b===l)return a=a.attributes[d]||{}, -b=a.specified?a.value:null,null==b?l:b;"boolean"==typeof b?b?a.setAttribute(d,d):a.removeAttribute(d):a.setAttribute(d,b)}},activeLang:function(){var e=[],d={},b,c,f=/:\/\/|^\.*\//,j=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,f.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,z(b,!0)):a(function(){b.langObj[c]&&z(b,!0);b.loading=!1})}),!0):!1},o=function(b){d[b]&&d[b].forEach(function(b){b.callback()})}, -z=function(a,d){if(a.activeLang!=b&&a.activeLang!==c){var e=v[a.module].options;if(a.langObj[b]||c&&a.langObj[c])a.activeLang=b,a.callback(a.langObj[b]||a.langObj[c],b),o(a.module);else if(!d&&!j(a,b,e)&&!j(a,c,e)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],b),o(a.module)}};return function(f){if("string"==typeof f&&f!==b)b=f,c=b.split("-")[0],b==c&&(c=!1),a.each(e,function(b,a){z(a)});else if("object"==typeof f)if(f.register)d[f.register]||(d[f.register]=[]),d[f.register].push(f), -f.callback();else{if(!f.activeLang)f.activeLang="";e.push(f);z(f)}return b}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,d){g[a]=function(b,a,e,f){"string"==typeof b&&(b=b.split(q));var j={};b.forEach(function(b){j[b]=g[d](b,a,e,f)});return j}});g.isReady("webshimLocalization",!0)}); -(function(a,g){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var i={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(a,g){a.getAttribute("role")||a.setAttribute("role",g)};a.webshims.addReady(function(h,q){a.each(i,function(g,i){for(var o=a(g,h).add(q.filter(g)),y=0,n=o.length;y<n;y++)l(o[y],i)});if(h===g){var p=g.getElementsByTagName("header")[0],s=g.getElementsByTagName("footer"),n=s.length; -p&&!a(p).closest("section, article")[0]&&l(p,"banner");n&&(p=s[n-1],a(p).closest("section, article")[0]||l(p,"contentinfo"))}})}})(jQuery,document); -(function(a,g,h){var i=g.audio&&g.video,l=!1,v=h.cfg.mediaelement,q=h.bugs,p="jwplayer"==v.player?"mediaelement-swf":"mediaelement-jaris",s=function(){h.ready(p,function(){if(!h.mediaelement.createSWF)h.mediaelement.loadSwf=!0,h.reTest([p],i)})},n;if(i){var u=document.createElement("video");g.videoBuffered="buffered"in u;l="loop"in u;h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(h.addPolyfill("mediaelement-native-fix", -{f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"))}if(i&&!v.preferFlash){var r=function(g){var i=g.target.parentNode;!v.preferFlash&&(a(g.target).is("audio, video")||i&&a("source:last",i)[0]==g.target)&&h.ready("DOM mediaelement",function(){n&&s();h.ready("WINDOWLOAD "+p,function(){setTimeout(function(){n&&!v.preferFlash&&h.mediaelement.createSWF&&!a(g.target).closest("audio, video").is(".nonnative-api-active")?(v.preferFlash=!0,document.removeEventListener("error", -r,!0),a("audio, video").mediaLoad(),h.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):n||document.removeEventListener("error",r,!0)},20)})})};document.addEventListener("error",r,!0);a("audio, video").each(function(){this.error&&r({target:this})})}q.track=!1;g.track&&function(){if(!q.track)q.track="number"!=typeof a("<track />")[0].readyState;if(!q.track)try{new TextTrackCue(2,3,"")}catch(g){q.track=!0}var i=h.cfg.track,l=function(g){a(g.target).filter("track").each(n)}, -n=function(){if(q.track||!i.override&&3==a.prop(this,"readyState"))i.override=!0,h.reTest("track"),document.removeEventListener("error",l,!0),this&&a.nodeName(this,"track")?h.error("track support was overwritten. Please check your vtt including your vtt mime-type"):h.info("track support was overwritten. due to bad browser support")},s=function(){document.addEventListener("error",l,!0);q.track?n():a("track").each(n)};i.override||(h.isReady("track")?s():a(s))}();h.register("mediaelement-core",function(a, -h,u,r,B){n=swfobject.hasFlashPlayerVersion("9.0.115");var m=h.mediaelement,j=function(b,c){var b=a(b),d={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!d.src)return d;var e=b.attr("type");if(e)d.type=e,d.container=a.trim(e.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=m.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},f=!n&&"postMessage"in u&&i,e= -function(){var b;return function(){!b&&f&&(b=!0,h.loader.loadScript("https://www.youtube.com/player_api"),a(function(){h.polyfill("mediaelement-yt")}))}}(),d=function(){n?s():e()};h.addPolyfill("mediaelement-yt",{test:!f,d:["dom-support"]});m.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"]}};m.mimeTypes.source=a.extend({},m.mimeTypes.audio,m.mimeTypes.video);m.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")|| --1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(m.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};m.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(c)||(c=[c]),c.forEach(function(a){var c=r.createElement("source");"string"==typeof a&&(a={src:a});c.setAttribute("src",a.src);a.type&&c.setAttribute("type",a.type);a.media&&c.setAttribute("media",a.media);b.append(c)}); -else{var c=[],d=b[0].nodeName.toLowerCase(),e=j(b,d);e.src?c.push(e):a("source",b).each(function(){e=j(this,d);e.src&&c.push(e)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==B&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));m.srces(this,b);a(this).mediaLoad()})};m.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(","); -m.canThirdPlaySrces=function(b,c){var d="";if(n||f)b=a(b),c=c||m.srces(b),a.each(c,function(b,a){if(a.container&&a.src&&(n&&-1!=m.swfMimeTypes.indexOf(a.container)||f&&"video/youtube"==a.container))return d=a,!1});return d};var b={};m.canNativePlaySrces=function(c,d){var e="";if(i){var c=a(c),f=(c[0].nodeName||"").toLowerCase();if(!b[f])return e;d=d||m.srces(c);a.each(d,function(a,d){if(d.type&&b[f].prop._supvalue.call(c[0],d.type))return e=d,!1})}return e};m.setError=function(b,c){c||(c="can't play sources"); -a(b).pause().data("mediaerror",c);h.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var c=function(){var b;return function(a,k,j){h.ready(n?p:"mediaelement-yt",function(){m.createSWF?m.createSWF(a,k,j):b||(b=!0,d(),c(a,k,j))});!b&&f&&!m.createSWF&&e()}}(),k=function(b,a,d,e,f){d||!1!==d&&a&&"third"==a.isActive?(d=m.canThirdPlaySrces(b,e))?c(b,d,a):f?m.setError(b,!1):k(b,a,!1,e,!0):(d=m.canNativePlaySrces(b,e))?a&&"third"==a.isActive&&m.setActive(b, -"html5",a):f?(m.setError(b,!1),a&&"third"==a.isActive&&m.setActive(b,"html5",a)):k(b,a,!0,e,!0)},t=/^(?:embed|object|datalist)$/i,C=function(b,c){var d=h.data(b,"mediaelementBase")||h.data(b,"mediaelementBase",{}),e=m.srces(b),f=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||t.test(f.nodeName||"")))c=c||h.data(b,"mediaelement"),k(b,c,v.preferFlash||B,e)};a(r).on("ended",function(b){var c=h.data(b.target,"mediaelement");(!l||c&&"html5"!=c.isActive|| -a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});l||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(c){var d=h.defineNodeNameProperty(c,"load",{prop:{value:function(){var b=h.data(this,"mediaelement");C(this,b);i&&(!b||"html5"==b.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});b[c]=h.defineNodeNameProperty(c,"canPlayType",{prop:{value:function(d){var e= -"";i&&b[c].prop._supvalue&&(e=b[c].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&n&&(d=a.trim((d||"").split(";")[0]),-1!=m.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var b=this,a=h.data(b,"mediaelementBase")||h.data(b,"mediaelementBase",{});clearTimeout(a.loadTimer);a.loadTimer=setTimeout(function(){C(b);b=null},9)}});u=function(){h.addReady(function(b,c){a("video, audio",b).add(c.filter("video, audio")).each(function(){a.browser.msie&& -8<h.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():C(this);if(i){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,f=b.length;e<f;e++)c+=b.end(e);return c}},f=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).on({"play loadstart progress":function(a){"progress"==a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)},"emptied stalled mediaerror abort suspend":function(a){"emptied"== -a.type&&(c=!1);clearTimeout(b)}})}})})};g.track&&!q.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});i?(h.isReady("mediaelement-core",!0),u(),h.ready("WINDOWLOAD mediaelement",d)):h.ready(p,u);a(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims); -(function(a){var g=window.Modernizr,h=a.webshims,i=h.bugs,l=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input required="" name="a" /></form>'),v=function(){if(l[0].querySelector)try{i.findRequired=!l[0].querySelector("select:required")}catch(a){i.findRequired=!1}},q=a("input",l).eq(0),p=function(a){h.loader.loadList(["dom-extend"]);h.ready("dom-extend",a)};i.findRequired=!1;i.validationMessage=!1;h.capturingEventPrevented=function(g){if(!g._isPolyfilled){var h= -g.isDefaultPrevented,i=g.preventDefault;g.preventDefault=function(){clearTimeout(a.data(g.target,g.type+"DefaultPrevented"));a.data(g.target,g.type+"DefaultPrevented",setTimeout(function(){a.removeData(g.target,g.type+"DefaultPrevented")},30));return i.apply(this,arguments)};g.isDefaultPrevented=function(){return!(!h.apply(this,arguments)&&!a.data(g.target,g.type+"DefaultPrevented"))};g._isPolyfilled=!0}};if(!g.formvalidation||i.bustedValidity)v();else{h.capturingEvents(["input"]);h.capturingEvents(["invalid"], -!0);if(window.opera||window.testGoodWithFix)l.appendTo("head"),v(),i.validationMessage=!q.prop("validationMessage"),h.reTest(["form-extend","form-message"]),l.remove(),a(function(){p(function(){var g=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(i){var l=h.defineNodeNameProperty(i,"checkValidity",{prop:{value:function(){if(!h.fromSubmit)a(this).on("invalid.checkvalidity",g);h.fromCheckValidity=!0;var i=l.prop._supvalue.apply(this,arguments);h.fromSubmit||a(this).unbind("invalid.checkvalidity", -g);h.fromCheckValidity=!1;return i}}})})})});a.browser.webkit&&!h.bugs.bustedValidity&&function(){var g=/^(?:textarea|input)$/i,h=!1;document.addEventListener("contextmenu",function(a){g.test(a.target.nodeName||"")&&(h=a.target.form)&&setTimeout(function(){h=!1},1)},!1);a(window).on("invalid",function(a){if(a.originalEvent&&h&&h==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery); -jQuery.webshims.register("form-core",function(a,g,h,i,l,v){var q={radio:1},p={checkbox:1,radio:1},s=a([]),n=g.bugs,u=function(b){var b=a(b),c,d;c=s;if(q[b[0].type])d=b.prop("form"),c=(c=b[0].name)?d?a(d[c]):a(i.getElementsByName(c)).filter(function(){return!a.prop(this,"form")}):b,c=c.filter('[type="radio"]');return c},r=g.getContentValidationMessage=function(b,c,d){var e=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";d&&e[d]&&(e=e[d]);"object"==typeof e&&(c=c||a.prop(b,"validity")|| -{valid:1},c.valid||a.each(c,function(b,a){if(a&&"valid"!=b&&e[b])return e=e[b],!1}));if("object"==typeof e)e=e.defaultMessage;return e||""},o={number:1,range:1,date:1},y=function(b){var c=!1;a(a.prop(b,"elements")).each(function(){if(c=a(this).is(":invalid"))return!1});return c};a.extend(a.expr[":"],{"valid-element":function(b){return a.nodeName(b,"form")?!y(b):!(!a.prop(b,"willValidate")||!x(b))},"invalid-element":function(b){return a.nodeName(b,"form")?y(b):!(!a.prop(b,"willValidate")||x(b))},"required-element":function(b){return!(!a.prop(b, -"willValidate")||!a.prop(b,"required"))},"user-error":function(b){return a.prop(b,"willValidate")&&a(b).hasClass("user-error")},"optional-element":function(b){return!!(a.prop(b,"willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!o[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||b.rangeOverflow||b.rangeUnderflow)},"out-of-range":function(b){if(!o[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||!b.rangeOverflow&& -!b.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(b){a.expr[":"][b]=a.expr.filters[b+"-element"]});a.expr[":"].focus=function(b){try{var a=b.ownerDocument;return b===a.activeElement&&(!a.hasFocus||a.hasFocus())}catch(d){}return!1};var w=a.event.customEvent||{},x=function(b){return(a.prop(b,"validity")||{valid:1}).valid};(n.bustedValidity||n.findRequired)&&function(){var b=a.find,c=a.find.matchesSelector,d=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig, -e=function(b){return b+"-element"};a.find=function(){var a=Array.prototype.slice,c=function(c){var f=arguments,f=a.call(f,1,f.length);f.unshift(c.replace(d,e));return b.apply(this,f)},f;for(f in b)b.hasOwnProperty(f)&&(c[f]=b[f]);return c}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",i.documentElement))a.find.matchesSelector=function(b,a){a=a.replace(d,e);return c.call(this,b,a)}}();var B=a.prop,m={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,c,f){var g= -B.apply(this,arguments);b&&"form"in b&&m[c]&&f!==l&&a(b).hasClass(e)&&x(b)&&(a(b).getShadowElement().removeClass(d),"checked"==c&&f&&u(b).not(b).removeClass(d).removeAttr("aria-invalid"));return g};var j=function(b,c){var d;a.each(b,function(b,e){if(e)return d="customError"==b?a.prop(c,"validationMessage"):b,!1});return d},f=function(b){var a;try{a=i.activeElement.name===b}catch(d){}return a},e="user-error",d="user-error form-ui-invalid";a(i).on(v.validityUIEvents||"focusout change refreshvalidityui", -function(b){var c,g;if(b.target&&(c=a(b.target).getNativeElement()[0],"submit"!=c.type&&a.prop(c,"willValidate"))){g=a.data(c,"webshimsswitchvalidityclass");var h=function(){if(!("focusout"==b.type&&"radio"==c.type&&f(c.name))){var g=a.prop(c,"validity"),k=a(c).getShadowElement(),h,i,t,l;a(c).trigger("refreshCustomValidityRules");g.valid?k.hasClass("user-success")||(h="user-success form-ui-valid",i=d,l="changedvaliditystate",t="changedvalid",p[c.type]&&c.checked&&u(c).not(c).removeClass(i).addClass(h).removeAttr("aria-invalid"), -a.removeData(c,"webshimsinvalidcause")):(g=j(g,c),a.data(c,"webshimsinvalidcause")!=g&&(a.data(c,"webshimsinvalidcause",g),l="changedvaliditystate"),k.hasClass(e)||(h=d,i="user-success form-ui-valid",p[c.type]&&!c.checked&&u(c).not(c).removeClass(i).addClass(h),t="changedinvalid"));h&&(k.addClass(h).removeClass(i),setTimeout(function(){a(c).trigger(t)},0));l&&setTimeout(function(){a(c).trigger(l)},0);a.removeData(b.target,"webshimsswitchvalidityclass")}};g&&clearTimeout(g);"refreshvalidityui"==b.type? -h():a.data(c,"webshimsswitchvalidityclass",setTimeout(h,9))}});w.changedvaliditystate=!0;w.refreshCustomValidityRules=!0;w.changedvalid=!0;w.changedinvalid=!0;w.refreshvalidityui=!0;g.triggerInlineForm=function(b,c){a(b).trigger(c)};g.modules["form-core"].getGroupElements=u;n=function(){g.scrollRoot=a.browser.webkit||"BackCompat"==i.compatMode?a(i.body):a(i.documentElement)};n();g.ready("DOM",n);g.getRelOffset=function(b,c){var b=a(b),d=a(c).offset(),e;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block", -left:0,top:0},function(){e=b.offset()});d.top-=e.top;d.left-=e.left;return d};g.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",c,d=!1,e=!1,f,j={hideDelay:5E3,showFor:function(b,c,g,i){j._create();var b=a(b),l=a(b).getShadowElement(),m=j.getOffsetFromBody(l);j.clear();i?this.hide():(this.getMessage(b,c),this.position(l,m),this.show(),this.hideDelay&&(d=setTimeout(f,this.hideDelay)),a(h).on("resize.validityalert",function(){clearTimeout(e);e=setTimeout(function(){j.position(l)}, -9)}));g||this.setFocus(l,m)},getOffsetFromBody:function(b){return g.getRelOffset(c,b)},setFocus:function(d,e){var j=a(d).getShadowFocusElement(),k=g.scrollRoot.scrollTop(),h=(e||j.offset()).top-30,l;g.getID&&"label"==b&&c.attr("for",g.getID(j));k>h&&(g.scrollRoot.animate({scrollTop:h-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(k-h)),80)}),l=!0);try{j[0].focus()}catch(t){}l&&(g.scrollRoot.scrollTop(k),setTimeout(function(){g.scrollRoot.scrollTop(k)},0));setTimeout(function(){a(i).on("focusout.validityalert", -f)},10)},getMessage:function(b,d){d||(d=r(b[0])||b.prop("validationMessage"));d?a("span.va-box",c).text(d):this.hide()},position:function(b,d){d=d?a.extend({},d):j.getOffsetFromBody(b);d.top+=b.outerHeight();c.css(d)},show:function(){"none"===c.css("display")&&c.css({opacity:0}).show();c.addClass("va-visible").fadeTo(400,1)},hide:function(){c.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(d);a(i).unbind(".validityalert");a(h).unbind(".validityalert");c.stop().removeAttr("for")}, -_create:function(){if(!c)c=j.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+b+">").css({position:"absolute",display:"none"}),g.ready("DOM",function(){c.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&c.bgIframe()})}};f=a.proxy(j,"hide");return j}();(function(){var b,c=[],f;a(i).on("invalid",function(g){if(!g.wrongWebkitInvalid){var j= -a(g.target),h=j.getShadowElement();h.hasClass(e)||(h.addClass(d).removeClass("user-success form-ui-valid"),setTimeout(function(){a(g.target).trigger("changedinvalid").trigger("changedvaliditystate")},0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=g.isDefaultPrevented,h=a.Event("firstinvalidsystem"),a(i).triggerHandler(h,{element:g.target,form:g.target.form,isInvalidUIPrevented:g.isDefaultPrevented}),j.trigger(b);b&&b.isDefaultPrevented()&&g.preventDefault();c.push(g.target);g.extraData= -"fix";clearTimeout(f);f=setTimeout(function(){var d={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(g.target).trigger(d,d)},9);h=j=null}})})();a.fn.getErrorMessage=function(){var b="",c=this[0];c&&(b=r(c)||a.prop(c,"customValidationMessage")||a.prop(c,"validationMessage"));return b};v.replaceValidationUI&&g.ready("DOM forms",function(){a(i).on("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})}); -jQuery.webshims.register("track",function(a,g,h,i){var l=g.mediaelement;(new Date).getTime();var v={subtitles:1,captions:1,descriptions:1},q=a("<track />"),p=Modernizr.ES5&&Modernizr.objectAccessor,s=function(a){var f={};a.addEventListener=function(a,d){f[a]&&g.error("always use $.on to the shimed event: "+a+" already bound fn was: "+f[a]+" your fn was: "+d);f[a]=d};a.removeEventListener=function(a,d){f[a]&&f[a]!=d&&g.error("always use $.on/$.off to the shimed event: "+a+" already bound fn was: "+ -f[a]+" your fn was: "+d);f[a]&&delete f[a]};return a},n={getCueById:function(a){for(var f=null,e=0,d=this.length;e<d;e++)if(this[e].id===a){f=this[e];break}return f}},u={"0":"disabled",1:"hidden",2:"showing"},r={shimActiveCues:null,_shimActiveCues:null,activeCues:null,cues:null,kind:"subtitles",label:"",language:"",mode:"disabled",readyState:0,oncuechange:null,toString:function(){return"[object TextTrack]"},addCue:function(a){if(this.cues){var f=this.cues[this.cues.length-1];f&&f.startTime>a.startTime&& -g.error("cue startTime higher than previous cue's startTime")}else this.cues=l.createCueList();a.track&&a.track.removeCue&&a.track.removeCue(a);a.track=this;this.cues.push(a)},removeCue:function(a){var f=this.cues||[],e=0,d=f.length;if(a.track!=this)g.error("cue not part of track");else{for(;e<d;e++)if(f[e]===a){f.splice(e,1);a.track=null;break}a.track&&g.error("cue not part of track")}},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},o=["kind", -"label","srclang"],y={srclang:"language"},w=Function.prototype.call.bind(Object.prototype.hasOwnProperty),x=function(j,f){var e=[],d=[],b=[],c,k;j||(j=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}));if(!f)j.blockTrackListUpdate=!0,f=a.prop(this,"textTracks"),j.blockTrackListUpdate=!1;clearTimeout(j.updateTrackListTimer);a("track",this).each(function(){var c=a.prop(this,"track");b.push(c);-1==f.indexOf(c)&&d.push(c)});if(j.scriptedTextTracks)for(c=0,k=j.scriptedTextTracks.length;c< -k;c++)b.push(j.scriptedTextTracks[c]),-1==f.indexOf(j.scriptedTextTracks[c])&&d.push(j.scriptedTextTracks[c]);for(c=0,k=f.length;c<k;c++)-1==b.indexOf(f[c])&&e.push(f[c]);if(e.length||d.length){f.splice(0);for(c=0,k=b.length;c<k;c++)f.push(b[c]);for(c=0,k=e.length;c<k;c++)a([f]).triggerHandler(a.Event({type:"removetrack",track:e[c]}));for(c=0,k=d.length;c<k;c++)a([f]).triggerHandler(a.Event({type:"addtrack",track:d[c]}));(j.scriptedTextTracks||e.length)&&a(this).triggerHandler("updatetrackdisplay")}}, -B=function(j,f){f||(f=g.data(j,"trackData"));if(f&&!f.isTriggering)f.isTriggering=!0,setTimeout(function(){(f.track||{}).readyState?a(j).closest("audio, video").triggerHandler("updatetrackdisplay"):a(j).triggerHandler("checktrackmode");f.isTriggering=!1},1)},m=a("<div />")[0];h.TextTrackCue=function(a,f,e){3!=arguments.length&&g.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=a;this.endTime=f;this.text=e;this.id="";this.pauseOnExit=!1;s(this)};h.TextTrackCue.prototype= -{onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var a="",f="",e=i.createDocumentFragment(),d;if(!w(this,"getCueAsHTML"))d=this.getCueAsHTML=function(){var b,c;if(a!=this.text){a=this.text;f=l.parseCueTextToHTML(a);m.innerHTML=f;for(b=0,c=m.childNodes.length;b<c;b++)e.appendChild(m.childNodes[b].cloneNode(!0))}return e.cloneNode(!0)};return d?d.apply(this,arguments):e.cloneNode(!0)},track:null,id:""};l.createCueList=function(){return a.extend([],n)};l.parseCueTextToHTML=function(){var a= -/(<\/?[^>]+>)/ig,f=/^(?:c|v|ruby|rt|b|i|u)/,e=/\<\s*\//,d=function(b,a,d,f){e.test(f)?b="</"+b+">":(d.splice(0,1),b="<"+b+" "+a+'="'+d.join(" ").replace(/\"/g,"&#34;")+'">');return b},b=function(b){var a=b.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);a[0]&&(a[0]=a[0].toLowerCase(),f.test(a[0])?"c"==a[0]?b=d("span","class",a,b):"v"==a[0]&&(b=d("q","title",a,b)):b="");return b};return function(c){return c.replace(a,b)}}();l.loadTextTrack=function(j,f,e,d){var b=e.track,c=function(){var d=a.prop(f,"src"), -e,h;if("disabled"!=b.mode&&d&&a.attr(f,"src")&&(a(j).unbind("play playing timeupdate updatetrackdisplay",c),a(f).unbind("checktrackmode",c),!b.readyState)){e=function(){b.readyState=3;b.cues=null;b.activeCues=b.shimActiveCues=b._shimActiveCues=null;a(f).triggerHandler("error")};b.readyState=1;try{b.cues=l.createCueList(),b.activeCues=b.shimActiveCues=b._shimActiveCues=l.createCueList(),h=a.ajax({dataType:"text",url:d,success:function(c){"text/vtt"!=h.getResponseHeader("content-type")&&g.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt"); -l.parseCaptions(c,b,function(c){c&&"length"in c?(b.readyState=2,a(f).triggerHandler("load"),a(j).triggerHandler("updatetrackdisplay")):e()})},error:e})}catch(i){e(),g.warn(i)}}};b.readyState=0;b.shimActiveCues=null;b._shimActiveCues=null;b.activeCues=null;b.cues=null;a(j).unbind("play playing timeupdate updatetrackdisplay",c);a(f).unbind("checktrackmode",c);a(j).on("play playing timeupdate updatetrackdisplay",c);a(f).on("checktrackmode",c);if(d)b.mode=v[b.kind]?"showing":"hidden",c()};l.createTextTrack= -function(j,f){var e,d;if(f.nodeName&&(d=g.data(f,"trackData")))B(f,d),e=d.track;if(!e)e=s(g.objectCreate(r)),p||o.forEach(function(b){var c=a.prop(f,b);c&&(e[y[b]||b]=c)}),f.nodeName?(p&&o.forEach(function(b){g.defineProperty(e,y[b]||b,{get:function(){return a.prop(f,b)}})}),d=g.data(f,"trackData",{track:e}),l.loadTextTrack(j,f,d,a.prop(f,"default")&&a(f).siblings("track[default]").andSelf()[0]==f)):(p&&o.forEach(function(b){g.defineProperty(e,y[b]||b,{value:f[b],writeable:!1})}),e.cues=l.createCueList(), -e.activeCues=e._shimActiveCues=e.shimActiveCues=l.createCueList(),e.mode="hidden",e.readyState=2);return e};l.parseCaptionChunk=function(){var a=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,f=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,e=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,d=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;return function(b){var c,h,i,l;if(f.exec(b)||e.exec(b)||d.exec(b))return null;for(b=b.split(/\n/g);!b[0].replace(/\s+/ig,"").length&&0<b.length;)b.shift(); -for(b[0].match(/^\s*[a-z0-9-\_]+\s*$/ig)&&(i=""+b.shift().replace(/\s*/ig,""));0<b.length;){if(l=a.exec(b[0]))h=l.slice(1),c=parseInt(3600*(h[0]||0),10)+parseInt(60*(h[1]||0),10)+parseInt(h[2]||0,10)+parseFloat("0."+(h[3]||0)),h=parseInt(3600*(h[4]||0),10)+parseInt(60*(h[5]||0),10)+parseInt(h[6]||0,10)+parseFloat("0."+(h[7]||0));b=b.slice(0,0).concat(b.slice(1));break}if(!c&&!h)return g.warn("couldn't extract time information: "+[c,h,b.join("\n"),i].join(" ; ")),null;b=b.join("\n");c=new TextTrackCue(c, -h,b);if(i)c.id=i;return c}}();l.parseCaptions=function(a,f,e){l.createCueList();var d,b,c,h,i;a?(c=/^WEBVTT(\s*FILE)?/ig,b=function(m,n){for(;m<n;m++){d=a[m];if(c.test(d))i=!0;else if(d.replace(/\s*/ig,"").length){if(!i){g.error("please use WebVTT format. This is the standard");e(null);break}(d=l.parseCaptionChunk(d,m))&&f.addCue(d)}if(h<(new Date).getTime()-30){m++;setTimeout(function(){h=(new Date).getTime();b(m,n)},90);break}}m>=n&&(i||g.error("please use WebVTT format. This is the standard"), -e(f.cues))},a=a.replace(/\r\n/g,"\n"),setTimeout(function(){a=a.replace(/\r/g,"\n");setTimeout(function(){h=(new Date).getTime();a=a.split(/\n\n+/g);b(0,a.length)},9)},9)):g.error("Required parameter captionData not supplied.")};l.createTrackList=function(a,f){f=f||g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});if(!f.textTracks)f.textTracks=[],g.defineProperties(f.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),s(f.textTracks);return f.textTracks};Modernizr.track|| -(g.defineNodeNamesBooleanProperty(["track"],"default"),g.reflectProperties(["track"],["srclang","label"]),g.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));g.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(a){var f=g.data(this,"trackData");this.setAttribute("data-kind",a);if(f)f.attrKind=a},get:function(){var a=g.data(this,"trackData");return a&&"attrKind"in a?a.attrKind:this.getAttribute("kind")}}:{},reflect:!0,propType:"enumarated",defaultValue:"subtitles", -limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});a.each(o,function(h,f){var e=y[f]||f;g.onNodeNamesPropertyModify("track",f,function(){var d=g.data(this,"trackData"),b=this;if(d)"kind"==f&&B(this,d),p||(d.track[e]=a.prop(this,f)),clearTimeout(d.changedTrackPropTimer),d.changedTrackPropTimer=setTimeout(function(){a(b).trigger("updatesubtitlestate")},1)})});g.onNodeNamesPropertyModify("track","src",function(h){if(h){var h=g.data(this,"trackData"),f;h&&(f=a(this).closest("video, audio"), -f[0]&&l.loadTextTrack(f,this,h))}});g.defineNodeNamesProperties(["track"],{ERROR:{value:3},LOADED:{value:2},LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(a.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return l.createTextTrack(a(this).closest("audio, video")[0],this)},writeable:!1}},"prop");g.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var a=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}),f= -l.createTrackList(this,a);a.blockTrackListUpdate||x.call(this,a,f);return f},writeable:!1},addTextTrack:{value:function(a,f,e){a=l.createTextTrack(this,{kind:q.prop("kind",a||"").prop("kind"),label:f||"",srclang:e||""});f=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{});if(!f.scriptedTextTracks)f.scriptedTextTracks=[];f.scriptedTextTracks.push(a);x.call(this);return a}}},"prop");a(i).on("emptied ended updatetracklist",function(h){if(a(h.target).is("audio, video")){var f=g.data(h.target, -"mediaelementBase");if(f)clearTimeout(f.updateTrackListTimer),f.updateTrackListTimer=setTimeout(function(){x.call(h.target,f)},0)}});g.addReady(function(h,f){var e=f.filter("video, audio, track").closest("audio, video");a("video, audio",h).add(e).each(function(){x.call(this)}).each(function(){if(Modernizr.track){var d=this.textTracks;a.prop(this,"textTracks").length!=d.length&&g.error("textTracks couldn't be copied");a("track",this).each(function(){var b=a.prop(this,"track"),c=this.track,d,e;if(c){d= -a.prop(this,"kind");e=c.readyState||this.readyState;if(c.mode||e)b.mode=u[c.mode]||c.mode;if("descriptions"!=d)c.mode="string"==typeof c.mode?"disabled":0,this.kind="metadata",a(this).attr({kind:d})}}).on("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});e.each(function(){var a=this,b=g.data(a,"mediaelementBase");if(b)clearTimeout(b.updateTrackListTimer),b.updateTrackListTimer=setTimeout(function(){x.call(a,b)},9)})});Modernizr.track&&a("video, audio").trigger("trackapichange")}); +jQuery.webshims.register("dom-extend",function(e,t,n,r,i){"use strict";var s=t.modules,o=/\s*,\s*/,u={},a={},f={},l={},c={},h=e.fn.val,p=function(t,n,r,i,s){return s?h.call(e(t)):h.call(e(t),r)};e.fn.val=function(t){var n=this[0];arguments.length&&t==null&&(t="");if(!arguments.length)return!n||n.nodeType!==1?h.call(this):e.prop(n,"value",t,"val",!0);if(e.isArray(t))return h.apply(this,arguments);var r=e.isFunction(t);return this.each(function(s){n=this;if(n.nodeType===1)if(r){var o=t.call(n,s,e.prop(n,"value",i,"val",!0));o==null&&(o=""),e.prop(n,"value",o,"val")}else e.prop(n,"value",t,"val")})};var d="_webshimsLib"+Math.round(Math.random()*1e3),v=function(t,n,r){t=t.jquery?t[0]:t;if(!t)return r||{};var s=e.data(t,d);return r!==i&&(s||(s=e.data(t,d,{})),n&&(s[n]=r)),n?s&&s[n]:s};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(t){e.fn[t.name]=function(){return this.map(function(){var e=v(this,"shadowData");return e&&e[t.prop]||this})}}),["removeAttr","prop","attr"].forEach(function(n){u[n]=e[n],e[n]=function(t,r,s,o,l){var h=o=="val",d=h?p:u[n];if(!t||!a[r]||t.nodeType!==1||!h&&o&&n=="attr"&&e.attrFn[r])return d(t,r,s,o,l);var v=(t.nodeName||"").toLowerCase(),m=f[v],g=n!="attr"||s!==!1&&s!==null?n:"removeAttr",y,b,w;m||(m=f["*"]),m&&(m=m[r]),m&&(y=m[g]);if(y){r=="value"&&(b=y.isVal,y.isVal=h);if(g==="removeAttr")return y.value.call(t);if(s===i)return y.get?y.get.call(t):y.value;y.set&&(n=="attr"&&s===!0&&(s=r),w=y.set.call(t,s)),r=="value"&&(y.isVal=b)}else w=d(t,r,s,o,l);if((s!==i||g==="removeAttr")&&c[v]&&c[v][r]){var E;g=="removeAttr"?E=!1:g=="prop"?E=!!s:E=!0,c[v][r].forEach(function(e){(!e.only||(e.only=n=="prop")||e.only=="attr"&&n!="prop")&&e.call(t,s,E,h?"val":g,n)})}return w},l[n]=function(r,s,o){f[r]||(f[r]={}),f[r][s]||(f[r][s]={});var a=f[r][s][n],l=function(e,t,r){return t&&t[e]?t[e]:r&&r[e]?r[e]:n=="prop"&&s=="value"?function(e){var t=this;return o.isVal?p(t,s,e,!1,arguments.length===0):u[n](t,s,e)}:n=="prop"&&e=="value"&&o.value.apply?function(e){var t=u[n](this,s);return t&&t.apply&&(t=t.apply(this,arguments)),t}:function(e){return u[n](this,s,e)}};f[r][s][n]=o,o.value===i&&(o.set||(o.set=o.writeable?l("set",o,a):t.cfg.useStrict&&s=="prop"?function(){throw s+" is readonly on "+r}:e.noop),o.get||(o.get=l("get",o,a))),["value","get","set"].forEach(function(e){o[e]&&(o["_sup"+e]=l(e,a))})}});var m=!e.browser.msie||parseInt(e.browser.version,10)>8,g=function(){var e=t.getPrototypeOf(r.createElement("foobar")),n=Object.prototype.hasOwnProperty;return function(i,s,o){var u=r.createElement(i),a=t.getPrototypeOf(u);if(m&&a&&e!==a&&(!u[s]||!n.call(u,s))){var f=u[s];o._supvalue=function(){return f&&f.apply?f.apply(this,arguments):f},a[s]=o.value}else o._supvalue=function(){var e=v(this,"propValue");return e&&e[s]&&e[s].apply?e[s].apply(this,arguments):e&&e[s]},y.extendValue(i,s,o.value);o.value._supvalue=o._supvalue}}(),y=function(){var n={};t.addReady(function(r,i){var s={},o=function(t){s[t]||(s[t]=e(r.getElementsByTagName(t)),i[0]&&e.nodeName(i[0],t)&&(s[t]=s[t].add(i)))};e.each(n,function(e,n){o(e);if(!n||!n.forEach){t.warn("Error: with "+e+"-property. methods: "+n);return}n.forEach(function(t){s[e].each(t)})}),s=null});var i,s=e([]),o=function(t,s){n[t]?n[t].push(s):n[t]=[s],e.isDOMReady&&(i||e(r.getElementsByTagName(t))).each(s)},u={};return{createTmpCache:function(t){return e.isDOMReady&&(i=i||e(r.getElementsByTagName(t))),i||s},flushTmpCache:function(){i=null},content:function(t,n){o(t,function(){var t=e.attr(this,n);t!=null&&e.attr(this,n,t)})},createElement:function(e,t){o(e,t)},extendValue:function(t,n,r){o(t,function(){e(this).each(function(){var e=v(this,"propValue",{});e[n]=this[n],this[n]=r})})}}}(),b=function(e,t){e.defaultValue===i&&(e.defaultValue=""),e.removeAttr||(e.removeAttr={value:function(){e[t||"prop"].set.call(this,e.defaultValue),e.removeAttr._supvalue.call(this)}}),e.attr||(e.attr={})};e.extend(t,{getID:function(){var t=(new Date).getTime();return function(n){n=e(n);var r=n.attr("id");return r||(t++,r="ID-"+t,n.attr("id",r)),r}}(),extendUNDEFProp:function(t,n){e.each(n,function(e,n){e in t||(t[e]=n)})},createPropDefault:b,data:v,moveToFirstEvent:function(t,n,r){var i=(e._data(t,"events")||{})[n],s;i&&i.length>1&&(s=i.pop(),r||(r="bind"),r=="bind"&&i.delegateCount?i.splice(i.delegateCount,0,s):i.unshift(s)),t=null},addShadowDom:function(){var i,s,o,u={init:!1,runs:0,test:function(){var e=u.getHeight(),t=u.getWidth();e!=u.height||t!=u.width?(u.height=e,u.width=t,u.handler({type:"docresize"}),u.runs++,u.runs<9&&setTimeout(u.test,90)):u.runs=0},handler:function(t){clearTimeout(i),i=setTimeout(function(){if(t.type=="resize"){var r=e(n).width(),i=e(n).width();if(i==s&&r==o)return;s=i,o=r,u.height=u.getHeight(),u.width=u.getWidth()}e.event.trigger("updateshadowdom")},t.type=="resize"?50:9)},_create:function(){e.each({Height:"getHeight",Width:"getWidth"},function(e,t){var n=r.body,i=r.documentElement;u[t]=function(){return Math.max(n["scroll"+e],i["scroll"+e],n["offset"+e],i["offset"+e],i["client"+e])}})},start:function(){!this.init&&r.body&&(this.init=!0,this._create(),this.height=u.getHeight(),this.width=u.getWidth(),setInterval(this.test,600),e(this.test),t.ready("WINDOWLOAD",this.test),e(n).bind("resize",this.handler),function(){var t=e.fn.animate,n;e.fn.animate=function(){return clearTimeout(n),n=setTimeout(function(){u.test()},99),t.apply(this,arguments)}}())}};return e.event.customEvent.updateshadowdom=!0,t.docObserve=function(){t.ready("DOM",function(){u.start()})},function(n,r,i){i=i||{},n.jquery&&(n=n[0]),r.jquery&&(r=r[0]);var s=e.data(n,d)||e.data(n,d,{}),o=e.data(r,d)||e.data(r,d,{}),u={};i.shadowFocusElement?i.shadowFocusElement&&(i.shadowFocusElement.jquery&&(i.shadowFocusElement=i.shadowFocusElement[0]),u=e.data(i.shadowFocusElement,d)||e.data(i.shadowFocusElement,d,u)):i.shadowFocusElement=r,s.hasShadow=r,u.nativeElement=o.nativeElement=n,u.shadowData=o.shadowData=s.shadowData={nativeElement:n,shadowElement:r,shadowFocusElement:i.shadowFocusElement},i.shadowChilds&&i.shadowChilds.each(function(){v(this,"shadowData",o.shadowData)}),i.data&&(u.shadowData.data=o.shadowData.data=s.shadowData.data=i.data),i=null,t.docObserve()}}(),propTypes:{standard:function(e,t){b(e);if(e.prop)return;e.prop={set:function(t){e.attr.set.call(this,""+t)},get:function(){return e.attr.get.call(this)||e.defaultValue}}},"boolean":function(e,t){b(e);if(e.prop)return;e.prop={set:function(t){t?e.attr.set.call(this,""):e.removeAttr.value.call(this)},get:function(){return e.attr.get.call(this)!=null}}},src:function(){var t=r.createElement("a");return t.style.display="none",function(n,r){b(n);if(n.prop)return;n.prop={set:function(e){n.attr.set.call(this,e)},get:function(){var n=this.getAttribute(r),i;if(n==null)return"";t.setAttribute("href",n+"");if(!e.support.hrefNormalized){try{e(t).insertAfter(this),i=t.getAttribute("href",4)}catch(s){i=t.getAttribute("href",4)}e(t).detach()}return i||t.href}}}}(),enumarated:function(e,t){b(e);if(e.prop)return;e.prop={set:function(t){e.attr.set.call(this,t)},get:function(){var t=(e.attr.get.call(this)||"").toLowerCase();if(!t||e.limitedTo.indexOf(t)==-1)t=e.defaultValue;return t}}}},reflectProperties:function(n,r){typeof r=="string"&&(r=r.split(o)),r.forEach(function(r){t.defineNodeNamesProperty(n,r,{prop:{set:function(t){e.attr(this,r,t)},get:function(){return e.attr(this,r)||""}}})})},defineNodeNameProperty:function(n,r,i){return a[r]=!0,i.reflect&&t.propTypes[i.propType||"standard"](i,r),["prop","attr","removeAttr"].forEach(function(s){var o=i[s];o&&(s==="prop"?o=e.extend({writeable:!0},o):o=e.extend({},o,{writeable:!0}),l[s](n,r,o),n!="*"&&t.cfg.extendNative&&s=="prop"&&o.value&&e.isFunction(o.value)&&g(n,r,o),i[s]=o)}),i.initAttr&&y.content(n,r),i},defineNodeNameProperties:function(e,n,r,i){var s;for(var o in n)!i&&n[o].initAttr&&y.createTmpCache(e),r&&(n[o][r]||(n[o][r]={},["value","set","get"].forEach(function(e){e in n[o]&&(n[o][r][e]=n[o][e],delete n[o][e])}))),n[o]=t.defineNodeNameProperty(e,o,n[o]);return i||y.flushTmpCache(),n},createElement:function(n,r,i){var s;return e.isFunction(r)&&(r={after:r}),y.createTmpCache(n),r.before&&y.createElement(n,r.before),i&&(s=t.defineNodeNameProperties(n,i,!1,!0)),r.after&&y.createElement(n,r.after),y.flushTmpCache(),s},onNodeNamesPropertyModify:function(t,n,r,i){typeof t=="string"&&(t=t.split(o)),e.isFunction(r)&&(r={set:r}),t.forEach(function(e){c[e]||(c[e]={}),typeof n=="string"&&(n=n.split(o)),r.initAttr&&y.createTmpCache(e),n.forEach(function(t){c[e][t]||(c[e][t]=[],a[t]=!0),r.set&&(i&&(r.set.only=i),c[e][t].push(r.set)),r.initAttr&&y.content(e,t)}),y.flushTmpCache()})},defineNodeNamesBooleanProperty:function(n,r,s){s||(s={}),e.isFunction(s)&&(s.set=s),t.defineNodeNamesProperty(n,r,{attr:{set:function(e){this.setAttribute(r,e),s.set&&s.set.call(this,!0)},get:function(){var e=this.getAttribute(r);return e==null?i:r}},removeAttr:{value:function(){this.removeAttribute(r),s.set&&s.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:s.initAttr||!1})},contentAttr:function(e,t,n){if(!e.nodeName)return;var r;if(n===i)return r=e.attributes[t]||{},n=r.specified?r.value:null,n==null?i:n;typeof n=="boolean"?n?e.setAttribute(t,t):e.removeAttribute(t):e.setAttribute(t,n)},activeLang:function(){var n=[],r={},i,o,u=/:\/\/|^\.*\//,a=function(n,r,i){var s;return r&&i&&e.inArray(r,i.availabeLangs||[])!==-1?(n.loading=!0,s=i.langSrc,u.test(s)||(s=t.cfg.basePath+s),t.loader.loadScript(s+r+".js",function(){n.langObj[r]?(n.loading=!1,l(n,!0)):e(function(){n.langObj[r]&&l(n,!0),n.loading=!1})}),!0):!1},f=function(e){r[e]&&r[e].forEach(function(e){e.callback()})},l=function(e,t){if(e.activeLang!=i&&e.activeLang!==o){var n=s[e.module].options;e.langObj[i]||o&&e.langObj[o]?(e.activeLang=i,e.callback(e.langObj[i]||e.langObj[o],i),f(e.module)):!t&&!a(e,i,n)&&!a(e,o,n)&&e.langObj[""]&&e.activeLang!==""&&(e.activeLang="",e.callback(e.langObj[""],i),f(e.module))}},c=function(t){return typeof t=="string"&&t!==i?(i=t,o=i.split("-")[0],i==o&&(o=!1),e.each(n,function(e,t){l(t)})):typeof t=="object"&&(t.register?(r[t.register]||(r[t.register]=[]),r[t.register].push(t),t.callback()):(t.activeLang||(t.activeLang=""),n.push(t),l(t))),i};return c}()}),e.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(e,n){t[e]=function(e,r,i,s){typeof e=="string"&&(e=e.split(o));var u={};return e.forEach(function(e){u[e]=t[n](e,r,i,s)}),u}}),t.isReady("webshimLocalization",!0)}),function(e,t){var n=e.webshims.browserVersion;if(e.browser.mozilla&&n>5)return;if(!e.browser.msie||n<12&&n>7){var r={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},i=function(e,t){var n=e.getAttribute("role");n||e.setAttribute("role",t)};e.webshims.addReady(function(n,s){e.each(r,function(t,r){var o=e(t,n).add(s.filter(t));for(var u=0,a=o.length;u<a;u++)i(o[u],r)});if(n===t){var o=t.getElementsByTagName("header")[0],u=t.getElementsByTagName("footer"),a=u.length;o&&!e(o).closest("section, article")[0]&&i(o,"banner");if(!a)return;var f=u[a-1];e(f).closest("section, article")[0]||i(f,"contentinfo")}})}}(jQuery,document),function(e){"use strict";var t=window.Modernizr,n=e.webshims,r=n.bugs,i=e('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input required="" name="a" /></form>'),s=function(){if(i[0].querySelector)try{r.findRequired=!i[0].querySelector("select:required")}catch(e){r.findRequired=!1}},o=e("input",i).eq(0),u=function(e){n.loader.loadList(["dom-extend"]),n.ready("dom-extend",e)};r.findRequired=!1,r.validationMessage=!1,n.capturingEventPrevented=function(t){if(!t._isPolyfilled){var n=t.isDefaultPrevented,r=t.preventDefault;t.preventDefault=function(){return clearTimeout(e.data(t.target,t.type+"DefaultPrevented")),e.data(t.target,t.type+"DefaultPrevented",setTimeout(function(){e.removeData(t.target,t.type+"DefaultPrevented")},30)),r.apply(this,arguments)},t.isDefaultPrevented=function(){return!!(n.apply(this,arguments)||e.data(t.target,t.type+"DefaultPrevented")||!1)},t._isPolyfilled=!0}};if(!t.formvalidation||r.bustedValidity){s();return}n.capturingEvents(["input"]),n.capturingEvents(["invalid"],!0);if(window.opera||window.testGoodWithFix)i.appendTo("head"),s(),r.validationMessage=!o.prop("validationMessage"),n.reTest(["form-native-extend","form-message"]),i.remove(),e(function(){u(function(){var t=function(e){e.preventDefault()};["form","input","textarea","select"].forEach(function(r){var i=n.defineNodeNameProperty(r,"checkValidity",{prop:{value:function(){n.fromSubmit||e(this).on("invalid.checkvalidity",t),n.fromCheckValidity=!0;var r=i.prop._supvalue.apply(this,arguments);return n.fromSubmit||e(this).unbind("invalid.checkvalidity",t),n.fromCheckValidity=!1,r}}})})})});e.browser.webkit&&!n.bugs.bustedValidity&&function(){var t=/^(?:textarea|input)$/i,n=!1;document.addEventListener("contextmenu",function(e){t.test(e.target.nodeName||"")&&(n=e.target.form)&&setTimeout(function(){n=!1},1)},!1),e(window).on("invalid",function(e){e.originalEvent&&n&&n==e.target.form&&(e.wrongWebkitInvalid=!0,e.stopImmediatePropagation())})}()}(jQuery),jQuery.webshims.register("form-core",function(e,t,n,r,i,s){"use strict";var o={radio:1},u={checkbox:1,radio:1},a=e([]),f=t.bugs,l=function(t){t=e(t);var n,i,s=a;return o[t[0].type]&&(i=t.prop("form"),n=t[0].name,n?i?s=e(i[n]):s=e(r.getElementsByName(n)).filter(function(){return!e.prop(this,"form")}):s=t,s=s.filter('[type="radio"]')),s},c=t.getContentValidationMessage=function(t,n,r){var i=e(t).data("errormessage")||t.getAttribute("x-moz-errormessage")||"";return r&&i[r]&&(i=i[r]),typeof i=="object"&&(n=n||e.prop(t,"validity")||{valid:1},n.valid||e.each(n,function(e,t){if(t&&e!="valid"&&i[e])return i=i[e],!1})),typeof i=="object"&&(i=i.defaultMessage),i||""},h={number:1,range:1,date:1},p=function(t){var n=!1;return e(e.prop(t,"elements")).each(function(){n=e(this).is(":invalid");if(n)return!1}),n};e.extend(e.expr[":"],{"valid-element":function(t){return e.nodeName(t,"form")?!p(t):!!e.prop(t,"willValidate")&&!!v(t)},"invalid-element":function(t){return e.nodeName(t,"form")?p(t):!!e.prop(t,"willValidate")&&!v(t)},"required-element":function(t){return!!e.prop(t,"willValidate")&&!!e.prop(t,"required")},"user-error":function(t){return e.prop(t,"willValidate")&&e(t).hasClass("user-error")},"optional-element":function(t){return!!e.prop(t,"willValidate")&&e.prop(t,"required")===!1},"in-range":function(t){if(!h[e.prop(t,"type")]||!e.prop(t,"willValidate"))return!1;var n=e.prop(t,"validity");return!!(n&&!n.rangeOverflow&&!n.rangeUnderflow)},"out-of-range":function(t){if(!h[e.prop(t,"type")]||!e.prop(t,"willValidate"))return!1;var n=e.prop(t,"validity");return!(!n||!n.rangeOverflow&&!n.rangeUnderflow)}}),["valid","invalid","required","optional"].forEach(function(t){e.expr[":"][t]=e.expr.filters[t+"-element"]}),e.expr[":"].focus=function(e){try{var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())}catch(n){}return!1};var d=e.event.customEvent||{},v=function(t){return(e.prop(t,"validity")||{valid:1}).valid};(f.bustedValidity||f.findRequired)&&function(){var t=e.find,n=e.find.matchesSelector,i=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,s=function(e){return e+"-element"};e.find=function(){var e=Array.prototype.slice,n=function(n){var r=arguments;return r=e.call(r,1,r.length),r.unshift(n.replace(i,s)),t.apply(this,r)};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",r.documentElement))e.find.matchesSelector=function(e,t){return t=t.replace(i,s),n.call(this,e,t)}}();var m=e.prop,g={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};e.prop=function(t,n,r){var s=m.apply(this,arguments);return t&&"form"in t&&g[n]&&r!==i&&e(t).hasClass(w)&&v(t)&&(e(t).getShadowElement().removeClass(E),n=="checked"&&r&&l(t).not(t).removeClass(E).removeAttr("aria-invalid")),s};var y=function(t,n){var r;return e.each(t,function(t,i){if(i)return r=t=="customError"?e.prop(n,"validationMessage"):t,!1}),r},b=function(e){var t;try{t=r.activeElement.name===e}catch(n){}return t},w="user-error",E="user-error form-ui-invalid",S="user-success",x="user-success form-ui-valid",T=function(t){var n,r;if(!t.target)return;n=e(t.target).getNativeElement()[0];if(n.type=="submit"||!e.prop(n,"willValidate"))return;r=e.data(n,"webshimsswitchvalidityclass");var i=function(){if(t.type=="focusout"&&n.type=="radio"&&b(n.name))return;var r=e.prop(n,"validity"),i=e(n).getShadowElement(),s,o,a,f,c;e(n).trigger("refreshCustomValidityRules"),r.valid?i.hasClass(S)||(s=x,o=E,f="changedvaliditystate",a="changedvalid",u[n.type]&&n.checked&&l(n).not(n).removeClass(o).addClass(s).removeAttr("aria-invalid"),e.removeData(n,"webshimsinvalidcause")):(c=y(r,n),e.data(n,"webshimsinvalidcause")!=c&&(e.data(n,"webshimsinvalidcause",c),f="changedvaliditystate"),i.hasClass(w)||(s=E,o=x,u[n.type]&&!n.checked&&l(n).not(n).removeClass(o).addClass(s),a="changedinvalid")),s&&(i.addClass(s).removeClass(o),setTimeout(function(){e(n).trigger(a)},0)),f&&setTimeout(function(){e(n).trigger(f)},0),e.removeData(t.target,"webshimsswitchvalidityclass")};r&&clearTimeout(r),t.type=="refreshvalidityui"?i():e.data(n,"webshimsswitchvalidityclass",setTimeout(i,9))};e(r).on(s.validityUIEvents||"focusout change refreshvalidityui",T),d.changedvaliditystate=!0,d.refreshCustomValidityRules=!0,d.changedvalid=!0,d.changedinvalid=!0,d.refreshvalidityui=!0,t.triggerInlineForm=function(t,n){e(t).trigger(n)},t.modules["form-core"].getGroupElements=l;var N=function(){t.scrollRoot=e.browser.webkit||r.compatMode=="BackCompat"?e(r.body):e(r.documentElement)};N(),t.ready("DOM",N),t.getRelOffset=function(t,n){t=e(t);var r=e(n).offset(),i;return e.swap(e(t)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){i=t.offset()}),r.top-=i.top,r.left-=i.left,r},t.validityAlert=function(){var i=!e.browser.msie||parseInt(e.browser.version,10)>7?"span":"label",s,o=!1,u=!1,a=!1,f,l={hideDelay:5e3,showFor:function(t,r,i,s){l._create(),t=e(t);var u=e(t).getShadowElement(),c=l.getOffsetFromBody(u);l.clear(),s?this.hide():(this.getMessage(t,r),this.position(u,c),this.show(),this.hideDelay&&(o=setTimeout(f,this.hideDelay)),e(n).on("resize.validityalert",function(){clearTimeout(a),a=setTimeout(function(){l.position(u)},9)})),i||this.setFocus(u,c)},getOffsetFromBody:function(e){return t.getRelOffset(s,e)},setFocus:function(n,o){var u=e(n).getShadowFocusElement(),a=t.scrollRoot.scrollTop(),l=(o||u.offset()).top-30,c;t.getID&&i=="label"&&s.attr("for",t.getID(u)),a>l&&(t.scrollRoot.animate({scrollTop:l-5},{queue:!1,duration:Math.max(Math.min(600,(a-l)*1.5),80)}),c=!0);try{u[0].focus()}catch(h){}c&&(t.scrollRoot.scrollTop(a),setTimeout(function(){t.scrollRoot.scrollTop(a)},0)),setTimeout(function(){e(r).on("focusout.validityalert",f)},10)},getMessage:function(t,n){n||(n=c(t[0])||t.prop("validationMessage")),n?e("span.va-box",s).text(n):this.hide()},position:function(t,n){n=n?e.extend({},n):l.getOffsetFromBody(t),n.top+=t.outerHeight(),s.css(n)},show:function(){s.css("display")==="none"&&s.css({opacity:0}).show(),s.addClass("va-visible").fadeTo(400,1)},hide:function(){s.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(u),clearTimeout(o),e(r).unbind(".validityalert"),e(n).unbind(".validityalert"),s.stop().removeAttr("for")},_create:function(){if(s)return;s=l.errorBubble=e("<"+i+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+i+">").css({position:"absolute",display:"none"}),t.ready("DOM",function(){s.appendTo("body"),e.fn.bgIframe&&e.browser.msie&&parseInt(e.browser.version,10)<7&&s.bgIframe()})}};return f=e.proxy(l,"hide"),l}(),function(){var t,n=[],i,s;e(r).on("invalid",function(s){if(s.wrongWebkitInvalid)return;var o=e(s.target),u=o.getShadowElement();u.hasClass(w)||(u.addClass(E).removeClass(x),setTimeout(function(){e(s.target).trigger("changedinvalid").trigger("changedvaliditystate")},0));if(!t){t=e.Event("firstinvalid"),t.isInvalidUIPrevented=s.isDefaultPrevented;var a=e.Event("firstinvalidsystem");e(r).triggerHandler(a,{element:s.target,form:s.target.form,isInvalidUIPrevented:s.isDefaultPrevented}),o.trigger(t)}t&&t.isDefaultPrevented()&&s.preventDefault(),n.push(s.target),s.extraData="fix",clearTimeout(i),i=setTimeout(function(){var r={type:"lastinvalid",cancelable:!1,invalidlist:e(n)};t=!1,n=[],e(s.target).trigger(r,r)},9),o=null,u=null})}(),e.fn.getErrorMessage=function(){var t="",n=this[0];return n&&(t=c(n)||e.prop(n,"customValidationMessage")||e.prop(n,"validationMessage")),t},s.replaceValidationUI&&t.ready("DOM forms",function(){e(r).on("firstinvalid",function(t){t.isInvalidUIPrevented()||(t.preventDefault(),e.webshims.validityAlert.showFor(t.target,e(t.target).prop("customValidationMessage")))})})}),function(e,t,n){"use strict";var r=t.audio&&t.video,i=!1,s=n.bugs,o=function(){n.ready(a,function(){n.mediaelement.createSWF||(n.mediaelement.loadSwf=!0,n.reTest([a],r))})},u=n.cfg.mediaelement,a=u&&u.player=="jwplayer"?"mediaelement-swf":"mediaelement-jaris",f;if(!u){n.error("mediaelement wasn't implemented but loaded");return}if(r){var l=document.createElement("video");t.videoBuffered="buffered"in l,i="loop"in l,n.capturingEvents(["play","playing","waiting","paused","ended","durationchange","loadedmetadata","canplay","volumechange"]),t.videoBuffered||(n.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:t.videoBuffered,d:["dom-support"]}),n.reTest("mediaelement-native-fix"))}if(r&&!u.preferFlash){var c=function(t){var r=t.target.parentNode;!u.preferFlash&&(e(t.target).is("audio, video")||r&&e("source:last",r)[0]==t.target)&&n.ready("DOM mediaelement",function(){f&&o(),n.ready("WINDOWLOAD "+a,function(){setTimeout(function(){f&&!u.preferFlash&&n.mediaelement.createSWF&&!e(t.target).closest("audio, video").is(".nonnative-api-active")?(u.preferFlash=!0,document.removeEventListener("error",c,!0),e("audio, video").mediaLoad(),n.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+t.target.src)):f||document.removeEventListener("error",c,!0)},20)})})};document.addEventListener("error",c,!0),e("audio, video").each(function(){this.error&&c({target:this})})}t.track&&!s.track&&function(){s.track||(s.track=typeof e("<track />")[0].readyState!="number");if(!s.track)try{new TextTrackCue(2,3,"")}catch(t){s.track=!0}var r=n.cfg.track,i=function(t){e(t.target).filter("track").each(o)},o=function(){if(s.track||!r.override&&e.prop(this,"readyState")==3)r.override=!0,n.reTest("track"),document.removeEventListener("error",i,!0),this&&e.nodeName(this,"track")?n.error("track support was overwritten. Please check your vtt including your vtt mime-type"):n.info("track support was overwritten. due to bad browser support")},u=function(){document.addEventListener("error",i,!0),s.track?o():e("track").each(o)};r.override||(n.isReady("track")?u():e(u))}(),n.register("mediaelement-core",function(e,n,l,c,h){f=swfobject.hasFlashPlayerVersion("9.0.115"),e("html").addClass(f?"swf":"no-swf");var p=n.mediaelement;p.parseRtmp=function(e){var t=e.src.split("://"),r=t[1].split("/"),i,s,o;e.server=t[0]+"://"+r[0]+"/",e.streamId=[];for(i=1,s=r.length;i<s;i++)!o&&r[i].indexOf(":")!==-1&&(r[i]=r[i].split(":")[1],o=!0),o?e.streamId.push(r[i]):e.server+=r[i]+"/";e.streamId.length||n.error("Could not parse rtmp url"),e.streamId=e.streamId.join("/"),console.log(e)};var d=function(t,n){t=e(t);var r={src:t.attr("src")||"",elem:t,srcProp:t.prop("src")},i;if(!r.src)return r;i=t.attr("data-server"),i!=null&&(r.server=i),i=t.attr("type"),i?(r.type=i,r.container=e.trim(i.split(";")[0])):(n||(n=t[0].nodeName.toLowerCase(),n=="source"&&(n=(t.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),r.server?(r.type=n+"/rtmp",r.container=n+"/rtmp"):(i=p.getTypeForSrc(r.src,n,r),i&&(r.type=i,r.container=i))),i=t.attr("media"),i&&(r.media=i);if(r.type=="audio/rtmp"||r.type=="video/rtmp")r.server?r.streamId=r.src:p.parseRtmp(r);return r},v=!f&&"postMessage"in l&&r,m=function(){if(m.loaded)return;m.loaded=!0,e(function(){n.loader.loadList(["track-ui"])})},g=function(){var t;return function(){if(t||!v)return;t=!0,n.loader.loadScript("https://www.youtube.com/player_api"),e(function(){n.polyfill("mediaelement-yt")})}}(),y=function(){f?o():g()};n.addPolyfill("mediaelement-yt",{test:!v,d:["dom-support"]}),p.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"],"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"]}},p.mimeTypes.source=e.extend({},p.mimeTypes.audio,p.mimeTypes.video),p.getTypeForSrc=function(t,n,r){if(t.indexOf("youtube.com/watch?")!=-1||t.indexOf("youtube.com/v/")!=-1)return"video/youtube";if(t.indexOf("rtmp")===0)return n+"/rtmp";t=t.split("?")[0].split("."),t=t[t.length-1];var i;return e.each(p.mimeTypes[n],function(e,n){if(n.indexOf(t)!==-1)return i=e,!1}),i},p.srces=function(t,n){t=e(t);if(!n){n=[];var r=t[0].nodeName.toLowerCase(),i=d(t,r);return i.src?n.push(i):e("source",t).each(function(){i=d(this,r),i.src&&n.push(i)}),n}t.removeAttr("src").removeAttr("type").find("source").remove(),e.isArray(n)||(n=[n]),n.forEach(function(e){var n=c.createElement("source");typeof e=="string"&&(e={src:e}),n.setAttribute("src",e.src),e.type&&n.setAttribute("type",e.type),e.media&&n.setAttribute("media",e.media),t.append(n)})},e.fn.loadMediaSrc=function(t,n){return this.each(function(){n!==h&&(e(this).removeAttr("poster"),n&&e.attr(this,"poster",n)),p.srces(this,t),e(this).mediaLoad()})},p.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","video/rtmp","audio/rtmp"],p.canThirdPlaySrces=function(t,n){var r="";if(f||v)t=e(t),n=n||p.srces(t),e.each(n,function(e,t){if(t.container&&t.src&&(f&&p.swfMimeTypes.indexOf(t.container)!=-1||v&&t.container=="video/youtube"))return r=t,!1});return r};var b={};p.canNativePlaySrces=function(t,n){var i="";if(r){t=e(t);var s=(t[0].nodeName||"").toLowerCase();if(!b[s])return i;n=n||p.srces(t),e.each(n,function(e,n){if(n.type&&b[s].prop._supvalue.call(t[0],n.type))return i=n,!1})}return i},p.setError=function(t,r){r||(r="can't play sources"),e(t).pause().data("mediaerror",r),n.warn("mediaelementError: "+r),setTimeout(function(){e(t).data("mediaerror")&&e(t).trigger("mediaerror")},1)};var w=function(){var e;return function(t,r,i){e||m(),n.ready(f?a:"mediaelement-yt",function(){p.createSWF?p.createSWF(t,r,i):e||(e=!0,y(),w(t,r,i))}),!e&&v&&!p.createSWF&&g()}}(),E=function(e,t,n,r,i){var s;n||n!==!1&&t&&t.isActive=="third"?(s=p.canThirdPlaySrces(e,r),s?w(e,s,t):i?p.setError(e,!1):E(e,t,!1,r,!0)):(s=p.canNativePlaySrces(e,r),s?t&&t.isActive=="third"&&p.setActive(e,"html5",t):i?(p.setError(e,!1),t&&t.isActive=="third"&&p.setActive(e,"html5",t)):E(e,t,!0,r,!0))},S=/^(?:embed|object|datalist)$/i,x=function(t,r){var i=n.data(t,"mediaelementBase")||n.data(t,"mediaelementBase",{}),s=p.srces(t),o=t.parentNode;clearTimeout(i.loadTimer),e.data(t,"mediaerror",!1);if(!s.length||!o||o.nodeType!=1||S.test(o.nodeName||""))return;r=r||n.data(t,"mediaelement"),E(t,r,u.preferFlash||h,s)};e(c).on("ended",function(t){var r=n.data(t.target,"mediaelement");if(i&&(!r||r.isActive=="html5")&&!e.prop(t.target,"loop"))return;setTimeout(function(){if(e.prop(t.target,"paused")||!e.prop(t.target,"loop"))return;e(t.target).prop("currentTime",0).play()},1)}),i||n.defineNodeNamesBooleanProperty(["audio","video"],"loop"),["audio","video"].forEach(function(t){var i=n.defineNodeNameProperty(t,"load",{prop:{value:function(){var e=n.data(this,"mediaelement");x(this,e),r&&(!e||e.isActive=="html5")&&i.prop._supvalue&&i.prop._supvalue.apply(this,arguments)}}});b[t]=n.defineNodeNameProperty(t,"canPlayType",{prop:{value:function(n){var i="";return r&&b[t].prop._supvalue&&(i=b[t].prop._supvalue.call(this,n),i=="no"&&(i="")),!i&&f&&(n=e.trim((n||"").split(";")[0]),p.swfMimeTypes.indexOf(n)!=-1&&(i="maybe")),i}}})}),n.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var e=this,t=n.data(e,"mediaelementBase")||n.data(e,"mediaelementBase",{});clearTimeout(t.loadTimer),t.loadTimer=setTimeout(function(){x(e),e=null},9)}});var T=function(){n.addReady(function(t,i){var s=e("video, audio",t).add(i.filter("video, audio")).each(function(){e.browser.msie&&n.browserVersion>8&&e.prop(this,"paused")&&!e.prop(this,"readyState")&&e(this).is('audio[preload="none"][controls]:not([autoplay])')?e(this).prop("preload","metadata").mediaLoad():x(this);if(r){var t,i,s=this,o=function(){var t=e.prop(s,"buffered");if(!t)return;var n="";for(var r=0,i=t.length;r<i;r++)n+=t.end(r);return n},u=function(){var t=o();t!=i&&(i=t,e(s).triggerHandler("progress"))};e(this).on({"play loadstart progress":function(e){e.type=="progress"&&(i=o()),clearTimeout(t),t=setTimeout(u,999)},"emptied stalled mediaerror abort suspend":function(e){e.type=="emptied"&&(i=!1),clearTimeout(t)}})}});!m.loaded&&e("track",s).length&&m(),s=null})};t.track&&!s.track&&n.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}}),r?(n.isReady("mediaelement-core",!0),T(),n.ready("WINDOWLOAD mediaelement",y)):n.ready(a,T),n.ready("WINDOWLOAD mediaelement",m)})}(jQuery,Modernizr,jQuery.webshims),jQuery.webshims.register("track",function(e,t,n,r,i){"use strict";var s=t.mediaelement,o=(new Date).getTime(),u={subtitles:1,captions:1,descriptions:1},a=function(){t.error("not implemented yet")},f=e("<track />"),l=Modernizr.ES5&&Modernizr.objectAccessor,c=function(e){var n={};return e.addEventListener=function(e,r){n[e]&&t.error("always use $.on to the shimed event: "+e+" already bound fn was: "+n[e]+" your fn was: "+r),n[e]=r},e.removeEventListener=function(e,r){n[e]&&n[e]!=r&&t.error("always use $.on/$.off to the shimed event: "+e+" already bound fn was: "+n[e]+" your fn was: "+r),n[e]&&delete n[e]},e},h={getCueById:function(e){var t=null;for(var n=0,r=this.length;n<r;n++)if(this[n].id===e){t=this[n];break}return t}},p={0:"disabled",1:"hidden",2:"showing"},d={shimActiveCues:null,_shimActiveCues:null,activeCues:null,cues:null,kind:"subtitles",label:"",language:"",mode:"disabled",readyState:0,oncuechange:null,toString:function(){return"[object TextTrack]"},addCue:function(e){if(!this.cues)this.cues=s.createCueList();else{var n=this.cues[this.cues.length-1];n&&n.startTime>e.startTime&&t.error("cue startTime higher than previous cue's startTime")}e.track&&e.track.removeCue&&e.track.removeCue(e),e.track=this,this.cues.push(e)},removeCue:function(e){var n=this.cues||[],r=0,i=n.length;if(e.track!=this){t.error("cue not part of track");return}for(;r<i;r++)if(n[r]===e){n.splice(r,1),e.track=null;break}if(e.track){t.error("cue not part of track");return}},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},v=["kind","label","srclang"],m={srclang:"language"},g=Function.prototype.call.bind(Object.prototype.hasOwnProperty),y=function(n,r){var i=[],s=[],o=[],u,a;n||(n=t.data(this,"mediaelementBase")||t.data(this,"mediaelementBase",{})),r||(n.blockTrackListUpdate=!0,r=e.prop(this,"textTracks"),n.blockTrackListUpdate=!1),clearTimeout(n.updateTrackListTimer),e("track",this).each(function(){var t=e.prop(this,"track");o.push(t),r.indexOf(t)==-1&&s.push(t)});if(n.scriptedTextTracks)for(u=0,a=n.scriptedTextTracks.length;u<a;u++)o.push(n.scriptedTextTracks[u]),r.indexOf(n.scriptedTextTracks[u])==-1&&s.push(n.scriptedTextTracks[u]);for(u=0,a=r.length;u<a;u++)o.indexOf(r[u])==-1&&i.push(r[u]);if(i.length||s.length){r.splice(0);for(u=0,a=o.length;u<a;u++)r.push(o[u]);for(u=0,a=i.length;u<a;u++)e([r]).triggerHandler(e.Event({type:"removetrack",track:i[u]}));for(u=0,a=s.length;u<a;u++)e([r]).triggerHandler(e.Event({type:"addtrack",track:s[u]}));(n.scriptedTextTracks||i.length)&&e(this).triggerHandler("updatetrackdisplay")}},b=function(n,r){r||(r=t.data(n,"trackData")),r&&!r.isTriggering&&(r.isTriggering=!0,setTimeout(function(){(r.track||{}).readyState?e(n).closest("audio, video").triggerHandler("updatetrackdisplay"):e(n).triggerHandler("checktrackmode"),r.isTriggering=!1},1))},w=e("<div />")[0];n.TextTrackCue=function(e,n,r){arguments.length!=3&&t.error("wrong arguments.length for TextTrackCue.constructor"),this.startTime=e,this.endTime=n,this.text=r,this.id="",this.pauseOnExit=!1,c(this)},n.TextTrackCue.prototype={onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var e="",t="",n=r.createDocumentFragment(),i;return g(this,"getCueAsHTML")||(i=this.getCueAsHTML=function(){var r,i;if(e!=this.text){e=this.text,t=s.parseCueTextToHTML(e),w.innerHTML=t;for(r=0,i=w.childNodes.length;r<i;r++)n.appendChild(w.childNodes[r].cloneNode(!0))}return n.cloneNode(!0)}),i?i.apply(this,arguments):n.cloneNode(!0)},track:null,id:""},s.createCueList=function(){return e.extend([],h)},s.parseCueTextToHTML=function(){var e=/(<\/?[^>]+>)/ig,t=/^(?:c|v|ruby|rt|b|i|u)/,n=/\<\s*\//,r=function(e,t,r,i){var s;return n.test(i)?s="</"+e+">":(r.splice(0,1),s="<"+e+" "+t+'="'+r.join(" ").replace(/\"/g,"&#34;")+'">'),s},i=function(e){var n=e.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);return n[0]&&(n[0]=n[0].toLowerCase(),t.test(n[0])?n[0]=="c"?e=r("span","class",n,e):n[0]=="v"&&(e=r("q","title",n,e)):e=""),e};return function(t){return t.replace(e,i)}}(),s.loadTextTrack=function(n,r,i,o){var a="play playing timeupdate updatetrackdisplay",f=i.track,l=function(){var i=e.prop(r,"src"),o,u;if(f.mode!="disabled"&&i&&e.attr(r,"src")){e(n).unbind(a,l),e(r).unbind("checktrackmode",l);if(!f.readyState){o=function(){f.readyState=3,f.cues=null,f.activeCues=f.shimActiveCues=f._shimActiveCues=null,e(r).triggerHandler("error")},f.readyState=1;try{f.cues=s.createCueList(),f.activeCues=f.shimActiveCues=f._shimActiveCues=s.createCueList(),u=e.ajax({dataType:"text",url:i,success:function(i){u.getResponseHeader("content-type")!="text/vtt"&&t.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt"),s.parseCaptions(i,f,function(t){t&&"length"in t?(f.readyState=2,e(r).triggerHandler("load"),e(n).triggerHandler("updatetrackdisplay")):o()})},error:o})}catch(c){o(),t.warn(c)}}}};f.readyState=0,f.shimActiveCues=null,f._shimActiveCues=null,f.activeCues=null,f.cues=null,e(n).unbind(a,l),e(r).unbind("checktrackmode",l),e(n).on(a,l),e(r).on("checktrackmode",l),o&&(f.mode=u[f.kind]?"showing":"hidden",l())},s.createTextTrack=function(n,r){var i,o;return r.nodeName&&(o=t.data(r,"trackData"),o&&(b(r,o),i=o.track)),i||(i=c(t.objectCreate(d)),l||v.forEach(function(t){var n=e.prop(r,t);n&&(i[m[t]||t]=n)}),r.nodeName?(l&&v.forEach(function(n){t.defineProperty(i,m[n]||n,{get:function(){return e.prop(r,n)}})}),o=t.data(r,"trackData",{track:i}),s.loadTextTrack(n,r,o,e.prop(r,"default")&&e(r).siblings("track[default]").andSelf()[0]==r)):(l&&v.forEach(function(e){t.defineProperty(i,m[e]||e,{value:r[e],writeable:!1})}),i.cues=s.createCueList(),i.activeCues=i._shimActiveCues=i.shimActiveCues=s.createCueList(),i.mode="hidden",i.readyState=2)),i},s.parseCaptionChunk=function(){var e=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,n=/^([\d\.]+)\s+\+([\d\.]+)\s*(.*)/,r=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,i=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,s=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;return function(n,o){var u=[],a,f,l,c,h,p,d="",v,m,g,y;if(m=r.exec(n))return null;if(m=i.exec(n))return null;if(m=s.exec(n))return null;a=n.split(/\n/g);while(!a[0].replace(/\s+/ig,"").length&&a.length>0)a.shift();a[0].match(/^\s*[a-z0-9-\_]+\s*$/ig)&&(v=String(a.shift().replace(/\s*/ig,"")));for(p=0;p<a.length;p++){var b=a[p];if(g=e.exec(b))h=g.slice(1),f=parseInt((h[0]||0)*60*60,10)+parseInt((h[1]||0)*60,10)+parseInt(h[2]||0,10)+parseFloat("0."+(h[3]||0)),l=parseInt((h[4]||0)*60*60,10)+parseInt((h[5]||0)*60,10)+parseInt(h[6]||0,10)+parseFloat("0."+(h[7]||0));a=a.slice(0,p).concat(a.slice(p+1));break}return!f&&!l?(t.warn("couldn't extract time information: "+[f,l,a.join("\n"),v].join(" ; ")),null):(c=a.join("\n"),y=new TextTrackCue(f,l,c),v&&(y.id=v),y)}}(),s.parseCaptions=function(e,n,r){var i=s.createCueList(),o,u,a,f,l;e?(a=/^WEBVTT(\s*FILE)?/ig,u=function(i,c){for(;i<c;i++){o=e[i];if(a.test(o))l=!0;else if(o.replace(/\s*/ig,"").length){if(!l){t.error("please use WebVTT format. This is the standard"),r(null);break}o=s.parseCaptionChunk(o,i),o&&n.addCue(o)}if(f<(new Date).getTime()-30){i++,setTimeout(function(){f=(new Date).getTime(),u(i,c)},90);break}}i>=c&&(l||t.error("please use WebVTT format. This is the standard"),r(n.cues))},e=e.replace(/\r\n/g,"\n"),setTimeout(function(){e=e.replace(/\r/g,"\n"),setTimeout(function(){f=(new Date).getTime(),e=e.split(/\n\n+/g),u(0,e.length)},9)},9)):t.error("Required parameter captionData not supplied.")},s.createTrackList=function(e,n){return n=n||t.data(e,"mediaelementBase")||t.data(e,"mediaelementBase",{}),n.textTracks||(n.textTracks=[],t.defineProperties(n.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),c(n.textTracks)),n.textTracks},Modernizr.track||(t.defineNodeNamesBooleanProperty(["track"],"default"),t.reflectProperties(["track"],["srclang","label"]),t.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}})),t.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(e){var n=t.data(this,"trackData");this.setAttribute("data-kind",e),n&&(n.attrKind=e)},get:function(){var e=t.data(this,"trackData");return e&&"attrKind"in e?e.attrKind:this.getAttribute("kind")}}:{},reflect:!0,propType:"enumarated",defaultValue:"subtitles",limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}}),e.each(v,function(n,r){var i=m[r]||r;t.onNodeNamesPropertyModify("track",r,function(){var n=t.data(this,"trackData"),s=this;n&&(r=="kind"&&b(this,n),l||(n.track[i]=e.prop(this,r)),clearTimeout(n.changedTrackPropTimer),n.changedTrackPropTimer=setTimeout(function(){e(s).trigger("updatesubtitlestate")},1))})}),t.onNodeNamesPropertyModify("track","src",function(n){if(n){var r=t.data(this,"trackData"),i;r&&(i=e(this).closest("video, audio"),i[0]&&s.loadTextTrack(i,this,r))}}),t.defineNodeNamesProperties(["track"],{ERROR:{value:3},LOADED:{value:2},LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(e.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return s.createTextTrack(e(this).closest("audio, video")[0],this)},writeable:!1}},"prop"),t.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var e=this,n=t.data(e,"mediaelementBase")||t.data(e,"mediaelementBase",{}),r=s.createTrackList(e,n);return n.blockTrackListUpdate||y.call(e,n,r),r},writeable:!1},addTextTrack:{value:function(e,n,r){var i=s.createTextTrack(this,{kind:f.prop("kind",e||"").prop("kind"),label:n||"",srclang:r||""}),o=t.data(this,"mediaelementBase")||t.data(this,"mediaelementBase",{});return o.scriptedTextTracks||(o.scriptedTextTracks=[]),o.scriptedTextTracks.push(i),y.call(this),i}}},"prop"),e(r).on("emptied ended updatetracklist",function(n){if(e(n.target).is("audio, video")){var r=t.data(n.target,"mediaelementBase");r&&(clearTimeout(r.updateTrackListTimer),r.updateTrackListTimer=setTimeout(function(){y.call(n.target,r)},0))}});var E=function(e,t){return t.readyState||e.readyState};t.addReady(function(n,r){var i=r.filter("video, audio, track").closest("audio, video");e("video, audio",n).add(i).each(function(){y.call(this)}).each(function(){if(Modernizr.track){var n=e.prop(this,"textTracks"),r=this.textTracks;n.length!=r.length&&t.error("textTracks couldn't be copied"),e("track",this).each(function(){var t=e.prop(this,"track"),n=this.track,r,i;if(n){r=e.prop(this,"kind"),i=E(this,n);if(n.mode||i)t.mode=p[n.mode]||n.mode;r!="descriptions"&&(n.mode=typeof n.mode=="string"?"disabled":0,this.kind="metadata",e(this).attr({kind:r}))}}).on("load error",function(e){e.originalEvent&&e.stopImmediatePropagation()})}}),i.each(function(){var e=this,n=t.data(e,"mediaelementBase");n&&(clearTimeout(n.updateTrackListTimer),n.updateTrackListTimer=setTimeout(function(){y.call(e,n)},9))})}),Modernizr.track&&e("video, audio").trigger("trackapichange")}); \ No newline at end of file