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