vendor/assets/javascripts/webshims/minified/shims/combos/18.js in webshims-rails-0.1 vs vendor/assets/javascripts/webshims/minified/shims/combos/18.js in webshims-rails-0.2
- old
+ new
@@ -1,64 +1,58 @@
-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('<div class="datalist-polyfill" />').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<t;g++){d=e[g];if(d.disabled)return;d={value:c(d).val()||"",text:c.trim(c.attr(d,"label")||d.textContent||d.innerText||c.text([d])||""),className:d.className||"",style:c.attr(d,"style")||""};d.text?d.text!=d.value&&(d.className+=" different-label-value"):d.text=d.value;f[g]=d.value;h[g]=d}if(!this.storedOptions)this.storedOptions=l((this.input.name||this.input.id)+c.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==
-f.indexOf(a)&&h.push({value:a,text:a,className:"stored-suggest",style:""})});for(g=0,t=h.length;g<t;g++)e=h[g],a[g]='<li class="'+e.className+'" style="'+e.style+'" tabindex="-1" role="listitem"><span class="option-label">'+e.text+'</span> <span class="option-value">'+e.value+"</span></li>";this.arrayOptions=h;this.shadowList.html('<ul role="list" class="'+(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom">'+a.join("\n")+"</ul>");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<b.shadowList.height()&&b.shadowList.css("height",220));b.shadowList.addClass("datalist-visible");c(e).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(a){a.target===b.input||b.shadowList[0]===a.target||c.contains(b.shadowList[0],a.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},
-9)):b.timedHide()});c(j).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+"orientationchange.datalist "+b.id+" emchange.datalist"+b.id,function(){clearTimeout(a);a=setTimeout(function(){b.setPos()},9)});clearTimeout(a);return!0},hideList:function(){if(!this.isListVisible)return!1;var b=this,a=function(){b.changedValue&&c(b.input).trigger("change");b.changedValue=!1};b.shadowList.removeClass("datalist-visible list-item-active").scrollTop(0).find("li.active-item").removeClass("active-item");b.index=
--1;b.isListVisible=!1;if(b.changedValue){b.triggeredByDatalist=!0;d.triggerInlineForm&&d.triggerInlineForm(b.input,"input");if(b.input==e.activeElement||c(b.input).is(":focus"))c(b.input).one("blur",a);else a();b.triggeredByDatalist=!1}c(e).unbind(".datalist"+b.id);c(j).unbind(".datalist"+b.id);return!0},scrollIntoView:function(b){var a=c("> 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("<datalist><select><option></option></select></datalist>").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<d?d:e[f].step)*e[f].stepScaleFactor};if(!d.addMinMaxNumberToCache)d.addMinMaxNumberToCache=function(a,c,b){a+"AsNumber"in b||(b[a+"AsNumber"]=e[b.type].asNumber(c.attr(a)),isNaN(b[a+"AsNumber"])&&a+"Default"in e[b.type]&&(b[a+"AsNumber"]=e[b.type][a+"Default"]))};var j=parseInt("NaN",
-10),e=d.inputTypes,q=function(a){return"number"==typeof a||a&&a==1*a},g=function(a){return c('<input type="'+a+'" />').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<c;b++)a="0"+a;return a};d.addValidityRule("stepMismatch",function(a,c,b,g){if(""===c)return!1;if(!("type"in b))b.type=k(a[0]);if("date"==b.type)return!1;g=(g||{}).stepMismatch;if(e[b.type]&&e[b.type].step){if(!("step"in b))b.step=
-d.getStep(a[0],b.type);if("any"==b.step)return!1;if(!("valueAsNumber"in b))b.valueAsNumber=e[b.type].asNumber(c);if(isNaN(b.valueAsNumber))return!1;n("min",a,b);a=b.minAsNumber;isNaN(a)&&(a=e[b.type].stepBase||0);g=Math.abs((b.valueAsNumber-a)%b.step);g=!(1.0E-7>=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.factor<d.valueAsNumber*a.factor-1.0E-7}return g})});d.reflectProperties(["input"],["max","min","step"]);var l=d.defineNodeNameProperty("input","valueAsNumber",{prop:{get:function(){var a=k(this),a=e[a]&&e[a].asNumber?e[a].asNumber(c.prop(this,"value")):l.prop._supget&&l.prop._supget.apply(this,
-arguments);null==a&&(a=j);return a},set:function(a){var b=k(this);e[b]&&e[b].numberToString?isNaN(a)?c.prop(this,"value",""):(b=e[b].numberToString(a),!1!==b?c.prop(this,"value",b):d.warn("INVALID_STATE_ERR: DOM Exception 11")):l.prop._supset&&l.prop._supset.apply(this,arguments)}}}),s=d.defineNodeNameProperty("input","valueAsDate",{prop:{get:function(){var a=k(this);return e[a]&&e[a].asDate&&!e[a].noAsDate?e[a].asDate(c.prop(this,"value")):s.prop._supget&&s.prop._supget.call(this)||null},set:function(a){var b=
-k(this);if(e[b]&&e[b].dateToString&&!e[b].noAsDate){if(null===a)return c.prop(this,"value",""),"";b=e[b].dateToString(a);if(!1!==b)return c.prop(this,"value",b),b;d.warn("INVALID_STATE_ERR: DOM Exception 11")}else return s.prop._supset&&s.prop._supset.apply(this,arguments)||null}}}),b={number:{mismatch:function(a){return!q(a)},step:1,stepScaleFactor:1,asNumber:function(a){return q(a)?1*a:j},numberToString:function(a){return q(a)?a:!1}},range:{minDefault:0,maxDefault:100},date:{mismatch:function(a){if(!a||
-!a.split||!/\d$/.test(a))return!0;var b=a.split(/\u002D/);if(3!==b.length)return!0;var d=!1;c.each(b,function(a,c){if(!(q(c)||c&&c=="0"+1*c))return d=!0,!1});if(d)return d;if(4!==b[0].length||2!=b[1].length||12<b[1]||2!=b[2].length||33<b[2])d=!0;return a!==this.dateToString(this.asDate(a,!0))},step:1,stepScaleFactor:864E5,asDate:function(a,c){return!c&&this.mismatch(a)?null:new Date(this.asNumber(a,!0))},asNumber:function(a,c){var b=j;if(c||!this.mismatch(a))a=a.split(/\u002D/),b=Date.UTC(a[0],a[1]-
-1,a[2]);return b},numberToString:function(a){return q(a)?this.dateToString(new Date(1*a)):!1},dateToString:function(a){return a&&a.getFullYear?a.getUTCFullYear()+"-"+o(a.getUTCMonth()+1,2)+"-"+o(a.getUTCDate(),2):!1}},time:{mismatch:function(a,b){if(!a||!a.split||!/\d$/.test(a))return!0;a=a.split(/\u003A/);if(2>a.length||3<a.length)return!0;var d=!1,e;a[2]&&(a[2]=a[2].split(/\u002E/),e=parseInt(a[2][1],10),a[2]=a[2][0]);c.each(a,function(a,c){if(!(q(c)||c&&c=="0"+1*c)||2!==c.length)return d=!0,!1});
-if(d||23<a[0]||0>a[0]||59<a[1]||0>a[1]||a[2]&&(59<a[2]||0>a[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<d.browserVersion?0:0.45,x=function(a,b,i,f){var h,k,j=function(){p.dpDiv.unbind("mousedown.webshimsmousedownhandler");k=h=!1},p=b.bind("focusin",function(){j();p.dpDiv.unbind("mousedown.webshimsmousedownhandler").bind("mousedown.webshimsmousedownhandler",
-function(){h=!0})}).bind("focusout blur",function(a){h&&(k=!0,a.stopImmediatePropagation())}).datepicker(c.extend({onClose:function(){k&&e.activeElement!==b[0]?(j(),b.trigger("focusout"),b.triggerHandler("blur")):j()}},l,g.datepicker,a.data("datepicker"))).bind("change",i).data("datepicker");p.dpDiv.addClass("input-date-datepicker-control");f&&d.triggerDomUpdate(f[0]);["disabled","min","max","value","step"].forEach(function(c){var b=a.prop(c);""!==b&&("disabled"!=c||!b)&&a.prop(c,b)});return p};a["datetime-local"]=
-function(b){if(c.fn.datepicker){var d=c('<span role="group" class="input-datetime-local"><input type="text" class="input-datetime-local-date" /><input type="time" class="input-datetime-local-time" /></span>'),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('<input class="input-date" type="text" />'),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('<span class="input-range"><span class="ui-slider-handle" role="slider" tabindex="0" /></span>'),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('<input type="'+b+'" />')[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)&&a<e.minAsNumber?e.valueAsNumber*b<e.minAsNumber?e.minAsNumber:
-isNaN(e.maxAsNumber)?e.valueAsNumber:e.maxAsNumber:!isNaN(e.maxAsNumber)&&a>e.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('<span class="step-controls" unselectable="on"><span class="step-up" /><span class="step-down" /></span>').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')})})});
+jQuery.webshims.register("form-datalist",function(a,b,n,m,s){b.propTypes.element=function(l){b.createPropDefault(l,"attr");if(!l.prop)l.prop={get:function(){var b=l.attr.get.call(this);b&&(b=a("#"+b)[0])&&l.propNodeName&&!a.nodeName(b,l.propNodeName)&&(b=null);return b||null},writeable:!1}};(function(){var l=a.webshims.cfg.forms,j=Modernizr.input.list;if(!j||l.customDatalist){var t=0,p={submit:1,button:1,reset:1,hidden:1,range:1,date:1},o=a.browser.msie&&7>parseInt(a.browser.version,10),u={},r=function(a){if(!a)return[];
+if(u[a])return u[a];var b;try{b=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(d){}u[a]=b||[];return b||[]},k={_create:function(h){if(!p[a.prop(h.input,"type")]){var b=h.datalist,d=a.data(h.input,"datalistWidget");if(b&&d&&d.datalist!==b)d.datalist=b,d.id=h.id,a(d.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(d,"_resetListCached")),d._resetListCached();else if(b){if(!(d&&d.datalist===b)){t++;var e=this;this.hideList=a.proxy(e,"hideList");
+this.timedHide=function(){clearTimeout(e.hideTimer);e.hideTimer=setTimeout(e.hideList,9)};this.datalist=b;this.id=h.id;this.hasViewableData=!0;this._autocomplete=a.attr(h.input,"autocomplete");a.data(h.input,"datalistWidget",this);this.shadowList=a('<div class="datalist-polyfill" />');l.positionDatalist?this.shadowList.insertAfter(h.input):this.shadowList.appendTo("body");this.index=-1;this.input=h.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",
+function(c){var g=a("li:not(.hidden-item)",e.shadowList),d="mousedown"==c.type||"click"==c.type;e.markItem(g.index(c.currentTarget),d,g);"click"==c.type&&(e.hideList(),a(h.input).trigger("datalistselect"));return"mousedown"!=c.type}).bind("focusout",this.timedHide);h.input.setAttribute("autocomplete","off");a(h.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!e.triggeredByDatalist)e.changedValue=!1,e.showHideOptions()}).bind("keydown.datalistWidget",function(c){var g=
+c.keyCode,d;if(40==g&&!e.showList())return e.markItem(e.index+1,!0),!1;if(e.isListVisible){if(38==g)return e.markItem(e.index-1,!0),!1;if(!c.shiftKey&&(33==g||36==g))return e.markItem(0,!0),!1;if(!c.shiftKey&&(34==g||35==g))return c=a("li:not(.hidden-item)",e.shadowList),e.markItem(c.length-1,!0,c),!1;if(13==g||27==g)return 13==g&&(d=a("li.active-item:not(.hidden-item)",e.shadowList),e.changeValue(a("li.active-item:not(.hidden-item)",e.shadowList))),e.hideList(),d&&d[0]&&a(h.input).trigger("datalistselect"),
+!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&e.showList()}).bind("mousedown.datalistWidget",function(){(this==m.activeElement||a(this).is(":focus"))&&e.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(this,"_resetListCached"));this._resetListCached();h.input.form&&h.input.id&&a(h.input.form).bind("submit.datalistWidget"+h.input.id,function(){var c=a.prop(h.input,
+"value"),d=(h.input.name||h.input.id)+a.prop(h.input,"type");if(!e.storedOptions)e.storedOptions=r(d);if(c&&-1==e.storedOptions.indexOf(c)&&(e.storedOptions.push(c),c=e.storedOptions,d)){c=c||[];try{localStorage.setItem("storedDatalistOptions"+d,JSON.stringify(c))}catch(f){}}});a(n).bind("unload",function(){e.destroy()})}}else d&&d.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(m).unbind(".datalist"+
+this.id);this.input.form&&this.input.id&&a(this.input.form).unbind("submit.datalistWidget"+this.input.id);this.input.removeAttribute("aria-haspopup");b===s?this.input.removeAttribute("autocomplete"):a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var i=this,d;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(n.QUnit||(d=a&&m.activeElement==i.input)?i.updateListOptions(d):b.ready("WINDOWLOAD",function(){i.updateTimer=setTimeout(function(){i.updateListOptions();
+i=null;t=1},200+100*t)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.curCSS(this.input,"fontSize"),fontFamily:a.curCSS(this.input,"fontFamily")});this.searchStart=a(this.input).hasClass("search-start");var i=[],d=[],e=[],c,g,f,w;for(g=a.prop(this.datalist,"options"),f=0,w=g.length;f<w;f++){c=g[f];if(c.disabled)return;c={value:a(c).val()||"",text:a.trim(a.attr(c,"label")||c.textContent||c.innerText||a.text([c])||
+""),className:c.className||"",style:a.attr(c,"style")||""};c.text?c.text!=c.value&&(c.className+=" different-label-value"):c.text=c.value;d[f]=c.value;e[f]=c}if(!this.storedOptions)this.storedOptions=r((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(c){-1==d.indexOf(c)&&e.push({value:c,text:c,className:"stored-suggest",style:""})});for(f=0,w=e.length;f<w;f++)g=e[f],i[f]='<li class="'+g.className+'" style="'+g.style+'" tabindex="-1" role="listitem"><span class="option-label">'+
+g.text+'</span> <span class="option-value">'+g.value+"</span></li>";this.arrayOptions=e;this.shadowList.html('<div><ul role="list" class="'+(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom">'+i.join("\n")+"</ul></div>");a.fn.bgIframe&&o&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var i=a.prop(this.input,"value").toLowerCase();if(!(i===this.lastUpdatedValue||this.lastUnfoundValue&&0===i.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=
+i;var d=!1,e=this.searchStart,c=a("li",this.shadowList);i?this.arrayOptions.forEach(function(g,f){var b;if(!("lowerText"in g))g.lowerText=g.text!=g.value?g.text.toLowerCase()+g.value.toLowerCase():g.text.toLowerCase();b=g.lowerText.indexOf(i);(b=e?!b:-1!==b)?(a(c[f]).removeClass("hidden-item"),d=!0):a(c[f]).addClass("hidden-item")}):c.length&&(c.removeClass("hidden-item"),d=!0);this.hasViewableData=d;!b&&d&&this.showList();if(!d)this.lastUnfoundValue=i,this.hideList()}},setPos:function(){var h=l.positionDatalist?
+a(this.input).position():b.getRelOffset(this.shadowList,this.input);h.top+=a(this.input).outerHeight();h.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css(h);return h},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,i;b.setPos();b.shadowList.addClass("datalist-visible");
+a(m).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(d){d.target===b.input||b.shadowList[0]===d.target||a.contains(b.shadowList[0],d.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()});a(n).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+"orientationchange.datalist "+b.id+" emchange.datalist"+b.id,function(){clearTimeout(i);i=setTimeout(function(){b.setPos()},9)});clearTimeout(i);return!0},hideList:function(){if(!this.isListVisible)return!1;
+var h=this,i=function(){h.changedValue&&a(h.input).trigger("change");h.changedValue=!1};h.shadowList.removeClass("datalist-visible list-item-active").scrollTop(0).find("li.active-item").removeClass("active-item");h.index=-1;h.isListVisible=!1;if(h.changedValue){h.triggeredByDatalist=!0;b.triggerInlineForm&&b.triggerInlineForm(h.input,"input");if(h.input==m.activeElement||a(h.input).is(":focus"))a(h.input).one("blur",i);else i();h.triggeredByDatalist=!1}a(m).unbind(".datalist"+h.id);a(n).unbind(".datalist"+
+h.id);return!0},scrollIntoView:function(b){var i=a("ul",this.shadowList),d=a("div",this.shadowList),e=b.position();e.top-=(parseInt(i.css("paddingTop"),10)||0)+(parseInt(i.css("marginTop"),10)||0)+(parseInt(i.css("borderTopWidth"),10)||0);0>e.top?d.scrollTop(d.scrollTop()+e.top-2):(e.top+=b.outerHeight(),b=d.height(),e.top>b&&d.scrollTop(d.scrollTop()+(e.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",b).text(),i=a.prop(this.input,"value");if(b!=i)a(this.input).prop("value",
+b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,i,d){d=d||a("li:not(.hidden-item)",this.shadowList);if(d.length)0>b?b=d.length-1:b>=d.length&&(b=0),d.removeClass("active-item"),this.shadowList.addClass("list-item-active"),d=d.filter(":eq("+b+")").addClass("active-item"),i&&(this.changeValue(d),this.scrollIntoView(d)),this.index=b}};(function(){j||b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var i=a("select",this);i[0]?i=i[0].options:
+(i=a("option",this).get(),i.length&&b.warn("you should wrap you option-elements for a datalist in a select element to support IE and other old browsers."));return i}}});var h={autocomplete:{attr:{get:function(){var b=a.data(this,"datalistWidget");return b?b._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(b){var d=a.data(this,"datalistWidget");d?(d._autocomplete=b,"off"==b&&d.hideList()):"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",
+b)}}}};if(!j||!1 in a("<input />")[0])h.selectedOption={prop:{writeable:!1,get:function(){var b=a.prop(this,"list"),d=null,e;if(!b)return d;e=a.attr(this,"value");if(!e)return d;b=a.prop(b,"options");if(!b.length)return d;a.each(b,function(c,b){if(e==a.prop(b,"value"))return d=b,!1});return d}}};h.list=j?{attr:{get:function(){var i=b.contentAttr(this,"list");null!=i?this.removeAttribute("list"):i=a.data(this,"datalistListAttr");return null==i?s:i},set:function(i){a.data(this,"datalistListAttr",i);
+b.objectCreate(k,s,{input:this,id:i,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}:{attr:{get:function(){var a=b.contentAttr(this,"list");return null==a?s:a},set:function(h){b.contentAttr(this,"list",h);b.objectCreate(k,s,{input:this,id:h,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};b.defineNodeNameProperties("input",h);if(a.event.customEvent)a.event.customEvent.updateDatalist=!0,a.event.customEvent.updateInput=
+!0,a.event.customEvent.datalistselect=!0;b.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
+jQuery.webshims.register("form-extend",function(a,b,n,m,s,l){n=n.Modernizr;s=n.inputtypes;if(n.formvalidation&&!b.bugs.bustedValidity){var j=b.inputTypes,t={};b.addInputType=function(c,a){j[c]=a};b.addValidityRule=function(c,a){t[c]=a};b.addValidityRule("typeMismatch",function(a,b,d,e){if(""===b)return!1;e=e.typeMismatch;if(!("type"in d))d.type=(a[0].getAttribute("type")||"").toLowerCase();j[d.type]&&j[d.type].mismatch&&(e=j[d.type].mismatch(b,a));return e});var p=l.overrideMessages,o=!s.number||
+!s.time||!s.range||p,u="customError,typeMismatch,rangeUnderflow,rangeOverflow,stepMismatch,tooLong,patternMismatch,valueMissing,valid".split(","),l=p?["value","checked"]:["value"],r=[],k=function(c,b){if(c){var d=(c.getAttribute&&c.getAttribute("type")||c.type||"").toLowerCase();if(p||j[d])p&&!b&&"radio"==d&&c.name?a(m.getElementsByName(c.name)).each(function(){a.prop(this,"validity")}):a.prop(c,"validity")}},h={};["input","textarea","select"].forEach(function(c){var d=b.defineNodeNameProperty(c,
+"setCustomValidity",{prop:{value:function(f){var f=f+"",e="input"==c?a(this).getNativeElement()[0]:this;d.prop._supvalue.call(e,f);b.bugs.validationMessage&&b.data(e,"customvalidationMessage",f);o&&(b.data(e,"hasCustomError",!!f),k(e))}}});h[c]=d.prop._supvalue});if(o||p)l.push("min"),l.push("max"),l.push("step"),r.push("input");p&&(l.push("required"),l.push("pattern"),r.push("select"),r.push("textarea"));if(o){var i;r.forEach(function(c){var d=b.defineNodeNameProperty(c,"validity",{prop:{get:function(){if(!i){var f=
+"input"==c?a(this).getNativeElement()[0]:this,e=d.prop._supget.call(f);if(!e)return e;var q={};u.forEach(function(a){q[a]=e[a]});if(!a.prop(f,"willValidate"))return q;i=!0;var l=a(f),k={type:(f.getAttribute&&f.getAttribute("type")||"").toLowerCase(),nodeName:(f.nodeName||"").toLowerCase()},v=l.val(),y=!!b.data(f,"hasCustomError"),x;i=!1;q.customError=y;if(q.valid&&q.customError)q.valid=!1;else if(!q.valid){var m=!0;a.each(q,function(a,c){if(c)return m=!1});if(m)q.valid=!0}a.each(t,function(a,d){q[a]=
+d(l,v,k,q);if(q[a]&&(q.valid||!x)&&(p||j[k.type]&&j[k.type].mismatch))h[c].call(f,b.createValidationMessage(f,a)),q.valid=!1,x=!0});q.valid?(h[c].call(f,""),b.data(f,"hasCustomError",!1)):p&&!x&&!y&&a.each(q,function(a,d){if("valid"!==a&&d)return h[c].call(f,b.createValidationMessage(f,a)),!1});return q}},writeable:!1}})});l.forEach(function(a){b.onNodeNamesPropertyModify(r,a,function(){k(this)})});if(m.addEventListener){var d;m.addEventListener("change",function(a){clearTimeout(d);k(a.target)},!0);
+m.addEventListener("input",function(a){clearTimeout(d);d=setTimeout(function(){k(a.target)},290)},!0)}var e=r.join(",");b.addReady(function(c,d){a(e,c).add(d.filter(e)).each(function(){a.prop(this,"validity")})});p&&b.ready("DOM form-message",function(){b.activeLang({register:"form-core",callback:function(){a("input, select, textarea").getNativeElement().each(function(){if(!b.data(this,"hasCustomError")){var c=this,d=a.prop(c,"validity")||{valid:!0},f;d.valid||(f=(c.nodeName||"").toLowerCase(),a.each(d,
+function(a,d){if("valid"!==a&&d)return h[f].call(c,b.createValidationMessage(c,a)),!1}))}})}})})}b.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return b.inputTypes[a]?a:this.type}}});n.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var c=this.options||[];if(!c.length){var d=a("select",this);if(d[0]&&
+d[0].options&&d[0].options.length)c=d[0].options}return c}}})}});
+jQuery.webshims.register("form-number-date-api",function(a,b){var n,m,s;if(!b.getStep)b.getStep=function(d,b){var c=a.attr(d,"step");if("any"===c)return c;b=b||o(d);if(!j[b]||!j[b].step)return c;c=n.asNumber(c);return(!isNaN(c)&&0<c?c:j[b].step)*j[b].stepScaleFactor};if(!b.addMinMaxNumberToCache)b.addMinMaxNumberToCache=function(a,b,c){a+"AsNumber"in c||(c[a+"AsNumber"]=j[c.type].asNumber(b.attr(a)),isNaN(c[a+"AsNumber"])&&a+"Default"in j[c.type]&&(c[a+"AsNumber"]=j[c.type][a+"Default"]))};var l=
+parseInt("NaN",10),j=b.inputTypes,t=function(a){return"number"==typeof a||a&&a==1*a},p=function(b){return a('<input type="'+b+'" />').prop("type")===b},o=function(a){return(a.getAttribute("type")||"").toLowerCase()},u=b.addMinMaxNumberToCache,r=function(a,b){for(var a=""+a,b=b-a.length,c=0;c<b;c++)a="0"+a;return a},k=b.bugs.valueAsNumberSet||b.bugs.bustedValidity;b.addValidityRule("stepMismatch",function(a,e,c,g){if(""===e)return!1;if(!("type"in c))c.type=o(a[0]);if("date"==c.type)return!1;g=(g||
+{}).stepMismatch;if(j[c.type]&&j[c.type].step){if(!("step"in c))c.step=b.getStep(a[0],c.type);if("any"==c.step)return!1;if(!("valueAsNumber"in c))c.valueAsNumber=j[c.type].asNumber(e);if(isNaN(c.valueAsNumber))return!1;u("min",a,c);a=c.minAsNumber;isNaN(a)&&(a=j[c.type].stepBase||0);g=Math.abs((c.valueAsNumber-a)%c.step);g=!(1.0E-7>=g||1.0E-7>=Math.abs(g-c.step))}return g});[{name:"rangeOverflow",attr:"max",factor:1},{name:"rangeUnderflow",attr:"min",factor:-1}].forEach(function(a){b.addValidityRule(a.name,
+function(b,c,g,f){f=(f||{})[a.name]||!1;if(""===c)return f;if(!("type"in g))g.type=o(b[0]);if(j[g.type]&&j[g.type].asNumber){if(!("valueAsNumber"in g))g.valueAsNumber=j[g.type].asNumber(c);if(isNaN(g.valueAsNumber))return!1;u(a.attr,b,g);if(isNaN(g[a.attr+"AsNumber"]))return f;f=g[a.attr+"AsNumber"]*a.factor<g.valueAsNumber*a.factor-1.0E-7}return f})});b.reflectProperties(["input"],["max","min","step"]);var h=b.defineNodeNameProperty("input","valueAsNumber",{prop:{get:function(){var b=o(this),b=j[b]&&
+j[b].asNumber?j[b].asNumber(a.prop(this,"value")):h.prop._supget&&h.prop._supget.apply(this,arguments);null==b&&(b=l);return b},set:function(d){var e=o(this);j[e]&&j[e].numberToString?isNaN(d)?a.prop(this,"value",""):(e=j[e].numberToString(d),!1!==e?a.prop(this,"value",e):b.warn("INVALID_STATE_ERR: DOM Exception 11")):h.prop._supset&&h.prop._supset.apply(this,arguments)}}}),i=b.defineNodeNameProperty("input","valueAsDate",{prop:{get:function(){var b=o(this);return j[b]&&j[b].asDate&&!j[b].noAsDate?
+j[b].asDate(a.prop(this,"value")):i.prop._supget&&i.prop._supget.call(this)||null},set:function(d){var e=o(this);if(j[e]&&j[e].dateToString&&!j[e].noAsDate){if(null===d)return a.prop(this,"value",""),"";e=j[e].dateToString(d);if(!1!==e)return a.prop(this,"value",e),e;b.warn("INVALID_STATE_ERR: DOM Exception 11")}else return i.prop._supset&&i.prop._supset.apply(this,arguments)||null}}});n={mismatch:function(a){return!t(a)},step:1,stepScaleFactor:1,asNumber:function(a){return t(a)?1*a:l},numberToString:function(a){return t(a)?
+a:!1}};m={minDefault:0,maxDefault:100};s={mismatch:function(b){if(!b||!b.split||!/\d$/.test(b))return!0;var e=b.split(/\u002D/);if(3!==e.length)return!0;var c=!1;a.each(e,function(a,b){if(!(t(b)||b&&b=="0"+1*b))return c=!0,!1});if(c)return c;if(4!==e[0].length||2!=e[1].length||12<e[1]||2!=e[2].length||33<e[2])c=!0;return b!==this.dateToString(this.asDate(b,!0))},step:1,stepScaleFactor:864E5,asDate:function(a,b){return!b&&this.mismatch(a)?null:new Date(this.asNumber(a,!0))},asNumber:function(a,b){var c=
+l;if(b||!this.mismatch(a))a=a.split(/\u002D/),c=Date.UTC(a[0],a[1]-1,a[2]);return c},numberToString:function(a){return t(a)?this.dateToString(new Date(1*a)):!1},dateToString:function(a){return a&&a.getFullYear?a.getUTCFullYear()+"-"+r(a.getUTCMonth()+1,2)+"-"+r(a.getUTCDate(),2):!1}};if(k||!p("range")||!p("time"))m=a.extend({},n,m);(k||!p("number"))&&b.addInputType("number",n);(k||!p("range"))&&b.addInputType("range",m);(k||!p("date"))&&b.addInputType("date",s)});
+jQuery.webshims.register("form-number-date-ui",function(a,b,n,m,s,l){var j=b.triggerInlineForm,t=Modernizr.inputtypes,p=function(){var a={"padding-box":"innerWidth","border-box":"outerWidth","content-box":"width"},b=Modernizr.prefixed&&Modernizr.prefixed("boxSizing");return function(f,d){var e,h,i;h="width";b&&(h=a[f.css(b)]||h);e=f[h]();h="width"==h;if(e){var v=parseInt(d.css("marginLeft"),10)||0,j=d.outerWidth();(i=parseInt(f.css("marginRight"),10)||0)&&f.css("marginRight",0);v<=-1*j?(d.css("marginRight",
+Math.floor(Math.abs(j+v)+i)),f.css("paddingRight",(parseInt(f.css("paddingRight"),10)||0)+Math.abs(v)),h&&f.css("width",Math.floor(e+v))):(d.css("marginRight",i),f.css("width",Math.floor(e-v-j)))}}}(),o={dateFormat:"yy-mm-dd"},u=a([]),r,k=function(c,g){a("input",c).add(g.filter("input")).each(function(){var c=a.prop(this,"type");if(k[c]&&!b.data(this,"shadowData"))k[c](a(this))})},h=function(b,g){if(l.lazyDate){var f=a.data(b[0],"setDateLazyTimer");f&&clearTimeout(f);a.data(b[0],"setDateLazyTimer",
+setTimeout(function(){b.datepicker("setDate",g);a.removeData(b[0],"setDateLazyTimer");b=null},0))}else b.datepicker("setDate",g)};if(l.lazyDate===s)try{l.lazyDate=a.browser.msie&&9>b.browserVersion||500>a(n).width()&&500>a(n).height()}catch(i){}var d={tabindex:1,tabIndex:1,title:1,"aria-required":1,"aria-invalid":1};if(!l.copyAttrs)l.copyAttrs={};b.extendUNDEFProp(l.copyAttrs,d);k.common=function(c,g,f){Modernizr.formvalidation&&c.bind("firstinvalid",function(a){(b.fromSubmit||!r)&&c.unbind("invalid.replacedwidgetbubble").bind("invalid.replacedwidgetbubble",
+function(f){!a.isInvalidUIPrevented()&&!f.isDefaultPrevented()&&(b.validityAlert.showFor(a.target),a.preventDefault(),f.preventDefault());c.unbind("invalid.replacedwidgetbubble")})});var e,h,i=a("input, span.ui-slider-handle",g),j=c[0].attributes;for(e in l.copyAttrs)if((h=j[e])&&h.specified)d[e]&&i[0]?i.attr(e,h.nodeValue):g[0].setAttribute(e,h.nodeValue);h=c.attr("id");e=l.calculateWidth?{css:{marginRight:c.css("marginRight"),marginLeft:c.css("marginLeft")},outerWidth:c.outerWidth()}:{};e.label=
+h?a('label[for="'+h+'"]',c[0].form):u;h=b.getID(e.label);g.addClass(c[0].className);b.addShadowDom(c,g,{data:f||{},shadowFocusElement:a("input.input-datetime-local-date, span.ui-slider-handle",g)[0],shadowChilds:i});c.after(g).hide();c[0].form&&a(c[0].form).bind("reset",function(a){a.originalEvent&&!a.isDefaultPrevented()&&setTimeout(function(){c.prop("value",c.prop("value"))},0)});1==g.length&&!a("*",g)[0]&&(g.attr("aria-labelledby",h),e.label.bind("click",function(){g.focus();return!1}));return e};
+Modernizr.formvalidation&&["input","form"].forEach(function(a){var g=b.defineNodeNameProperty(a,"checkValidity",{prop:{value:function(){r=!0;var a=g.prop._supvalue.apply(this,arguments);r=!1;return a}}})});if(!t.date||l.replaceUI){var e=function(c,g,f,d){var e,h,i=function(){j.dpDiv.unbind("mousedown.webshimsmousedownhandler");h=e=!1},j=g.bind("focusin",function(){i();j.dpDiv.unbind("mousedown.webshimsmousedownhandler").bind("mousedown.webshimsmousedownhandler",function(){e=!0})}).bind("focusout blur",
+function(a){e&&(h=!0,a.stopImmediatePropagation())}).datepicker(a.extend({onClose:function(){h&&m.activeElement!==g[0]?(i(),g.trigger("focusout"),g.triggerHandler("blur")):i()}},o,l.datepicker,c.data("datepicker"))).bind("change",f).data("datepicker");j.dpDiv.addClass("input-date-datepicker-control");d&&b.triggerDomUpdate(d[0]);["disabled","min","max","value","step"].forEach(function(a){var b=c.prop(a);""!==b&&("disabled"!=a||!b)&&c.prop(a,b)});return j};k.date=function(b){if(a.fn.datepicker){var g=
+a('<input class="input-date" type="text" />'),f=this.common(b,g,k.date.attrs),d=e(b,g,function(f){k.date.blockAttr=!0;var d;if(l.lazyDate){var e=a.data(g[0],"setDateLazyTimer");e&&(clearTimeout(e),a.removeData(g[0],"setDateLazyTimer"))}try{d=(d=a.datepicker.parseDate(g.datepicker("option","dateFormat"),g.prop("value")))?a.datepicker.formatDate("yy-mm-dd",d):g.prop("value")}catch(h){d=g.prop("value")}b.prop("value",d);k.date.blockAttr=!1;f.stopImmediatePropagation();j(b[0],"input");j(b[0],"change")});
+f.css&&(g.css(f.css),f.outerWidth&&g.outerWidth(f.outerWidth),d.trigger[0]&&p(g,d.trigger))}};k.date.attrs={disabled:function(b,g,f){a.prop(g,"disabled",!!f)},min:function(b,g,f){try{f=a.datepicker.parseDate("yy-mm-dd",f)}catch(d){f=!1}f&&a(g).datepicker("option","minDate",f)},max:function(b,d,f){try{f=a.datepicker.parseDate("yy-mm-dd",f)}catch(e){f=!1}f&&a(d).datepicker("option","maxDate",f)},value:function(b,d,f){if(!k.date.blockAttr){try{var e=a.datepicker.parseDate("yy-mm-dd",f)}catch(i){e=!1}e?
+h(a(d),e):a.prop(d,"value",f)}}}}if(!t.range||l.replaceUI)k.range=function(b){if(a.fn.slider){var d=a('<span class="input-range"><span class="ui-slider-handle" role="slider" tabindex="0" /></span>'),f=this.common(b,d,k.range.attrs);a("span",d).attr("aria-labelledby",f.label.attr("id"));f.label.bind("click",function(){a("span",d).focus();return!1});f.css&&(d.css(f.css),f.outerWidth&&d.outerWidth(f.outerWidth));d.slider(a.extend({},l.slider,b.data("slider"),{slide:function(a,d){if(a.originalEvent)k.range.blockAttr=
+!0,b.prop("value",d.value),k.range.blockAttr=!1,j(b[0],"input"),j(b[0],"change")}}));["disabled","min","max","step","value"].forEach(function(d){var f=b.attr(d),e;"value"==d&&!f&&(e=b.getShadowElement())&&(f=(a(e).slider("option","max")-a(e).slider("option","min"))/2);null!=f&&b.attr(d,f)})}},k.range.attrs={disabled:function(b,d,f){f=!!f;a(d).slider("option","disabled",f);a("span",d).attr({"aria-disabled":f+"",tabindex:f?"-1":"0"})},min:function(b,d,f){f=f?1*f||0:0;a(d).slider("option","min",f);a("span",
+d).attr({"aria-valuemin":f})},max:function(b,d,f){f=f||0===f?1*f||100:100;a(d).slider("option","max",f);a("span",d).attr({"aria-valuemax":f})},value:function(b,d,f){f=a(b).prop("valueAsNumber");isNaN(f)||(k.range.blockAttr||a(d).slider("option","value",f),a("span",d).attr({"aria-valuenow":f,"aria-valuetext":f}))},step:function(b,d,f){f=f&&a.trim(f)?1*f||1:1;a(d).slider("option","step",f)}};if(!b.bugs.valueAsNumberSet&&(l.replaceUI||!Modernizr.inputtypes.date||!Modernizr.inputtypes.range))n=function(){b.data(this,
+"hasShadow")&&a.prop(this,"value",a.prop(this,"value"))},b.onNodeNamesPropertyModify("input","valueAsNumber",n),b.onNodeNamesPropertyModify("input","valueAsDate",n);a.each(["disabled","min","max","value","step"],function(a,d){b.onNodeNamesPropertyModify("input",d,function(a){var c=b.data(this,"shadowData");if(c&&c.data&&c.data[d]&&c.nativeElement===this)c.data[d](this,c.shadowElement,a)})});if(!l.availabeLangs)l.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(" ");
+n=function(){a.datepicker&&(b.activeLang({langObj:a.datepicker.regional,module:"form-number-date-ui",callback:function(b){a("input.hasDatepicker").filter(".input-date, .input-datetime-local-date").datepicker("option",a.extend(o,b,l.datepicker))}}),a(m).unbind("jquery-uiReady.langchange input-widgetsReady.langchange"))};a(m).bind("jquery-uiReady.langchange input-widgetsReady.langchange",n);n();(function(){var c=function(){var b={};return function(c){return c in b?b[c]:b[c]=a('<input type="'+c+'" />')[0].type===
+c}}();if(!c("number")){var d=b.cfg["forms-ext"],f=b.inputTypes,e=function(c,d,e){e=e||{};if(!("type"in e))e.type=a.prop(c,"type");if(!("step"in e))e.step=b.getStep(c,e.type);if(!("valueAsNumber"in e))e.valueAsNumber=f[e.type].asNumber(a.prop(c,"value"));var g="any"==e.step?f[e.type].step*f[e.type].stepScaleFactor:e.step;b.addMinMaxNumberToCache("min",a(c),e);b.addMinMaxNumberToCache("max",a(c),e);if(isNaN(e.valueAsNumber))e.valueAsNumber=f[e.type].stepBase||0;if("any"!==e.step&&(c=Math.round(1E7*
+((e.valueAsNumber-(e.minAsnumber||0))%e.step))/1E7)&&Math.abs(c)!=e.step)e.valueAsNumber-=c;c=e.valueAsNumber+g*d;return c=!isNaN(e.minAsNumber)&&c<e.minAsNumber?e.valueAsNumber*d<e.minAsNumber?e.minAsNumber:isNaN(e.maxAsNumber)?e.valueAsNumber:e.maxAsNumber:!isNaN(e.maxAsNumber)&&c>e.maxAsNumber?e.valueAsNumber*d>e.maxAsNumber?e.maxAsNumber:isNaN(e.minAsNumber)?e.valueAsNumber:e.minAsNumber:Math.round(1E7*c)/1E7};b.modules["form-number-date-ui"].getNextStep=e;var h=function(b,c,d){if(!b.disabled&&
+!b.readOnly&&!a(d).hasClass("step-controls")&&(a.prop(b,"value",f[c].numberToString(e(b,a(d).hasClass("step-up")?1:-1,{type:c}))),a(b).unbind("blur.stepeventshim"),j(b,"input"),m.activeElement)){if(m.activeElement!==b)try{b.focus()}catch(g){}setTimeout(function(){if(m.activeElement!==b)try{b.focus()}catch(c){}a(b).one("blur.stepeventshim",function(){j(b,"change")})},0)}};if(d.stepArrows){var i={set:function(){var a=b.data(this,"step-controls");if(a)a[this.disabled||this.readonly?"addClass":"removeClass"]("disabled-step-control")}};
+b.onNodeNamesPropertyModify("input","disabled",i);b.onNodeNamesPropertyModify("input","readonly",a.extend({},i))}var l={38:1,40:-1};b.addReady(function(i,k){d.stepArrows&&a("input",i).add(k.filter("input")).each(function(){var i=a.prop(this,"type");if(f[i]&&f[i].asNumber&&d.stepArrows&&!(!0!==d.stepArrows&&!d.stepArrows[i]||c(i)||a(k).hasClass("has-step-controls"))){var k=this,m=a('<span class="step-controls" unselectable="on"><span class="step-up" /><span class="step-down" /></span>').insertAfter(k).bind("selectstart dragstart",
+function(){return!1}).bind("mousedown mousepress",function(a){h(k,i,a.target);return!1}).bind("mousepressstart mousepressend",function(b){a(b.target)["mousepressstart"==b.type?"addClass":"removeClass"]("mousepress-ui")}),n=function(b,c){if(!k.disabled&&!k.readOnly)return a.prop(k,"value",f[i].numberToString(e(k,c,{type:i}))),j(k,"input"),!1},o=a(k).addClass("has-step-controls").attr({readonly:k.readOnly,disabled:k.disabled,autocomplete:"off",role:"spinbutton"}).bind(a.browser.msie?"keydown":"keypress",
+function(b){if(!k.disabled&&!k.readOnly&&l[b.keyCode])return a.prop(k,"value",f[i].numberToString(e(k,l[b.keyCode],{type:i}))),j(k,"input"),!1});a.fn.mwheelIntent?o.add(m).bind("mwheelIntent",n):o.bind("focus",function(){o.add(m).unbind(".mwhellwebshims").bind("mousewheel.mwhellwebshims",n)}).bind("blur",function(){a(k).add(m).unbind(".mwhellwebshims")});b.data(k,"step-controls",m);d.calculateWidth&&(p(o,m),m.css("marginTop",(o.outerHeight()-m.outerHeight())/2))}})})}})();b.addReady(function(c,d){a(m).bind("jquery-uiReady.initinputui input-widgetsReady.initinputui",
+function(){(a.datepicker||a.fn.slider)&&k(c,d);a.datepicker&&a.fn.slider?a(m).unbind(".initinputui"):b.modules["input-widgets"].src||b.warn('jQuery UI Widget factory is already included, but not datepicker or slider. configure src of $.webshims.modules["input-widgets"].src')})})});