webshims-rails 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/webshims-rails/version.rb +2 -2
- data/vendor/assets/javascripts/webshims/minified/extras/custom-validity.js +10 -9
- data/vendor/assets/javascripts/webshims/minified/extras/modernizr-custom.js +20 -19
- data/vendor/assets/javascripts/webshims/minified/polyfiller.js +29 -28
- data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +33 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +76 -76
- data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +42 -41
- data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +38 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +25 -25
- data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +55 -54
- data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +64 -63
- data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +59 -58
- data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +64 -62
- data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +69 -63
- data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +43 -43
- data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +47 -42
- data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +57 -57
- data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +60 -55
- data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +77 -75
- data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +91 -84
- data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +31 -30
- data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +39 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +61 -59
- data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +29 -29
- data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +37 -37
- data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +33 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +63 -63
- data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +20 -20
- data/vendor/assets/javascripts/webshims/minified/shims/excanvas.js +21 -35
- data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +22 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +22 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +9 -9
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +8 -8
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-fix.js +7 -5
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +21 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +33 -28
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +13 -13
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +30 -30
- data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +5 -4
- metadata +4 -4
@@ -1,25 +1,25 @@
|
|
1
|
-
(function(d){if(!Modernizr.genericDOM){var g=document,o,j,m=/<([\w:]+)/,n={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};d.webshims.fixHTML5=function(d){if("string"!=typeof d||n[(m.exec(d)||["",""])[1].toLowerCase()])return d;if(!j){o=g.body;if(!o)return d;j=g.createElement("div");j.style.display="none"}var k=j.cloneNode(!1);o.appendChild(k);k.innerHTML=d;o.removeChild(k);return k.childNodes}}})(jQuery);
|
2
|
-
jQuery.webshims.register("dom-extend",function(d,g,o,j,m){var n=g.modules,s=/\s*,\s*/,k={},p={},i={},h={},l={},t=d.fn.val,B=function(b,a,c,e,f){return f?t.call(d(b)):t.call(d(b),c)};d.fn.val=function(b){var a=this[0];arguments.length&&null==b&&(b="");if(!arguments.length)return!a||1!==a.nodeType?t.call(this):d.prop(a,"value",b,"val",!0);if(d.isArray(b))return t.apply(this,arguments);var c=d.isFunction(b);return this.each(function(e){a=this;1===a.nodeType&&(c?(e=b.call(a,e,d.prop(a,"value",m,"val",
|
3
|
-
!0)),null==e&&(e=""),d.prop(a,"value",e,"val")):d.prop(a,"value",b,"val"))})};var v="_webshimsLib"+Math.round(1E3*Math.random()),x=function(b,a,c){b=b.jquery?b[0]:b;if(!b)return c||{};var e=d.data(b,v);c!==m&&(e||(e=d.data(b,v,{})),a&&(e[a]=c));return a?e&&e[a]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(b){d.fn[b.name]=function(){return this.map(function(){var a=x(this,
|
4
|
-
"shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(b){k[b]=d[b];d[b]=function(a,c,e,f,q){var y="val"==f,g=!y?k[b]:B;if(!a||!p[c]||1!==a.nodeType||!y&&f&&"attr"==b&&d.attrFn[c])return g(a,c,e,f,q);var z=(a.nodeName||"").toLowerCase(),u=i[z],w="attr"==b&&(!1===e||null===e)?"removeAttr":b,h,t,n;u||(u=i["*"]);u&&(u=u[c]);u&&(h=u[w]);if(h){if("value"==c)t=h.isVal,h.isVal=y;if("removeAttr"===w)return h.value.call(a);if(e===m)return h.get?h.get.call(a):h.value;h.set&&
|
5
|
-
("attr"==b&&!0===e&&(e=c),n=h.set.call(a,e));if("value"==c)h.isVal=t}else n=g(a,c,e,f,q);if((e!==m||"removeAttr"===w)&&l[z]&&l[z][c]){var j;j="removeAttr"==w?!1:"prop"==w?!!e:!0;l[z][c].forEach(function(c){if(!c.only||(c.only="prop"==b)||"attr"==c.only&&"prop"!=b)c.call(a,e,j,y?"val":w,b)})}return n};h[b]=function(a,c,e){i[a]||(i[a]={});i[a][c]||(i[a][c]={});var f=i[a][c][b],q=function(a,d,f){return d&&d[a]?d[a]:f&&f[a]?f[a]:"prop"==b&&"value"==c?function(a){return e.isVal?B(this,c,a,!1,0===arguments.length):
|
6
|
-
k[b](this,c,a)}:"prop"==b&&"value"==a&&e.value.apply?function(a){var d=k[b](this,c);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(a){return k[b](this,c,a)}};i[a][c][b]=e;if(e.value===m){if(!e.set)e.set=e.writeable?q("set",e,f):g.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+a;}:d.noop;if(!e.get)e.get=q("get",e,f)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=q(a,f))})}});var C=!d.browser.msie||8<parseInt(d.browser.version,10),D=function(){var b=g.getPrototypeOf(j.createElement("foobar")),
|
7
|
-
a=Object.prototype.hasOwnProperty;return function(c,d,f){var q=j.createElement(c),h=g.getPrototypeOf(q);if(C&&h&&b!==h&&(!q[d]||!a.call(q,d))){var i=q[d];f._supvalue=function(){return i&&i.apply?i.apply(this,arguments):i};h[d]=f.value}else f._supvalue=function(){var a=x(this,"propValue");return a&&a[d]&&a[d].apply?a[d].apply(this,arguments):a&&a[d]},r.extendValue(c,d,f.value);f.value._supvalue=f._supvalue}}(),r=function(){var b={};g.addReady(function(a,c){var e={},h=function(b){e[b]||(e[b]=d(a.getElementsByTagName(b)),
|
8
|
-
c[0]&&d.nodeName(c[0],b)&&(e[b]=e[b].add(c)))};d.each(b,function(a,c){h(a);!c||!c.forEach?g.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){e[a].each(c)})});e=null});var a,c=d([]),e=function(c,e){b[c]?b[c].push(e):b[c]=[e];d.isDOMReady&&(a||d(j.getElementsByTagName(c))).each(e)};return{createTmpCache:function(b){d.isDOMReady&&(a=a||d(j.getElementsByTagName(b)));return a||c},flushTmpCache:function(){a=null},content:function(a,c){e(a,function(){var a=d.attr(this,c);null!=a&&d.attr(this,
|
9
|
-
c,a)})},createElement:function(a,c){e(a,c)},extendValue:function(a,c,b){e(a,function(){d(this).each(function(){x(this,"propValue",{})[c]=this[c];this[c]=b})})}}}(),A=function(b,a){if(b.defaultValue===m)b.defaultValue="";if(!b.removeAttr)b.removeAttr={value:function(){b[a||"prop"].set.call(this,b.defaultValue);b.removeAttr._supvalue.call(this)}}};d.extend(g,{getID:function(){var b=(new Date).getTime();return function(a){var a=d(a),c=a.attr("id");c||(b++,c="ID-"+b,a.attr("id",c));return c}}(),extendUNDEFProp:function(b,
|
10
|
-
a){d.each(a,function(a,d){a in b||(b[a]=d)})},createPropDefault:A,data:x,moveToFirstEvent:function(){var b=d._data?"_data":"data";return function(a,c,e){if((a=(d[b](a,"events")||{})[c])&&1<a.length)c=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,c):a.unshift(c)}}(),addShadowDom:function(b,a,c){c=c||{};b.jquery&&(b=b[0]);a.jquery&&(a=a[0]);if(!c.shadowFocusElement)c.shadowFocusElement=a;var e=d.data(b,v)||d.data(b,v,{}),f=d.data(a,v)||d.data(a,v,{});e.hasShadow=a;f.nativeElement=
|
11
|
-
b;f.shadowData=e.shadowData={nativeElement:b,shadowElement:a,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){x(this,"shadowData",f.shadowData)});if(c.data)e.shadowData.data=c.data,f.shadowData.data=c.data;c=null},propTypes:{standard:function(b){A(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){A(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,
|
12
|
-
""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}}},reflectProperties:function(b,a){"string"==typeof a&&(a=a.split(s));a.forEach(function(a){g.defineNodeNamesProperty(b,a,{prop:{set:function(b){d.attr(this,a,b)},get:function(){return d.attr(this,a)||""}}})})},defineNodeNameProperty:function(b,a,c){p[a]=!0;if(c.reflect)g.propTypes[c.propType||"standard"](c);["prop","attr","removeAttr"].forEach(function(e){var f=c[e];f&&(f="prop"===e?d.extend({writeable:!0},f):d.extend({},
|
13
|
-
f,{writeable:!0}),h[e](b,a,f),"*"!=b&&g.cfg.extendNative&&"prop"==e&&f.value&&d.isFunction(f.value)&&D(b,a,f),c[e]=f)});c.initAttr&&r.content(b,a);return c},defineNodeNameProperties:function(b,a,c,d){for(var f in a)!d&&a[f].initAttr&&r.createTmpCache(b),c&&(a[f][c]?g.log("override: "+b+"["+f+"] for "+c):(a[f][c]={},["value","set","get"].forEach(function(b){b in a[f]&&(a[f][c][b]=a[f][b],delete a[f][b])}))),a[f]=g.defineNodeNameProperty(b,f,a[f]);d||r.flushTmpCache();return a},createElement:function(b,
|
14
|
-
a,c){var e;d.isFunction(a)&&(a={after:a});r.createTmpCache(b);a.before&&r.createElement(b,a.before);c&&(e=g.defineNodeNameProperties(b,c,!1,!0));a.after&&r.createElement(b,a.after);r.flushTmpCache();return e},onNodeNamesPropertyModify:function(b,a,c,e){"string"==typeof b&&(b=b.split(s));d.isFunction(c)&&(c={set:c});b.forEach(function(b){l[b]||(l[b]={});"string"==typeof a&&(a=a.split(s));c.initAttr&&r.createTmpCache(b);a.forEach(function(a){l[b][a]||(l[b][a]=[],p[a]=!0);if(c.set){if(e)c.set.only=e;
|
15
|
-
l[b][a].push(c.set)}c.initAttr&&r.content(b,a)});r.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,a,c){c||(c={});if(d.isFunction(c))c.set=c;g.defineNodeNamesProperty(b,a,{attr:{set:function(b){this.setAttribute(a,b);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?m:a}},removeAttr:{value:function(){this.removeAttribute(a);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(b,a,c){if(b.nodeName){if(c===
|
16
|
-
m)return c=(b.attributes[a]||{}).value,null==c?m:c;"boolean"==typeof c?c?b.setAttribute(a,a):b.removeAttribute(a):b.setAttribute(a,c)}},activeLang:function(){var b=[],a={},c,e,f=/:\/\/|^\.*\//,h=function(a,c,b){return c&&b&&-1!==d.inArray(c,b.availabeLangs||[])?(a.loading=!0,b=b.langSrc,f.test(b)||(b=g.cfg.basePath+b),g.loader.loadScript(b+c+".js",function(){a.langObj[c]?(a.loading=!1,l(a,!0)):d(function(){a.langObj[c]&&l(a,!0);a.loading=!1})}),!0):!1},i=function(b){a[b]&&a[b].forEach(function(a){a.callback()})},
|
17
|
-
l=function(a,b){if(a.activeLang!=c&&a.activeLang!==e){var d=n[a.module].options;if(a.langObj[c]||e&&a.langObj[e])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[e],c),i(a.module);else if(!b&&!h(a,c,d)&&!h(a,e,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),i(a.module)}};return function(f){if("string"==typeof f&&f!==c)c=f,e=c.split("-")[0],c==e&&(e=!1),d.each(b,function(a,b){l(b)});else if("object"==typeof f)if(f.register)a[f.register]||(a[f.register]=[]),a[f.register].push(f),
|
18
|
-
f.callback();else{if(!f.activeLang)f.activeLang="";b.push(f);l(f)}return c}}()});d.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){g[b]=function(b,d,f,h){"string"==typeof b&&(b=b.split(s));var i={};b.forEach(function(b){i[b]=g[a](b,d,f,h)});return i}});g.isReady("webshimLocalization",!0)});
|
19
|
-
(function(d,g){var o=d.webshims.browserVersion;if(!(d.browser.mozilla&&5<o)&&(!d.browser.msie||12>o&&7<o)){var j={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(d,g){d.getAttribute("role")||d.setAttribute("role",g)};d.webshims.addReady(function(n,o){d.each(j,function(h,i){for(var g=d(h,n).add(o.filter(h)),k=0,j=g.length;k<j;k++)m(g[k],i)});if(n===g){var k=g.getElementsByTagName("header")[0],p=g.getElementsByTagName("footer"),i=p.length;
|
20
|
-
k&&!d(k).closest("section, article")[0]&&m(k,"banner");i&&(k=p[i-1],d(k).closest("section, article")[0]||m(k,"contentinfo"))}})}})(jQuery,document);
|
21
|
-
jQuery.webshims.register("details",function(d,g,o,j,m,n){var s=function(i){var h=d(i).parent("details");if(h[0]&&h.children(":first").get(0)===i)return h},k=function(i,h){var i=d(i),h=d(h),g=d.data(h[0],"summaryElement");d.data(i[0],"detailsElement",h);if(!g||i[0]!==g[0])g&&(g.hasClass("fallback-summary")?g.remove():g.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),d.data(h[0],
|
22
|
-
"summaryElement",i),h.prop("open",h.prop("open"))};g.createElement("summary",function(){var i=s(this);if(i&&!d.data(this,"detailsElement")){var h,l,j=d.attr(this,"tabIndex")||"0";k(this,i);d(this).bind("focus.summaryPolyfill",function(){d(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){d(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){d(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){d(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill",
|
23
|
-
function(g){var i=s(this);if(i){if(!l&&g.originalEvent)return l=!0,g.stopImmediatePropagation(),g.preventDefault(),d(this).trigger("click"),l=!1;clearTimeout(h);h=setTimeout(function(){g.isDefaultPrevented()||i.prop("open",!i.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(g){if((13==g.keyCode||32==g.keyCode)&&!g.isDefaultPrevented())l=!0,g.preventDefault(),d(this).trigger("click"),l=!1}).attr({tabindex:j,role:"button"}).prepend('<span class="details-open-indicator" />');g.moveToFirstEvent(this,
|
24
|
-
"click")}});var p;g.defineNodeNamesBooleanProperty("details","open",function(g){var h=d(d.data(this,"summaryElement"));if(h){var k=g?"removeClass":"addClass",j=d(this);if(!p&&n.animate){j.stop().css({width:"",height:""});var m={width:j.width(),height:j.height()}}h.attr("aria-expanded",""+g);j[k]("closed-details-summary").children().not(h[0])[k]("closed-details-child");!p&&n.animate&&(g={width:j.width(),height:j.height()},j.css(m).animate(g,{complete:function(){d(this).css({width:"",height:""})}}))}});
|
25
|
-
g.createElement("details",function(){p=!0;var g=d.data(this,"summaryElement");g||(g=d("> summary:first-child",this),g[0]?k(g,this):(d(this).prependPolyfill('<summary class="fallback-summary">'+n.text+"</summary>"),d.data(this,"summaryElement")));d.prop(this,"open",d.prop(this,"open"));p=!1})});
|
1
|
+
(function(d){if(!Modernizr.genericDOM){var g=document,o,j,m=/<([\w:]+)/,n={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};d.webshims.fixHTML5=function(d){if("string"!=typeof d||n[(m.exec(d)||["",""])[1].toLowerCase()])return d;if(!j){o=g.body;if(!o)return d;j=g.createElement("div");j.style.display="none"}var k=j.cloneNode(!1);o.appendChild(k);k.innerHTML=d;o.removeChild(k);return k.childNodes}}})(jQuery);
|
2
|
+
jQuery.webshims.register("dom-extend",function(d,g,o,j,m){var n=g.modules,s=/\s*,\s*/,k={},p={},i={},h={},l={},t=d.fn.val,B=function(b,a,c,e,f){return f?t.call(d(b)):t.call(d(b),c)};d.fn.val=function(b){var a=this[0];arguments.length&&null==b&&(b="");if(!arguments.length)return!a||1!==a.nodeType?t.call(this):d.prop(a,"value",b,"val",!0);if(d.isArray(b))return t.apply(this,arguments);var c=d.isFunction(b);return this.each(function(e){a=this;1===a.nodeType&&(c?(e=b.call(a,e,d.prop(a,"value",m,"val",
|
3
|
+
!0)),null==e&&(e=""),d.prop(a,"value",e,"val")):d.prop(a,"value",b,"val"))})};var v="_webshimsLib"+Math.round(1E3*Math.random()),x=function(b,a,c){b=b.jquery?b[0]:b;if(!b)return c||{};var e=d.data(b,v);c!==m&&(e||(e=d.data(b,v,{})),a&&(e[a]=c));return a?e&&e[a]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(b){d.fn[b.name]=function(){return this.map(function(){var a=x(this,
|
4
|
+
"shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(b){k[b]=d[b];d[b]=function(a,c,e,f,q){var y="val"==f,g=!y?k[b]:B;if(!a||!p[c]||1!==a.nodeType||!y&&f&&"attr"==b&&d.attrFn[c])return g(a,c,e,f,q);var z=(a.nodeName||"").toLowerCase(),u=i[z],w="attr"==b&&(!1===e||null===e)?"removeAttr":b,h,t,n;u||(u=i["*"]);u&&(u=u[c]);u&&(h=u[w]);if(h){if("value"==c)t=h.isVal,h.isVal=y;if("removeAttr"===w)return h.value.call(a);if(e===m)return h.get?h.get.call(a):h.value;h.set&&
|
5
|
+
("attr"==b&&!0===e&&(e=c),n=h.set.call(a,e));if("value"==c)h.isVal=t}else n=g(a,c,e,f,q);if((e!==m||"removeAttr"===w)&&l[z]&&l[z][c]){var j;j="removeAttr"==w?!1:"prop"==w?!!e:!0;l[z][c].forEach(function(c){if(!c.only||(c.only="prop"==b)||"attr"==c.only&&"prop"!=b)c.call(a,e,j,y?"val":w,b)})}return n};h[b]=function(a,c,e){i[a]||(i[a]={});i[a][c]||(i[a][c]={});var f=i[a][c][b],q=function(a,d,f){return d&&d[a]?d[a]:f&&f[a]?f[a]:"prop"==b&&"value"==c?function(a){return e.isVal?B(this,c,a,!1,0===arguments.length):
|
6
|
+
k[b](this,c,a)}:"prop"==b&&"value"==a&&e.value.apply?function(a){var d=k[b](this,c);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(a){return k[b](this,c,a)}};i[a][c][b]=e;if(e.value===m){if(!e.set)e.set=e.writeable?q("set",e,f):g.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+a;}:d.noop;if(!e.get)e.get=q("get",e,f)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=q(a,f))})}});var C=!d.browser.msie||8<parseInt(d.browser.version,10),D=function(){var b=g.getPrototypeOf(j.createElement("foobar")),
|
7
|
+
a=Object.prototype.hasOwnProperty;return function(c,d,f){var q=j.createElement(c),h=g.getPrototypeOf(q);if(C&&h&&b!==h&&(!q[d]||!a.call(q,d))){var i=q[d];f._supvalue=function(){return i&&i.apply?i.apply(this,arguments):i};h[d]=f.value}else f._supvalue=function(){var a=x(this,"propValue");return a&&a[d]&&a[d].apply?a[d].apply(this,arguments):a&&a[d]},r.extendValue(c,d,f.value);f.value._supvalue=f._supvalue}}(),r=function(){var b={};g.addReady(function(a,c){var e={},h=function(b){e[b]||(e[b]=d(a.getElementsByTagName(b)),
|
8
|
+
c[0]&&d.nodeName(c[0],b)&&(e[b]=e[b].add(c)))};d.each(b,function(a,c){h(a);!c||!c.forEach?g.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){e[a].each(c)})});e=null});var a,c=d([]),e=function(c,e){b[c]?b[c].push(e):b[c]=[e];d.isDOMReady&&(a||d(j.getElementsByTagName(c))).each(e)};return{createTmpCache:function(b){d.isDOMReady&&(a=a||d(j.getElementsByTagName(b)));return a||c},flushTmpCache:function(){a=null},content:function(a,c){e(a,function(){var a=d.attr(this,c);null!=a&&d.attr(this,
|
9
|
+
c,a)})},createElement:function(a,c){e(a,c)},extendValue:function(a,c,b){e(a,function(){d(this).each(function(){x(this,"propValue",{})[c]=this[c];this[c]=b})})}}}(),A=function(b,a){if(b.defaultValue===m)b.defaultValue="";if(!b.removeAttr)b.removeAttr={value:function(){b[a||"prop"].set.call(this,b.defaultValue);b.removeAttr._supvalue.call(this)}}};d.extend(g,{getID:function(){var b=(new Date).getTime();return function(a){var a=d(a),c=a.attr("id");c||(b++,c="ID-"+b,a.attr("id",c));return c}}(),extendUNDEFProp:function(b,
|
10
|
+
a){d.each(a,function(a,d){a in b||(b[a]=d)})},createPropDefault:A,data:x,moveToFirstEvent:function(){var b=d._data?"_data":"data";return function(a,c,e){if((a=(d[b](a,"events")||{})[c])&&1<a.length)c=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,c):a.unshift(c)}}(),addShadowDom:function(b,a,c){c=c||{};b.jquery&&(b=b[0]);a.jquery&&(a=a[0]);if(!c.shadowFocusElement)c.shadowFocusElement=a;var e=d.data(b,v)||d.data(b,v,{}),f=d.data(a,v)||d.data(a,v,{});e.hasShadow=a;f.nativeElement=
|
11
|
+
b;f.shadowData=e.shadowData={nativeElement:b,shadowElement:a,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){x(this,"shadowData",f.shadowData)});if(c.data)e.shadowData.data=c.data,f.shadowData.data=c.data;c=null},propTypes:{standard:function(b){A(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){A(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,
|
12
|
+
""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}}},reflectProperties:function(b,a){"string"==typeof a&&(a=a.split(s));a.forEach(function(a){g.defineNodeNamesProperty(b,a,{prop:{set:function(b){d.attr(this,a,b)},get:function(){return d.attr(this,a)||""}}})})},defineNodeNameProperty:function(b,a,c){p[a]=!0;if(c.reflect)g.propTypes[c.propType||"standard"](c);["prop","attr","removeAttr"].forEach(function(e){var f=c[e];f&&(f="prop"===e?d.extend({writeable:!0},f):d.extend({},
|
13
|
+
f,{writeable:!0}),h[e](b,a,f),"*"!=b&&g.cfg.extendNative&&"prop"==e&&f.value&&d.isFunction(f.value)&&D(b,a,f),c[e]=f)});c.initAttr&&r.content(b,a);return c},defineNodeNameProperties:function(b,a,c,d){for(var f in a)!d&&a[f].initAttr&&r.createTmpCache(b),c&&(a[f][c]?g.log("override: "+b+"["+f+"] for "+c):(a[f][c]={},["value","set","get"].forEach(function(b){b in a[f]&&(a[f][c][b]=a[f][b],delete a[f][b])}))),a[f]=g.defineNodeNameProperty(b,f,a[f]);d||r.flushTmpCache();return a},createElement:function(b,
|
14
|
+
a,c){var e;d.isFunction(a)&&(a={after:a});r.createTmpCache(b);a.before&&r.createElement(b,a.before);c&&(e=g.defineNodeNameProperties(b,c,!1,!0));a.after&&r.createElement(b,a.after);r.flushTmpCache();return e},onNodeNamesPropertyModify:function(b,a,c,e){"string"==typeof b&&(b=b.split(s));d.isFunction(c)&&(c={set:c});b.forEach(function(b){l[b]||(l[b]={});"string"==typeof a&&(a=a.split(s));c.initAttr&&r.createTmpCache(b);a.forEach(function(a){l[b][a]||(l[b][a]=[],p[a]=!0);if(c.set){if(e)c.set.only=e;
|
15
|
+
l[b][a].push(c.set)}c.initAttr&&r.content(b,a)});r.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,a,c){c||(c={});if(d.isFunction(c))c.set=c;g.defineNodeNamesProperty(b,a,{attr:{set:function(b){this.setAttribute(a,b);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?m:a}},removeAttr:{value:function(){this.removeAttribute(a);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(b,a,c){if(b.nodeName){if(c===
|
16
|
+
m)return c=(b.attributes[a]||{}).value,null==c?m:c;"boolean"==typeof c?c?b.setAttribute(a,a):b.removeAttribute(a):b.setAttribute(a,c)}},activeLang:function(){var b=[],a={},c,e,f=/:\/\/|^\.*\//,h=function(a,c,b){return c&&b&&-1!==d.inArray(c,b.availabeLangs||[])?(a.loading=!0,b=b.langSrc,f.test(b)||(b=g.cfg.basePath+b),g.loader.loadScript(b+c+".js",function(){a.langObj[c]?(a.loading=!1,l(a,!0)):d(function(){a.langObj[c]&&l(a,!0);a.loading=!1})}),!0):!1},i=function(b){a[b]&&a[b].forEach(function(a){a.callback()})},
|
17
|
+
l=function(a,b){if(a.activeLang!=c&&a.activeLang!==e){var d=n[a.module].options;if(a.langObj[c]||e&&a.langObj[e])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[e],c),i(a.module);else if(!b&&!h(a,c,d)&&!h(a,e,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),i(a.module)}};return function(f){if("string"==typeof f&&f!==c)c=f,e=c.split("-")[0],c==e&&(e=!1),d.each(b,function(a,b){l(b)});else if("object"==typeof f)if(f.register)a[f.register]||(a[f.register]=[]),a[f.register].push(f),
|
18
|
+
f.callback();else{if(!f.activeLang)f.activeLang="";b.push(f);l(f)}return c}}()});d.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){g[b]=function(b,d,f,h){"string"==typeof b&&(b=b.split(s));var i={};b.forEach(function(b){i[b]=g[a](b,d,f,h)});return i}});g.isReady("webshimLocalization",!0)});
|
19
|
+
(function(d,g){var o=d.webshims.browserVersion;if(!(d.browser.mozilla&&5<o)&&(!d.browser.msie||12>o&&7<o)){var j={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(d,g){d.getAttribute("role")||d.setAttribute("role",g)};d.webshims.addReady(function(n,o){d.each(j,function(h,i){for(var g=d(h,n).add(o.filter(h)),k=0,j=g.length;k<j;k++)m(g[k],i)});if(n===g){var k=g.getElementsByTagName("header")[0],p=g.getElementsByTagName("footer"),i=p.length;
|
20
|
+
k&&!d(k).closest("section, article")[0]&&m(k,"banner");i&&(k=p[i-1],d(k).closest("section, article")[0]||m(k,"contentinfo"))}})}})(jQuery,document);
|
21
|
+
jQuery.webshims.register("details",function(d,g,o,j,m,n){var s=function(i){var h=d(i).parent("details");if(h[0]&&h.children(":first").get(0)===i)return h},k=function(i,h){var i=d(i),h=d(h),g=d.data(h[0],"summaryElement");d.data(i[0],"detailsElement",h);if(!g||i[0]!==g[0])g&&(g.hasClass("fallback-summary")?g.remove():g.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),d.data(h[0],
|
22
|
+
"summaryElement",i),h.prop("open",h.prop("open"))};g.createElement("summary",function(){var i=s(this);if(i&&!d.data(this,"detailsElement")){var h,l,j=d.attr(this,"tabIndex")||"0";k(this,i);d(this).bind("focus.summaryPolyfill",function(){d(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){d(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){d(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){d(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill",
|
23
|
+
function(g){var i=s(this);if(i){if(!l&&g.originalEvent)return l=!0,g.stopImmediatePropagation(),g.preventDefault(),d(this).trigger("click"),l=!1;clearTimeout(h);h=setTimeout(function(){g.isDefaultPrevented()||i.prop("open",!i.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(g){if((13==g.keyCode||32==g.keyCode)&&!g.isDefaultPrevented())l=!0,g.preventDefault(),d(this).trigger("click"),l=!1}).attr({tabindex:j,role:"button"}).prepend('<span class="details-open-indicator" />');g.moveToFirstEvent(this,
|
24
|
+
"click")}});var p;g.defineNodeNamesBooleanProperty("details","open",function(g){var h=d(d.data(this,"summaryElement"));if(h){var k=g?"removeClass":"addClass",j=d(this);if(!p&&n.animate){j.stop().css({width:"",height:""});var m={width:j.width(),height:j.height()}}h.attr("aria-expanded",""+g);j[k]("closed-details-summary").children().not(h[0])[k]("closed-details-child");!p&&n.animate&&(g={width:j.width(),height:j.height()},j.css(m).animate(g,{complete:function(){d(this).css({width:"",height:""})}}))}});
|
25
|
+
g.createElement("details",function(){p=!0;var g=d.data(this,"summaryElement");g||(g=d("> summary:first-child",this),g[0]?k(g,this):(d(this).prependPolyfill('<summary class="fallback-summary">'+n.text+"</summary>"),d.data(this,"summaryElement")));d.prop(this,"open",d.prop(this,"open"));p=!1})});
|
@@ -1,54 +1,55 @@
|
|
1
|
-
(function(c){if(!Modernizr.genericDOM){var e=document,
|
2
|
-
jQuery.webshims.register("dom-extend",function(c,e,
|
3
|
-
!0)),null==f&&(f=""),c.prop(b,"value",f,"val")):c.prop(b,"value",a,"val"))})};var
|
4
|
-
"shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){
|
5
|
-
("attr"==a&&!0===f&&(f=d),
|
6
|
-
|
7
|
-
b=Object.prototype.hasOwnProperty;return function(d,c,n){var g=
|
8
|
-
d[0]&&c.nodeName(d[0],a)&&(f[a]=f[a].add(d)))};c.each(a,function(a,b){g(a);!b||!b.forEach?e.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){f[a].each(b)})});f=null});var b,d=c([]),f=function(d,f){a[d]?a[d].push(f):a[d]=[f];c.isDOMReady&&(b||c(
|
9
|
-
b,a)})},createElement:function(a,b){f(a,b)},extendValue:function(a,b,d){f(a,function(){c(this).each(function(){
|
10
|
-
b){c.each(b,function(b,c){b in a||(a[b]=c)})},createPropDefault:
|
11
|
-
a;g.shadowData=f.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){
|
12
|
-
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,b){"string"==typeof b&&(b=b.split(
|
13
|
-
n,{writeable:!0}),
|
14
|
-
b,d){var f;c.isFunction(b)&&(b={after:b});
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
g.callback();else{if(!g.activeLang)g.activeLang="";a.push(g);
|
19
|
-
(function(c,e){var
|
20
|
-
|
21
|
-
(function(c,e,
|
22
|
-
|
23
|
-
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"
|
31
|
-
|
32
|
-
"
|
33
|
-
|
34
|
-
(function(c){var e=window.Modernizr,
|
35
|
-
|
36
|
-
c("input",
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
c.
|
44
|
-
|
45
|
-
return
|
46
|
-
j
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
(e.
|
1
|
+
(function(c){if(!Modernizr.genericDOM){var e=document,i,h,m=/<([\w:]+)/,o={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};c.webshims.fixHTML5=function(c){if("string"!=typeof c||o[(m.exec(c)||["",""])[1].toLowerCase()])return c;if(!h){i=e.body;if(!i)return c;h=e.createElement("div");h.style.display="none"}var q=h.cloneNode(!1);i.appendChild(q);q.innerHTML=c;i.removeChild(q);return q.childNodes}}})(jQuery);
|
2
|
+
jQuery.webshims.register("dom-extend",function(c,e,i,h,m){var o=e.modules,l=/\s*,\s*/,q={},r={},p={},j={},s={},w=c.fn.val,v=function(a,b,d,f,n){return n?w.call(c(a)):w.call(c(a),d)};c.fn.val=function(a){var b=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!b||1!==b.nodeType?w.call(this):c.prop(b,"value",a,"val",!0);if(c.isArray(a))return w.apply(this,arguments);var d=c.isFunction(a);return this.each(function(f){b=this;1===b.nodeType&&(d?(f=a.call(b,f,c.prop(b,"value",m,"val",
|
3
|
+
!0)),null==f&&(f=""),c.prop(b,"value",f,"val")):c.prop(b,"value",a,"val"))})};var t="_webshimsLib"+Math.round(1E3*Math.random()),u=function(a,b,d){a=a.jquery?a[0]:a;if(!a)return d||{};var f=c.data(a,t);d!==m&&(f||(f=c.data(a,t,{})),b&&(f[b]=d));return b?f&&f[b]:f};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){c.fn[a.name]=function(){return this.map(function(){var b=u(this,
|
4
|
+
"shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){q[a]=c[a];c[a]=function(b,d,f,n,g){var k="val"==n,e=!k?q[a]:v;if(!b||!r[d]||1!==b.nodeType||!k&&n&&"attr"==a&&c.attrFn[d])return e(b,d,f,n,g);var z=(b.nodeName||"").toLowerCase(),o=p[z],l="attr"==a&&(!1===f||null===f)?"removeAttr":a,h,x,j;o||(o=p["*"]);o&&(o=o[d]);o&&(h=o[l]);if(h){if("value"==d)x=h.isVal,h.isVal=k;if("removeAttr"===l)return h.value.call(b);if(f===m)return h.get?h.get.call(b):h.value;h.set&&
|
5
|
+
("attr"==a&&!0===f&&(f=d),j=h.set.call(b,f));if("value"==d)h.isVal=x}else j=e(b,d,f,n,g);if((f!==m||"removeAttr"===l)&&s[z]&&s[z][d]){var i;i="removeAttr"==l?!1:"prop"==l?!!f:!0;s[z][d].forEach(function(d){if(!d.only||(d.only="prop"==a)||"attr"==d.only&&"prop"!=a)d.call(b,f,i,k?"val":l,a)})}return j};j[a]=function(b,d,f){p[b]||(p[b]={});p[b][d]||(p[b][d]={});var n=p[b][d][a],g=function(b,c,n){return c&&c[b]?c[b]:n&&n[b]?n[b]:"prop"==a&&"value"==d?function(b){return f.isVal?v(this,d,b,!1,0===arguments.length):
|
6
|
+
q[a](this,d,b)}:"prop"==a&&"value"==b&&f.value.apply?function(b){var c=q[a](this,d);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(b){return q[a](this,d,b)}};p[b][d][a]=f;if(f.value===m){if(!f.set)f.set=f.writeable?g("set",f,n):e.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:c.noop;if(!f.get)f.get=g("get",f,n)}["value","get","set"].forEach(function(a){f[a]&&(f["_sup"+a]=g(a,n))})}});var y=!c.browser.msie||8<parseInt(c.browser.version,10),g=function(){var a=e.getPrototypeOf(h.createElement("foobar")),
|
7
|
+
b=Object.prototype.hasOwnProperty;return function(d,c,n){var g=h.createElement(d),o=e.getPrototypeOf(g);if(y&&o&&a!==o&&(!g[c]||!b.call(g,c))){var l=g[c];n._supvalue=function(){return l&&l.apply?l.apply(this,arguments):l};o[c]=n.value}else n._supvalue=function(){var a=u(this,"propValue");return a&&a[c]&&a[c].apply?a[c].apply(this,arguments):a&&a[c]},k.extendValue(d,c,n.value);n.value._supvalue=n._supvalue}}(),k=function(){var a={};e.addReady(function(b,d){var f={},g=function(a){f[a]||(f[a]=c(b.getElementsByTagName(a)),
|
8
|
+
d[0]&&c.nodeName(d[0],a)&&(f[a]=f[a].add(d)))};c.each(a,function(a,b){g(a);!b||!b.forEach?e.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){f[a].each(b)})});f=null});var b,d=c([]),f=function(d,f){a[d]?a[d].push(f):a[d]=[f];c.isDOMReady&&(b||c(h.getElementsByTagName(d))).each(f)};return{createTmpCache:function(a){c.isDOMReady&&(b=b||c(h.getElementsByTagName(a)));return b||d},flushTmpCache:function(){b=null},content:function(a,b){f(a,function(){var a=c.attr(this,b);null!=a&&c.attr(this,
|
9
|
+
b,a)})},createElement:function(a,b){f(a,b)},extendValue:function(a,b,d){f(a,function(){c(this).each(function(){u(this,"propValue",{})[b]=this[b];this[b]=d})})}}}(),x=function(a,b){if(a.defaultValue===m)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};c.extend(e,{getID:function(){var a=(new Date).getTime();return function(b){var b=c(b),d=b.attr("id");d||(a++,d="ID-"+a,b.attr("id",d));return d}}(),extendUNDEFProp:function(a,
|
10
|
+
b){c.each(b,function(b,c){b in a||(a[b]=c)})},createPropDefault:x,data:u,moveToFirstEvent:function(){var a=c._data?"_data":"data";return function(b,d,f){if((b=(c[a](b,"events")||{})[d])&&1<b.length)d=b.pop(),f||(f="bind"),"bind"==f&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);if(!d.shadowFocusElement)d.shadowFocusElement=b;var f=c.data(a,t)||c.data(a,t,{}),g=c.data(b,t)||c.data(b,t,{});f.hasShadow=b;g.nativeElement=
|
11
|
+
a;g.shadowData=f.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){u(this,"shadowData",g.shadowData)});if(d.data)f.shadowData.data=d.data,g.shadowData.data=d.data;d=null},propTypes:{standard:function(a){x(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){x(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,
|
12
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,b){"string"==typeof b&&(b=b.split(l));b.forEach(function(b){e.defineNodeNamesProperty(a,b,{prop:{set:function(a){c.attr(this,b,a)},get:function(){return c.attr(this,b)||""}}})})},defineNodeNameProperty:function(a,b,d){r[b]=!0;if(d.reflect)e.propTypes[d.propType||"standard"](d);["prop","attr","removeAttr"].forEach(function(f){var n=d[f];n&&(n="prop"===f?c.extend({writeable:!0},n):c.extend({},
|
13
|
+
n,{writeable:!0}),j[f](a,b,n),"*"!=a&&e.cfg.extendNative&&"prop"==f&&n.value&&c.isFunction(n.value)&&g(a,b,n),d[f]=n)});d.initAttr&&k.content(a,b);return d},defineNodeNameProperties:function(a,b,d,c){for(var g in b)!c&&b[g].initAttr&&k.createTmpCache(a),d&&(b[g][d]?e.log("override: "+a+"["+g+"] for "+d):(b[g][d]={},["value","set","get"].forEach(function(a){a in b[g]&&(b[g][d][a]=b[g][a],delete b[g][a])}))),b[g]=e.defineNodeNameProperty(a,g,b[g]);c||k.flushTmpCache();return b},createElement:function(a,
|
14
|
+
b,d){var f;c.isFunction(b)&&(b={after:b});k.createTmpCache(a);b.before&&k.createElement(a,b.before);d&&(f=e.defineNodeNameProperties(a,d,!1,!0));b.after&&k.createElement(a,b.after);k.flushTmpCache();return f},onNodeNamesPropertyModify:function(a,b,d,f){"string"==typeof a&&(a=a.split(l));c.isFunction(d)&&(d={set:d});a.forEach(function(a){s[a]||(s[a]={});"string"==typeof b&&(b=b.split(l));d.initAttr&&k.createTmpCache(a);b.forEach(function(b){s[a][b]||(s[a][b]=[],r[b]=!0);if(d.set){if(f)d.set.only=f;
|
15
|
+
s[a][b].push(d.set)}d.initAttr&&k.content(a,b)});k.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,b,d){d||(d={});if(c.isFunction(d))d.set=d;e.defineNodeNamesProperty(a,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?m:b}},removeAttr:{value:function(){this.removeAttribute(b);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,b,d){if(a.nodeName){if(d===
|
16
|
+
m)return d=(a.attributes[b]||{}).value,null==d?m:d;"boolean"==typeof d?d?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var a=[],b={},d,f,g=/:\/\/|^\.*\//,k=function(a,b,d){return b&&d&&-1!==c.inArray(b,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,g.test(d)||(d=e.cfg.basePath+d),e.loader.loadScript(d+b+".js",function(){a.langObj[b]?(a.loading=!1,h(a,!0)):c(function(){a.langObj[b]&&h(a,!0);a.loading=!1})}),!0):!1},l=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},
|
17
|
+
h=function(a,b){if(a.activeLang!=d&&a.activeLang!==f){var c=o[a.module].options;if(a.langObj[d]||f&&a.langObj[f])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[f],d),l(a.module);else if(!b&&!k(a,d,c)&&!k(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),l(a.module)}};return function(g){if("string"==typeof g&&g!==d)d=g,f=d.split("-")[0],d==f&&(f=!1),c.each(a,function(a,b){h(b)});else if("object"==typeof g)if(g.register)b[g.register]||(b[g.register]=[]),b[g.register].push(g),
|
18
|
+
g.callback();else{if(!g.activeLang)g.activeLang="";a.push(g);h(g)}return d}}()});c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){e[a]=function(a,c,g,k){"string"==typeof a&&(a=a.split(l));var o={};a.forEach(function(a){o[a]=e[b](a,c,g,k)});return o}});e.isReady("webshimLocalization",!0)});
|
19
|
+
(function(c,e){var i=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<i)&&(!c.browser.msie||12>i&&7<i)){var h={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(c,e){c.getAttribute("role")||c.setAttribute("role",e)};c.webshims.addReady(function(o,l){c.each(h,function(e,h){for(var i=c(e,o).add(l.filter(e)),p=0,t=i.length;p<t;p++)m(i[p],h)});if(o===e){var i=e.getElementsByTagName("header")[0],r=e.getElementsByTagName("footer"),p=r.length;
|
20
|
+
i&&!c(i).closest("section, article")[0]&&m(i,"banner");p&&(i=r[p-1],c(i).closest("section, article")[0]||m(i,"contentinfo"))}})}})(jQuery,document);
|
21
|
+
(function(c,e,i){var h=e.audio&&e.video,m=!1;if(h)c=document.createElement("video"),e.videoBuffered="buffered"in c,m="loop"in c,i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),e.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:e.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(c,e,i,r,p){var j=e.mediaelement,s=e.cfg.mediaelement,
|
22
|
+
w=function(a,b){var a=c(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var f=a.attr("type");if(f)d.type=f,d.container=c.trim(f.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),f=j.getTypeForSrc(d.src,b))d.type=f,d.container=f;if(f=a.attr("media"))d.media=f;return d},v=swfobject.hasFlashPlayerVersion("9.0.115"),t=function(){e.ready("mediaelement-swf",function(){if(!j.createSWF)e.modules["mediaelement-swf"].test=
|
23
|
+
c.noop,e.reTest(["mediaelement-swf"],h)})};j.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf",
|
24
|
+
"asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};j.mimeTypes.source=c.extend({},j.mimeTypes.audio,j.mimeTypes.video);j.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||-1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],d;c.each(j.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};j.srces=function(a,b){a=c(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),
|
25
|
+
c.isArray(b)||(b=[b]),b.forEach(function(b){var c=r.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});else{var b=[],d=a[0].nodeName.toLowerCase(),f=w(a,d);f.src?b.push(f):c("source",a).each(function(){f=w(this,d);f.src&&b.push(f)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==p&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));j.srces(this,
|
26
|
+
a);c(this).mediaLoad()})};j.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");j.canSwfPlaySrces=function(a,b){var d="";v&&(a=c(a),b=b||j.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&-1!=j.swfMimeTypes.indexOf(b.container))return d=b,!1}));return d};var u={};j.canNativePlaySrces=function(a,
|
27
|
+
b){var d="";if(h){var a=c(a),f=(a[0].nodeName||"").toLowerCase();if(!u[f])return d;b=b||j.srces(a);c.each(b,function(b,c){if(c.type&&u[f].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};j.setError=function(a,b){b||(b="can't play sources");c(a).pause().data("mediaerror",b);e.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var y=function(){var a;return function(b,c,f){e.ready("mediaelement-swf",function(){j.createSWF?j.createSWF(b,
|
28
|
+
c,f):a||(a=!0,t(),y(b,c,f))})}}(),g=function(a,b,c,f,e){c||!1!==c&&b&&"flash"==b.isActive?(c=j.canSwfPlaySrces(a,f))?y(a,c,b):e?j.setError(a,!1):g(a,b,!1,f,!0):(c=j.canNativePlaySrces(a,f))?b&&"flash"==b.isActive&&j.setActive(a,"html5",b):e?(j.setError(a,!1),b&&"flash"==b.isActive&&j.setActive(a,"html5",b)):g(a,b,!0,f,!0)},k=/^(?:embed|object|datalist)$/i,x=function(a,b){var d=e.data(a,"mediaelementBase")||e.data(a,"mediaelementBase",{}),f=j.srces(a),n=a.parentNode;clearTimeout(d.loadTimer);c.data(a,
|
29
|
+
"mediaerror",!1);if(f.length&&n&&!(1!=n.nodeType||k.test(n.nodeName||"")))b=b||e.data(a,"mediaelement"),g(a,b,s.preferFlash||p,f)};c(r).bind("ended",function(a){var b=e.data(a.target,"mediaelement");(!m||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,"paused")&&c.prop(a.target,"loop")&&c(a.target).prop("currentTime",0).play()},1)});m||e.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=e.defineNodeNameProperty(a,
|
30
|
+
"load",{prop:{value:function(){var a=e.data(this,"mediaelement");x(this,a);h&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});u[a]=e.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var f="";h&&u[a].prop._supvalue&&(f=u[a].prop._supvalue.call(this,b),"no"==f&&(f=""));!f&&v&&(b=c.trim((b||"").split(";")[0]),-1!=j.swfMimeTypes.indexOf(b)&&(f="maybe"));return f}}})});e.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=
|
31
|
+
this,b=e.data(a,"mediaelementBase")||e.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){x(a);a=null},9)}});i=function(){e.addReady(function(a,b){c("video, audio",a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<e.browserVersion&&c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():x(this);if(h){var a,b,g=this,k=function(){var a=c.prop(g,
|
32
|
+
"buffered");if(a){for(var b="",d=0,f=a.length;d<f;d++)b+=a.end(d);return b}},i=function(){var a=k();a!=b&&(b=a,c(g).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(b=k());clearTimeout(a);a=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};h?(e.isReady("mediaelement-core",!0),i(),v&&e.ready("WINDOWLOAD mediaelement",t)):e.ready("mediaelement-swf",i)})})(jQuery,Modernizr,
|
33
|
+
jQuery.webshims);
|
34
|
+
(function(c){var e=window.Modernizr,i=c.webshims,h=i.bugs,m=c('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),o=function(){if(m[0].querySelector)try{h.findRequired=!m[0].querySelector("select:required")}catch(c){h.findRequired=!1}};h.findRequired=!1;h.validationMessage=!1;h.valueAsNumberSet=!1;i.capturingEventPrevented=function(e){if(!e._isPolyfilled){var h=e.isDefaultPrevented,
|
35
|
+
i=e.preventDefault;e.preventDefault=function(){clearTimeout(c.data(e.target,e.type+"DefaultPrevented"));c.data(e.target,e.type+"DefaultPrevented",setTimeout(function(){c.removeData(e.target,e.type+"DefaultPrevented")},30));return i.apply(this,arguments)};e.isDefaultPrevented=function(){return!(!h.apply(this,arguments)&&!c.data(e.target,e.type+"DefaultPrevented"))};e._isPolyfilled=!0}};if(!e.formvalidation||h.bustedValidity)o();else if(i.capturingEvents(["input"]),i.capturingEvents(["invalid"],!0),
|
36
|
+
e.bugfreeformvalidation=!0,window.opera||c.browser.webkit||window.testGoodWithFix){var l=c("input",m).eq(0),q,r=function(c){i.loader.loadList(["dom-extend"]);i.ready("dom-extend",c)},p=function(h){var j=["form-extend","form-message","form-native-fix"];h&&(h.preventDefault(),h.stopImmediatePropagation());clearTimeout(q);setTimeout(function(){m&&(m.remove(),m=l=null)},9);if(!e.bugfreeformvalidation)i.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),i.modules["form-extend"].test=c.noop;i.isReady("form-number-date-api")&&
|
37
|
+
j.push("form-number-date-api");i.reTest(j);if(l)try{l.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&r(function(){i.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(e){!e&&this&&c.prop(this,"value",c.prop(this,"value"))}});i.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(e){if(!e&&this)e=c(this).val(),(c("option:last-child",this)[0]||{}).selected=!0,c(this).val(e)}})})}catch(o){}(c.browser.opera||window.testGoodWithFix)&&
|
38
|
+
r(function(){var h=function(c){c.preventDefault()};["form","input","textarea","select"].forEach(function(e){var j=i.defineNodeNameProperty(e,"checkValidity",{prop:{value:function(){i.fromSubmit||c(this).bind("invalid.checkvalidity",h);i.fromCheckValidity=!0;var g=j.prop._supvalue.apply(this,arguments);i.fromSubmit||c(this).unbind("invalid.checkvalidity",h);i.fromCheckValidity=!1;return g}}})});e.input.list&&!(c("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&
|
39
|
+
i.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var e=this.options||[];if(!e.length){var h=c("select",this);if(h[0]&&h[0].options&&h[0].options.length)e=h[0].options}return e}}})})};m.appendTo("head");if(window.opera||window.testGoodWithFix){o();h.validationMessage=!l.prop("validationMessage");if((e.inputtypes||{}).date){try{l.prop("valueAsNumber",0)}catch(j){}h.valueAsNumberSet="1970-01-01"!=l.prop("value")}l.prop("value","")}m.bind("submit",function(c){e.bugfreeformvalidation=
|
40
|
+
!1;p(c)});q=setTimeout(function(){m&&m.triggerHandler("submit")},9);c("input, select",m).bind("invalid",p).filter('[type="submit"]').bind("click",function(c){c.stopImmediatePropagation()}).trigger("click")}})(jQuery);
|
41
|
+
jQuery.webshims.register("form-core",function(c,e,i,h,m,o){var l={radio:1},q={checkbox:1,radio:1},r=c([]),p=e.bugs,j=function(g){var g=c(g),e,i;e=r;if(l[g[0].type])i=g.prop("form"),e=(e=g[0].name)?i?c(i[e]):c(h.getElementsByName(e)).filter(function(){return!c.prop(this,"form")}):g,e=e.filter('[type="radio"]');return e},s=e.getContentValidationMessage=function(g,e,h){var a=c(g).data("errormessage")||g.getAttribute("x-moz-errormessage")||"";h&&a[h]&&(a=a[h]);"object"==typeof a&&(e=e||c.prop(g,"validity")||
|
42
|
+
{valid:1},e.valid||c.each(e,function(b,c){if(c&&"valid"!=b&&a[b])return a=a[b],!1}));if("object"==typeof a)a=a.defaultMessage;return a||""},w={number:1,range:1,date:1};c.extend(c.expr.filters,{"valid-element":function(g){return!(!c.prop(g,"willValidate")||!(c.prop(g,"validity")||{valid:1}).valid)},"invalid-element":function(g){return!(!c.prop(g,"willValidate")||(c.prop(g,"validity")||{valid:1}).valid)},"required-element":function(g){return!(!c.prop(g,"willValidate")||!c.prop(g,"required"))},"optional-element":function(g){return!!(c.prop(g,
|
43
|
+
"willValidate")&&!1===c.prop(g,"required"))},"in-range":function(g){if(!w[c.prop(g,"type")]||!c.prop(g,"willValidate"))return!1;g=c.prop(g,"validity");return!(!g||g.rangeOverflow||g.rangeUnderflow)},"out-of-range":function(g){if(!w[c.prop(g,"type")]||!c.prop(g,"willValidate"))return!1;g=c.prop(g,"validity");return!(!g||!g.rangeOverflow&&!g.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(g){c.expr.filters[g]=c.expr.filters[g+"-element"]});c.expr.filters.focus=function(c){try{var e=
|
44
|
+
c.ownerDocument;return c===e.activeElement&&(!e.hasFocus||e.hasFocus())}catch(h){}return!1};var v=c.event.customEvent||{};(p.bustedValidity||p.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var g=c.find,e=c.find.matchesSelector,i=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,a=function(a){return a+"-element"};c.find=function(){var b=Array.prototype.slice,c=function(c){var d=arguments,d=b.call(d,1,d.length);d.unshift(c.replace(i,a));return g.apply(this,
|
45
|
+
d)},f;for(f in g)g.hasOwnProperty(f)&&(c[f]=g[f]);return c}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",h.documentElement))c.find.matchesSelector=function(b,c){c=c.replace(i,a);return e.call(this,b,c)}}();var t=c.prop,u={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};c.prop=function(g,e,h){var a=t.apply(this,arguments);if(g&&"form"in g&&u[e]&&h!==m&&c(g).hasClass("form-ui-invalid")&&(c.prop(g,"validity")||{valid:1}).valid)c(g).getShadowElement().removeClass("form-ui-invalid"),
|
46
|
+
"checked"==e&&h&&j(g).not(g).removeClass("form-ui-invalid").removeAttr("aria-invalid");return a};var y=function(g,e){var h;c.each(g,function(a,b){if(b)return h="customError"==a?c.prop(e,"validationMessage"):a,!1});return h};c(h).bind(o.validityUIEvents||"focusout change refreshvalidityui",function(g){if(g.target&&"submit"!=g.target.type&&c.prop(g.target,"willValidate")){var e=c.data(g.target,"webshimsswitchvalidityclass"),h=function(){var a=c(g.target).getNativeElement().trigger("refreshCustomValidityRules")[0],
|
47
|
+
b=c.prop(a,"validity"),d=c(a).getShadowElement(),f,e,h,i;b.valid?d.hasClass("form-ui-valid")||(f="form-ui-valid",e="form-ui-invalid",i="changedvaliditystate",h="changedvalid",q[a.type]&&a.checked&&j(a).not(a).removeClass(e).addClass(f).removeAttr("aria-invalid"),c.removeData(a,"webshimsinvalidcause")):(b=y(b,a),c.data(a,"webshimsinvalidcause")!=b&&(c.data(a,"webshimsinvalidcause",b),i="changedvaliditystate"),d.hasClass("form-ui-invalid")||(f="form-ui-invalid",e="form-ui-valid",q[a.type]&&!a.checked&&
|
48
|
+
j(a).not(a).removeClass(e).addClass(f),h="changedinvalid"));f&&(d.addClass(f).removeClass(e),setTimeout(function(){c(a).trigger(h)},0));i&&setTimeout(function(){c(a).trigger(i)},0);c.removeData(g.target,"webshimsswitchvalidityclass")};e&&clearTimeout(e);"refreshvalidityui"==g.type?h():c.data(g.target,"webshimsswitchvalidityclass",setTimeout(h,9))}});v.changedvaliditystate=!0;v.refreshCustomValidityRules=!0;v.changedvalid=!0;v.changedinvalid=!0;v.refreshvalidityui=!0;e.triggerInlineForm=function(e,
|
49
|
+
h){c(e).trigger(h)};e.modules["form-core"].getGroupElements=j;p=function(){e.scrollRoot=c.browser.webkit||"BackCompat"==h.compatMode?c(h.body):c(h.documentElement)};p();e.ready("DOM",p);e.getRelOffset=function(e,h){var e=c(e),i=c(h).offset(),a;c.swap(c(e)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){a=e.offset()});i.top-=a.top;i.left-=a.left;return i};e.validityAlert=function(){var g=!c.browser.msie||7<parseInt(c.browser.version,10)?"span":"label",k,j=!1,a=!1,b,d={hideDelay:5E3,
|
50
|
+
showFor:function(e,g,h,m){d._create();var e=c(e),l=c(e).getShadowElement(),o=d.getOffsetFromBody(l);d.clear();m?this.hide():(this.getMessage(e,g),this.position(l,o),k.css({fontSize:e.css("fontSize"),fontFamily:e.css("fontFamily")}),this.show(),this.hideDelay&&(j=setTimeout(b,this.hideDelay)),c(i).bind("resize.validityalert orientationchange.validityalert emchange.validityalert",function(){clearTimeout(a);a=setTimeout(function(){d.position(l)},9)}));h||this.setFocus(l,o)},getOffsetFromBody:function(a){return e.getRelOffset(k,
|
51
|
+
a)},setFocus:function(a,d){var i=c(a).getShadowFocusElement(),j=e.scrollRoot.scrollTop(),l=(d||i.offset()).top-30,m;e.getID&&"label"==g&&k.attr("for",e.getID(i));j>l&&(e.scrollRoot.animate({scrollTop:l-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(j-l)),80)}),m=!0);try{i[0].focus()}catch(o){}m&&(e.scrollRoot.scrollTop(j),setTimeout(function(){e.scrollRoot.scrollTop(j)},0));setTimeout(function(){c(h).bind("focusout.validityalert",b)},10)},getMessage:function(a,b){b||(b=s(a[0])||a.prop("validationMessage"));
|
52
|
+
b?c("span.va-box",k).text(b):this.hide()},position:function(a,b){b=b?c.extend({},b):d.getOffsetFromBody(a);b.top+=a.outerHeight();k.css(b)},show:function(){"none"===k.css("display")&&k.css({opacity:0}).show();k.addClass("va-visible").fadeTo(400,1)},hide:function(){k.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(j);c(h).unbind(".validityalert");c(i).unbind(".validityalert");k.stop().removeAttr("for")},_create:function(){if(!k)k=d.errorBubble=c("<"+g+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
|
53
|
+
g+">").css({position:"absolute",display:"none"}),e.ready("DOM",function(){k.appendTo("body");c.fn.bgIframe&&c.browser.msie&&7>parseInt(c.browser.version,10)&&k.bgIframe()})}};b=c.proxy(d,"hide");return d}();(function(){var e,i=[],j;c(h).bind("invalid",function(a){if(!a.wrongWebkitInvalid){var b=c(a.target),d=b.getShadowElement();d.hasClass("form-ui-invalid")||(d.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){c(a.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
54
|
+
0));if(!e)e=c.Event("firstinvalid"),e.isInvalidUIPrevented=a.isDefaultPrevented,d=c.Event("firstinvalidsystem"),c(h).triggerHandler(d,{element:a.target,form:a.target.form,isInvalidUIPrevented:a.isDefaultPrevented}),b.trigger(e);e&&e.isDefaultPrevented()&&a.preventDefault();i.push(a.target);a.extraData="fix";clearTimeout(j);j=setTimeout(function(){var b={type:"lastinvalid",cancelable:!1,invalidlist:c(i)};e=!1;i=[];c(a.target).trigger(b,b)},9);d=b=null}})})();c.fn.getErrorMessage=function(){var e="",
|
55
|
+
h=this[0];h&&(e=s(h)||c.prop(h,"customValidationMessage")||c.prop(h,"validationMessage"));return e};o.replaceValidationUI&&e.ready("DOM",function(){c(h).bind("firstinvalid",function(e){e.isInvalidUIPrevented()||(e.preventDefault(),c.webshims.validityAlert.showFor(e.target,c(e.target).prop("customValidationMessage")))})})});
|
@@ -1,63 +1,64 @@
|
|
1
|
-
(function(b){if(!Modernizr.genericDOM){var d=document,i,
|
2
|
-
jQuery.webshims.register("dom-extend",function(b,d,i,
|
3
|
-
!0)),null==f&&(f=""),b.prop(c,"value",f,"val")):b.prop(c,"value",a,"val"))})};var
|
4
|
-
"shadowData");return c&&c[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){r[a]=b[a];b[a]=function(c,e,f,
|
5
|
-
("attr"==a&&!0===f&&(f=e),
|
6
|
-
r[a](this,e,c)}:"prop"==a&&"value"==c&&f.value.apply?function(c){var b=r[a](this,e);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(c){return r[a](this,e,c)}};
|
7
|
-
c=Object.prototype.hasOwnProperty;return function(e,b,
|
8
|
-
e[0]&&b.nodeName(e[0],a)&&(f[a]=f[a].add(e)))};b.each(a,function(a,c){
|
9
|
-
c,a)})},createElement:function(a,c){f(a,c)},extendValue:function(a,c,e){f(a,function(){b(this).each(function(){t(this,"propValue",{})[c]=this[c];this[c]=e})})}}}(),
|
10
|
-
c){b.each(c,function(c,b){c in a||(a[c]=b)})},createPropDefault:
|
11
|
-
a;
|
12
|
-
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,c){"string"==typeof c&&(c=c.split(
|
13
|
-
|
14
|
-
c,e){var f;b.isFunction(c)&&(c={after:c});
|
15
|
-
|
16
|
-
m)return
|
17
|
-
|
18
|
-
|
19
|
-
(function(b,d){var i=b.webshims.browserVersion;if(!(b.browser.mozilla&&5<i)&&(!b.browser.msie||12>i&&7<i)){var
|
20
|
-
i&&!b(i).closest("section, article")[0]&&m(i,"banner");
|
21
|
-
(function(b,d,i){var
|
22
|
-
x=function(a,c){var a=b(a),e={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!e.src)return e;var f=a.attr("type");if(f)e.type=f,e.container=b.trim(f.split(";")[0]);else if(c||(c=a[0].nodeName.toLowerCase(),"source"==c&&(c=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),f=
|
23
|
-
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"
|
31
|
-
|
32
|
-
"
|
33
|
-
|
34
|
-
(function(b){var d=window.Modernizr,i=b.webshims,
|
35
|
-
|
36
|
-
b("input",m).eq(0),r,p=function(
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
"
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
(d.
|
55
|
-
|
56
|
-
|
57
|
-
"
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
"
|
63
|
-
|
1
|
+
(function(b){if(!Modernizr.genericDOM){var d=document,i,k,m=/<([\w:]+)/,l={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};b.webshims.fixHTML5=function(b){if("string"!=typeof b||l[(m.exec(b)||["",""])[1].toLowerCase()])return b;if(!k){i=d.body;if(!i)return b;k=d.createElement("div");k.style.display="none"}var r=k.cloneNode(!1);i.appendChild(r);r.innerHTML=b;i.removeChild(r);return r.childNodes}}})(jQuery);
|
2
|
+
jQuery.webshims.register("dom-extend",function(b,d,i,k,m){var l=d.modules,j=/\s*,\s*/,r={},q={},p={},g={},s={},x=b.fn.val,u=function(a,c,e,f,n){return n?x.call(b(a)):x.call(b(a),e)};b.fn.val=function(a){var c=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!c||1!==c.nodeType?x.call(this):b.prop(c,"value",a,"val",!0);if(b.isArray(a))return x.apply(this,arguments);var e=b.isFunction(a);return this.each(function(f){c=this;1===c.nodeType&&(e?(f=a.call(c,f,b.prop(c,"value",m,"val",
|
3
|
+
!0)),null==f&&(f=""),b.prop(c,"value",f,"val")):b.prop(c,"value",a,"val"))})};var v="_webshimsLib"+Math.round(1E3*Math.random()),t=function(a,c,e){a=a.jquery?a[0]:a;if(!a)return e||{};var f=b.data(a,v);e!==m&&(f||(f=b.data(a,v,{})),c&&(f[c]=e));return c?f&&f[c]:f};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){b.fn[a.name]=function(){return this.map(function(){var c=t(this,
|
4
|
+
"shadowData");return c&&c[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){r[a]=b[a];b[a]=function(c,e,f,n,h){var d="val"==n,o=!d?r[a]:u;if(!c||!q[e]||1!==c.nodeType||!d&&n&&"attr"==a&&b.attrFn[e])return o(c,e,f,n,h);var z=(c.nodeName||"").toLowerCase(),j=p[z],g="attr"==a&&(!1===f||null===f)?"removeAttr":a,l,k,w;j||(j=p["*"]);j&&(j=j[e]);j&&(l=j[g]);if(l){if("value"==e)k=l.isVal,l.isVal=d;if("removeAttr"===g)return l.value.call(c);if(f===m)return l.get?l.get.call(c):l.value;l.set&&
|
5
|
+
("attr"==a&&!0===f&&(f=e),w=l.set.call(c,f));if("value"==e)l.isVal=k}else w=o(c,e,f,n,h);if((f!==m||"removeAttr"===g)&&s[z]&&s[z][e]){var i;i="removeAttr"==g?!1:"prop"==g?!!f:!0;s[z][e].forEach(function(e){if(!e.only||(e.only="prop"==a)||"attr"==e.only&&"prop"!=a)e.call(c,f,i,d?"val":g,a)})}return w};g[a]=function(c,e,f){p[c]||(p[c]={});p[c][e]||(p[c][e]={});var n=p[c][e][a],h=function(c,b,n){return b&&b[c]?b[c]:n&&n[c]?n[c]:"prop"==a&&"value"==e?function(c){return f.isVal?u(this,e,c,!1,0===arguments.length):
|
6
|
+
r[a](this,e,c)}:"prop"==a&&"value"==c&&f.value.apply?function(c){var b=r[a](this,e);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(c){return r[a](this,e,c)}};p[c][e][a]=f;if(f.value===m){if(!f.set)f.set=f.writeable?h("set",f,n):d.cfg.useStrict&&"prop"==e?function(){throw e+" is readonly on "+c;}:b.noop;if(!f.get)f.get=h("get",f,n)}["value","get","set"].forEach(function(a){f[a]&&(f["_sup"+a]=h(a,n))})}});var y=!b.browser.msie||8<parseInt(b.browser.version,10),h=function(){var a=d.getPrototypeOf(k.createElement("foobar")),
|
7
|
+
c=Object.prototype.hasOwnProperty;return function(e,b,n){var h=k.createElement(e),j=d.getPrototypeOf(h);if(y&&j&&a!==j&&(!h[b]||!c.call(h,b))){var l=h[b];n._supvalue=function(){return l&&l.apply?l.apply(this,arguments):l};j[b]=n.value}else n._supvalue=function(){var a=t(this,"propValue");return a&&a[b]&&a[b].apply?a[b].apply(this,arguments):a&&a[b]},o.extendValue(e,b,n.value);n.value._supvalue=n._supvalue}}(),o=function(){var a={};d.addReady(function(c,e){var f={},h=function(a){f[a]||(f[a]=b(c.getElementsByTagName(a)),
|
8
|
+
e[0]&&b.nodeName(e[0],a)&&(f[a]=f[a].add(e)))};b.each(a,function(a,c){h(a);!c||!c.forEach?d.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){f[a].each(c)})});f=null});var c,e=b([]),f=function(e,f){a[e]?a[e].push(f):a[e]=[f];b.isDOMReady&&(c||b(k.getElementsByTagName(e))).each(f)};return{createTmpCache:function(a){b.isDOMReady&&(c=c||b(k.getElementsByTagName(a)));return c||e},flushTmpCache:function(){c=null},content:function(a,c){f(a,function(){var a=b.attr(this,c);null!=a&&b.attr(this,
|
9
|
+
c,a)})},createElement:function(a,c){f(a,c)},extendValue:function(a,c,e){f(a,function(){b(this).each(function(){t(this,"propValue",{})[c]=this[c];this[c]=e})})}}}(),w=function(a,c){if(a.defaultValue===m)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[c||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};b.extend(d,{getID:function(){var a=(new Date).getTime();return function(c){var c=b(c),e=c.attr("id");e||(a++,e="ID-"+a,c.attr("id",e));return e}}(),extendUNDEFProp:function(a,
|
10
|
+
c){b.each(c,function(c,b){c in a||(a[c]=b)})},createPropDefault:w,data:t,moveToFirstEvent:function(){var a=b._data?"_data":"data";return function(c,e,f){if((c=(b[a](c,"events")||{})[e])&&1<c.length)e=c.pop(),f||(f="bind"),"bind"==f&&c.delegateCount?c.splice(c.delegateCount,0,e):c.unshift(e)}}(),addShadowDom:function(a,c,e){e=e||{};a.jquery&&(a=a[0]);c.jquery&&(c=c[0]);if(!e.shadowFocusElement)e.shadowFocusElement=c;var f=b.data(a,v)||b.data(a,v,{}),h=b.data(c,v)||b.data(c,v,{});f.hasShadow=c;h.nativeElement=
|
11
|
+
a;h.shadowData=f.shadowData={nativeElement:a,shadowElement:c,shadowFocusElement:e.shadowFocusElement};e.shadowChilds&&e.shadowChilds.each(function(){t(this,"shadowData",h.shadowData)});if(e.data)f.shadowData.data=e.data,h.shadowData.data=e.data;e=null},propTypes:{standard:function(a){w(a);if(!a.prop)a.prop={set:function(c){a.attr.set.call(this,""+c)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){w(a);if(!a.prop)a.prop={set:function(c){c?a.attr.set.call(this,
|
12
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,c){"string"==typeof c&&(c=c.split(j));c.forEach(function(c){d.defineNodeNamesProperty(a,c,{prop:{set:function(a){b.attr(this,c,a)},get:function(){return b.attr(this,c)||""}}})})},defineNodeNameProperty:function(a,c,e){q[c]=!0;if(e.reflect)d.propTypes[e.propType||"standard"](e);["prop","attr","removeAttr"].forEach(function(f){var n=e[f];n&&(n="prop"===f?b.extend({writeable:!0},n):b.extend({},
|
13
|
+
n,{writeable:!0}),g[f](a,c,n),"*"!=a&&d.cfg.extendNative&&"prop"==f&&n.value&&b.isFunction(n.value)&&h(a,c,n),e[f]=n)});e.initAttr&&o.content(a,c);return e},defineNodeNameProperties:function(a,c,b,f){for(var h in c)!f&&c[h].initAttr&&o.createTmpCache(a),b&&(c[h][b]?d.log("override: "+a+"["+h+"] for "+b):(c[h][b]={},["value","set","get"].forEach(function(a){a in c[h]&&(c[h][b][a]=c[h][a],delete c[h][a])}))),c[h]=d.defineNodeNameProperty(a,h,c[h]);f||o.flushTmpCache();return c},createElement:function(a,
|
14
|
+
c,e){var f;b.isFunction(c)&&(c={after:c});o.createTmpCache(a);c.before&&o.createElement(a,c.before);e&&(f=d.defineNodeNameProperties(a,e,!1,!0));c.after&&o.createElement(a,c.after);o.flushTmpCache();return f},onNodeNamesPropertyModify:function(a,c,e,f){"string"==typeof a&&(a=a.split(j));b.isFunction(e)&&(e={set:e});a.forEach(function(a){s[a]||(s[a]={});"string"==typeof c&&(c=c.split(j));e.initAttr&&o.createTmpCache(a);c.forEach(function(c){s[a][c]||(s[a][c]=[],q[c]=!0);if(e.set){if(f)e.set.only=f;
|
15
|
+
s[a][c].push(e.set)}e.initAttr&&o.content(a,c)});o.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,c,e){e||(e={});if(b.isFunction(e))e.set=e;d.defineNodeNamesProperty(a,c,{attr:{set:function(a){this.setAttribute(c,a);e.set&&e.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?m:c}},removeAttr:{value:function(){this.removeAttribute(c);e.set&&e.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:e.initAttr||!1})},contentAttr:function(a,c,b){if(a.nodeName){if(b===
|
16
|
+
m)return b=(a.attributes[c]||{}).value,null==b?m:b;"boolean"==typeof b?b?a.setAttribute(c,c):a.removeAttribute(c):a.setAttribute(c,b)}},activeLang:function(){var a=[],c={},e,f,h=/:\/\/|^\.*\//,j=function(a,c,e){return c&&e&&-1!==b.inArray(c,e.availabeLangs||[])?(a.loading=!0,e=e.langSrc,h.test(e)||(e=d.cfg.basePath+e),d.loader.loadScript(e+c+".js",function(){a.langObj[c]?(a.loading=!1,g(a,!0)):b(function(){a.langObj[c]&&g(a,!0);a.loading=!1})}),!0):!1},o=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},
|
17
|
+
g=function(a,c){if(a.activeLang!=e&&a.activeLang!==f){var b=l[a.module].options;if(a.langObj[e]||f&&a.langObj[f])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[f],e),o(a.module);else if(!c&&!j(a,e,b)&&!j(a,f,b)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),o(a.module)}};return function(h){if("string"==typeof h&&h!==e)e=h,f=e.split("-")[0],e==f&&(f=!1),b.each(a,function(a,c){g(c)});else if("object"==typeof h)if(h.register)c[h.register]||(c[h.register]=[]),c[h.register].push(h),
|
18
|
+
h.callback();else{if(!h.activeLang)h.activeLang="";a.push(h);g(h)}return e}}()});b.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,c){d[a]=function(a,b,h,o){"string"==typeof a&&(a=a.split(j));var l={};a.forEach(function(a){l[a]=d[c](a,b,h,o)});return l}});d.isReady("webshimLocalization",!0)});
|
19
|
+
(function(b,d){var i=b.webshims.browserVersion;if(!(b.browser.mozilla&&5<i)&&(!b.browser.msie||12>i&&7<i)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(b,j){b.getAttribute("role")||b.setAttribute("role",j)};b.webshims.addReady(function(l,j){b.each(k,function(d,s){for(var i=b(d,l).add(j.filter(d)),k=0,q=i.length;k<q;k++)m(i[k],s)});if(l===d){var i=d.getElementsByTagName("header")[0],q=d.getElementsByTagName("footer"),p=q.length;
|
20
|
+
i&&!b(i).closest("section, article")[0]&&m(i,"banner");p&&(i=q[p-1],b(i).closest("section, article")[0]||m(i,"contentinfo"))}})}})(jQuery,document);
|
21
|
+
(function(b,d,i){var k=d.audio&&d.video,m=!1;if(k)b=document.createElement("video"),d.videoBuffered="buffered"in b,m="loop"in b,i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),d.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:d.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(b,d,i,q,p){var g=d.mediaelement,s=d.cfg.mediaelement,
|
22
|
+
x=function(a,c){var a=b(a),e={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!e.src)return e;var f=a.attr("type");if(f)e.type=f,e.container=b.trim(f.split(";")[0]);else if(c||(c=a[0].nodeName.toLowerCase(),"source"==c&&(c=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),f=g.getTypeForSrc(e.src,c))e.type=f,e.container=f;if(f=a.attr("media"))e.media=f;return e},u=swfobject.hasFlashPlayerVersion("9.0.115"),v=function(){d.ready("mediaelement-swf",function(){if(!g.createSWF)d.modules["mediaelement-swf"].test=
|
23
|
+
b.noop,d.reTest(["mediaelement-swf"],k)})};g.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf",
|
24
|
+
"asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};g.mimeTypes.source=b.extend({},g.mimeTypes.audio,g.mimeTypes.video);g.getTypeForSrc=function(a,c){if(-1!=a.indexOf("youtube.com/watch?")||-1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],e;b.each(g.mimeTypes[c],function(b,c){if(-1!==c.indexOf(a))return e=b,!1});return e};g.srces=function(a,c){a=b(a);if(c)a.removeAttr("src").removeAttr("type").find("source").remove(),
|
25
|
+
b.isArray(c)||(c=[c]),c.forEach(function(b){var c=q.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});else{var c=[],e=a[0].nodeName.toLowerCase(),f=x(a,e);f.src?c.push(f):b("source",a).each(function(){f=x(this,e);f.src&&c.push(f)});return c}};b.fn.loadMediaSrc=function(a,c){return this.each(function(){c!==p&&(b(this).removeAttr("poster"),c&&b.attr(this,"poster",c));g.srces(this,
|
26
|
+
a);b(this).mediaLoad()})};g.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");g.canSwfPlaySrces=function(a,c){var e="";u&&(a=b(a),c=c||g.srces(a),b.each(c,function(a,b){if(b.container&&b.src&&-1!=g.swfMimeTypes.indexOf(b.container))return e=b,!1}));return e};var t={};g.canNativePlaySrces=function(a,
|
27
|
+
c){var e="";if(k){var a=b(a),f=(a[0].nodeName||"").toLowerCase();if(!t[f])return e;c=c||g.srces(a);b.each(c,function(b,c){if(c.type&&t[f].prop._supvalue.call(a[0],c.type))return e=c,!1})}return e};g.setError=function(a,c){c||(c="can't play sources");b(a).pause().data("mediaerror",c);d.warn("mediaelementError: "+c);setTimeout(function(){b(a).data("mediaerror")&&b(a).trigger("mediaerror")},1)};var y=function(){var a;return function(b,e,f){d.ready("mediaelement-swf",function(){g.createSWF?g.createSWF(b,
|
28
|
+
e,f):a||(a=!0,v(),y(b,e,f))})}}(),h=function(a,b,e,f,d){e||!1!==e&&b&&"flash"==b.isActive?(e=g.canSwfPlaySrces(a,f))?y(a,e,b):d?g.setError(a,!1):h(a,b,!1,f,!0):(e=g.canNativePlaySrces(a,f))?b&&"flash"==b.isActive&&g.setActive(a,"html5",b):d?(g.setError(a,!1),b&&"flash"==b.isActive&&g.setActive(a,"html5",b)):h(a,b,!0,f,!0)},o=/^(?:embed|object|datalist)$/i,w=function(a,c){var e=d.data(a,"mediaelementBase")||d.data(a,"mediaelementBase",{}),f=g.srces(a),n=a.parentNode;clearTimeout(e.loadTimer);b.data(a,
|
29
|
+
"mediaerror",!1);if(f.length&&n&&!(1!=n.nodeType||o.test(n.nodeName||"")))c=c||d.data(a,"mediaelement"),h(a,c,s.preferFlash||p,f)};b(q).bind("ended",function(a){var c=d.data(a.target,"mediaelement");(!m||c&&"html5"!=c.isActive||b.prop(a.target,"loop"))&&setTimeout(function(){!b.prop(a.target,"paused")&&b.prop(a.target,"loop")&&b(a.target).prop("currentTime",0).play()},1)});m||d.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var c=d.defineNodeNameProperty(a,
|
30
|
+
"load",{prop:{value:function(){var a=d.data(this,"mediaelement");w(this,a);k&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});t[a]=d.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(c){var f="";k&&t[a].prop._supvalue&&(f=t[a].prop._supvalue.call(this,c),"no"==f&&(f=""));!f&&u&&(c=b.trim((c||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(c)&&(f="maybe"));return f}}})});d.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=
|
31
|
+
this,b=d.data(a,"mediaelementBase")||d.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){w(a);a=null},9)}});i=function(){d.addReady(function(a,c){b("video, audio",a).add(c.filter("video, audio")).each(function(){b.browser.msie&&8<d.browserVersion&&b.prop(this,"paused")&&!b.prop(this,"readyState")&&b(this).is('audio[preload="none"][controls]:not([autoplay])')?b(this).prop("preload","metadata").mediaLoad():w(this);if(k){var a,c,h=this,o=function(){var a=b.prop(h,
|
32
|
+
"buffered");if(a){for(var c="",e=0,f=a.length;e<f;e++)c+=a.end(e);return c}},g=function(){var a=o();a!=c&&(c=a,b(h).triggerHandler("progress"))};b(this).bind("play loadstart progress",function(b){"progress"==b.type&&(c=o());clearTimeout(a);a=setTimeout(g,999)}).bind("emptied stalled mediaerror abort suspend",function(b){"emptied"==b.type&&(c=!1);clearTimeout(a)})}})})};k?(d.isReady("mediaelement-core",!0),i(),u&&d.ready("WINDOWLOAD mediaelement",v)):d.ready("mediaelement-swf",i)})})(jQuery,Modernizr,
|
33
|
+
jQuery.webshims);
|
34
|
+
(function(b){var d=window.Modernizr,i=b.webshims,k=i.bugs,m=b('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),l=function(){if(m[0].querySelector)try{k.findRequired=!m[0].querySelector("select:required")}catch(b){k.findRequired=!1}};k.findRequired=!1;k.validationMessage=!1;k.valueAsNumberSet=!1;i.capturingEventPrevented=function(d){if(!d._isPolyfilled){var g=d.isDefaultPrevented,
|
35
|
+
i=d.preventDefault;d.preventDefault=function(){clearTimeout(b.data(d.target,d.type+"DefaultPrevented"));b.data(d.target,d.type+"DefaultPrevented",setTimeout(function(){b.removeData(d.target,d.type+"DefaultPrevented")},30));return i.apply(this,arguments)};d.isDefaultPrevented=function(){return!(!g.apply(this,arguments)&&!b.data(d.target,d.type+"DefaultPrevented"))};d._isPolyfilled=!0}};if(!d.formvalidation||k.bustedValidity)l();else if(i.capturingEvents(["input"]),i.capturingEvents(["invalid"],!0),
|
36
|
+
d.bugfreeformvalidation=!0,window.opera||b.browser.webkit||window.testGoodWithFix){var j=b("input",m).eq(0),r,q=function(b){i.loader.loadList(["dom-extend"]);i.ready("dom-extend",b)},p=function(g){var k=["form-extend","form-message","form-native-fix"];g&&(g.preventDefault(),g.stopImmediatePropagation());clearTimeout(r);setTimeout(function(){m&&(m.remove(),m=j=null)},9);if(!d.bugfreeformvalidation)i.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),i.modules["form-extend"].test=b.noop;i.isReady("form-number-date-api")&&
|
37
|
+
k.push("form-number-date-api");i.reTest(k);if(j)try{j.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&q(function(){i.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(d){!d&&this&&b.prop(this,"value",b.prop(this,"value"))}});i.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(d){if(!d&&this)d=b(this).val(),(b("option:last-child",this)[0]||{}).selected=!0,b(this).val(d)}})})}catch(l){}(b.browser.opera||window.testGoodWithFix)&&
|
38
|
+
q(function(){var g=function(b){b.preventDefault()};["form","input","textarea","select"].forEach(function(d){var j=i.defineNodeNameProperty(d,"checkValidity",{prop:{value:function(){i.fromSubmit||b(this).bind("invalid.checkvalidity",g);i.fromCheckValidity=!0;var h=j.prop._supvalue.apply(this,arguments);i.fromSubmit||b(this).unbind("invalid.checkvalidity",g);i.fromCheckValidity=!1;return h}}})});d.input.list&&!(b("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&
|
39
|
+
i.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var d=this.options||[];if(!d.length){var g=b("select",this);if(g[0]&&g[0].options&&g[0].options.length)d=g[0].options}return d}}})})};m.appendTo("head");if(window.opera||window.testGoodWithFix){l();k.validationMessage=!j.prop("validationMessage");if((d.inputtypes||{}).date){try{j.prop("valueAsNumber",0)}catch(g){}k.valueAsNumberSet="1970-01-01"!=j.prop("value")}j.prop("value","")}m.bind("submit",function(b){d.bugfreeformvalidation=
|
40
|
+
!1;p(b)});r=setTimeout(function(){m&&m.triggerHandler("submit")},9);b("input, select",m).bind("invalid",p).filter('[type="submit"]').bind("click",function(b){b.stopImmediatePropagation()}).trigger("click")}})(jQuery);
|
41
|
+
jQuery.webshims.register("form-core",function(b,d,i,k,m,l){var j={radio:1},r={checkbox:1,radio:1},q=b([]),p=d.bugs,g=function(h){var h=b(h),d,g;d=q;if(j[h[0].type])g=h.prop("form"),d=(d=h[0].name)?g?b(g[d]):b(k.getElementsByName(d)).filter(function(){return!b.prop(this,"form")}):h,d=d.filter('[type="radio"]');return d},s=d.getContentValidationMessage=function(h,d,g){var a=b(h).data("errormessage")||h.getAttribute("x-moz-errormessage")||"";g&&a[g]&&(a=a[g]);"object"==typeof a&&(d=d||b.prop(h,"validity")||
|
42
|
+
{valid:1},d.valid||b.each(d,function(b,e){if(e&&"valid"!=b&&a[b])return a=a[b],!1}));if("object"==typeof a)a=a.defaultMessage;return a||""},x={number:1,range:1,date:1};b.extend(b.expr.filters,{"valid-element":function(h){return!(!b.prop(h,"willValidate")||!(b.prop(h,"validity")||{valid:1}).valid)},"invalid-element":function(h){return!(!b.prop(h,"willValidate")||(b.prop(h,"validity")||{valid:1}).valid)},"required-element":function(h){return!(!b.prop(h,"willValidate")||!b.prop(h,"required"))},"optional-element":function(h){return!!(b.prop(h,
|
43
|
+
"willValidate")&&!1===b.prop(h,"required"))},"in-range":function(h){if(!x[b.prop(h,"type")]||!b.prop(h,"willValidate"))return!1;h=b.prop(h,"validity");return!(!h||h.rangeOverflow||h.rangeUnderflow)},"out-of-range":function(h){if(!x[b.prop(h,"type")]||!b.prop(h,"willValidate"))return!1;h=b.prop(h,"validity");return!(!h||!h.rangeOverflow&&!h.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(h){b.expr.filters[h]=b.expr.filters[h+"-element"]});b.expr.filters.focus=function(b){try{var d=
|
44
|
+
b.ownerDocument;return b===d.activeElement&&(!d.hasFocus||d.hasFocus())}catch(g){}return!1};var u=b.event.customEvent||{};(p.bustedValidity||p.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var h=b.find,d=b.find.matchesSelector,g=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,a=function(a){return a+"-element"};b.find=function(){var b=Array.prototype.slice,e=function(e){var f=arguments,f=b.call(f,1,f.length);f.unshift(e.replace(g,a));return h.apply(this,
|
45
|
+
f)},f;for(f in h)h.hasOwnProperty(f)&&(e[f]=h[f]);return e}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",k.documentElement))b.find.matchesSelector=function(b,e){e=e.replace(g,a);return d.call(this,b,e)}}();var v=b.prop,t={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};b.prop=function(h,d,i){var a=v.apply(this,arguments);if(h&&"form"in h&&t[d]&&i!==m&&b(h).hasClass("form-ui-invalid")&&(b.prop(h,"validity")||{valid:1}).valid)b(h).getShadowElement().removeClass("form-ui-invalid"),
|
46
|
+
"checked"==d&&i&&g(h).not(h).removeClass("form-ui-invalid").removeAttr("aria-invalid");return a};var y=function(d,g){var i;b.each(d,function(a,c){if(c)return i="customError"==a?b.prop(g,"validationMessage"):a,!1});return i};b(k).bind(l.validityUIEvents||"focusout change refreshvalidityui",function(d){if(d.target&&"submit"!=d.target.type&&b.prop(d.target,"willValidate")){var i=b.data(d.target,"webshimsswitchvalidityclass"),j=function(){var a=b(d.target).getNativeElement().trigger("refreshCustomValidityRules")[0],
|
47
|
+
c=b.prop(a,"validity"),e=b(a).getShadowElement(),f,i,j,o;c.valid?e.hasClass("form-ui-valid")||(f="form-ui-valid",i="form-ui-invalid",o="changedvaliditystate",j="changedvalid",r[a.type]&&a.checked&&g(a).not(a).removeClass(i).addClass(f).removeAttr("aria-invalid"),b.removeData(a,"webshimsinvalidcause")):(c=y(c,a),b.data(a,"webshimsinvalidcause")!=c&&(b.data(a,"webshimsinvalidcause",c),o="changedvaliditystate"),e.hasClass("form-ui-invalid")||(f="form-ui-invalid",i="form-ui-valid",r[a.type]&&!a.checked&&
|
48
|
+
g(a).not(a).removeClass(i).addClass(f),j="changedinvalid"));f&&(e.addClass(f).removeClass(i),setTimeout(function(){b(a).trigger(j)},0));o&&setTimeout(function(){b(a).trigger(o)},0);b.removeData(d.target,"webshimsswitchvalidityclass")};i&&clearTimeout(i);"refreshvalidityui"==d.type?j():b.data(d.target,"webshimsswitchvalidityclass",setTimeout(j,9))}});u.changedvaliditystate=!0;u.refreshCustomValidityRules=!0;u.changedvalid=!0;u.changedinvalid=!0;u.refreshvalidityui=!0;d.triggerInlineForm=function(d,
|
49
|
+
g){b(d).trigger(g)};d.modules["form-core"].getGroupElements=g;p=function(){d.scrollRoot=b.browser.webkit||"BackCompat"==k.compatMode?b(k.body):b(k.documentElement)};p();d.ready("DOM",p);d.getRelOffset=function(d,g){var d=b(d),i=b(g).offset(),a;b.swap(b(d)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){a=d.offset()});i.top-=a.top;i.left-=a.left;return i};d.validityAlert=function(){var h=!b.browser.msie||7<parseInt(b.browser.version,10)?"span":"label",g,j=!1,a=!1,c,e={hideDelay:5E3,
|
50
|
+
showFor:function(d,h,k,q){e._create();var d=b(d),l=b(d).getShadowElement(),m=e.getOffsetFromBody(l);e.clear();q?this.hide():(this.getMessage(d,h),this.position(l,m),g.css({fontSize:d.css("fontSize"),fontFamily:d.css("fontFamily")}),this.show(),this.hideDelay&&(j=setTimeout(c,this.hideDelay)),b(i).bind("resize.validityalert orientationchange.validityalert emchange.validityalert",function(){clearTimeout(a);a=setTimeout(function(){e.position(l)},9)}));k||this.setFocus(l,m)},getOffsetFromBody:function(a){return d.getRelOffset(g,
|
51
|
+
a)},setFocus:function(a,e){var i=b(a).getShadowFocusElement(),j=d.scrollRoot.scrollTop(),q=(e||i.offset()).top-30,l;d.getID&&"label"==h&&g.attr("for",d.getID(i));j>q&&(d.scrollRoot.animate({scrollTop:q-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(j-q)),80)}),l=!0);try{i[0].focus()}catch(m){}l&&(d.scrollRoot.scrollTop(j),setTimeout(function(){d.scrollRoot.scrollTop(j)},0));setTimeout(function(){b(k).bind("focusout.validityalert",c)},10)},getMessage:function(a,c){c||(c=s(a[0])||a.prop("validationMessage"));
|
52
|
+
c?b("span.va-box",g).text(c):this.hide()},position:function(a,c){c=c?b.extend({},c):e.getOffsetFromBody(a);c.top+=a.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(j);b(k).unbind(".validityalert");b(i).unbind(".validityalert");g.stop().removeAttr("for")},_create:function(){if(!g)g=e.errorBubble=b("<"+h+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
|
53
|
+
h+">").css({position:"absolute",display:"none"}),d.ready("DOM",function(){g.appendTo("body");b.fn.bgIframe&&b.browser.msie&&7>parseInt(b.browser.version,10)&&g.bgIframe()})}};c=b.proxy(e,"hide");return e}();(function(){var d,g=[],i;b(k).bind("invalid",function(a){if(!a.wrongWebkitInvalid){var c=b(a.target),e=c.getShadowElement();e.hasClass("form-ui-invalid")||(e.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){b(a.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
54
|
+
0));if(!d)d=b.Event("firstinvalid"),d.isInvalidUIPrevented=a.isDefaultPrevented,e=b.Event("firstinvalidsystem"),b(k).triggerHandler(e,{element:a.target,form:a.target.form,isInvalidUIPrevented:a.isDefaultPrevented}),c.trigger(d);d&&d.isDefaultPrevented()&&a.preventDefault();g.push(a.target);a.extraData="fix";clearTimeout(i);i=setTimeout(function(){var c={type:"lastinvalid",cancelable:!1,invalidlist:b(g)};d=!1;g=[];b(a.target).trigger(c,c)},9);e=c=null}})})();b.fn.getErrorMessage=function(){var d="",
|
55
|
+
g=this[0];g&&(d=s(g)||b.prop(g,"customValidationMessage")||b.prop(g,"validationMessage"));return d};l.replaceValidationUI&&d.ready("DOM",function(){b(k).bind("firstinvalid",function(d){d.isInvalidUIPrevented()||(d.preventDefault(),b.webshims.validityAlert.showFor(d.target,b(d.target).prop("customValidationMessage")))})})});
|
56
|
+
jQuery.webshims.register("form-message",function(b,d,i,k,m,l){var j=d.validityMessages,i=l.overrideMessages||l.customMessages?["customValidationMessage"]:[];j.en=j.en||j["en-US"]||{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}."},
|
57
|
+
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."}};["select","radio"].forEach(function(b){j.en.valueMissing[b]="Please select an option."});["date","time","datetime-local"].forEach(function(b){j.en.rangeUnderflow[b]="Value must be at or after {%min}."});["date","time","datetime-local"].forEach(function(b){j.en.rangeOverflow[b]=
|
58
|
+
"Value must be at or before {%max}."});j["en-US"]=j["en-US"]||j.en;j[""]=j[""]||j["en-US"];j.de=j.de||{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."},
|
59
|
+
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",
|
60
|
+
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}};["select","radio"].forEach(function(b){j.de.valueMissing[b]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(b){j.de.rangeUnderflow[b]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(b){j.de.rangeOverflow[b]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});var r=
|
61
|
+
j[""];d.createValidationMessage=function(d,i){var g=r[i];g&&"string"!==typeof g&&(g=g[b.prop(d,"type")]||g[(d.nodeName||"").toLowerCase()]||g.defaultMessage);g&&"value,min,max,title,maxlength,label".split(",").forEach(function(i){if(-1!==g.indexOf("{%"+i)){var j=("label"==i?b.trim(b('label[for="'+d.id+'"]',d.form).text()).replace(/\*$|:$/,""):b.attr(d,i))||"";g=g.replace("{%"+i+"}",j);"value"==i&&(g=g.replace("{%valueLen}",j.length))}});return g||""};(d.bugs.validationMessage||!Modernizr.formvalidation||
|
62
|
+
d.bugs.bustedValidity)&&i.push("validationMessage");d.activeLang({langObj:j,module:"form-core",callback:function(b){r=b}});Modernizr.input.list&&!(b("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&d.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var d=this.options||[];if(!d.length){var i=b("select",this);if(i[0]&&i[0].options&&i[0].options.length)d=i[0].options}return d}}});i.forEach(function(i){d.defineNodeNamesProperty(["fieldset",
|
63
|
+
"output","button"],i,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(j){var g=d.defineNodeNameProperty(j,i,{prop:{get:function(){var i=this,j="";if(!b.prop(i,"willValidate"))return j;var k=b.prop(i,"validity")||{valid:1};if(k.valid||(j=d.getContentValidationMessage(i,k)))return j;if(k.customError&&i.nodeName&&(j=Modernizr.formvalidation&&!d.bugs.bustedValidity&&g.prop._supget?g.prop._supget.call(i):d.data(i,"customvalidationMessage")))return j;b.each(k,function(b,g){if("valid"!=
|
64
|
+
b&&g&&(j=d.createValidationMessage(i,b)))return!1});return j||""},writeable:!1}})})})});
|
@@ -1,58 +1,59 @@
|
|
1
|
-
jQuery.webshims.register("form-datalist",function(a,b,
|
2
|
-
if(
|
3
|
-
this.timedHide=function(){clearTimeout(
|
4
|
-
function(
|
5
|
-
|
6
|
-
!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&
|
7
|
-
"value"),
|
8
|
-
this.id
|
9
|
-
|
10
|
-
""),className:
|
11
|
-
|
12
|
-
i;var
|
13
|
-
|
14
|
-
a(
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
(i=a("
|
19
|
-
|
20
|
-
b
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
"
|
25
|
-
"input"==c?a(this).getNativeElement()[0]:this
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
a
|
37
|
-
l;if(b||!
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
function(a){
|
45
|
-
a(
|
46
|
-
f.
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
((
|
54
|
-
|
55
|
-
|
56
|
-
function(){
|
57
|
-
|
58
|
-
|
1
|
+
jQuery.webshims.register("form-datalist",function(a,b,m,l,s){b.propTypes.element=function(k){b.createPropDefault(k,"attr");if(!k.prop)k.prop={get:function(){var b=k.attr.get.call(this);b&&(b=a("#"+b)[0])&&k.propNodeName&&!a.nodeName(b,k.propNodeName)&&(b=null);return b||null},writeable:!1}};(function(){var k=a.webshims.cfg.forms,g=Modernizr.input.list;if(!g||k.customDatalist){var t=0,p={submit:1,button:1,reset:1,hidden:1,range:1,date:1},n=a.browser.msie&&7>parseInt(a.browser.version,10),v={},q=function(a){if(!a)return[];
|
2
|
+
if(v[a])return v[a];var b;try{b=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(c){}v[a]=b||[];return b||[]},j={_create:function(f){if(!p[a.prop(f.input,"type")]){var b=f.datalist,c=a.data(f.input,"datalistWidget");if(b&&c&&c.datalist!==b)c.datalist=b,c.id=f.id,c.shadowList.prop("className","datalist-polyfill "+(c.datalist.className||"")+" "+c.datalist.id+"-shadowdom"),k.positionDatalist?c.shadowList.insertAfter(f.input):c.shadowList.appendTo("body"),a(c.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
|
3
|
+
a.proxy(c,"_resetListCached")),c._resetListCached();else if(b){if(!(c&&c.datalist===b)){t++;var d=this;this.hideList=a.proxy(d,"hideList");this.timedHide=function(){clearTimeout(d.hideTimer);d.hideTimer=setTimeout(d.hideList,9)};this.datalist=b;this.id=f.id;this.hasViewableData=!0;this._autocomplete=a.attr(f.input,"autocomplete");a.data(f.input,"datalistWidget",this);this.shadowList=a('<div class="datalist-polyfill '+(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom" />');k.positionDatalist?
|
4
|
+
this.shadowList.insertAfter(f.input):this.shadowList.appendTo("body");this.index=-1;this.input=f.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(e){var h=a("li:not(.hidden-item)",d.shadowList),c="mousedown"==e.type||"click"==e.type;d.markItem(h.index(e.currentTarget),c,h);"click"==e.type&&(d.hideList(),a(f.input).trigger("datalistselect"));return"mousedown"!=e.type}).bind("focusout",this.timedHide);f.input.setAttribute("autocomplete",
|
5
|
+
"off");a(f.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!d.triggeredByDatalist)d.changedValue=!1,d.showHideOptions()}).bind("keydown.datalistWidget",function(e){var h=e.keyCode,c;if(40==h&&!d.showList())return d.markItem(d.index+1,!0),!1;if(d.isListVisible){if(38==h)return d.markItem(d.index-1,!0),!1;if(!e.shiftKey&&(33==h||36==h))return d.markItem(0,!0),!1;if(!e.shiftKey&&(34==h||35==h))return e=a("li:not(.hidden-item)",d.shadowList),d.markItem(e.length-1,!0,e),
|
6
|
+
!1;if(13==h||27==h)return 13==h&&(c=a("li.active-item:not(.hidden-item)",d.shadowList),d.changeValue(a("li.active-item:not(.hidden-item)",d.shadowList))),d.hideList(),c&&c[0]&&a(f.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&d.showList()}).bind("mousedown.datalistWidget",function(){a(this).is(":focus")&&d.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
|
7
|
+
a.proxy(this,"_resetListCached"));this._resetListCached();f.input.form&&(f.input.name||f.input.id)&&a(f.input.form).bind("submit.datalistWidget"+f.input.id,function(){if(!a(f.input).hasClass("no-datalist-cache")){var c=a.prop(f.input,"value"),h=(f.input.name||f.input.id)+a.prop(f.input,"type");if(!d.storedOptions)d.storedOptions=q(h);if(c&&-1==d.storedOptions.indexOf(c)&&(d.storedOptions.push(c),c=d.storedOptions,h)){c=c||[];try{localStorage.setItem("storedDatalistOptions"+h,JSON.stringify(c))}catch(o){}}}});
|
8
|
+
a(m).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){d.destroy()})}}else c&&c.destroy()}},destroy:function(){var f=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(l).unbind(".datalist"+this.id);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");f===s?this.input.removeAttribute("autocomplete"):
|
9
|
+
a(this.input).attr("autocomplete",f)},_resetListCached:function(a){var i=this,c;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(m.QUnit||(c=a&&l.activeElement==i.input)?i.updateListOptions(c):b.ready("WINDOWLOAD",function(){i.updateTimer=setTimeout(function(){i.updateListOptions();i=null;t=1},200+100*t)}))},updateListOptions:function(f){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.css(this.input,"fontSize"),
|
10
|
+
fontFamily:a.css(this.input,"fontFamily")});this.searchStart=a(this.input).hasClass("search-start");var b=[],c=[],d=[],e,h,o,w;for(h=a.prop(this.datalist,"options"),o=0,w=h.length;o<w;o++){e=h[o];if(e.disabled)return;e={value:a(e).val()||"",text:a.trim(a.attr(e,"label")||e.textContent||e.innerText||a.text([e])||""),className:e.className||"",style:a.attr(e,"style")||""};e.text?e.text!=e.value&&(e.className+=" different-label-value"):e.text=e.value;c[o]=e.value;d[o]=e}if(!this.storedOptions)this.storedOptions=
|
11
|
+
a(this.input).hasClass("no-datalist-cache")?[]:q((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==c.indexOf(a)&&d.push({value:a,text:a,className:"stored-suggest",style:""})});for(o=0,w=d.length;o<w;o++)h=d[o],b[o]='<li class="'+h.className+'" style="'+h.style+'" tabindex="-1" role="listitem"><span class="option-label">'+h.text+'</span> <span class="option-value">'+h.value+"</span></li>";this.arrayOptions=d;this.shadowList.html('<div class="datalist-outer-box"><div class="datalist-box"><ul role="list">'+
|
12
|
+
b.join("\n")+"</ul></div></div>");a.fn.bgIframe&&n&&this.shadowList.bgIframe();(f||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 c=!1,d=this.searchStart,e=a("li",this.shadowList);i?this.arrayOptions.forEach(function(h,o){var b;if(!("lowerText"in h))h.lowerText=h.text!=h.value?h.text.toLowerCase()+h.value.toLowerCase():
|
13
|
+
h.text.toLowerCase();b=h.lowerText.indexOf(i);(b=d?!b:-1!==b)?(a(e[o]).removeClass("hidden-item"),c=!0):a(e[o]).addClass("hidden-item")}):e.length&&(e.removeClass("hidden-item"),c=!0);this.hasViewableData=c;!b&&c&&this.showList();if(!c)this.lastUnfoundValue=i,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var f=k.positionDatalist?a(this.input).position():b.getRelOffset(this.shadowList,this.input);f.top+=a(this.input).outerHeight();
|
14
|
+
f.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css({marginTop:"",marginLeft:"",marginRight:"",marginBottom:""}).css(f);return f},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").find("li.active-item").removeClass("active-item");
|
15
|
+
a(l).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(c){c.target===b.input||b.shadowList[0]===c.target||a.contains(b.shadowList[0],c.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()});a(m).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;
|
16
|
+
var f=this,i=function(){f.changedValue&&a(f.input).trigger("change");f.changedValue=!1};f.shadowList.removeClass("datalist-visible list-item-active");f.index=-1;f.isListVisible=!1;if(f.changedValue){f.triggeredByDatalist=!0;b.triggerInlineForm&&b.triggerInlineForm(f.input,"input");if(a(f.input).is(":focus"))a(f.input).one("blur",i);else i();f.triggeredByDatalist=!1}a(l).unbind(".datalist"+f.id);a(m).unbind(".datalist"+f.id).bind("resize.datalist"+f.id+" orientationchange.datalist "+f.id+" emchange.datalist"+
|
17
|
+
f.id,function(){f.shadowList.css({top:0,left:0});a(m).unbind(".datalist"+f.id)});return!0},scrollIntoView:function(b){var i=a("ul",this.shadowList),c=a("div.datalist-box",this.shadowList),d=b.position();d.top-=(parseInt(i.css("paddingTop"),10)||0)+(parseInt(i.css("marginTop"),10)||0)+(parseInt(i.css("borderTopWidth"),10)||0);0>d.top?c.scrollTop(c.scrollTop()+d.top-2):(d.top+=b.outerHeight(),b=c.height(),d.top>b&&c.scrollTop(c.scrollTop()+(d.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",
|
18
|
+
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,c){c=c||a("li:not(.hidden-item)",this.shadowList);if(c.length)0>b?b=c.length-1:b>=c.length&&(b=0),c.removeClass("active-item"),this.shadowList.addClass("list-item-active"),c=c.filter(":eq("+b+")").addClass("active-item"),i&&(this.changeValue(c),this.scrollIntoView(c)),this.index=b}};(function(){g||b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,
|
19
|
+
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 f={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 c=a.data(this,"datalistWidget");c?(c._autocomplete=b,"off"==b&&c.hideList()):
|
20
|
+
"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",b)}}}};if(!g||!1 in a("<input />")[0])f.selectedOption={prop:{writeable:!1,get:function(){var b=a.prop(this,"list"),c=null,d;if(!b)return c;d=a.attr(this,"value");if(!d)return c;b=a.prop(b,"options");if(!b.length)return c;a.each(b,function(b,h){if(d==a.prop(h,"value"))return c=h,!1});return c}}};f.list=g?{attr:{get:function(){var f=b.contentAttr(this,"list");null!=f?this.removeAttribute("list"):f=a.data(this,"datalistListAttr");
|
21
|
+
return null==f?s:f},set:function(f){a.data(this,"datalistListAttr",f);b.objectCreate(j,s,{input:this,id:f,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(f){b.contentAttr(this,"list",f);b.objectCreate(j,s,{input:this,id:f,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};b.defineNodeNameProperties("input",f);if(a.event.customEvent)a.event.customEvent.updateDatalist=
|
22
|
+
!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;b.addReady(function(a,c){c.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
|
23
|
+
jQuery.webshims.register("form-extend",function(a,b,m,l,s,k){m=m.Modernizr;s=m.inputtypes;if(m.formvalidation&&!b.bugs.bustedValidity){var g=b.inputTypes,t={};b.addInputType=function(a,c){g[a]=c};b.addValidityRule=function(a,c){t[a]=c};b.addValidityRule("typeMismatch",function(a,c,b,e){if(""===c)return!1;e=e.typeMismatch;if(!("type"in b))b.type=(a[0].getAttribute("type")||"").toLowerCase();g[b.type]&&g[b.type].mismatch&&(e=g[b.type].mismatch(c,a));return e});var p=k.overrideMessages,n=!s.number||
|
24
|
+
!s.time||!s.range||p,v="customError,typeMismatch,rangeUnderflow,rangeOverflow,stepMismatch,tooLong,patternMismatch,valueMissing,valid".split(","),k=p?["value","checked"]:["value"],q=[],j=function(c,b){if(c){var e=(c.getAttribute&&c.getAttribute("type")||c.type||"").toLowerCase();if(p||g[e])p&&!b&&"radio"==e&&c.name?a(l.getElementsByName(c.name)).each(function(){a.prop(this,"validity")}):a.prop(c,"validity")}},f={};["input","textarea","select"].forEach(function(c){var e=b.defineNodeNameProperty(c,
|
25
|
+
"setCustomValidity",{prop:{value:function(d){var d=d+"",f="input"==c?a(this).getNativeElement()[0]:this;e.prop._supvalue.call(f,d);b.bugs.validationMessage&&b.data(f,"customvalidationMessage",d);n&&(b.data(f,"hasCustomError",!!d),j(f))}}});f[c]=e.prop._supvalue});if(n||p)k.push("min"),k.push("max"),k.push("step"),q.push("input");p&&(k.push("required"),k.push("pattern"),q.push("select"),q.push("textarea"));if(n){var i;q.forEach(function(c){var e=b.defineNodeNameProperty(c,"validity",{prop:{get:function(){if(!i){var d=
|
26
|
+
"input"==c?a(this).getNativeElement()[0]:this,k=e.prop._supget.call(d);if(!k)return k;var r={};v.forEach(function(a){r[a]=k[a]});if(!a.prop(d,"willValidate"))return r;i=!0;var j=a(d),u={type:(d.getAttribute&&d.getAttribute("type")||"").toLowerCase(),nodeName:(d.nodeName||"").toLowerCase()},y=j.val(),x=!!b.data(d,"hasCustomError"),m;i=!1;r.customError=x;if(r.valid&&r.customError)r.valid=!1;else if(!r.valid){var l=!0;a.each(r,function(a,c){if(c)return l=!1});if(l)r.valid=!0}a.each(t,function(a,e){r[a]=
|
27
|
+
e(j,y,u,r);if(r[a]&&(r.valid||!m)&&(p||g[u.type]&&g[u.type].mismatch))f[c].call(d,b.createValidationMessage(d,a)),r.valid=!1,m=!0});r.valid?(f[c].call(d,""),b.data(d,"hasCustomError",!1)):p&&!m&&!x&&a.each(r,function(a,e){if("valid"!==a&&e)return f[c].call(d,b.createValidationMessage(d,a)),!1});return r}},writeable:!1}})});k.forEach(function(a){b.onNodeNamesPropertyModify(q,a,function(){j(this)})});if(l.addEventListener){var c,d=function(e){if("form"in e.target){var b=e.target.form;clearTimeout(c);
|
28
|
+
j(e.target);b&&p&&a("input",b).each(function(){"password"==this.type&&j(this)})}};l.addEventListener("change",d,!0);p&&(l.addEventListener("blur",d,!0),l.addEventListener("keydown",function(a){13==a.keyCode&&d(a)},!0));l.addEventListener("input",function(a){clearTimeout(c);c=setTimeout(function(){j(a.target)},290)},!0)}var e=q.join(",");b.addReady(function(c,b){a(e,c).add(b.filter(e)).each(function(){a.prop(this,"validity")})});p&&b.ready("DOM form-message",function(){b.activeLang({register:"form-core",
|
29
|
+
callback:function(){a("input, select, textarea").getNativeElement().each(function(){if(!b.data(this,"hasCustomError")){var c=this,e=a.prop(c,"validity")||{valid:!0},d;e.valid||(d=(c.nodeName||"").toLowerCase(),a.each(e,function(a,e){if("valid"!==a&&e)return f[d].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}}});m.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||
|
30
|
+
[]).length&&b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var c=this.options||[];if(!c.length){var e=a("select",this);if(e[0]&&e[0].options&&e[0].options.length)c=e[0].options}return c}}})}});
|
31
|
+
jQuery.webshims.register("form-number-date-api",function(a,b){var m,l,s;if(!b.getStep)b.getStep=function(c,b){var e=a.attr(c,"step");if("any"===e)return e;b=b||n(c);if(!g[b]||!g[b].step)return e;e=m.asNumber(e);return(!isNaN(e)&&0<e?e:g[b].step)*g[b].stepScaleFactor};if(!b.addMinMaxNumberToCache)b.addMinMaxNumberToCache=function(a,b,e){a+"AsNumber"in e||(e[a+"AsNumber"]=g[e.type].asNumber(b.attr(a)),isNaN(e[a+"AsNumber"])&&a+"Default"in g[e.type]&&(e[a+"AsNumber"]=g[e.type][a+"Default"]))};var k=
|
32
|
+
parseInt("NaN",10),g=b.inputTypes,t=function(a){return"number"==typeof a||a&&a==1*a},p=function(c){return a('<input type="'+c+'" />').prop("type")===c},n=function(a){return(a.getAttribute("type")||"").toLowerCase()},v=b.addMinMaxNumberToCache,q=function(a,b){for(var a=""+a,b=b-a.length,e=0;e<b;e++)a="0"+a;return a},j=b.bugs.valueAsNumberSet||b.bugs.bustedValidity;b.addValidityRule("stepMismatch",function(a,d,e,h){if(""===d)return!1;if(!("type"in e))e.type=n(a[0]);if("date"==e.type)return!1;h=(h||
|
33
|
+
{}).stepMismatch;if(g[e.type]&&g[e.type].step){if(!("step"in e))e.step=b.getStep(a[0],e.type);if("any"==e.step)return!1;if(!("valueAsNumber"in e))e.valueAsNumber=g[e.type].asNumber(d);if(isNaN(e.valueAsNumber))return!1;v("min",a,e);a=e.minAsNumber;isNaN(a)&&(a=g[e.type].stepBase||0);h=Math.abs((e.valueAsNumber-a)%e.step);h=!(1.0E-7>=h||1.0E-7>=Math.abs(h-e.step))}return h});[{name:"rangeOverflow",attr:"max",factor:1},{name:"rangeUnderflow",attr:"min",factor:-1}].forEach(function(a){b.addValidityRule(a.name,
|
34
|
+
function(b,e,h,o){o=(o||{})[a.name]||!1;if(""===e)return o;if(!("type"in h))h.type=n(b[0]);if(g[h.type]&&g[h.type].asNumber){if(!("valueAsNumber"in h))h.valueAsNumber=g[h.type].asNumber(e);if(isNaN(h.valueAsNumber))return!1;v(a.attr,b,h);if(isNaN(h[a.attr+"AsNumber"]))return o;o=h[a.attr+"AsNumber"]*a.factor<h.valueAsNumber*a.factor-1.0E-7}return o})});b.reflectProperties(["input"],["max","min","step"]);var f=b.defineNodeNameProperty("input","valueAsNumber",{prop:{get:function(){var b=n(this),b=g[b]&&
|
35
|
+
g[b].asNumber?g[b].asNumber(a.prop(this,"value")):f.prop._supget&&f.prop._supget.apply(this,arguments);null==b&&(b=k);return b},set:function(c){var d=n(this);g[d]&&g[d].numberToString?isNaN(c)?a.prop(this,"value",""):(d=g[d].numberToString(c),!1!==d?a.prop(this,"value",d):b.warn("INVALID_STATE_ERR: DOM Exception 11")):f.prop._supset&&f.prop._supset.apply(this,arguments)}}}),i=b.defineNodeNameProperty("input","valueAsDate",{prop:{get:function(){var b=n(this);return g[b]&&g[b].asDate&&!g[b].noAsDate?
|
36
|
+
g[b].asDate(a.prop(this,"value")):i.prop._supget&&i.prop._supget.call(this)||null},set:function(c){var d=n(this);if(g[d]&&g[d].dateToString&&!g[d].noAsDate){if(null===c)return a.prop(this,"value",""),"";d=g[d].dateToString(c);if(!1!==d)return a.prop(this,"value",d),d;b.warn("INVALID_STATE_ERR: DOM Exception 11")}else return i.prop._supset&&i.prop._supset.apply(this,arguments)||null}}});m={mismatch:function(a){return!t(a)},step:1,stepScaleFactor:1,asNumber:function(a){return t(a)?1*a:k},numberToString:function(a){return t(a)?
|
37
|
+
a:!1}};l={minDefault:0,maxDefault:100};s={mismatch:function(b){if(!b||!b.split||!/\d$/.test(b))return!0;var d=b.split(/\u002D/);if(3!==d.length)return!0;var e=!1;a.each(d,function(a,b){if(!(t(b)||b&&b=="0"+1*b))return e=!0,!1});if(e)return e;if(4!==d[0].length||2!=d[1].length||12<d[1]||2!=d[2].length||33<d[2])e=!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 e=
|
38
|
+
k;if(b||!this.mismatch(a))a=a.split(/\u002D/),e=Date.UTC(a[0],a[1]-1,a[2]);return e},numberToString:function(a){return t(a)?this.dateToString(new Date(1*a)):!1},dateToString:function(a){return a&&a.getFullYear?a.getUTCFullYear()+"-"+q(a.getUTCMonth()+1,2)+"-"+q(a.getUTCDate(),2):!1}};if(j||!p("range")||!p("time"))l=a.extend({},m,l);(j||!p("number"))&&b.addInputType("number",m);(j||!p("range"))&&b.addInputType("range",l);(j||!p("date"))&&b.addInputType("date",s)});
|
39
|
+
jQuery.webshims.register("form-number-date-ui",function(a,b,m,l,s,k){var g=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(c,d){var f,g,k;g="width";b&&(g=a[c.css(b)]||g);f=c[g]();g="width"==g;if(f){var u=parseInt(d.css("marginLeft"),10)||0,i=d.outerWidth();(k=parseInt(c.css("marginRight"),10)||0)&&c.css("marginRight",0);u<=-1*i?(d.css("marginRight",
|
40
|
+
Math.floor(Math.abs(i+u)+k)),c.css("paddingRight",(parseInt(c.css("paddingRight"),10)||0)+Math.abs(u)),g&&c.css("width",Math.floor(f+u))):(d.css("marginRight",k),c.css("width",Math.floor(f-u-i)))}}}(),n={},v=a([]),q,j=function(e,c){a("input",e).add(c.filter("input")).each(function(){var e=a.prop(this,"type");if(j[e]&&!b.data(this,"shadowData"))j[e](a(this))})},f=function(b,c){if(k.lazyDate){var d=a.data(b[0],"setDateLazyTimer");d&&clearTimeout(d);a.data(b[0],"setDateLazyTimer",setTimeout(function(){b.datepicker("setDate",
|
41
|
+
c);a.removeData(b[0],"setDateLazyTimer");b=null},0))}else b.datepicker("setDate",c)};if(k.lazyDate===s)try{k.lazyDate=a.browser.msie&&9>b.browserVersion||500>a(m).width()&&500>a(m).height()}catch(i){}var c={tabindex:1,tabIndex:1,title:1,"aria-required":1,"aria-invalid":1};if(!k.copyAttrs)k.copyAttrs={};b.extendUNDEFProp(k.copyAttrs,c);j.common=function(e,h,d){Modernizr.formvalidation&&e.bind("firstinvalid",function(a){(b.fromSubmit||!q)&&e.unbind("invalid.replacedwidgetbubble").bind("invalid.replacedwidgetbubble",
|
42
|
+
function(c){!a.isInvalidUIPrevented()&&!c.isDefaultPrevented()&&(b.validityAlert.showFor(a.target),a.preventDefault(),c.preventDefault());e.unbind("invalid.replacedwidgetbubble")})});var f,g,i=a("input, span.ui-slider-handle",h),j=e[0].attributes;for(f in k.copyAttrs)if((g=j[f])&&g.specified)c[f]&&i[0]?i.attr(f,g.nodeValue):h[0].setAttribute(f,g.nodeValue);g=e.attr("id");f=k.calculateWidth?{css:{marginRight:e.css("marginRight"),marginLeft:e.css("marginLeft")},outerWidth:e.outerWidth()}:{};f.label=
|
43
|
+
g?a('label[for="'+g+'"]',e[0].form):v;g=b.getID(f.label);h.addClass(e[0].className);b.addShadowDom(e,h,{data:d||{},shadowFocusElement:a("input.input-datetime-local-date, span.ui-slider-handle",h)[0],shadowChilds:i});e.after(h).hide();e[0].form&&a(e[0].form).bind("reset",function(a){a.originalEvent&&!a.isDefaultPrevented()&&setTimeout(function(){e.prop("value",e.prop("value"))},0)});1==h.length&&!a("*",h)[0]&&(h.attr("aria-labelledby",g),f.label.bind("click",function(){h.focus();return!1}));return f};
|
44
|
+
Modernizr.formvalidation&&["input","form"].forEach(function(a){var c=b.defineNodeNameProperty(a,"checkValidity",{prop:{value:function(){q=!0;var a=c.prop._supvalue.apply(this,arguments);q=!1;return a}}})});if(!t.date||k.replaceUI){var d=function(e,c,d,f){var g,i,j=function(){u.dpDiv.unbind("mousedown.webshimsmousedownhandler");i=g=!1},u=c.bind("focusin",function(){j();u.dpDiv.unbind("mousedown.webshimsmousedownhandler").bind("mousedown.webshimsmousedownhandler",function(){g=!0})}).bind("focusout blur",
|
45
|
+
function(a){g&&(i=!0,a.stopImmediatePropagation())}).datepicker(a.extend({onClose:function(){i&&c.not(":focus")?(j(),c.trigger("focusout"),c.triggerHandler("blur")):j()}},n,k.datepicker,e.data("datepicker"))).bind("change",d).data("datepicker");u.dpDiv.addClass("input-date-datepicker-control");f&&b.triggerDomUpdate(f[0]);["disabled","min","max","value","step"].forEach(function(a){var b=e.prop(a);""!==b&&("disabled"!=a||!b)&&e.prop(a,b)});return u};j.date=function(b){if(a.fn.datepicker){var c=a('<input class="input-date" type="text" />'),
|
46
|
+
f=this.common(b,c,j.date.attrs),i=d(b,c,function(d){j.date.blockAttr=!0;var f;if(k.lazyDate){var o=a.data(c[0],"setDateLazyTimer");o&&(clearTimeout(o),a.removeData(c[0],"setDateLazyTimer"))}try{f=(f=a.datepicker.parseDate(c.datepicker("option","dateFormat"),c.prop("value")))?a.datepicker.formatDate("yy-mm-dd",f):c.prop("value")}catch(i){f=c.prop("value")}b.prop("value",f);j.date.blockAttr=!1;d.stopImmediatePropagation();g(b[0],"input");g(b[0],"change")});f.css&&(c.css(f.css),f.outerWidth&&c.outerWidth(f.outerWidth),
|
47
|
+
i.trigger[0]&&p(c,i.trigger))}};j.date.attrs={disabled:function(b,c,d){a.prop(c,"disabled",!!d)},min:function(b,c,d){try{d=a.datepicker.parseDate("yy-mm-dd",d)}catch(f){d=!1}d&&a(c).datepicker("option","minDate",d)},max:function(b,c,d){try{d=a.datepicker.parseDate("yy-mm-dd",d)}catch(f){d=!1}d&&a(c).datepicker("option","maxDate",d)},value:function(b,c,d){if(!j.date.blockAttr){try{var g=a.datepicker.parseDate("yy-mm-dd",d)}catch(i){g=!1}g?f(a(c),g):a.prop(c,"value",d)}}}}if(!t.range||k.replaceUI)j.range=
|
48
|
+
function(b){if(a.fn.slider){var c=a('<span class="input-range"><span class="ui-slider-handle" role="slider" tabindex="0" /></span>'),d=this.common(b,c,j.range.attrs);a("span",c).attr("aria-labelledby",d.label.attr("id"));d.label.bind("click",function(){a("span",c).focus();return!1});d.css&&(c.css(d.css),d.outerWidth&&c.outerWidth(d.outerWidth));c.slider(a.extend(!0,{},k.slider,b.data("slider"))).bind("slide",function(a,c){if(a.originalEvent)j.range.blockAttr=!0,b.prop("value",c.value),j.range.blockAttr=
|
49
|
+
!1,g(b[0],"input"),g(b[0],"change")});["disabled","min","max","step","value"].forEach(function(c){var d=b.attr(c),f;"value"==c&&!d&&(f=b.getShadowElement())&&(d=(a(f).slider("option","max")-a(f).slider("option","min"))/2);null!=d&&b.attr(c,d)})}},j.range.attrs={disabled:function(b,c,d){d=!!d;a(c).slider("option","disabled",d);a("span",c).attr({"aria-disabled":d+"",tabindex:d?"-1":"0"})},min:function(b,c,d){d=d?1*d||0:0;a(c).slider("option","min",d);a("span",c).attr({"aria-valuemin":d})},max:function(b,
|
50
|
+
c,d){d=d||0===d?1*d||100:100;a(c).slider("option","max",d);a("span",c).attr({"aria-valuemax":d})},value:function(b,c,d){d=a(b).prop("valueAsNumber");isNaN(d)||(j.range.blockAttr||a(c).slider("option","value",d),a("span",c).attr({"aria-valuenow":d,"aria-valuetext":d}))},step:function(b,c,d){d=d&&a.trim(d)?1*d||1:1;a(c).slider("option","step",d)}};if(!b.bugs.valueAsNumberSet&&(k.replaceUI||!Modernizr.inputtypes.date||!Modernizr.inputtypes.range))m=function(){b.data(this,"hasShadow")&&a.prop(this,"value",
|
51
|
+
a.prop(this,"value"))},b.onNodeNamesPropertyModify("input","valueAsNumber",m),b.onNodeNamesPropertyModify("input","valueAsDate",m);a.each(["disabled","min","max","value","step"],function(a,c){b.onNodeNamesPropertyModify("input",c,function(a){var d=b.data(this,"shadowData");if(d&&d.data&&d.data[c]&&d.nativeElement===this)d.data[c](this,d.shadowElement,a)})});if(!k.availabeLangs)k.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(" ");
|
52
|
+
m=function(){a.datepicker&&(b.activeLang({langObj:a.datepicker.regional,module:"form-number-date-ui",callback:function(b){b=a.extend({},n,b,k.datepicker);a.datepicker.setDefaults(b);b.dateFormat&&k.datepicker.dateFormat!=b.dateFormat&&a("input.hasDatepicker").filter(".input-date, .input-datetime-local-date").datepicker("option","dateFormat",b.dateFormat)}}),a(l).unbind("jquery-uiReady.langchange input-widgetsReady.langchange"))};a(l).bind("jquery-uiReady.langchange input-widgetsReady.langchange",
|
53
|
+
m);m();(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,i=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",
|
54
|
+
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:
|
55
|
+
Math.round(1E7*c)/1E7};b.modules["form-number-date-ui"].getNextStep=i;var k=function(b,c,d){if(!b.disabled&&!b.readOnly&&!a(d).hasClass("step-controls")&&(a.prop(b,"value",f[c].numberToString(i(b,a(d).hasClass("step-up")?1:-1,{type:c}))),a(b).unbind("blur.stepeventshim"),g(b,"input"),l.activeElement)){if(l.activeElement!==b)try{b.focus()}catch(e){}setTimeout(function(){if(l.activeElement!==b)try{b.focus()}catch(c){}a(b).one("blur.stepeventshim",function(){g(b,"change")})},0)}};if(d.stepArrows){var j=
|
56
|
+
{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",j);b.onNodeNamesPropertyModify("input","readonly",a.extend({},j))}var m={38:1,40:-1};b.addReady(function(j,l){d.stepArrows&&a("input",j).add(l.filter("input")).each(function(){var j=a.prop(this,"type");if(f[j]&&f[j].asNumber&&d.stepArrows&&!(!0!==d.stepArrows&&!d.stepArrows[j]||c(j)||a(l).hasClass("has-step-controls"))){var l=
|
57
|
+
this,n=a('<span class="step-controls" unselectable="on"><span class="step-up" /><span class="step-down" /></span>').insertAfter(l).bind("selectstart dragstart",function(){return!1}).bind("mousedown mousepress",function(a){k(l,j,a.target);return!1}).bind("mousepressstart mousepressend",function(b){a(b.target)["mousepressstart"==b.type?"addClass":"removeClass"]("mousepress-ui")}),r=function(b,c){if(!l.disabled&&!l.readOnly)return a.prop(l,"value",f[j].numberToString(i(l,c,{type:j}))),g(l,"input"),!1},
|
58
|
+
q=a(l).addClass("has-step-controls").attr({readonly:l.readOnly,disabled:l.disabled,autocomplete:"off",role:"spinbutton"}).bind(a.browser.msie?"keydown":"keypress",function(b){if(!l.disabled&&!l.readOnly&&m[b.keyCode])return a.prop(l,"value",f[j].numberToString(i(l,m[b.keyCode],{type:j}))),g(l,"input"),!1});a.fn.mwheelIntent?q.add(n).bind("mwheelIntent",r):q.bind("focus",function(){q.add(n).unbind(".mwhellwebshims").bind("mousewheel.mwhellwebshims",r)}).bind("blur",function(){a(l).add(n).unbind(".mwhellwebshims")});
|
59
|
+
b.data(l,"step-controls",n);d.calculateWidth&&(p(q,n),n.css("marginTop",(q.outerHeight()-n.outerHeight())/2))}})})}})();b.addReady(function(c,d){a(l).bind("jquery-uiReady.initinputui input-widgetsReady.initinputui",function(){if(a.datepicker||a.fn.slider){if(a.datepicker&&!n.dateFormat)n.dateFormat=a.datepicker._defaults.dateFormat;j(c,d)}a.datepicker&&a.fn.slider?a(l).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')})})});
|
@@ -1,62 +1,64 @@
|
|
1
|
-
(function(a){if(!Modernizr.genericDOM){var
|
2
|
-
jQuery.webshims.register("dom-extend",function(a,
|
3
|
-
!0)),null==
|
4
|
-
"shadowData");return a&&a[
|
5
|
-
("attr"==
|
6
|
-
o[
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(
|
13
|
-
|
14
|
-
b,f){var e;a.isFunction(b)&&(b={after:b});
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
(function(a,
|
20
|
-
o&&!a(o).closest("section, article")[0]&&
|
21
|
-
jQuery.webshims.register("form-datalist",function(a,
|
22
|
-
if(
|
23
|
-
this.timedHide=function(){clearTimeout(
|
24
|
-
function(
|
25
|
-
c.keyCode,
|
26
|
-
!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&
|
27
|
-
"value"),e=(b.input.name||b.input.id)+a.prop(b.input,"type");if(!
|
28
|
-
this.id
|
29
|
-
|
30
|
-
""),className:
|
31
|
-
g.text+'</span> <span class="option-value">'+
|
32
|
-
e;var
|
33
|
-
|
34
|
-
a(
|
35
|
-
|
36
|
-
b
|
37
|
-
b).
|
38
|
-
(
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
(function(a){
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
"
|
51
|
-
a.
|
52
|
-
|
53
|
-
return
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
b.
|
60
|
-
|
61
|
-
|
62
|
-
|
1
|
+
(function(a){if(!Modernizr.genericDOM){var c=document,h,k,l=/<([\w:]+)/,u={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||u[(l.exec(a)||["",""])[1].toLowerCase()])return a;if(!k){h=c.body;if(!h)return a;k=c.createElement("div");k.style.display="none"}var o=k.cloneNode(!1);h.appendChild(o);o.innerHTML=a;h.removeChild(o);return o.childNodes}}})(jQuery);
|
2
|
+
jQuery.webshims.register("dom-extend",function(a,c,h,k,l){var u=c.modules,p=/\s*,\s*/,o={},v={},q={},w={},s={},x=a.fn.val,b=function(g,n,f,d,b){return b?x.call(a(g)):x.call(a(g),f)};a.fn.val=function(g){var n=this[0];arguments.length&&null==g&&(g="");if(!arguments.length)return!n||1!==n.nodeType?x.call(this):a.prop(n,"value",g,"val",!0);if(a.isArray(g))return x.apply(this,arguments);var f=a.isFunction(g);return this.each(function(d){n=this;1===n.nodeType&&(f?(d=g.call(n,d,a.prop(n,"value",l,"val",
|
3
|
+
!0)),null==d&&(d=""),a.prop(n,"value",d,"val")):a.prop(n,"value",g,"val"))})};var e="_webshimsLib"+Math.round(1E3*Math.random()),i=function(g,n,f){g=g.jquery?g[0]:g;if(!g)return f||{};var d=a.data(g,e);f!==l&&(d||(d=a.data(g,e,{})),n&&(d[n]=f));return n?d&&d[n]:d};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(g){a.fn[g.name]=function(){return this.map(function(){var a=i(this,
|
4
|
+
"shadowData");return a&&a[g.prop]||this})}});["removeAttr","prop","attr"].forEach(function(g){o[g]=a[g];a[g]=function(d,f,r,j,e){var i="val"==j,c=!i?o[g]:b;if(!d||!v[f]||1!==d.nodeType||!i&&j&&"attr"==g&&a.attrFn[f])return c(d,f,r,j,e);var y=(d.nodeName||"").toLowerCase(),t=q[y],m="attr"==g&&(!1===r||null===r)?"removeAttr":g,h,k,p;t||(t=q["*"]);t&&(t=t[f]);t&&(h=t[m]);if(h){if("value"==f)k=h.isVal,h.isVal=i;if("removeAttr"===m)return h.value.call(d);if(r===l)return h.get?h.get.call(d):h.value;h.set&&
|
5
|
+
("attr"==g&&!0===r&&(r=f),p=h.set.call(d,r));if("value"==f)h.isVal=k}else p=c(d,f,r,j,e);if((r!==l||"removeAttr"===m)&&s[y]&&s[y][f]){var u;u="removeAttr"==m?!1:"prop"==m?!!r:!0;s[y][f].forEach(function(a){if(!a.only||(a.only="prop"==g)||"attr"==a.only&&"prop"!=g)a.call(d,r,u,i?"val":m,g)})}return p};w[g]=function(d,f,r){q[d]||(q[d]={});q[d][f]||(q[d][f]={});var j=q[d][f][g],e=function(a,d,n){return d&&d[a]?d[a]:n&&n[a]?n[a]:"prop"==g&&"value"==f?function(a){return r.isVal?b(this,f,a,!1,0===arguments.length):
|
6
|
+
o[g](this,f,a)}:"prop"==g&&"value"==a&&r.value.apply?function(a){var d=o[g](this,f);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(a){return o[g](this,f,a)}};q[d][f][g]=r;if(r.value===l){if(!r.set)r.set=r.writeable?e("set",r,j):c.cfg.useStrict&&"prop"==f?function(){throw f+" is readonly on "+d;}:a.noop;if(!r.get)r.get=e("get",r,j)}["value","get","set"].forEach(function(a){r[a]&&(r["_sup"+a]=e(a,j))})}});var t=!a.browser.msie||8<parseInt(a.browser.version,10),d=function(){var a=c.getPrototypeOf(k.createElement("foobar")),
|
7
|
+
d=Object.prototype.hasOwnProperty;return function(f,b,e){var m=k.createElement(f),h=c.getPrototypeOf(m);if(t&&h&&a!==h&&(!m[b]||!d.call(m,b))){var s=m[b];e._supvalue=function(){return s&&s.apply?s.apply(this,arguments):s};h[b]=e.value}else e._supvalue=function(){var a=i(this,"propValue");return a&&a[b]&&a[b].apply?a[b].apply(this,arguments):a&&a[b]},j.extendValue(f,b,e.value);e.value._supvalue=e._supvalue}}(),j=function(){var d={};c.addReady(function(f,n){var b={},j=function(d){b[d]||(b[d]=a(f.getElementsByTagName(d)),
|
8
|
+
n[0]&&a.nodeName(n[0],d)&&(b[d]=b[d].add(n)))};a.each(d,function(a,d){j(a);!d||!d.forEach?c.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(d){b[a].each(d)})});b=null});var n,f=a([]),b=function(f,b){d[f]?d[f].push(b):d[f]=[b];a.isDOMReady&&(n||a(k.getElementsByTagName(f))).each(b)};return{createTmpCache:function(d){a.isDOMReady&&(n=n||a(k.getElementsByTagName(d)));return n||f},flushTmpCache:function(){n=null},content:function(d,g){b(d,function(){var d=a.attr(this,g);null!=d&&a.attr(this,
|
9
|
+
g,d)})},createElement:function(a,d){b(a,d)},extendValue:function(d,g,f){b(d,function(){a(this).each(function(){i(this,"propValue",{})[g]=this[g];this[g]=f})})}}}(),m=function(a,d){if(a.defaultValue===l)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[d||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(c,{getID:function(){var d=(new Date).getTime();return function(b){var b=a(b),f=b.attr("id");f||(d++,f="ID-"+d,b.attr("id",f));return f}}(),extendUNDEFProp:function(d,
|
10
|
+
b){a.each(b,function(a,b){a in d||(d[a]=b)})},createPropDefault:m,data:i,moveToFirstEvent:function(){var d=a._data?"_data":"data";return function(b,f,j){if((b=(a[d](b,"events")||{})[f])&&1<b.length)f=b.pop(),j||(j="bind"),"bind"==j&&b.delegateCount?b.splice(b.delegateCount,0,f):b.unshift(f)}}(),addShadowDom:function(d,b,f){f=f||{};d.jquery&&(d=d[0]);b.jquery&&(b=b[0]);if(!f.shadowFocusElement)f.shadowFocusElement=b;var j=a.data(d,e)||a.data(d,e,{}),t=a.data(b,e)||a.data(b,e,{});j.hasShadow=b;t.nativeElement=
|
11
|
+
d;t.shadowData=j.shadowData={nativeElement:d,shadowElement:b,shadowFocusElement:f.shadowFocusElement};f.shadowChilds&&f.shadowChilds.each(function(){i(this,"shadowData",t.shadowData)});if(f.data)j.shadowData.data=f.data,t.shadowData.data=f.data;f=null},propTypes:{standard:function(a){m(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,""+d)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){m(a);if(!a.prop)a.prop={set:function(d){d?a.attr.set.call(this,
|
12
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(d,b){"string"==typeof b&&(b=b.split(p));b.forEach(function(b){c.defineNodeNamesProperty(d,b,{prop:{set:function(d){a.attr(this,b,d)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(b,e,f){v[e]=!0;if(f.reflect)c.propTypes[f.propType||"standard"](f);["prop","attr","removeAttr"].forEach(function(j){var i=f[j];i&&(i="prop"===j?a.extend({writeable:!0},i):a.extend({},
|
13
|
+
i,{writeable:!0}),w[j](b,e,i),"*"!=b&&c.cfg.extendNative&&"prop"==j&&i.value&&a.isFunction(i.value)&&d(b,e,i),f[j]=i)});f.initAttr&&j.content(b,e);return f},defineNodeNameProperties:function(a,d,b,e){for(var i in d)!e&&d[i].initAttr&&j.createTmpCache(a),b&&(d[i][b]?c.log("override: "+a+"["+i+"] for "+b):(d[i][b]={},["value","set","get"].forEach(function(a){a in d[i]&&(d[i][b][a]=d[i][a],delete d[i][a])}))),d[i]=c.defineNodeNameProperty(a,i,d[i]);e||j.flushTmpCache();return d},createElement:function(d,
|
14
|
+
b,f){var e;a.isFunction(b)&&(b={after:b});j.createTmpCache(d);b.before&&j.createElement(d,b.before);f&&(e=c.defineNodeNameProperties(d,f,!1,!0));b.after&&j.createElement(d,b.after);j.flushTmpCache();return e},onNodeNamesPropertyModify:function(d,b,f,e){"string"==typeof d&&(d=d.split(p));a.isFunction(f)&&(f={set:f});d.forEach(function(a){s[a]||(s[a]={});"string"==typeof b&&(b=b.split(p));f.initAttr&&j.createTmpCache(a);b.forEach(function(d){s[a][d]||(s[a][d]=[],v[d]=!0);if(f.set){if(e)f.set.only=e;
|
15
|
+
s[a][d].push(f.set)}f.initAttr&&j.content(a,d)});j.flushTmpCache()})},defineNodeNamesBooleanProperty:function(d,b,f){f||(f={});if(a.isFunction(f))f.set=f;c.defineNodeNamesProperty(d,b,{attr:{set:function(a){this.setAttribute(b,a);f.set&&f.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?l:b}},removeAttr:{value:function(){this.removeAttribute(b);f.set&&f.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:f.initAttr||!1})},contentAttr:function(a,d,b){if(a.nodeName){if(b===
|
16
|
+
l)return b=(a.attributes[d]||{}).value,null==b?l:b;"boolean"==typeof b?b?a.setAttribute(d,d):a.removeAttribute(d):a.setAttribute(d,b)}},activeLang:function(){var d=[],b={},f,j,e=/:\/\/|^\.*\//,i=function(d,b,f){return b&&f&&-1!==a.inArray(b,f.availabeLangs||[])?(d.loading=!0,f=f.langSrc,e.test(f)||(f=c.cfg.basePath+f),c.loader.loadScript(f+b+".js",function(){d.langObj[b]?(d.loading=!1,m(d,!0)):a(function(){d.langObj[b]&&m(d,!0);d.loading=!1})}),!0):!1},t=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},
|
17
|
+
m=function(a,d){if(a.activeLang!=f&&a.activeLang!==j){var b=u[a.module].options;if(a.langObj[f]||j&&a.langObj[j])a.activeLang=f,a.callback(a.langObj[f]||a.langObj[j],f),t(a.module);else if(!d&&!i(a,f,b)&&!i(a,j,b)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],f),t(a.module)}};return function(e){if("string"==typeof e&&e!==f)f=e,j=f.split("-")[0],f==j&&(j=!1),a.each(d,function(a,d){m(d)});else if("object"==typeof e)if(e.register)b[e.register]||(b[e.register]=[]),b[e.register].push(e),
|
18
|
+
e.callback();else{if(!e.activeLang)e.activeLang="";d.push(e);m(e)}return f}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,d){c[a]=function(a,b,e,j){"string"==typeof a&&(a=a.split(p));var g={};a.forEach(function(a){g[a]=c[d](a,b,e,j)});return g}});c.isReady("webshimLocalization",!0)});
|
19
|
+
(function(a,c){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(a,c){a.getAttribute("role")||a.setAttribute("role",c)};a.webshims.addReady(function(h,p){a.each(k,function(c,s){for(var k=a(c,h).add(p.filter(c)),b=0,e=k.length;b<e;b++)l(k[b],s)});if(h===c){var o=c.getElementsByTagName("header")[0],v=c.getElementsByTagName("footer"),q=v.length;
|
20
|
+
o&&!a(o).closest("section, article")[0]&&l(o,"banner");q&&(o=v[q-1],a(o).closest("section, article")[0]||l(o,"contentinfo"))}})}})(jQuery,document);
|
21
|
+
jQuery.webshims.register("form-datalist",function(a,c,h,k,l){c.propTypes.element=function(h){c.createPropDefault(h,"attr");if(!h.prop)h.prop={get:function(){var c=h.attr.get.call(this);c&&(c=a("#"+c)[0])&&h.propNodeName&&!a.nodeName(c,h.propNodeName)&&(c=null);return c||null},writeable:!1}};(function(){var u=a.webshims.cfg.forms,p=Modernizr.input.list;if(!p||u.customDatalist){var o=0,v={submit:1,button:1,reset:1,hidden:1,range:1,date:1},q=a.browser.msie&&7>parseInt(a.browser.version,10),w={},s=function(a){if(!a)return[];
|
22
|
+
if(w[a])return w[a];var e;try{e=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(i){}w[a]=e||[];return e||[]},x={_create:function(b){if(!v[a.prop(b.input,"type")]){var e=b.datalist,i=a.data(b.input,"datalistWidget");if(e&&i&&i.datalist!==e)i.datalist=e,i.id=b.id,i.shadowList.prop("className","datalist-polyfill "+(i.datalist.className||"")+" "+i.datalist.id+"-shadowdom"),u.positionDatalist?i.shadowList.insertAfter(b.input):i.shadowList.appendTo("body"),a(i.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
|
23
|
+
a.proxy(i,"_resetListCached")),i._resetListCached();else if(e){if(!(i&&i.datalist===e)){o++;var c=this;this.hideList=a.proxy(c,"hideList");this.timedHide=function(){clearTimeout(c.hideTimer);c.hideTimer=setTimeout(c.hideList,9)};this.datalist=e;this.id=b.id;this.hasViewableData=!0;this._autocomplete=a.attr(b.input,"autocomplete");a.data(b.input,"datalistWidget",this);this.shadowList=a('<div class="datalist-polyfill '+(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom" />');u.positionDatalist?
|
24
|
+
this.shadowList.insertAfter(b.input):this.shadowList.appendTo("body");this.index=-1;this.input=b.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(d){var e=a("li:not(.hidden-item)",c.shadowList),i="mousedown"==d.type||"click"==d.type;c.markItem(e.index(d.currentTarget),i,e);"click"==d.type&&(c.hideList(),a(b.input).trigger("datalistselect"));return"mousedown"!=d.type}).bind("focusout",this.timedHide);b.input.setAttribute("autocomplete",
|
25
|
+
"off");a(b.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!c.triggeredByDatalist)c.changedValue=!1,c.showHideOptions()}).bind("keydown.datalistWidget",function(d){var e=d.keyCode,i;if(40==e&&!c.showList())return c.markItem(c.index+1,!0),!1;if(c.isListVisible){if(38==e)return c.markItem(c.index-1,!0),!1;if(!d.shiftKey&&(33==e||36==e))return c.markItem(0,!0),!1;if(!d.shiftKey&&(34==e||35==e))return d=a("li:not(.hidden-item)",c.shadowList),c.markItem(d.length-1,!0,d),
|
26
|
+
!1;if(13==e||27==e)return 13==e&&(i=a("li.active-item:not(.hidden-item)",c.shadowList),c.changeValue(a("li.active-item:not(.hidden-item)",c.shadowList))),c.hideList(),i&&i[0]&&a(b.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&c.showList()}).bind("mousedown.datalistWidget",function(){a(this).is(":focus")&&c.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
|
27
|
+
a.proxy(this,"_resetListCached"));this._resetListCached();b.input.form&&(b.input.name||b.input.id)&&a(b.input.form).bind("submit.datalistWidget"+b.input.id,function(){if(!a(b.input).hasClass("no-datalist-cache")){var d=a.prop(b.input,"value"),e=(b.input.name||b.input.id)+a.prop(b.input,"type");if(!c.storedOptions)c.storedOptions=s(e);if(d&&-1==c.storedOptions.indexOf(d)&&(c.storedOptions.push(d),d=c.storedOptions,e)){d=d||[];try{localStorage.setItem("storedDatalistOptions"+e,JSON.stringify(d))}catch(i){}}}});
|
28
|
+
a(h).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){c.destroy()})}}else i&&i.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(k).unbind(".datalist"+this.id);a(h).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===l?this.input.removeAttribute("autocomplete"):
|
29
|
+
a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var e=this,i;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(h.QUnit||(i=a&&k.activeElement==e.input)?e.updateListOptions(i):c.ready("WINDOWLOAD",function(){e.updateTimer=setTimeout(function(){e.updateListOptions();e=null;o=1},200+100*o)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.css(this.input,"fontSize"),
|
30
|
+
fontFamily:a.css(this.input,"fontFamily")});this.searchStart=a(this.input).hasClass("search-start");var e=[],i=[],c=[],d,j,m,g;for(j=a.prop(this.datalist,"options"),m=0,g=j.length;m<g;m++){d=j[m];if(d.disabled)return;d={value:a(d).val()||"",text:a.trim(a.attr(d,"label")||d.textContent||d.innerText||a.text([d])||""),className:d.className||"",style:a.attr(d,"style")||""};d.text?d.text!=d.value&&(d.className+=" different-label-value"):d.text=d.value;i[m]=d.value;c[m]=d}if(!this.storedOptions)this.storedOptions=
|
31
|
+
a(this.input).hasClass("no-datalist-cache")?[]:s((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==i.indexOf(a)&&c.push({value:a,text:a,className:"stored-suggest",style:""})});for(m=0,g=c.length;m<g;m++)j=c[m],e[m]='<li class="'+j.className+'" style="'+j.style+'" tabindex="-1" role="listitem"><span class="option-label">'+j.text+'</span> <span class="option-value">'+j.value+"</span></li>";this.arrayOptions=c;this.shadowList.html('<div class="datalist-outer-box"><div class="datalist-box"><ul role="list">'+
|
32
|
+
e.join("\n")+"</ul></div></div>");a.fn.bgIframe&&q&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var e=a.prop(this.input,"value").toLowerCase();if(!(e===this.lastUpdatedValue||this.lastUnfoundValue&&0===e.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=e;var c=!1,h=this.searchStart,d=a("li",this.shadowList);e?this.arrayOptions.forEach(function(b,m){var g;if(!("lowerText"in b))b.lowerText=b.text!=b.value?b.text.toLowerCase()+b.value.toLowerCase():
|
33
|
+
b.text.toLowerCase();g=b.lowerText.indexOf(e);(g=h?!g:-1!==g)?(a(d[m]).removeClass("hidden-item"),c=!0):a(d[m]).addClass("hidden-item")}):d.length&&(d.removeClass("hidden-item"),c=!0);this.hasViewableData=c;!b&&c&&this.showList();if(!c)this.lastUnfoundValue=e,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var b=u.positionDatalist?a(this.input).position():c.getRelOffset(this.shadowList,this.input);b.top+=a(this.input).outerHeight();
|
34
|
+
b.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css({marginTop:"",marginLeft:"",marginRight:"",marginBottom:""}).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,e;b.setPos();b.shadowList.addClass("datalist-visible").find("li.active-item").removeClass("active-item");
|
35
|
+
a(k).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(e){e.target===b.input||b.shadowList[0]===e.target||a.contains(b.shadowList[0],e.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()});a(h).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+" orientationchange.datalist "+b.id+" emchange.datalist"+b.id,function(){clearTimeout(e);e=setTimeout(function(){b.setPos()},9)});clearTimeout(e);return!0},hideList:function(){if(!this.isListVisible)return!1;
|
36
|
+
var b=this,e=function(){b.changedValue&&a(b.input).trigger("change");b.changedValue=!1};b.shadowList.removeClass("datalist-visible list-item-active");b.index=-1;b.isListVisible=!1;if(b.changedValue){b.triggeredByDatalist=!0;c.triggerInlineForm&&c.triggerInlineForm(b.input,"input");if(a(b.input).is(":focus"))a(b.input).one("blur",e);else e();b.triggeredByDatalist=!1}a(k).unbind(".datalist"+b.id);a(h).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+" orientationchange.datalist "+b.id+" emchange.datalist"+
|
37
|
+
b.id,function(){b.shadowList.css({top:0,left:0});a(h).unbind(".datalist"+b.id)});return!0},scrollIntoView:function(b){var e=a("ul",this.shadowList),c=a("div.datalist-box",this.shadowList),h=b.position();h.top-=(parseInt(e.css("paddingTop"),10)||0)+(parseInt(e.css("marginTop"),10)||0)+(parseInt(e.css("borderTopWidth"),10)||0);0>h.top?c.scrollTop(c.scrollTop()+h.top-2):(h.top+=b.outerHeight(),b=c.height(),h.top>b&&c.scrollTop(c.scrollTop()+(h.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",
|
38
|
+
b).text(),e=a.prop(this.input,"value");if(b!=e)a(this.input).prop("value",b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,e,c){c=c||a("li:not(.hidden-item)",this.shadowList);if(c.length)0>b?b=c.length-1:b>=c.length&&(b=0),c.removeClass("active-item"),this.shadowList.addClass("list-item-active"),c=c.filter(":eq("+b+")").addClass("active-item"),e&&(this.changeValue(c),this.scrollIntoView(c)),this.index=b}};(function(){p||c.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,
|
39
|
+
get:function(){var b=a("select",this);b[0]?b=b[0].options:(b=a("option",this).get(),b.length&&c.warn("you should wrap you option-elements for a datalist in a select element to support IE and other old browsers."));return b}}});var b={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 c=a.data(this,"datalistWidget");c?(c._autocomplete=b,"off"==b&&c.hideList()):
|
40
|
+
"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",b)}}}};if(!p||!1 in a("<input />")[0])b.selectedOption={prop:{writeable:!1,get:function(){var b=a.prop(this,"list"),c=null,h;if(!b)return c;h=a.attr(this,"value");if(!h)return c;b=a.prop(b,"options");if(!b.length)return c;a.each(b,function(d,b){if(h==a.prop(b,"value"))return c=b,!1});return c}}};b.list=p?{attr:{get:function(){var b=c.contentAttr(this,"list");null!=b?this.removeAttribute("list"):b=a.data(this,"datalistListAttr");
|
41
|
+
return null==b?l:b},set:function(b){a.data(this,"datalistListAttr",b);c.objectCreate(x,l,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}:{attr:{get:function(){var a=c.contentAttr(this,"list");return null==a?l:a},set:function(b){c.contentAttr(this,"list",b);c.objectCreate(x,l,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};c.defineNodeNameProperties("input",b);if(a.event.customEvent)a.event.customEvent.updateDatalist=
|
42
|
+
!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;c.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
|
43
|
+
(function(a){var c=window.Modernizr,h=a.webshims,k=h.bugs,l=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),u=function(){if(l[0].querySelector)try{k.findRequired=!l[0].querySelector("select:required")}catch(a){k.findRequired=!1}};k.findRequired=!1;k.validationMessage=!1;k.valueAsNumberSet=!1;h.capturingEventPrevented=function(c){if(!c._isPolyfilled){var h=c.isDefaultPrevented,
|
44
|
+
b=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 b.apply(this,arguments)};c.isDefaultPrevented=function(){return!(!h.apply(this,arguments)&&!a.data(c.target,c.type+"DefaultPrevented"))};c._isPolyfilled=!0}};if(!c.formvalidation||k.bustedValidity)u();else if(h.capturingEvents(["input"]),h.capturingEvents(["invalid"],!0),
|
45
|
+
c.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var p=a("input",l).eq(0),o,v=function(a){h.loader.loadList(["dom-extend"]);h.ready("dom-extend",a)},q=function(k){var q=["form-extend","form-message","form-native-fix"];k&&(k.preventDefault(),k.stopImmediatePropagation());clearTimeout(o);setTimeout(function(){l&&(l.remove(),l=p=null)},9);if(!c.bugfreeformvalidation)h.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),h.modules["form-extend"].test=a.noop;h.isReady("form-number-date-api")&&
|
46
|
+
q.push("form-number-date-api");h.reTest(q);if(p)try{p.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&v(function(){h.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(b){!b&&this&&a.prop(this,"value",a.prop(this,"value"))}});h.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(b){if(!b&&this)b=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(b)}})})}catch(b){}(a.browser.opera||window.testGoodWithFix)&&
|
47
|
+
v(function(){var b=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(c){var k=h.defineNodeNameProperty(c,"checkValidity",{prop:{value:function(){h.fromSubmit||a(this).bind("invalid.checkvalidity",b);h.fromCheckValidity=!0;var d=k.prop._supvalue.apply(this,arguments);h.fromSubmit||a(this).unbind("invalid.checkvalidity",b);h.fromCheckValidity=!1;return d}}})});c.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&
|
48
|
+
h.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var c=a("select",this);if(c[0]&&c[0].options&&c[0].options.length)b=c[0].options}return b}}})})};l.appendTo("head");if(window.opera||window.testGoodWithFix){u();k.validationMessage=!p.prop("validationMessage");if((c.inputtypes||{}).date){try{p.prop("valueAsNumber",0)}catch(w){}k.valueAsNumberSet="1970-01-01"!=p.prop("value")}p.prop("value","")}l.bind("submit",function(a){c.bugfreeformvalidation=
|
49
|
+
!1;q(a)});o=setTimeout(function(){l&&l.triggerHandler("submit")},9);a("input, select",l).bind("invalid",q).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click")}})(jQuery);
|
50
|
+
jQuery.webshims.register("form-core",function(a,c,h,k,l,u){var p={radio:1},o={checkbox:1,radio:1},v=a([]),q=c.bugs,w=function(d){var d=a(d),b,c;b=v;if(p[d[0].type])c=d.prop("form"),b=(b=d[0].name)?c?a(c[b]):a(k.getElementsByName(b)).filter(function(){return!a.prop(this,"form")}):d,b=b.filter('[type="radio"]');return b},s=c.getContentValidationMessage=function(b,c,e){var g=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";e&&g[e]&&(g=g[e]);"object"==typeof g&&(c=c||a.prop(b,"validity")||
|
51
|
+
{valid:1},c.valid||a.each(c,function(a,b){if(b&&"valid"!=a&&g[a])return g=g[a],!1}));if("object"==typeof g)g=g.defaultMessage;return g||""},x={number:1,range:1,date:1};a.extend(a.expr.filters,{"valid-element":function(b){return!(!a.prop(b,"willValidate")||!(a.prop(b,"validity")||{valid:1}).valid)},"invalid-element":function(b){return!(!a.prop(b,"willValidate")||(a.prop(b,"validity")||{valid:1}).valid)},"required-element":function(b){return!(!a.prop(b,"willValidate")||!a.prop(b,"required"))},"optional-element":function(b){return!!(a.prop(b,
|
52
|
+
"willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!x[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(!x[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.filters[b]=a.expr.filters[b+"-element"]});a.expr.filters.focus=function(a){try{var b=
|
53
|
+
a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(c){}return!1};var b=a.event.customEvent||{};(q.bustedValidity||q.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var b=a.find,c=a.find.matchesSelector,e=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,g=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,c=function(c){var f=arguments,f=a.call(f,1,f.length);f.unshift(c.replace(e,g));return b.apply(this,
|
54
|
+
f)},j;for(j in b)b.hasOwnProperty(j)&&(c[j]=b[j]);return c}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",k.documentElement))a.find.matchesSelector=function(a,b){b=b.replace(e,g);return c.call(this,a,b)}}();var e=a.prop,i={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,c,h){var g=e.apply(this,arguments);if(b&&"form"in b&&i[c]&&h!==l&&a(b).hasClass("form-ui-invalid")&&(a.prop(b,"validity")||{valid:1}).valid)a(b).getShadowElement().removeClass("form-ui-invalid"),
|
55
|
+
"checked"==c&&h&&w(b).not(b).removeClass("form-ui-invalid").removeAttr("aria-invalid");return g};var t=function(b,c){var e;a.each(b,function(b,d){if(d)return e="customError"==b?a.prop(c,"validationMessage"):b,!1});return e};a(k).bind(u.validityUIEvents||"focusout change refreshvalidityui",function(b){if(b.target&&"submit"!=b.target.type&&a.prop(b.target,"willValidate")){var c=a.data(b.target,"webshimsswitchvalidityclass"),e=function(){var c=a(b.target).getNativeElement().trigger("refreshCustomValidityRules")[0],
|
56
|
+
e=a.prop(c,"validity"),f=a(c).getShadowElement(),j,h,i,k;e.valid?f.hasClass("form-ui-valid")||(j="form-ui-valid",h="form-ui-invalid",k="changedvaliditystate",i="changedvalid",o[c.type]&&c.checked&&w(c).not(c).removeClass(h).addClass(j).removeAttr("aria-invalid"),a.removeData(c,"webshimsinvalidcause")):(e=t(e,c),a.data(c,"webshimsinvalidcause")!=e&&(a.data(c,"webshimsinvalidcause",e),k="changedvaliditystate"),f.hasClass("form-ui-invalid")||(j="form-ui-invalid",h="form-ui-valid",o[c.type]&&!c.checked&&
|
57
|
+
w(c).not(c).removeClass(h).addClass(j),i="changedinvalid"));j&&(f.addClass(j).removeClass(h),setTimeout(function(){a(c).trigger(i)},0));k&&setTimeout(function(){a(c).trigger(k)},0);a.removeData(b.target,"webshimsswitchvalidityclass")};c&&clearTimeout(c);"refreshvalidityui"==b.type?e():a.data(b.target,"webshimsswitchvalidityclass",setTimeout(e,9))}});b.changedvaliditystate=!0;b.refreshCustomValidityRules=!0;b.changedvalid=!0;b.changedinvalid=!0;b.refreshvalidityui=!0;c.triggerInlineForm=function(b,
|
58
|
+
c){a(b).trigger(c)};c.modules["form-core"].getGroupElements=w;q=function(){c.scrollRoot=a.browser.webkit||"BackCompat"==k.compatMode?a(k.body):a(k.documentElement)};q();c.ready("DOM",q);c.getRelOffset=function(b,c){var b=a(b),e=a(c).offset(),g;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){g=b.offset()});e.top-=g.top;e.left-=g.left;return e};c.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",e,i=!1,g=!1,n,f={hideDelay:5E3,
|
59
|
+
showFor:function(b,d,c,k){f._create();var b=a(b),l=a(b).getShadowElement(),o=f.getOffsetFromBody(l);f.clear();k?this.hide():(this.getMessage(b,d),this.position(l,o),e.css({fontSize:b.css("fontSize"),fontFamily:b.css("fontFamily")}),this.show(),this.hideDelay&&(i=setTimeout(n,this.hideDelay)),a(h).bind("resize.validityalert orientationchange.validityalert emchange.validityalert",function(){clearTimeout(g);g=setTimeout(function(){f.position(l)},9)}));c||this.setFocus(l,o)},getOffsetFromBody:function(a){return c.getRelOffset(e,
|
60
|
+
a)},setFocus:function(f,g){var h=a(f).getShadowFocusElement(),i=c.scrollRoot.scrollTop(),l=(g||h.offset()).top-30,m;c.getID&&"label"==b&&e.attr("for",c.getID(h));i>l&&(c.scrollRoot.animate({scrollTop:l-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(i-l)),80)}),m=!0);try{h[0].focus()}catch(o){}m&&(c.scrollRoot.scrollTop(i),setTimeout(function(){c.scrollRoot.scrollTop(i)},0));setTimeout(function(){a(k).bind("focusout.validityalert",n)},10)},getMessage:function(b,d){d||(d=s(b[0])||b.prop("validationMessage"));
|
61
|
+
d?a("span.va-box",e).text(d):this.hide()},position:function(b,d){d=d?a.extend({},d):f.getOffsetFromBody(b);d.top+=b.outerHeight();e.css(d)},show:function(){"none"===e.css("display")&&e.css({opacity:0}).show();e.addClass("va-visible").fadeTo(400,1)},hide:function(){e.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(i);a(k).unbind(".validityalert");a(h).unbind(".validityalert");e.stop().removeAttr("for")},_create:function(){if(!e)e=f.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
|
62
|
+
b+">").css({position:"absolute",display:"none"}),c.ready("DOM",function(){e.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&e.bgIframe()})}};n=a.proxy(f,"hide");return f}();(function(){var b,c=[],e;a(k).bind("invalid",function(g){if(!g.wrongWebkitInvalid){var h=a(g.target),f=h.getShadowElement();f.hasClass("form-ui-invalid")||(f.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(g.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
63
|
+
0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=g.isDefaultPrevented,f=a.Event("firstinvalidsystem"),a(k).triggerHandler(f,{element:g.target,form:g.target.form,isInvalidUIPrevented:g.isDefaultPrevented}),h.trigger(b);b&&b.isDefaultPrevented()&&g.preventDefault();c.push(g.target);g.extraData="fix";clearTimeout(e);e=setTimeout(function(){var e={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(g.target).trigger(e,e)},9);f=h=null}})})();a.fn.getErrorMessage=function(){var b="",
|
64
|
+
c=this[0];c&&(b=s(c)||a.prop(c,"customValidationMessage")||a.prop(c,"validationMessage"));return b};u.replaceValidationUI&&c.ready("DOM",function(){a(k).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
|