jQuery.webshims.register("form-datalist",function(c,d,j,e,q){d.propTypes.element=function(e){d.createPropDefault(e,"attr");if(!e.prop)e.prop={get:function(){var d=e.attr.get.call(this);d&&(d=c("#"+d)[0])&&e.propNodeName&&!c.nodeName(d,e.propNodeName)&&(d=null);return d||null},writeable:!1}};(function(){if(!Modernizr.input.list){var g=0,k={submit:1,button:1,reset:1,hidden:1,range:1,date:1},n=c.browser.msie&&7>parseInt(c.browser.version,10),o={},l=function(c){if(!c)return[];if(o[c])return o[c];var a; try{a=JSON.parse(localStorage.getItem("storedDatalistOptions"+c))}catch(f){}o[c]=a||[];return a||[]},s={_create:function(b){if(!k[c.prop(b.input,"type")]){var a=b.datalist,f=c.data(b.input,"datalistWidget");if(a&&f&&f.datalist!==a)f.datalist=a,f.id=b.id,c(f.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",c.proxy(f,"_resetListCached")),f._resetListCached();else if(a){if(!(f&&f.datalist===a)){g++;var h=this;this.hideList=c.proxy(h,"hideList");this.timedHide=function(){clearTimeout(h.hideTimer); h.hideTimer=setTimeout(h.hideList,9)};this.datalist=a;this.id=b.id;this.hasViewableData=!0;this._autocomplete=c.attr(b.input,"autocomplete");c.data(b.input,"datalistWidget",this);this.shadowList=c('
').appendTo("body");this.index=-1;this.input=b.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(a){var b=c("li:not(.hidden-item)",h.shadowList),f="mousedown"==a.type||"click"==a.type; h.markItem(b.index(a.currentTarget),f,b);"click"==a.type&&h.hideList();return"mousedown"!=a.type}).bind("focusout",this.timedHide);b.input.setAttribute("autocomplete","off");c(b.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!h.triggeredByDatalist)h.changedValue=!1,h.showHideOptions()}).bind("keydown.datalistWidget",function(a){var b=a.keyCode;if(40==b&&!h.showList())return h.markItem(h.index+1,!0),!1;if(h.isListVisible){if(38==b)return h.markItem(h.index-1,!0),!1; if(!a.shiftKey&&(33==b||36==b))return h.markItem(0,!0),!1;if(!a.shiftKey&&(34==b||35==b))return a=c("li:not(.hidden-item)",h.shadowList),h.markItem(a.length-1,!0,a),!1;if(13==b||27==b)return 13==b&&h.changeValue(c("li.active-item:not(.hidden-item)",h.shadowList)),h.hideList(),!1}}).bind("focus.datalistWidget",function(){c(this).hasClass("list-focus")&&h.showList()}).bind("mousedown.datalistWidget",function(){(this==e.activeElement||c(this).is(":focus"))&&h.showList()}).bind("blur.datalistWidget", this.timedHide);c(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",c.proxy(this,"_resetListCached"));this._resetListCached();b.input.form&&b.input.id&&c(b.input.form).bind("submit.datalistWidget"+b.input.id,function(){var a=c.prop(b.input,"value"),f=(b.input.name||b.input.id)+c.prop(b.input,"type");if(!h.storedOptions)h.storedOptions=l(f);if(a&&-1==h.storedOptions.indexOf(a)&&(h.storedOptions.push(a),a=h.storedOptions,f)){a=a||[];try{localStorage.setItem("storedDatalistOptions"+ f,JSON.stringify(a))}catch(d){}}});c(j).bind("unload",function(){h.destroy()})}}else f&&f.destroy()}},destroy:function(){var b=c.attr(this.input,"autocomplete");c(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();c(e).unbind(".datalist"+this.id);this.input.form&&this.input.id&&c(this.input.form).unbind("submit.datalistWidget"+this.input.id);this.input.removeAttribute("aria-haspopup");b===q?this.input.removeAttribute("autocomplete"):c(this.input).attr("autocomplete", b)},_resetListCached:function(c){var a=this,f;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(j.QUnit||(f=c&&e.activeElement==a.input)?a.updateListOptions(f):d.ready("WINDOWLOAD",function(){a.updateTimer=setTimeout(function(){a.updateListOptions();a=null;g=1},200+100*g)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:c.curCSS(this.input,"fontSize"),fontFamily:c.curCSS(this.input, "fontFamily")});var a=[],f=[],h=[],d,e,g,t;for(e=c.prop(this.datalist,"options"),g=0,t=e.length;g'+e.text+' '+e.value+"";this.arrayOptions=h;this.shadowList.html('");c.fn.bgIframe&&n&&this.shadowList.bgIframe();(b||this.isListVisible)&& this.showHideOptions()},showHideOptions:function(b){var a=c.prop(this.input,"value").toLowerCase();if(!(a===this.lastUpdatedValue||this.lastUnfoundValue&&0===a.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=a;var f=!1,d=c("li",this.shadowList);a?this.arrayOptions.forEach(function(b,e){if(!("lowerText"in b))b.lowerText=b.text!=b.value?b.text.toLowerCase()+b.value.toLowerCase():b.text.toLowerCase();-1!==b.lowerText.indexOf(a)?(c(d[e]).removeClass("hidden-item"),f=!0):c(d[e]).addClass("hidden-item")}): d.length&&(d.removeClass("hidden-item"),f=!0);this.hasViewableData=f;!b&&f&&this.showList();if(!f)this.lastUnfoundValue=a,this.hideList()}},setPos:function(){var b=d.getRelOffset(this.shadowList,this.input);b.top+=c(this.input).outerHeight();b.width=c(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css(b);return b},showList:function(){if(this.isListVisible)return!1;this.needsUpdate&&this.updateListOptions(); this.showHideOptions(!0);if(!this.hasViewableData)return!1;this.isListVisible=!0;var b=this,a;b.setPos();n&&(b.shadowList.css("height","auto"),250 ul",this.shadowList),f=b.position();f.top-=(parseInt(a.css("paddingTop"),10)||0)+(parseInt(a.css("marginTop"),10)||0)+(parseInt(a.css("borderTopWidth"),10)|| 0);0>f.top?this.shadowList.scrollTop(this.shadowList.scrollTop()+f.top-2):(f.top+=b.outerHeight(),b=this.shadowList.height(),f.top>b&&this.shadowList.scrollTop(this.shadowList.scrollTop()+(f.top-b)+2))},changeValue:function(b){if(b[0]){var b=c("span.option-value",b).text(),a=c.prop(this.input,"value");if(b!=a)c(this.input).prop("value",b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,a,f){f=f||c("li:not(.hidden-item)",this.shadowList);if(f.length)0>b?b=f.length-1:b>=f.length&& (b=0),f.removeClass("active-item"),this.shadowList.addClass("list-item-active"),f=f.filter(":eq("+b+")").addClass("active-item"),a&&(this.changeValue(f),this.scrollIntoView(f)),this.index=b}};(function(){d.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=c("select",this);b[0]?b=b[0].options:(b=c("option",this).get(),b.length&&d.warn("you should wrap you option-elements for a datalist in a select element to support IE and other old browsers."));return b}}});d.defineNodeNameProperties("input", {selectedOption:{prop:{writeable:!1,get:function(){var b=c.prop(this,"list"),a=null,f;if(!b)return a;f=c.attr(this,"value");if(!f)return a;b=c.prop(b,"options");if(!b.length)return a;c.each(b,function(b,d){if(f==c.prop(d,"value"))return a=d,!1});return a}}},autocomplete:{attr:{get:function(){var b=c.data(this,"datalistWidget");return b?b._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(b){var a=c.data(this,"datalistWidget");a?(a._autocomplete=b, "off"==b&&a.hideList()):"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",b)}}},list:{attr:{get:function(){var c=d.contentAttr(this,"list");return null==c?q:c},set:function(b){d.contentAttr(this,"list",b);d.objectCreate(s,q,{input:this,id:b,datalist:c.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}});if(c.event.customEvent)c.event.customEvent.updateDatalist=!0,c.event.customEvent.updateInput=!0;d.addReady(function(c,a){a.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()}); jQuery.webshims.register("form-extend",function(c,d,j,e,q,g){var k=j.Modernizr,j=k.inputtypes;if(k.formvalidation){var n=d.inputTypes,o={};d.addInputType=function(a,c){n[a]=c};d.addValidityRule=function(a,c){o[a]=c};d.addValidityRule("typeMismatch",function(a,c,b,f){if(""===c)return!1;f=f.typeMismatch;if(!("type"in b))b.type=(a[0].getAttribute("type")||"").toLowerCase();n[b.type]&&n[b.type].mismatch&&(f=n[b.type].mismatch(c,a));return f});var l=g.overrideMessages,s=!k.requiredSelect||!j.number||!j.time|| !j.range||l,b="customError,typeMismatch,rangeUnderflow,rangeOverflow,stepMismatch,tooLong,patternMismatch,valueMissing,valid".split(","),g=l?["value","checked"]:["value"],a=l?["textarea"]:[],f=function(a,b){if(a){var f=(a.getAttribute&&a.getAttribute("type")||a.type||"").toLowerCase();if(l||!(k.requiredSelect||"select-one"!=f)||n[f])l&&!b&&"radio"==f&&a.name?c(e.getElementsByName(a.name)).each(function(){c.prop(this,"validity")}):c.prop(a,"validity")}},h={};["input","textarea","select"].forEach(function(a){var b= d.defineNodeNameProperty(a,"setCustomValidity",{prop:{value:function(h){var h=h+"",m="input"==a?c(this).getNativeElement()[0]:this;b.prop._supvalue.call(m,h);d.bugs.validationMessage&&d.data(m,"customvalidationMessage",h);s&&(d.data(m,"hasCustomError",!!h),f(m))}}});h[a]=b.prop._supvalue});if(s||l)g.push("min"),g.push("max"),g.push("step"),a.push("input");if(!k.requiredSelect||l)g.push("required"),a.push("select");if(s){var u;a.forEach(function(a){var f=d.defineNodeNameProperty(a,"validity",{prop:{get:function(){if(!u){var r= "input"==a?c(this).getNativeElement()[0]:this,m=f.prop._supget.call(r);if(!m)return m;var i={};b.forEach(function(a){i[a]=m[a]});if(!c.prop(r,"willValidate"))return i;u=!0;var e=c(r),g={type:(r.getAttribute&&r.getAttribute("type")||"").toLowerCase(),nodeName:(r.nodeName||"").toLowerCase()},A=e.val(),k=!!d.data(r,"hasCustomError"),p;u=!1;i.customError=k;if(i.valid&&i.customError)i.valid=!1;else if(!i.valid){var z=!0;c.each(i,function(a,c){if(c)return z=!1});if(z)i.valid=!0}c.each(o,function(c,b){i[c]= b(e,A,g,i);if(i[c]&&(i.valid||!p))h[a].call(r,d.createValidationMessage(r,c)),i.valid=!1,p=!0});i.valid?(h[a].call(r,""),d.data(r,"hasCustomError",!1)):l&&!p&&!k&&c.each(i,function(c,b){if("valid"!==c&&b)return h[a].call(r,d.createValidationMessage(r,c)),!1});return i}},writeable:!1}})});g.forEach(function(c){d.onNodeNamesPropertyModify(a,c,function(){f(this)})});if(e.addEventListener){var v;e.addEventListener("change",function(a){clearTimeout(v);f(a.target)},!0);e.addEventListener("input",function(a){clearTimeout(v); v=setTimeout(function(){f(a.target)},290)},!0)}var w=a.join(",");d.addReady(function(a,b){c(w,a).add(b.filter(w)).each(function(){c.prop(this,"validity")})});l&&d.ready("DOM form-message",function(){d.activeLang({register:"form-core",callback:function(){c("input, select, textarea").getNativeElement().each(function(){if(!d.data(this,"hasCustomError")){var a=this,b=c.prop(a,"validity")||{valid:!0},f;b.valid||(f=(a.nodeName||"").toLowerCase(),c.each(b,function(c,b){if("valid"!==c&&b)return h[f].call(a, d.createValidationMessage(a,c)),!1}))}})}})})}d.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return d.inputTypes[a]?a:this.type}}});k.input.list&&!(c("").prop("options")||[]).length&&d.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var a=this.options||[];if(!a.length){var b=c("select",this);if(b[0]&&b[0].options&&b[0].options.length)a=b[0].options}return a}}})}}); jQuery.webshims.register("form-number-date-api",function(c,d){if(!d.getStep)d.getStep=function(a,f){var d=c.attr(a,"step");if("any"===d)return d;f=f||k(a);if(!e[f]||!e[f].step)return d;d=b.number.asNumber(d);return(!isNaN(d)&&0').prop("type")===a},k=function(a){return(a.getAttribute("type")||"").toLowerCase()},n=d.addMinMaxNumberToCache,o=function(a,c){for(var a=""+a,c=c-a.length,b=0;b=g||1.0E-7>=Math.abs(g-b.step))}return g});[{name:"rangeOverflow",attr:"max",factor:1},{name:"rangeUnderflow",attr:"min",factor:-1}].forEach(function(a){d.addValidityRule(a.name,function(c,b,d,g){g=(g||{})[a.name]||!1;if(""===b)return g;if(!("type"in d))d.type=k(c[0]);if(e[d.type]&&e[d.type].asNumber){if(!("valueAsNumber"in d))d.valueAsNumber=e[d.type].asNumber(b);if(isNaN(d.valueAsNumber))return!1;n(a.attr,c,d);if(isNaN(d[a.attr+"AsNumber"]))return g;g=d[a.attr+"AsNumber"]*a.factora.length||3a[0]||59a[1]||a[2]&&(59a[2])||e&&isNaN(e))return!0;e&&(100>e?e*=100:10>e&&(e*=10));return!0===b?[a,e]:!1},step:60,stepBase:0,stepScaleFactor:1E3,asDate:function(a){a=new Date(this.asNumber(a));return isNaN(a)?null:a},asNumber:function(a){var c=j,a=this.mismatch(a,!0);!0!==a&&(c=Date.UTC("1970",0,1,a[0][0],a[0][1],a[0][2]||0),a[1]&&(c+=a[1]));return c},dateToString:function(a){if(a&&a.getUTCHours){var c=o(a.getUTCHours(),2)+":"+o(a.getUTCMinutes(),2),b=a.getSeconds(); "0"!=b&&(c+=":"+o(b,2));b=a.getUTCMilliseconds();"0"!=b&&(c+="."+o(b,3));return c}return!1}},"datetime-local":{mismatch:function(a,c){if(!a||!a.split||2!==(a+"special").split(/\u0054/).length)return!0;a=a.split(/\u0054/);return e.date.mismatch(a[0])||e.time.mismatch(a[1],c)},noAsDate:!0,asDate:function(a){a=new Date(this.asNumber(a));return isNaN(a)?null:a},asNumber:function(a){var c=j,b=this.mismatch(a,!0);!0!==b&&(a=a.split(/\u0054/)[0].split(/\u002D/),c=Date.UTC(a[0],a[1]-1,a[2],b[0][0],b[0][1], b[0][2]||0),b[1]&&(c+=b[1]));return c},dateToString:function(a,c){return e.date.dateToString(a)+"T"+e.time.dateToString(a,c)}}};(d.bugs.valueAsNumberSet||!g("number"))&&d.addInputType("number",b.number);(d.bugs.valueAsNumberSet||!g("range"))&&d.addInputType("range",c.extend({},b.number,b.range));(d.bugs.valueAsNumberSet||!g("date"))&&d.addInputType("date",b.date);(d.bugs.valueAsNumberSet||!g("time"))&&d.addInputType("time",c.extend({},b.date,b.time));(d.bugs.valueAsNumberSet||!g("datetime-local"))&& d.addInputType("datetime-local",c.extend({},b.date,b.time,b["datetime-local"]))}); jQuery.webshims.register("form-number-date-ui",function(c,d,j,e,q,g){var k=d.triggerInlineForm,n=Modernizr.inputtypes,o=function(){var a={"padding-box":"innerWidth","border-box":"outerWidth","content-box":"width"},c=Modernizr.prefixed&&Modernizr.prefixed("boxSizing");return function(b,d){var e,f,g;f="width";c&&(f=a[b.css(c)]||f);e=b[f]();f="width"==f;if(e){var p=parseInt(d.css("marginLeft"),10)||0,h=d.outerWidth();(g=parseInt(b.css("marginRight"),10)||0)&&b.css("marginRight",0);p<=-1*h?(d.css("marginRight", Math.floor(Math.abs(h+p)+g)),b.css("paddingRight",(parseInt(b.css("paddingRight"),10)||0)+Math.abs(p)),f&&b.css("width",Math.floor(e+p))):(d.css("marginRight",g),b.css("width",Math.floor(e-p-h)))}}}(),l={dateFormat:"yy-mm-dd"},s=c([]),b,a=function(b,m){c("input",b).add(m.filter("input")).each(function(){var b=c.prop(this,"type");if(a[b]&&!d.data(this,"shadowData"))a[b](c(this))})},f=function(a,b){if(g.lazyDate){var d=c.data(a[0],"setDateLazyTimer");d&&clearTimeout(d);c.data(a[0],"setDateLazyTimer", setTimeout(function(){a.datepicker("setDate",b);c.removeData(a[0],"setDateLazyTimer");a=null},0))}else a.datepicker("setDate",b)};if(g.lazyDate===q)try{g.lazyDate=c.browser.msie&&9>d.browserVersion||500>c(j).width()&&500>c(j).height()}catch(h){}var u={tabindex:1,tabIndex:1,title:1,"aria-required":1,"aria-invalid":1};if(!g.copyAttrs)g.copyAttrs={};d.extendUNDEFProp(g.copyAttrs,u);a.common=function(a,m,i){Modernizr.formvalidation&&a.bind("firstinvalid",function(c){(d.fromSubmit||!b)&&a.unbind("invalid.replacedwidgetbubble").bind("invalid.replacedwidgetbubble", function(b){!c.isInvalidUIPrevented()&&!b.isDefaultPrevented()&&(d.validityAlert.showFor(c.target),c.preventDefault(),b.preventDefault());a.unbind("invalid.replacedwidgetbubble")})});var e,f,h=c("input, span.ui-slider-handle",m),k=a[0].attributes;for(e in g.copyAttrs)if((f=k[e])&&f.specified)u[e]&&h[0]?h.attr(e,f.nodeValue):m[0].setAttribute(e,f.nodeValue);e=a.attr("id");e={css:{marginRight:a.css("marginRight"),marginLeft:a.css("marginLeft")},outerWidth:a.outerWidth(),label:e?c('label[for="'+e+'"]', a[0].form):s};f=d.getID(e.label);m.addClass(a[0].className);d.addShadowDom(a,m,{data:i||{},shadowFocusElement:c("input.input-datetime-local-date, span.ui-slider-handle",m)[0],shadowChilds:h});a.after(m).hide();a[0].form&&c(a[0].form).bind("reset",function(c){c.originalEvent&&!c.isDefaultPrevented()&&setTimeout(function(){a.prop("value",a.prop("value"))},0)});1==m.length&&!c("*",m)[0]&&(m.attr("aria-labeledby",f),e.label.bind("click",function(){m.focus();return!1}));return e};Modernizr.formvalidation&& ["input","form"].forEach(function(a){var c=d.defineNodeNameProperty(a,"checkValidity",{prop:{value:function(){b=!0;var a=c.prop._supvalue.apply(this,arguments);b=!1;return a}}})});if(!n["datetime-local"]||g.replaceUI){var v=[0.595,0.395],w=[0.565,0.425],t=!c.browser.msie||6'),i=this.common(b,d,a["datetime-local"].attrs),e=c("input.input-datetime-local-date",d),f=x(b,e,function(i){var f=e.prop("value")||"",h="";if(g.lazyDate){var y=c.data(e[0],"setDateLazyTimer");y&&(clearTimeout(y),c.removeData(e[0],"setDateLazyTimer"))}if(f){h=c("input.input-datetime-local-time", d).prop("value")||"00:00";try{f=(f=c.datepicker.parseDate(e.datepicker("option","dateFormat"),f))?c.datepicker.formatDate("yy-mm-dd",f):e.prop("value")}catch(j){f=e.prop("value")}}a["datetime-local"].blockAttr=!0;b.prop("value",!f&&!h?"":f+"T"+h);a["datetime-local"].blockAttr=!1;i.stopImmediatePropagation();k(b[0],"input");k(b[0],"change")},d);c("input.input-datetime-local-time",d).bind("change",function(d){var i=c.prop(this,"value"),f=["",""];if(i){f=b.prop("value").split("T");if(2>f.length||!f[0])f[0]= c.datepicker.formatDate("yy-mm-dd",new Date);if(f[1]=i)try{e.prop("value",c.datepicker.formatDate(e.datepicker("option","dateFormat"),c.datepicker.parseDate("yy-mm-dd",f[0])))}catch(m){}}f=!f[0]&&!f[1]?"":f.join("T");a["datetime-local"].blockAttr=!0;b.prop("value",f);a["datetime-local"].blockAttr=!1;d.stopImmediatePropagation();k(b[0],"input");k(b[0],"change")});d.attr("aria-labeledby",i.label.attr("id"));i.label.bind("click",function(){e.focus();return!1});if(i.css&&(d.css(i.css),i.outerWidth)){d.outerWidth(i.outerWidth); var i=d.width(),h=f.trigger[0]?v:w;e.outerWidth(Math.floor(i*h[0]-t),!0);c("input.input-datetime-local-time",d).outerWidth(Math.floor(i*h[1]-t),!0);f.trigger[0]&&o(e,f.trigger)}}};a["datetime-local"].attrs={disabled:function(a,b,d){c("input.input-datetime-local-date",b).prop("disabled",!!d);c("input.input-datetime-local-time",b).prop("disabled",!!d)},step:function(a,b,d){c("input.input-datetime-local-time",b).attr("step",d)},min:function(a,b,d){if(d){d=d.split?d.split("T"):[];try{d=c.datepicker.parseDate("yy-mm-dd", d[0])}catch(f){d=!1}}d||(d=null);c("input.input-datetime-local-date",b).datepicker("option","minDate",d)},max:function(a,b,d){if(d){d=d.split?d.split("T"):[];try{d=c.datepicker.parseDate("yy-mm-dd",d[0])}catch(f){d=!1}}d||(d=null);c("input.input-datetime-local-date",b).datepicker("option","maxDate",d)},value:function(b,d,e){var g;if(e){e=e.split?e.split("T"):[];try{g=c.datepicker.parseDate("yy-mm-dd",e[0])}catch(h){g=!1}}g?(a["datetime-local"].blockAttr||f(c("input.input-datetime-local-date",d),g), c("input.input-datetime-local-time",d).prop("value",e[1]||"00:00")):(c("input.input-datetime-local-date",d).prop("value",e[0]||""),c("input.input-datetime-local-time",d).prop("value",e[1]||""))}};a.date=function(b){if(c.fn.datepicker){var d=c(''),f=this.common(b,d,a.date.attrs),e=x(b,d,function(f){a.date.blockAttr=!0;var e;if(g.lazyDate){var i=c.data(d[0],"setDateLazyTimer");i&&(clearTimeout(i),c.removeData(d[0],"setDateLazyTimer"))}try{e=(e=c.datepicker.parseDate(d.datepicker("option", "dateFormat"),d.prop("value")))?c.datepicker.formatDate("yy-mm-dd",e):d.prop("value")}catch(h){e=d.prop("value")}b.prop("value",e);a.date.blockAttr=!1;f.stopImmediatePropagation();k(b[0],"input");k(b[0],"change")});f.css&&(d.css(f.css),f.outerWidth&&d.outerWidth(f.outerWidth),e.trigger[0]&&o(d,e.trigger))}};a.date.attrs={disabled:function(a,b,d){c.prop(b,"disabled",!!d)},min:function(a,b,d){try{d=c.datepicker.parseDate("yy-mm-dd",d)}catch(e){d=!1}d&&c(b).datepicker("option","minDate",d)},max:function(a, b,d){try{d=c.datepicker.parseDate("yy-mm-dd",d)}catch(e){d=!1}d&&c(b).datepicker("option","maxDate",d)},value:function(b,d,e){if(!a.date.blockAttr){try{var g=c.datepicker.parseDate("yy-mm-dd",e)}catch(h){g=!1}g?f(c(d),g):c.prop(d,"value",e)}}}}if(!n.range||g.replaceUI)a.range=function(b){if(c.fn.slider){var d=c(''),e=this.common(b,d,a.range.attrs);c("span",d).attr("aria-labeledby",e.label.attr("id"));e.label.bind("click", function(){c("span",d).focus();return!1});e.css&&(d.css(e.css),e.outerWidth&&d.outerWidth(e.outerWidth));d.slider(c.extend({},g.slider,b.data("slider"),{slide:function(c,d){if(c.originalEvent)a.range.blockAttr=!0,b.prop("value",d.value),a.range.blockAttr=!1,k(b[0],"input"),k(b[0],"change")}}));["disabled","min","max","step","value"].forEach(function(a){var d=b.attr(a),e;"value"==a&&!d&&(e=b.getShadowElement())&&(d=(c(e).slider("option","max")-c(e).slider("option","min"))/2);null!=d&&b.attr(a,d)})}}, a.range.attrs={disabled:function(a,b,d){d=!!d;c(b).slider("option","disabled",d);c("span",b).attr({"aria-disabled":d+"",tabindex:d?"-1":"0"})},min:function(a,b,d){d=d?1*d||0:0;c(b).slider("option","min",d);c("span",b).attr({"aria-valuemin":d})},max:function(a,b,d){d=d||0===d?1*d||100:100;c(b).slider("option","max",d);c("span",b).attr({"aria-valuemax":d})},value:function(b,d,e){e=c(b).prop("valueAsNumber");isNaN(e)||(a.range.blockAttr||c(d).slider("option","value",e),c("span",d).attr({"aria-valuenow":e, "aria-valuetext":e}))},step:function(a,b,d){d=d&&c.trim(d)?1*d||1:1;c(b).slider("option","step",d)}};if(!d.bugs.valueAsNumberSet&&(g.replaceUI||!Modernizr.inputtypes.date||!Modernizr.inputtypes["datetime-local"]||!Modernizr.inputtypes.range))j=function(){d.data(this,"hasShadow")&&c.prop(this,"value",c.prop(this,"value"))},d.onNodeNamesPropertyModify("input","valueAsNumber",j),d.onNodeNamesPropertyModify("input","valueAsDate",j);c.each(["disabled","min","max","value","step"],function(a,b){d.onNodeNamesPropertyModify("input", b,function(a){var c=d.data(this,"shadowData");if(c&&c.data&&c.data[b]&&c.nativeElement===this)c.data[b](this,c.shadowElement,a)})});if(!g.availabeLangs)g.availabeLangs="af ar ar-DZ az bg bs ca cs da de el en-AU en-GB en-NZ eo es et eu fa fi fo fr fr-CH gl he hr hu hy id is it ja ko kz lt lv ml ms nl no pl pt-BR rm ro ru sk sl sq sr sr-SR sv ta th tr uk vi zh-CN zh-HK zh-TW".split(" ");j=function(){c.datepicker&&(d.activeLang({langObj:c.datepicker.regional,module:"form-number-date-ui",callback:function(a){c("input.hasDatepicker").filter(".input-date, .input-datetime-local-date").datepicker("option", c.extend(l,a,g.datepicker))}}),c(e).unbind("jquery-uiReady.langchange input-widgetsReady.langchange"))};c(e).bind("jquery-uiReady.langchange input-widgetsReady.langchange",j);j();(function(){var a=function(){var a={};return function(b){return b in a?a[b]:a[b]=c('')[0].type===b}}();if(!a("number")||!a("time")){var b=d.cfg["forms-ext"],f=d.inputTypes,g=function(a,b,e){e=e||{};if(!("type"in e))e.type=c.prop(a,"type");if(!("step"in e))e.step=d.getStep(a,e.type);if(!("valueAsNumber"in e))e.valueAsNumber=f[e.type].asNumber(c.prop(a,"value"));var g="any"==e.step?f[e.type].step*f[e.type].stepScaleFactor:e.step;d.addMinMaxNumberToCache("min",c(a),e);d.addMinMaxNumberToCache("max",c(a),e);if(isNaN(e.valueAsNumber))e.valueAsNumber=f[e.type].stepBase||0;if("any"!==e.step&&(a=Math.round(1E7*((e.valueAsNumber-(e.minAsnumber||0))%e.step))/1E7)&&Math.abs(a)!=e.step)e.valueAsNumber-=a;a=e.valueAsNumber+g*b;return a=!isNaN(e.minAsNumber)&&ae.maxAsNumber?e.valueAsNumber*b>e.maxAsNumber?e.maxAsNumber:isNaN(e.minAsNumber)?e.valueAsNumber:e.minAsNumber:Math.round(1E7*a)/1E7};d.modules["form-number-date-ui"].getNextStep=g;var h=function(a,b,d){if(!a.disabled&&!a.readOnly&&!c(d).hasClass("step-controls")&&(c.prop(a,"value",f[b].numberToString(g(a,c(d).hasClass("step-up")?1:-1,{type:b}))),c(a).unbind("blur.stepeventshim"),k(a,"input"),e.activeElement)){if(e.activeElement!== a)try{a.focus()}catch(h){}setTimeout(function(){if(e.activeElement!==a)try{a.focus()}catch(b){}c(a).one("blur.stepeventshim",function(){k(a,"change")})},0)}};if(b.stepArrows){var j={set:function(){var a=d.data(this,"step-controls");if(a)a[this.disabled||this.readonly?"addClass":"removeClass"]("disabled-step-control")}};d.onNodeNamesPropertyModify("input","disabled",j);d.onNodeNamesPropertyModify("input","readonly",c.extend({},j))}var l={38:1,40:-1};d.addReady(function(e,j){b.stepArrows&&c("input", e).add(j.filter("input")).each(function(){var e=c.prop(this,"type");if(f[e]&&f[e].asNumber&&b.stepArrows&&!(!0!==b.stepArrows&&!b.stepArrows[e]||a(e)||c(this).hasClass("has-step-controls"))){var j=this,n=c('').insertAfter(this).bind("selectstart dragstart",function(){return!1}).bind("mousedown mousepress",function(a){h(j,e,a.target);return!1}).bind("mousepressstart mousepressend",function(a){c(a.target)["mousepressstart"== a.type?"addClass":"removeClass"]("mousepress-ui")}),p=c(this).addClass("has-step-controls").attr({readonly:this.readOnly,disabled:this.disabled,autocomplete:"off",role:"spinbutton"}).bind(c.browser.msie?"keydown":"keypress",function(a){if(!this.disabled&&!this.readOnly&&l[a.keyCode])return c.prop(this,"value",f[e].numberToString(g(this,l[a.keyCode],{type:e}))),k(this,"input"),!1});d.data(this,"step-controls",n);b.calculateWidth&&(o(p,n),n.css("marginTop",(p.outerHeight()-n.outerHeight())/2))}})})}})(); d.addReady(function(b,f){c(e).bind("jquery-uiReady.initinputui input-widgetsReady.initinputui",function(){(c.datepicker||c.fn.slider)&&a(b,f);c.datepicker&&c.fn.slider?c(e).unbind(".initinputui"):d.modules["input-widgets"].src||d.warn('jQuery UI Widget factory is already included, but not datepicker or slider. configure src of $.webshims.modules["input-widgets"].src')})})});