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||8c.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&&5h&&7")[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'),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||7h&&(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">").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(""),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;ea.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")[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]+>)/ig,f=/^(?:c|v|ruby|rt|b|i|u)/,e=/\<\s*\//,d=function(b,a,d,f){e.test(f)?b="":(d.splice(0,1),b="<"+b+" "+a+'="'+d.join(" ").replace(/\"/g,""")+'">');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=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")});