'),q=function(){if(u[0].querySelector)try{d.findRequired=!u[0].querySelector("select:required")}catch(a){d.findRequired=!1}},h=a("input",u).eq(0),v=function(a){j.loader.loadList(["dom-extend"]);j.ready("dom-extend",a)};d.findRequired=!1;d.validationMessage=!1;j.capturingEventPrevented=function(c){if(!c._isPolyfilled){var d=
c.isDefaultPrevented,n=c.preventDefault;c.preventDefault=function(){clearTimeout(a.data(c.target,c.type+"DefaultPrevented"));a.data(c.target,c.type+"DefaultPrevented",setTimeout(function(){a.removeData(c.target,c.type+"DefaultPrevented")},30));return n.apply(this,arguments)};c.isDefaultPrevented=function(){return!(!d.apply(this,arguments)&&!a.data(c.target,c.type+"DefaultPrevented"))};c._isPolyfilled=!0}};if(!c.formvalidation||d.bustedValidity)q();else{j.capturingEvents(["input"]);j.capturingEvents(["invalid"],
!0);if(window.opera||window.testGoodWithFix)u.appendTo("head"),q(),d.validationMessage=!h.prop("validationMessage"),j.reTest(["form-extend","form-message"]),u.remove(),a(function(){v(function(){var c=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(d){var n=j.defineNodeNameProperty(d,"checkValidity",{prop:{value:function(){if(!j.fromSubmit)a(this).on("invalid.checkvalidity",c);j.fromCheckValidity=!0;var d=n.prop._supvalue.apply(this,arguments);j.fromSubmit||a(this).unbind("invalid.checkvalidity",
c);j.fromCheckValidity=!1;return d}}})})})});a.browser.webkit&&!j.bugs.bustedValidity&&function(){var c=/^(?:textarea|input)$/i,d=!1;document.addEventListener("contextmenu",function(a){c.test(a.target.nodeName||"")&&(d=a.target.form)&&setTimeout(function(){d=!1},1)},!1);a(window).on("invalid",function(a){if(a.originalEvent&&d&&d==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
jQuery.webshims.register("form-core",function(a,c,j,d,u,q){var h={radio:1},v={checkbox:1,radio:1},z=a([]),w=c.bugs,n=function(k){var k=a(k),b,c;b=z;if(h[k[0].type])c=k.prop("form"),b=(b=k[0].name)?c?a(c[b]):a(d.getElementsByName(b)).filter(function(){return!a.prop(this,"form")}):k,b=b.filter('[type="radio"]');return b},A=c.getContentValidationMessage=function(b,g,c){var e=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";c&&e[c]&&(e=e[c]);"object"==typeof e&&(g=g||a.prop(b,"validity")||
{valid:1},g.valid||a.each(g,function(a,b){if(b&&"valid"!=a&&e[a])return e=e[a],!1}));if("object"==typeof e)e=e.defaultMessage;return e||""},s={number:1,range:1,date:1},B=function(b){var g=!1;a(a.prop(b,"elements")).each(function(){if(g=a(this).is(":invalid"))return!1});return g};a.extend(a.expr[":"],{"valid-element":function(b){return a.nodeName(b,"form")?!B(b):!(!a.prop(b,"willValidate")||!x(b))},"invalid-element":function(b){return a.nodeName(b,"form")?B(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(!s[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(!s[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(a){try{var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(c){}return!1};var t=a.event.customEvent||{},x=function(b){return(a.prop(b,"validity")||{valid:1}).valid};(w.bustedValidity||w.findRequired)&&function(){var b=a.find,g=a.find.matchesSelector,c=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,
e=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,g=function(g){var m=arguments,m=a.call(m,1,m.length);m.unshift(g.replace(c,e));return b.apply(this,m)},m;for(m in b)b.hasOwnProperty(m)&&(g[m]=b[m]);return g}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",d.documentElement))a.find.matchesSelector=function(a,b){b=b.replace(c,e);return g.call(this,a,b)}}();var r=a.prop,D={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,g,c){var e=
r.apply(this,arguments);b&&"form"in b&&D[g]&&c!==u&&a(b).hasClass(f)&&x(b)&&(a(b).getShadowElement().removeClass(p),"checked"==g&&c&&n(b).not(b).removeClass(p).removeAttr("aria-invalid"));return e};var b=function(b,g){var c;a.each(b,function(b,e){if(e)return c="customError"==b?a.prop(g,"validationMessage"):b,!1});return c},e=function(a){var b;try{b=d.activeElement.name===a}catch(c){}return b},f="user-error",p="user-error form-ui-invalid";a(d).on(q.validityUIEvents||"focusout change refreshvalidityui",
function(c){var g,o;if(c.target&&(g=a(c.target).getNativeElement()[0],"submit"!=g.type&&a.prop(g,"willValidate"))){o=a.data(g,"webshimsswitchvalidityclass");var l=function(){if(!("focusout"==c.type&&"radio"==g.type&&e(g.name))){var l=a.prop(g,"validity"),i=a(g).getShadowElement(),m,y,o,d;a(g).trigger("refreshCustomValidityRules");l.valid?i.hasClass("user-success")||(m="user-success form-ui-valid",y=p,d="changedvaliditystate",o="changedvalid",v[g.type]&&g.checked&&n(g).not(g).removeClass(y).addClass(m).removeAttr("aria-invalid"),
a.removeData(g,"webshimsinvalidcause")):(l=b(l,g),a.data(g,"webshimsinvalidcause")!=l&&(a.data(g,"webshimsinvalidcause",l),d="changedvaliditystate"),i.hasClass(f)||(m=p,y="user-success form-ui-valid",v[g.type]&&!g.checked&&n(g).not(g).removeClass(y).addClass(m),o="changedinvalid"));m&&(i.addClass(m).removeClass(y),setTimeout(function(){a(g).trigger(o)},0));d&&setTimeout(function(){a(g).trigger(d)},0);a.removeData(c.target,"webshimsswitchvalidityclass")}};o&&clearTimeout(o);"refreshvalidityui"==c.type?
l():a.data(g,"webshimsswitchvalidityclass",setTimeout(l,9))}});t.changedvaliditystate=!0;t.refreshCustomValidityRules=!0;t.changedvalid=!0;t.changedinvalid=!0;t.refreshvalidityui=!0;c.triggerInlineForm=function(b,g){a(b).trigger(g)};c.modules["form-core"].getGroupElements=n;w=function(){c.scrollRoot=a.browser.webkit||"BackCompat"==d.compatMode?a(d.body):a(d.documentElement)};w();c.ready("DOM",w);c.getRelOffset=function(b,g){var b=a(b),c=a(g).offset(),e;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",
left:0,top:0},function(){e=b.offset()});c.top-=e.top;c.left-=e.left;return c};c.validityAlert=function(){var b=!a.browser.msie||7o&&(c.scrollRoot.animate({scrollTop:o-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(l-o)),80)}),h=!0);try{i[0].focus()}catch(n){}h&&(c.scrollRoot.scrollTop(l),setTimeout(function(){c.scrollRoot.scrollTop(l)},0));setTimeout(function(){a(d).on("focusout.validityalert",
p)},10)},getMessage:function(b,c){c||(c=A(b[0])||b.prop("validationMessage"));c?a("span.va-box",g).text(c):this.hide()},position:function(b,c){c=c?a.extend({},c):i.getOffsetFromBody(b);c.top+=b.outerHeight();g.css(c)},show:function(){"none"===g.css("display")&&g.css({opacity:0}).show();g.addClass("va-visible").fadeTo(400,1)},hide:function(){g.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(e);a(d).unbind(".validityalert");a(j).unbind(".validityalert");g.stop().removeAttr("for")},
_create:function(){if(!g)g=i.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert">'+b+">").css({position:"absolute",display:"none"}),c.ready("DOM",function(){g.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&g.bgIframe()})}};p=a.proxy(i,"hide");return i}();(function(){var b,c=[],e;a(d).on("invalid",function(l){if(!l.wrongWebkitInvalid){var C=
a(l.target),i=C.getShadowElement();i.hasClass(f)||(i.addClass(p).removeClass("user-success form-ui-valid"),setTimeout(function(){a(l.target).trigger("changedinvalid").trigger("changedvaliditystate")},0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=l.isDefaultPrevented,i=a.Event("firstinvalidsystem"),a(d).triggerHandler(i,{element:l.target,form:l.target.form,isInvalidUIPrevented:l.isDefaultPrevented}),C.trigger(b);b&&b.isDefaultPrevented()&&l.preventDefault();c.push(l.target);l.extraData=
"fix";clearTimeout(e);e=setTimeout(function(){var e={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(l.target).trigger(e,e)},9);i=C=null}})})();a.fn.getErrorMessage=function(){var b="",c=this[0];c&&(b=A(c)||a.prop(c,"customValidationMessage")||a.prop(c,"validationMessage"));return b};q.replaceValidationUI&&c.ready("DOM forms",function(){a(d).on("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
jQuery.webshims.register("form-message",function(a,c,j,d,u,q){var h=c.validityMessages,j=q.overrideMessages||q.customMessages?["customValidationMessage"]:[];h.en=a.extend(!0,{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}},h.en||h["en-US"]||{});["select","radio"].forEach(function(a){h.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){h.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date",
"time","datetime-local"].forEach(function(a){h.en.rangeOverflow[a]="Value must be at or before {%max}."});h["en-US"]=h["en-US"]||h.en;h[""]=h[""]||h["en-US"];h.de=a.extend(!0,{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}},h.de||{});["select","radio"].forEach(function(a){h.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){h.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){h.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});
var v=h[""];c.createValidationMessage=function(d,h){var n=v[h];n&&"string"!==typeof n&&(n=n[a.prop(d,"type")]||n[(d.nodeName||"").toLowerCase()]||n.defaultMessage);n&&"value,min,max,title,maxlength,label".split(",").forEach(function(j){if(-1!==n.indexOf("{%"+j)){var s=("label"==j?a.trim(a('label[for="'+d.id+'"]',d.form).text()).replace(/\*$|:$/,""):a.attr(d,j))||"";"patternMismatch"==h&&"title"==j&&!s&&c.error("no title for patternMismatch provided. Always add a title attribute.");n=n.replace("{%"+
j+"}",s);"value"==j&&(n=n.replace("{%valueLen}",s.length))}});return n||""};(c.bugs.validationMessage||!Modernizr.formvalidation||c.bugs.bustedValidity)&&j.push("validationMessage");c.activeLang({langObj:h,module:"form-core",callback:function(a){v=a}});j.forEach(function(d){c.defineNodeNamesProperty(["fieldset","output","button"],d,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(h){var j=c.defineNodeNameProperty(h,d,{prop:{get:function(){var d=this,h="";if(!a.prop(d,
"willValidate"))return h;var q=a.prop(d,"validity")||{valid:1};if(q.valid||(h=c.getContentValidationMessage(d,q)))return h;if(q.customError&&d.nodeName&&(h=Modernizr.formvalidation&&!c.bugs.bustedValidity&&j.prop._supget?j.prop._supget.call(d):c.data(d,"customvalidationMessage")))return h;a.each(q,function(a,j){if("valid"!=a&&j&&(h=c.createValidationMessage(d,a)))return!1});return h||""},writeable:!1}})})})});
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,c,j,d){c.inputTypes=c.inputTypes||{};var u=c.cfg.forms,q,h=c.inputTypes,v={radio:1,checkbox:1};c.addInputType=function(a,c){h[a]=c};var z={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},w={valueMissing:function(b,e,f){if(!b.prop("required"))return!1;var d=!1;if(!("type"in f))f.type=(b[0].getAttribute("type")||
b[0].type||"").toLowerCase();if("select"==f.nodeName){if(e=!e)if(!(e=0>b[0].selectedIndex))b=b[0],e="select-one"==b.type&&2>b.size?!!a("> option:first-child",b).prop("selected"):!1;b=e}else b=v[f.type]?"checkbox"==f.type?!b.is(":checked"):!c.modules["form-core"].getGroupElements(b).filter(":checked")[0]:!e;return b},tooLong:function(){return!1},typeMismatch:function(a,c,f){if(""===c||"select"==f.nodeName)return!1;var d=!1;if(!("type"in f))f.type=(a[0].getAttribute("type")||a[0].type||"").toLowerCase();
if(h[f.type]&&h[f.type].mismatch)d=h[f.type].mismatch(c,a);else if("validity"in a[0])d=a[0].validity.typeMismatch;return d},patternMismatch:function(a,e,f){if(""===e||"select"==f.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(d){c.error('invalid pattern value: "'+a+'" | '+d),a=!1}return!a?!1:!a.test(e)}};c.addValidityRule=function(a,c){w[a]=c};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var b=
this.form||this;if(!a.data(b,"invalidEventShim")&&(a(b).data("invalidEventShim",!0).on("submit",a.event.special.invalid.handler),c.moveToFirstEvent(b,"submit"),c.bugs.bustedValidity&&a.nodeName(b,"form"))){var e=b.getAttribute("novalidate");b.setAttribute("novalidate","novalidate");c.data(b,"bustedNoValidate",null==e?null:e)}},teardown:a.noop,handler:function(b){if(!("submit"!=b.type||b.testedValidity||!b.originalEvent||!a.nodeName(b.target,"form")||a.prop(b.target,"noValidate"))){q=!0;b.testedValidity=
!0;if(!a(b.target).checkValidity())return b.stopImmediatePropagation(),q=!1;q=!1}}};var n=function(b){if(!a.support.submitBubbles&&b&&"object"==typeof b&&!b._submit_attached)a.event.add(b,"submit._submit",function(a){a._submit_bubble=!0}),b._submit_attached=!0};if(!a.support.submitBubbles&&a.event.special.submit)a.event.special.submit.setup=function(){if(a.nodeName(this,"form"))return!1;a.event.add(this,"click._submit keypress._submit",function(b){b=b.target;b=a.nodeName(b,"input")||a.nodeName(b,
"button")?a.prop(b,"form"):void 0;n(b)})};a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var A=a.event.special.submit.setup;a.extend(a.event.special.submit,{setup:function(){if(a.nodeName(this,"form"))a(this).on("invalid",a.noop);else a("form",this).on("invalid",a.noop);return A.apply(this,arguments)}});a(j).on("invalid",a.noop);c.addInputType("email",{mismatch:function(){var a=u.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;return function(c){return!a.test(c)}}()});
c.addInputType("url",{mismatch:function(){var a=u.urlReg||/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;
return function(c){return!a.test(c)}}()});c.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return c.inputTypes[a]?a:this.type}}});c.defineNodeNamesProperties(["button","fieldset","output"],{checkValidity:{value:function(){return!0}},willValidate:{value:!1},setCustomValidity:{value:a.noop},validity:{writeable:!1,get:function(){return a.extend({},z)}}},"prop");var s=function(b){var e,f=a.prop(b,"validity");if(f)a.data(b,"cachedValidity",
f);else return!0;if(!f.valid){e=a.Event("invalid");var d=a(b).trigger(e);if(q&&!s.unhandledInvalids&&!e.isDefaultPrevented())c.validityAlert.showFor(d),s.unhandledInvalids=!0}a.removeData(b,"cachedValidity");return f.valid},B=/^(?:select|textarea|input)/i;c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var b=!0,e=a(a.prop(this,"elements")).filter(function(){if(!B.test(this.nodeName))return!1;var a=c.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});
s.unhandledInvalids=!1;for(var f=0,d=e.length;fc&&b>d&&(b=Math.max(c,d),f.prop("value",a.substr(0,b)));c=b},g=function(){clearTimeout(b);f.unbind(".maxlengthconstraint")};
return function(o,l){g();if(-1a)throw"INDEX_SIZE_ERR";a=parseInt(a,10);this.setAttribute("maxlength",a);t.update(this,a)}else this.setAttribute("maxlength","0"),t.update(this,0)},get:function(){var a=this.getAttribute("maxlength");return("number"==typeof a||a&&a==1*a)&&
0<=a?parseInt(a,10):-1}}});c.defineNodeNameProperty("textarea","maxLength",{prop:{set:function(b){a.prop(this,"maxlength",b)},get:function(){return a.prop(this,"maxlength")}}})}var x={submit:1,button:1,image:1},r={};[{name:"enctype",limitedTo:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},defaultProp:"application/x-www-form-urlencoded",proptype:"enum"},{name:"method",limitedTo:{get:1,post:1},defaultProp:"get",proptype:"enum"},{name:"action",proptype:"url"},{name:"target"},
{name:"novalidate",propName:"noValidate",proptype:"boolean"}].forEach(function(b){var c="form"+(b.propName||b.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),f="form"+b.name,p=b.name,k="click.webshimssubmittermutate"+p,g=function(){if("form"in this&&x[this.type]){var g=a.prop(this,"form");if(g){var d=a.attr(this,f);if(null!=d&&(!b.limitedTo||d.toLowerCase()===a.prop(this,c))){var i=a.attr(g,p);a.attr(g,p,d);setTimeout(function(){if(null!=i)a.attr(g,p,i);else try{a(g).removeAttr(p)}catch(b){g.removeAttribute(p)}},
9)}}}};switch(b.proptype){case "url":var o=d.createElement("form");r[c]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var b=a.attr(this,f);if(null==b)return"";o.setAttribute("action",b);return o.action}}};break;case "boolean":r[c]={prop:{set:function(b){b?a.attr(this,"formnovalidate","formnovalidate"):a(this).removeAttr("formnovalidate")},get:function(){return null!=a.attr(this,"formnovalidate")}}};break;case "enum":r[c]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var c=a.attr(this,
f);return!c||(c=c.toLowerCase())&&!b.limitedTo[c]?b.defaultProp:c}}};break;default:r[c]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var b=a.attr(this,f);return null!=b?b:""}}}}r[f]||(r[f]={});r[f].attr={set:function(b){r[f].attr._supset.call(this,b);a(this).unbind(k).on(k,g)},get:function(){return r[f].attr._supget.call(this)}};r[f].initAttr=!0;r[f].removeAttr={value:function(){a(this).unbind(k);r[f].removeAttr._supvalue.call(this)}}});c.defineNodeNamesProperties(["input","button"],r);
!a.support.getSetAttribute&&null==a("").attr("novalidate")?c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){this.setAttribute("novalidate",""+a)},get:function(){var a=this.getAttribute("novalidate");return null==a?void 0:a}}}):c.bugs.bustedValidity&&(c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){c.data(this,"bustedNoValidate",""+a)},get:function(){var a=c.data(this,"bustedNoValidate");return null==a?void 0:a}},removeAttr:{value:function(){c.data(this,
"bustedNoValidate",null)}}}),a.each(["rangeUnderflow","rangeOverflow","stepMismatch"],function(a,c){w[c]=function(a){return(a[0].validity||{})[c]||!1}}));c.defineNodeNameProperty("form","noValidate",{prop:{set:function(b){b?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});a.browser.webkit&&Modernizr.inputtypes.date&&function(){var b={updateInput:1,input:1},e={date:1,time:1,"datetime-local":1},f={focusout:1,blur:1},p=
{updateInput:1,change:1},k=function(a){var c,e=!0,d=a.prop("value"),i=d,m=function(c){if(a){var m=a.prop("value");m!==d&&(d=m,(!c||!b[c.type])&&a.trigger("input"));c&&p[c.type]&&(i=m);!e&&m!==i&&a.trigger("change")}},k,h=function(b){clearInterval(c);setTimeout(function(){b&&f[b.type]&&(e=!1);a&&(a.unbind("focusout blur",h).unbind("input change updateInput",m),m());a=null},1)};clearInterval(c);c=setInterval(m,160);clearTimeout(k);k=setTimeout(m,9);a.off({"focusout blur":h,"input change updateInput":m}).on({"focusout blur":h,
"input updateInput change":m})};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var b=function(b){var c=1,g,e;if("date"==b.type&&(q||!a(b).is(":focus")))if((e=b.value)&&10>e.length&&(e=e.split("-"))&&3==e.length){for(;3>c;c++)if(1==e[c].length)e[c]="0"+e[c];else if(2!=e[c].length){g=!0;break}if(!g)return e=e.join("-"),a.prop(b,"value",e),e}},e,f,k,i;e=c.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){b(this);return e.prop._supvalue.apply(this,arguments)}}});
f=c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){a("input",this).each(function(){b(this)});return f.prop._supvalue.apply(this,arguments)}}});k=c.defineNodeNameProperty("input","value",{prop:{set:function(){return k.prop._supset.apply(this,arguments)},get:function(){return b(this)||k.prop._supget.apply(this,arguments)}}});i=c.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){b(this);return i.prop._supget.apply(this,arguments)}}});a(d).on("change",
function(a){isChangeSubmit=!0;b(a.target);isChangeSubmit=!1})})();a(d).on("focusin",function(b){b.target&&e[b.target.type]&&!b.target.readOnly&&!b.target.disabled&&k(a(b.target))})}();c.addReady(function(b,c){var f;a("form",b).add(c.filter("form")).bind("invalid",a.noop);try{if(b==d&&!("form"in(d.activeElement||{})))(f=a("input[autofocus], select[autofocus], textarea[autofocus]",b).eq(0).getShadowFocusElement()[0])&&f.offsetHeight&&f.offsetWidth&&f.focus()}catch(p){}});(!Modernizr.formattribute||
!Modernizr.fieldsetdisabled)&&function(){(function(b,c){a.prop=function(e,f,p){var i;if(e&&1==e.nodeType&&p===c&&a.nodeName(e,"form")&&e.id){i=d.getElementsByName(f);if(!i||!i.length)i=d.getElementById(f);if(i&&(i=a(i).filter(function(){return a.prop(this,"form")==e}).get(),i.length))return 1==i.length?i[0]:i}return b.apply(this,arguments)}})(a.prop,void 0);var b=function(b){var c=a.data(b,"webshimsAddedElements");c&&(c.remove(),a.removeData(b,"webshimsAddedElements"))},e=/\r?\n/g,f=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
p=/^(?:select|textarea)/i;Modernizr.formattribute||(c.defineNodeNamesProperty(["input","textarea","select","button","fieldset"],"form",{prop:{get:function(){var b=c.contentAttr(this,"form");b&&(b=d.getElementById(b))&&!a.nodeName(b,"form")&&(b=null);return b||this.form},writeable:!1}}),c.defineNodeNamesProperty(["form"],"elements",{prop:{get:function(){var b=this.id,c=a.makeArray(this.elements);b&&(c=a(c).add('input[form="'+b+'"], select[form="'+b+'"], textarea[form="'+b+'"], button[form="'+b+'"], fieldset[form="'+
b+'"]').not(".webshims-visual-hide > *").get());return c},writeable:!1}}),a(function(){var c=function(a){a.stopPropagation()};a(d).on("submit",function(c){if(!c.isDefaultPrevented()){var e=c.target;if(c=e.id)b(e),c=a('input[form="'+c+'"], select[form="'+c+'"], textarea[form="'+c+'"]').filter(function(){return!this.disabled&&this.name&&this.form!=e}).clone(),c.length&&(a.data(e,"webshimsAddedElements",a('').append(c).appendTo(e)),setTimeout(function(){b(e)},9)),
c=null}});a(d).on("click",function(b){if(!b.isDefaultPrevented()&&a(b.target).is('input[type="submit"][form], button[form], input[type="button"][form], input[type="image"][form], input[type="reset"][form]')){var e=a.prop(b.target,"form"),d=b.target.form,f;e&&e!=d&&(f=a(b.target).clone().removeAttr("form").addClass("webshims-visual-hide").on("click",c).appendTo(e),d&&b.preventDefault(),n(e),f.trigger("click"),setTimeout(function(){f.remove();f=null},9))}})}));Modernizr.fieldsetdisabled||c.defineNodeNamesProperty(["fieldset"],
"elements",{prop:{get:function(){return a("input, select, textarea, button, fieldset",this).get()||[]},writeable:!1}});a.fn.serializeArray=function(){return this.map(function(){var b=a.prop(this,"elements");return b?a.makeArray(b):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||p.test(this.nodeName)||f.test(this.type))}).map(function(b,c){var f=a(this).val();return null==f?null:a.isArray(f)?a.map(f,function(a){return{name:c.name,value:a.replace(e,"\r\n")}}):{name:c.name,
value:f.replace(e,"\r\n")}}).get()}}();try{d.querySelector(":checked")}catch(D){(function(){var b={radio:1,checkbox:1},e=function(){var b=this.options||[],c,e,f;for(c=0,e=b.length;c")[0]);var b=a.browser.webkit&&Modernizr.textareaPlaceholder&&
535>c.browserVersion;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||b){var e="over"==c.cfg.forms.placeholderType,d=c.cfg.forms.responsivePlaceholder,h=["textarea"];Modernizr.input.placeholder||h.push("input");var k=function(a){try{if(a.setSelectionRange)return a.setSelectionRange(0,0),!0;if(a.createTextRange){var b=a.createTextRange();b.collapse(!0);b.moveEnd("character",0);b.moveStart("character",0);b.select();return!0}}catch(c){}},g=function(b,c,d,f){!1===d&&(d=a.prop(b,"value"));
if(!e&&"password"!=b.type){if(!d&&f&&k(b)){var g=setTimeout(function(){k(b)},9);a(b).off(".placeholderremove").on({"keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove":function(e){if(!e||!(17==e.keyCode||16==e.keyCode))b.value=a.prop(b,"value"),c.box.removeClass("placeholder-visible"),clearTimeout(g),a(b).unbind(".placeholderremove")},"mousedown.placeholderremove drag.placeholderremove select.placeholderremove":function(){k(b);clearTimeout(g);g=setTimeout(function(){k(b)},
9)},"blur.placeholderremove":function(){clearTimeout(g);a(b).unbind(".placeholderremove")}});return}b.value=d}else if(!d&&f){a(b).off(".placeholderremove").on({"keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove":function(e){if(!e||!(17==e.keyCode||16==e.keyCode))c.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")},"blur.placeholderremove":function(){a(b).unbind(".placeholderremove")}});return}c.box.removeClass("placeholder-visible")},
o=function(b,c,d,f,h){if(!f&&(f=a.data(b,"placeHolder"),!f))return;a(b).unbind(".placeholderremove");if("focus"==h||!h&&a(b).is(":focus"))("password"==b.type||e||a(b).hasClass("placeholder-visible"))&&g(b,f,"",!0);else if(!1===c&&(c=a.prop(b,"value")),c)g(b,f,c);else if(!1===d&&(d=a.attr(b,"placeholder")||""),d&&!c){c=f;!1===d&&(d=a.prop(b,"placeholder"));if(!e&&"password"!=b.type)b.value=d;c.box.addClass("placeholder-visible")}else g(b,f,c)},l=function(b){var b=a(b),c=b.prop("id"),e=!(!b.prop("title")&&
!b.attr("aria-labelledby"));!e&&c&&(e=!!a('label[for="'+c+'"]',b[0].form)[0]);e||(c||(c=a.webshims.getID(b)),e=!!a("label #"+c)[0]);return a(e?'':'')},n=function(){var b={text:1,search:1,url:1,email:1,password:1,tel:1};return{create:function(b){var c=a.data(b,"placeHolder"),h;if(c)return c;c=a.data(b,"placeHolder",{});a(b).on("focus.placeholder blur.placeholder",function(a){o(this,!1,!1,c,a.type);c.box["focus"==
a.type?"addClass":"removeClass"]("placeholder-focused")});if(h=a.prop(b,"form"))a(h).on("reset.placeholder",function(a){setTimeout(function(){o(b,!1,!1,c,a.type)},0)});if("password"==b.type||e)c.text=l(b),c.box=d||a(b).is(".responsive-width")||-1!=(b.currentStyle||{width:""}).width.indexOf("%")?c.text:a(b).wrap('').parent(),c.text.insertAfter(b).on("mousedown.placeholder",function(){o(this,
!1,!1,c,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1}),a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(e,d){var f=a.css(b,d);c.text.css(d)!=f&&c.text.css(d,f)}),a.each(["Left","Top"],function(e,d){var f=(parseInt(a.css(b,"padding"+d),10)||0)+Math.max(parseInt(a.css(b,"margin"+d),10)||0,0)+(parseInt(a.css(b,"border"+d+"Width"),10)||0);c.text.css("padding"+d,f)}),a(b).on("updateshadowdom",function(){var e,d;((d=b.offsetWidth)||(e=b.offsetHeight))&&c.text.css({width:d,
height:e}).css(a(b).position())}).triggerHandler("updateshadowdom");else{var k=function(e){a(b).hasClass("placeholder-visible")&&(g(b,c,""),e&&"submit"==e.type&&setTimeout(function(){e.isDefaultPrevented()&&o(b,!1,!1,c)},9))};a(j).on("beforeunload",k);c.box=a(b);h&&a(h).submit(k)}return c},update:function(e,d){var f=(a.attr(e,"type")||a.prop(e,"type")||"").toLowerCase();!b[f]&&!a.nodeName(e,"textarea")?(c.error('placeholder not allowed on input[type="'+f+'"]'),"date"==f&&c.error('but you can use data-placeholder for input[type="date"]')):
(f=n.create(e),f.text&&f.text.text(d),o(e,!1,d,f))}}}();a.webshims.publicMethods={pHolder:n};h.forEach(function(a){c.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){b?(c.data(this,"textareaPlaceholder",a),this.placeholder=""):c.contentAttr(this,"placeholder",a);n.update(this,a)},get:function(){return(b?c.data(this,"textareaPlaceholder"):"")||c.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});h.forEach(function(e){var d={},f;["attr","prop"].forEach(function(e){d[e]={set:function(d){var g;
b&&(g=c.data(this,"textareaPlaceholder"));g||(g=c.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var h=f[e]._supset.call(this,d);g&&"value"in this&&o(this,d,g);return h},get:function(){return a(this).hasClass("placeholder-visible")?"":f[e]._supget.call(this)}}});f=c.defineNodeNameProperty(e,"value",d)})}})();(function(){if(!("value"in d.createElement("output"))){c.defineNodeNameProperty("output","value",{prop:{set:function(c){var d=a.data(this,"outputShim");d||(d=b(this));d(c)},
get:function(){return c.contentAttr(this,"value")||a(this).text()||""}}});c.onNodeNamesPropertyModify("input","value",function(b,c,d){"removeAttr"!=d&&(c=a.data(this,"outputShim"))&&c(b)});var b=function(b){if(!b.getAttribute("aria-live")){var b=a(b),f=(b.text()||"").trim(),h=b.attr("id"),k=b.attr("for"),g=a('').insertAfter(b),j=g[0].form||d,l=function(a){g[0].value=a;
a=g[0].value;b.text(a);c.contentAttr(b[0],"value",a)};b[0].defaultValue=f;c.contentAttr(b[0],"value",f);b.attr({"aria-live":"polite"});h&&(g.attr("id",h),b.attr("aria-labelledby",c.getID(a('label[for="'+h+'"]',j))));k&&(h=c.getID(b),k.split(" ").forEach(function(a){(a=d.getElementById(a))&&a.setAttribute("aria-controls",h)}));b.data("outputShim",l);g.data("outputShim",l);return l}};c.addReady(function(c,d){a("output",c).add(d.filter("output")).each(function(){b(this)})});(function(){var b={updateInput:1,
input:1},f={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},h=function(a){var d,f=a.prop("value"),h=function(d){if(a){var g=a.prop("value");g!==f&&(f=g,(!d||!b[d.type])&&c.triggerInlineForm&&c.triggerInlineForm(a[0],"input"))}},j,i=function(){clearTimeout(j);j=setTimeout(h,9)},m=function(){a.unbind("focusout",m).unbind("keyup keypress keydown paste cut",i).unbind("input change updateInput",h);clearInterval(d);setTimeout(function(){h();a=null},1)};clearInterval(d);d=setInterval(h,
99);i();a.on({"keyup keypress keydown paste cut":i,focusout:m,"input updateInput change":h})};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(d).on("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||"").toLowerCase()&&!f[b.target.type]&&h(a(b.target))})})()}})()});