webshims-rails 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/webshims-rails/version.rb +2 -2
- data/vendor/assets/javascripts/webshims/minified/extras/custom-validity.js +10 -9
- data/vendor/assets/javascripts/webshims/minified/extras/modernizr-custom.js +20 -19
- data/vendor/assets/javascripts/webshims/minified/polyfiller.js +29 -28
- data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +33 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +76 -76
- data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +42 -41
- data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +38 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +25 -25
- data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +55 -54
- data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +64 -63
- data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +59 -58
- data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +64 -62
- data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +69 -63
- data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +43 -43
- data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +47 -42
- data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +57 -57
- data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +60 -55
- data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +77 -75
- data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +91 -84
- data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +31 -30
- data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +39 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +61 -59
- data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +29 -29
- data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +37 -37
- data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +33 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +63 -63
- data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +20 -20
- data/vendor/assets/javascripts/webshims/minified/shims/excanvas.js +21 -35
- data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +22 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +22 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +9 -9
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +8 -8
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-fix.js +7 -5
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +21 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +33 -28
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +13 -13
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +30 -30
- data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +5 -4
- metadata +4 -4
@@ -1,9 +1,10 @@
|
|
1
|
-
(function(b,
|
2
|
-
g.refreshCustomValidityRules=function(a){if(a.form&&(d||b.prop(a,"willValidate"))){c=!0;var
|
3
|
-
g.refreshCustomValidityRules;g.ready("forms",function(){
|
4
|
-
|
5
|
-
(function(b,
|
6
|
-
b(c.form&&c.form[d]||
|
7
|
-
1;0<=n;n--){
|
8
|
-
|
9
|
-
"").split("||"),a["from-prop"]="value");a=b.data(c,"dependentValidation",b.extend({_init:!0},
|
1
|
+
(function(b,f,i){if(!b.webshims){var k=navigator.browserLanguage||navigator.language||b("html").attr("lang")||"";b.webshims={addReady:function(a){b(function(){a(i,b([]))})},ready:function(a,b){b()},activeLang:function(){return k}}}var g=b.webshims,l={},j=!1,c,d,a=function(a){g.refreshCustomValidityRules(a.target)};g.customErrorMessages={};g.addCustomValidityRule=function(a,c,d){l[a]=c;g.customErrorMessages[a]||(g.customErrorMessages[a]=[],g.customErrorMessages[a][""]=d||a);b.isReady&&j&&b("input, select, textarea").each(function(){e(this)})};
|
2
|
+
g.refreshCustomValidityRules=function(a){if(a.form&&(d||b.prop(a,"willValidate"))){c=!0;var e=b.data(a,"customMismatchedRule"),f=b.prop(a,"validity")||{},h="";if(e||!f.customError){var i=b(a).val();b.each(l,function(c,d){h=d(a,i)||"";e=c;if(h)return"string"!=typeof h&&(h=b(a).data("errormessage")||a.getAttribute("x-moz-errormessage")||g.customErrorMessages[c][g.activeLang()]||g.customErrorMessages[c][""]),"object"==typeof h&&(h=h[c]||h.customError||h.defaultMessage),!1});h&&b.data(a,"customMismatchedRule",
|
3
|
+
e);b(a).setCustomValidity(h)}c=!1}};var e=g.refreshCustomValidityRules;g.ready("forms",function(){j=!0;var f=b.fn.setCustomValidity||function(a){return this.each(function(){this.setCustomValidity&&this.setCustomValidity(a)})};b.fn.setCustomValidity=function(a){c||this.data("customMismatchedRule","");return f.apply(this,arguments)};b(i).bind("change",a);g.addReady(function(a,c){d=!0;b("input, select, textarea",a).add(c.filter("input, select, textarea")).each(function(){e(this)});d=!1});b(i).bind("refreshCustomValidityRules",
|
4
|
+
a)})})(jQuery,window,document);
|
5
|
+
(function(b,f,i){f=b.webshims.addCustomValidityRule;f("partialPattern",function(c,d){if(d&&c.getAttribute("data-partial-pattern")){var a=b(c).data("partial-pattern");return!a?void 0:!RegExp("("+a+")","i").test(d)}},"This format is not allowed here.");f("tooShort",function(c,d){return!d||!c.getAttribute("data-minlength")?void 0:b(c).data("minlength")>d.length},"Entered value is too short.");var k={};f("group-required",function(c){var d=c.name;if(d&&"checkbox"===c.type&&b(c).hasClass("group-required")){var a=
|
6
|
+
b(c.form&&c.form[d]||i.getElementsByName(d)),c=a.filter(":checked");k[d]&&clearTimeout(k[d]);k[d]=setTimeout(function(){a.unbind("click.groupRequired").bind("click.groupRequired",function(){a.filter(".group-required").each(function(){b.webshims.refreshCustomValidityRules(this)})})},9);return!c[0]}},"Please check one of these checkboxes.");var g=/[^0-9-]+/;f("creditcard",function(c,d){if(d&&b(c).hasClass("creditcard-input")){if(!g.test(d))return!0;var a=0,e=0,f=!1,d=d.replace(/\D/g,"");for(n=d.length-
|
7
|
+
1;0<=n;n--){e=d.charAt(n);e=parseInt(e,10);if(f&&9<(e*=2))e-=9;a+=e;f=!f}return 0!==a%10}},"Please enter a valid credit card number");var l={prop:"value","from-prop":"value",toggle:!1},j=function(c){return b(c.form[c.name]).filter('[type="radio"]')};b.webshims.ready("form-core",function(){b.webshims.modules&&(j=b.webshims.modules["form-core"].getGroupElements||j)});f("dependent",function(c,d){if(c.getAttribute("data-dependent-validation")){var a=b(c).data("dependentValidation"),e;if(a){var f=function(){var d=
|
8
|
+
b.prop(a.masterElement,a["from-prop"]);e&&(d=-1!==b.inArray(d,e));a.toggle&&(d=!d);b.prop(c,a.prop,d)};if(!a._init||!a.masterElement){"string"==typeof a&&(a={from:a});a.masterElement=i.getElementById(a.from)||i.getElementsByName(a.from||[])[0];if(!a.masterElement||!a.masterElement.form)return;if(/radio|checkbox/i.test(a.masterElement.type)){if(a["from-prop"]||(a["from-prop"]="checked"),!a.prop&&"checked"==a["from-prop"])a.prop="disabled"}else a["from-prop"]||(a["from-prop"]="value");0===a["from-prop"].indexOf("value:")&&
|
9
|
+
(e=a["from-prop"].replace("value:","").split("||"),a["from-prop"]="value");a=b.data(c,"dependentValidation",b.extend({_init:!0},l,a));"value"!==a.prop||e?b("radio"===a.masterElement.type&&j(a.masterElement)||a.masterElement).bind("change",f):b(a.masterElement).bind("change",function(){b.webshims.refreshCustomValidityRules(c);b(c).is(".form-ui-invalid, .form-ui-valid")&&b(c).trigger("refreshvalidityui")})}if("value"==a.prop&&!e)return b.prop(a.masterElement,"value")!=d;f();return""}}},"The value of this field does not repeat the value of the other field")})(jQuery,
|
10
|
+
window,document);
|
@@ -1,19 +1,20 @@
|
|
1
|
-
window.Modernizr=function(
|
2
|
-
|
3
|
-
0!==
|
4
|
-
|
5
|
-
|
6
|
-
"")}catch(
|
7
|
-
!0}catch(
|
8
|
-
|
9
|
-
|
10
|
-
(i||(
|
11
|
-
shivCSS:!1!==
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
b)
|
18
|
-
|
19
|
-
|
1
|
+
window.Modernizr=function(s,e,C){function z(a,b){for(var c in a){var g=a[c];if(!~(""+g).indexOf("-")&&J[g]!==C)return"pfx"==b?g:!0}return!1}function v(a,b,c){var g=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+w.join(g+" ")+g).split(" ");if("string"===typeof b||"undefined"===typeof b)return z(e,b);e=(a+" "+t.join(g+" ")+g).split(" ");a:{var a=e,f;for(f in a)if(g=b[a[f]],g!==C){if(!1===c){b=a[f];break a}b="function"===typeof g?g.bind(c||b):g;break a}b=!1}return b}function D(){f.input=function(a){for(var b=
|
2
|
+
0,c=a.length;b<c;b++)u[a[b]]=!!(a[b]in j);if(u.list)u.list=!(!e.createElement("datalist")||!s.HTMLDataListElement);return u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));f.inputtypes=function(a){for(var b=0,c,g,f=a.length;b<f;b++){j.setAttribute("type",g=a[b]);if(c="text"!==j.type)j.value=q,j.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(g)&&j.style.WebkitAppearance!==C?(m.appendChild(j),c=e.defaultView,c=c.getComputedStyle&&"textfield"!==
|
3
|
+
c.getComputedStyle(j,null).WebkitAppearance&&0!==j.offsetHeight,m.removeChild(j)):/^(search|tel)$/.test(g)||(c=/^(url|email)$/.test(g)?j.checkValidity&&!1===j.checkValidity():j.value!=q);E[a[b]]=!!c}return E}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var f={},m=e.documentElement,k=e.createElement("modernizr"),J=k.style,j=e.createElement("input"),q=":)",w="Webkit Moz O ms".split(" "),t="webkit moz o ms".split(" "),k={},E={},u={},x=[],F=x.slice,
|
4
|
+
A,G={}.hasOwnProperty,H;H="undefined"!==typeof G&&"undefined"!==typeof G.call?function(a,b){return G.call(a,b)}:function(a,b){return b in a&&"undefined"===typeof a.constructor.prototype[b]};if(!Function.prototype.bind)Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=F.call(arguments,1),g=function(){if(this instanceof g){var e=function(){};e.prototype=b.prototype;var e=new e,f=b.apply(e,c.concat(F.call(arguments)));return Object(f)===f?f:e}return b.apply(a,
|
5
|
+
c.concat(F.call(arguments)))};return g};k.canvas=function(){var a=e.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))};k.geolocation=function(){return"geolocation"in navigator};k.video=function(){var a=e.createElement("video"),b=!1;try{if(b=!!a.canPlayType)b=new Boolean(b),b.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,
|
6
|
+
"")}catch(c){}return b};k.audio=function(){var a=e.createElement("audio"),b=!1;try{if(b=!!a.canPlayType)b=new Boolean(b),b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),b.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),b.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),b.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(c){}return b};k.localstorage=function(){try{return localStorage.setItem("modernizr","modernizr"),localStorage.removeItem("modernizr"),
|
7
|
+
!0}catch(a){return!1}};k.sessionstorage=function(){try{return sessionStorage.setItem("modernizr","modernizr"),sessionStorage.removeItem("modernizr"),!0}catch(a){return!1}};for(var I in k)H(k,I)&&(A=I.toLowerCase(),f[A]=k[I](),x.push((f[A]?"":"no-")+A));f.input||D();f.addTest=function(a,b){if("object"==typeof a)for(var c in a)H(a,c)&&f.addTest(c,a[c]);else{a=a.toLowerCase();if(f[a]!==C)return f;b="function"==typeof b?b():b;m.className+=" "+(b?"":"no-")+a;f[a]=b}return f};J.cssText="";k=j=null;(function(a,
|
8
|
+
b){function c(){var b=y.elements;return"string"==typeof b?b.split(" "):b}function e(b){var a=o[b[n]];a||(a={},h++,b[n]=h,o[h]=a);return a}function f(a,i,d){i||(i=b);if(l)return i.createElement(a);d||(d=e(i));i=d.cache[a]?d.cache[a].cloneNode():K.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a);return i.canHaveChildren&&!N.test(a)?d.frag.appendChild(i):i}function j(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();a.createElement=
|
9
|
+
function(d){return!y.shivMethods?b.createElem(d):f(d,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(y,b.frag)}function i(a){a||(a=b);var i=e(a);if(y.shivCSS&&!r&&!i.hasCSS){var d,c=a;d=c.createElement("p");c=c.getElementsByTagName("head")[0]||c.documentElement;d.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
|
10
|
+
d=c.insertBefore(d.lastChild,c.firstChild);i.hasCSS=!!d}l||j(a,i);return a}var B=a.html5||{},N=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,K=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,r,n="_html5shiv",h=0,o={},l;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>";r="hidden"in a;var i;if(!(i=1==a.childNodes.length)){b.createElement("a");
|
11
|
+
var d=b.createDocumentFragment();i="undefined"==typeof d.cloneNode||"undefined"==typeof d.createDocumentFragment||"undefined"==typeof d.createElement}l=i}catch(c){l=r=!0}})();var y={elements:B.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==B.shivCSS,supportsUnknownElements:l,shivMethods:!1!==B.shivMethods,type:"default",shivDocument:i,createElement:f,createDocumentFragment:function(a,
|
12
|
+
i){a||(a=b);if(l)return a.createDocumentFragment();for(var i=i||e(a),d=i.frag.cloneNode(),B=0,f=c(),o=f.length;B<o;B++)d.createElement(f[B]);return d}};a.html5=y;i(b)})(this,e);f._version="2.6.1";f._domPrefixes=t;f._cssomPrefixes=w;f.testProp=function(a){return z([a])};f.testAllProps=v;f.prefixed=function(a,b,c){return b?v(a,b,c):v(a,"pfx")};m.className=m.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+x.join(" "));return f}(this,this.document);
|
13
|
+
(function(s,e,C){function z(a){return"[object Function]"==E.call(a)}function v(a){return"string"==typeof a}function D(){}function f(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function m(){var a=u.shift();x=1;a?a.t?w(function(){("c"==a.t?p.injectCss:p.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),m()):x=0}function k(a,b,g,j,r,n,h){function o(d){if(!y&&f(l.readyState)&&(M.r=y=1,!x&&m(),l.onload=l.onreadystatechange=null,d)){"img"!=a&&w(function(){G.removeChild(l)},50);for(var e in c[b])c[b].hasOwnProperty(e)&&
|
14
|
+
c[b][e].onload()}}var h=h||p.errorTimeout,l=e.createElement(a),y=0,k=0,M={t:g,s:b,e:r,a:n,x:h};1===c[b]&&(k=1,c[b]=[]);"object"==a?l.data=b:(l.src=b,l.type=a);l.width=l.height="0";l.onerror=l.onload=l.onreadystatechange=function(){o.call(this,k)};u.splice(j,0,M);"img"!=a&&(k||2===c[b]?(G.insertBefore(l,A?null:t),w(o,h)):c[b].push(l))}function J(a,b,c,e,f){return x=0,b=b||"j",v(a)?k("c"==b?I:H,a,b,this.i++,c,e,f):(u.splice(this.i++,0,a),1==u.length&&m()),this}function j(){var a=p;return a.loader={load:J,
|
15
|
+
i:0},a}var q=e.documentElement,w=s.setTimeout,t=e.getElementsByTagName("script")[0],E={}.toString,u=[],x=0,F="MozAppearance"in q.style,A=F&&!!e.createRange().compareNode,G=A?q:t.parentNode,q=s.opera&&"[object Opera]"==E.call(s.opera),q=!!e.attachEvent&&!q,H=F?"object":q?"script":"img",I=q?"script":H,a=Array.isArray||function(a){return"[object Array]"==E.call(a)},b=[],c={},g={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},L,p;p=function(e){function f(a){var a=a.split("!"),e=b.length,c=
|
16
|
+
a.pop(),i=a.length,c={url:c,origUrl:c,prefixes:a},h,d,k;for(d=0;d<i;d++)k=a[d].split("="),(h=g[k.shift()])&&(c=h(c,k));for(d=0;d<e;d++)c=b[d](c);return c}function k(a,b,e,i,h){var d=f(a),g=d.autoCallback;d.url.split(".").pop().split("?").shift();d.bypass||(b&&(b=z(b)?b:b[a]||b[i]||b[a.split("/").pop().split("?")[0]]),d.instead?d.instead(a,b,e,i,h):(c[d.url]?d.noexec=!0:c[d.url]=1,e.load(d.url,d.forceCSS||!d.forceJS&&"css"==d.url.split(".").pop().split("?").shift()?"c":C,d.noexec,d.attrs,d.timeout),
|
17
|
+
(z(b)||z(g))&&e.load(function(){j();b&&b(d.origUrl,h,i);g&&g(d.origUrl,h,i);c[d.url]=2})))}function K(a,b){function c(a,f){if(a)if(v(a))f||(d=function(){var a=[].slice.call(arguments);i.apply(this,a);h()}),k(a,d,b,0,e);else{if(Object(a)===a)for(j in g=function(){var b=0,d;for(d in a)a.hasOwnProperty(d)&&b++;return b}(),a)a.hasOwnProperty(j)&&(!f&&!--g&&(z(d)?d=function(){var a=[].slice.call(arguments);i.apply(this,a);h()}:d[j]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,
|
18
|
+
b);h()}}(i[j])),k(a[j],d,b,j,e))}else!f&&h()}var e=!!a.test,f=a.load||a.both,d=a.callback||D,i=d,h=a.complete||D,g,j;c(e?a.yep:a.nope,!!f);f&&c(f)}var r,n,h=this.yepnope.loader;if(v(e))k(e,0,h,0);else if(a(e))for(r=0;r<e.length;r++)n=e[r],v(n)?k(n,0,h,0):a(n)?p(n):Object(n)===n&&K(n,h);else Object(e)===e&&K(e,h)};p.addPrefix=function(a,b){g[a]=b};p.addFilter=function(a){b.push(a)};p.errorTimeout=1E4;null==e.readyState&&e.addEventListener&&(e.readyState="loading",e.addEventListener("DOMContentLoaded",
|
19
|
+
L=function(){e.removeEventListener("DOMContentLoaded",L,0);e.readyState="complete"},0));s.yepnope=j();s.yepnope.executeStack=m;s.yepnope.injectJs=function(a,b,c,g,j,k){var h=e.createElement("script"),o,l,g=g||p.errorTimeout;h.src=a;for(l in c)h.setAttribute(l,c[l]);b=k?m:b||D;h.onreadystatechange=h.onload=function(){!o&&f(h.readyState)&&(o=1,b(),h.onload=h.onreadystatechange=null)};w(function(){o||(o=1,b(1))},g);j?h.onload():t.parentNode.insertBefore(h,t)};s.yepnope.injectCss=function(a,b,c,f,g,j){var f=
|
20
|
+
e.createElement("link"),h,b=j?m:b||D;f.href=a;f.rel="stylesheet";f.type="text/css";for(h in c)f.setAttribute(h,c[h]);g||(t.parentNode.insertBefore(f,t),w(b,0))}})(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
|
@@ -1,28 +1,29 @@
|
|
1
|
-
(function(b){if(window.jQuery)b(jQuery),b=jQuery.noop;"function"===typeof define&&define.amd&&define.amd.jQuery&&define("polyfiller",["jquery"],b)})(function(b){var
|
2
|
-
cfg:{useImportantStyles:!0,waitReady:!0,extendNative:!0,loadStyles:!0,disableShivMethods:!0,basePath:function(){var a=
|
3
|
-
b.extend(!0,j,a)},addPolyfill:function(a,c){var c=c||{},e=c.f||a;if(!n[e])n[e]=[],n[e].delayReady=0,d.featureList.push(e),j[e]={};n[e].push(a);c.options=b.extend(j[e],c.options);
|
4
|
-
f.push("loading-polyfills");b(window).bind("load.lP error.lP",i);h=setTimeout(function(){b("html").addClass("long-loading-polyfills")},600);j.waitReady&&b.isReady&&d.warn("Call webshims.polyfill before DOM-Ready or set waitReady to false.");q(c,i);j.useImportantStyles&&f.push("polyfill-important");f[0]&&b("html").addClass(f.join(" "));j.loadStyles&&s.loadCSS("styles/shim.css");a=b.noop},c;return function(e){var f=[],e=e||d.featureList;"string"==typeof e&&(e=e.split(" "));c||(c=-1!==b.inArray("forms",
|
5
|
-
e),!c&&-1!==b.inArray("forms-ext",e)&&(e.push("forms"),c=!0));j.waitReady&&(b.readyWait++,q(e,function(){b.ready(!0)}));b.each(e,function(a,b){n[b]?(b!==n[b][0]&&q(n[b],function(){k(b,!0)}),f=f.concat(n[b])):(d.warn("could not find webshims-feature (aborted): "+b),k(b,!0))});a(e);t(f)}}(),reTest:function(){var a,c,e=function(e,h){var i=m[h],d=h+"Ready",g;if(i&&!i.loaded&&!(i.test&&b.isFunction(i.test)?i.test([]):i.test)){o[d]&&delete o[d];if((g=n[i.f])&&!c)g.delayReady++,q(h,function(){g.delayReady--;
|
6
|
-
k(i.f,g.callReady)});a.push(h)}};return function(d,h){c=h;"string"==typeof d&&(d=d.split(" "));a=[];b.each(d,e);t(a)}}(),isReady:function(a,c){if(n[a]&&0<n[a].delayReady){if(c)n[a].callReady=!0;return!1}a+="Ready";if(c){if(o[a]&&o[a].add)return!0;o[a]=b.extend(o[a]||{},{add:function(b){b.handler.call(this,a)}});b.event.trigger(a)}return!(!o[a]||!o[a].add)||!1},ready:function(a,c,e){"string"==typeof a&&(a=a.split(" "));e||(a=b.map(b.grep(a,function(a){return!k(a)}),function(a){return a+"Ready"}));
|
7
|
-
a.length?(e=a.shift(),b(document).one(e,function(){q(a,c,!0)})):c(b,d,window,document)},fixHTML5:function(a){return a},capturingEvents:function(a,c){document.addEventListener&&("string"==typeof a&&(a=[a]),b.each(a,function(a,f){var h=function(a){a=b.event.fix(a);c&&d.capturingEventPrevented&&d.capturingEventPrevented(a);return b.event.handle.call(this,a)};o[f]=o[f]||{};!o[f].setup&&!o[f].teardown&&b.extend(o[f],{setup:function(){this.addEventListener(f,h,!0)},teardown:function(){this.removeEventListener(f,
|
8
|
-
h,!0)}})}))},register:function(a,c){var e=m[a];if(e){if(e.noAutoCallback){var f=function(){c(b,d,window,document,void 0,e.options);k(a,!0)};e.d?q(e.d,f):f()}}else d.warn("can't find module: "+a)},c:{},loader:{addModule:function(a,c){m[a]=c;c.name=c.name||a;if(!c.c)c.c=[];b.each(c.c,function(b,c){d.c[c]||(d.c[c]=[]);d.c[c].push(a)})},loadList:function(){var a=[],c=function(c,e){"string"==typeof e&&(e=[e]);b.merge(a,e);s.loadScript(c,!1,e)},e=function(c,e){if(k(c)||-1!=b.inArray(c,a))return!0;var d=
|
9
|
-
m[c];if(d)if(d=d.test&&b.isFunction(d.test)?d.test(e):d.test)k(c,!0);else return!1;return!0},f=function(a,c){if(a.d&&a.d.length){var d=function(a,d){!e(d,c)&&-1==b.inArray(d,c)&&c.push(d)};b.each(a.d,function(a,c){m[c]?d(a,c):n[c]&&(b.each(n[c],d),q(n[c],function(){k(c,!0)}))});if(!a.noAutoCallback)a.noAutoCallback=!0}};return function(h){var i,g=[],j,k,l=function(e,h){k=h;b.each(d.c[h],function(c,d){if(-1==b.inArray(d,g)||-1!=b.inArray(d,a))return k=!1});if(k)return c("combos/"+k,d.c[k]),!1};for(j=
|
10
|
-
0;j<h.length;j++)i=m[h[j]],!i||e(i.name,h)?i||d.warn("could not find: "+h[j]):(i.css&&s.loadCSS(i.css),i.loadInit&&i.loadInit(),i.loaded=!0,f(i,h),g.push(i.name));for(j=0,h=g.length;j<h;j++)k=!1,i=g[j],-1==b.inArray(i,a)&&("noCombo"!=d.debug&&b.each(m[i].c,l),k||c(m[i].src||i,i))}}(),makePath:function(a){if(-1!=a.indexOf("//")||0===a.indexOf("/"))return a;-1==a.indexOf(".")&&(a+=".js");j.addCacheBuster&&(a+=j.addCacheBuster);return j.basePath+a},loadCSS:function(){var a,c=[];return function(d){d=
|
11
|
-
this.makePath(d);-1==b.inArray(d,c)&&(a=a||b("link, style")[0]||b("script")[0],c.push(d),b('<link rel="stylesheet" />').insertBefore(a).attr({href:d}))}}(),loadScript:function(){var a=[];return function(c,d,f){c=s.makePath(c);if(-1==b.inArray(c,a)){var h=function(){h=null;d&&d();f&&("string"==typeof f&&(f=f.split(" ")),b.each(f,function(a,c){m[c]&&(m[c].afterLoad&&m[c].afterLoad(),k(!m[c].noAutoCallback?c:c+"FileLoaded",!0))}))};a.push(c);window.require?require([c],h):window.sssl?sssl(c,h):window.yepnope?
|
12
|
-
yepnope.injectJs(c,h):window.steal&&steal(c).then(h)}}}()}};b.webshims=d;var
|
13
|
-
this.each(function(){var f=b.prop(this,a);if(f&&f.apply){if(e=f.apply(this,c),void 0!==e)return!1}else d.warn(a+" is not a method of "+this)});return void 0!==e?e:this};d.activeLang=function(){var a=navigator.browserLanguage||navigator.language||"";q("webshimLocalization",function(){d.activeLang(a)});return function(c){if(c)if("string"==typeof c)a=c;else if("object"==typeof c){var b=arguments,f=this;q("webshimLocalization",function(){d.activeLang.apply(f,b)})}return a}}();b.each(["log","error","warn",
|
14
|
-
"info"],function(a,c){d[c]=function(a){if((F[c]&&!1!==d.debug||d.debug)&&window.console&&console.log)return console[console[c]?c:"log"](a)}});(function(){b.isDOMReady=b.isReady;if(b.isDOMReady)k("DOM",!0);else{var a=b.ready;b.ready=function(c){if(!0!==c&&!b.isDOMReady)document.body?(b.isDOMReady=!0,k("DOM",!0),b.ready=a):setTimeout(function(){b.ready(c)},13);return a.apply(this,arguments)}}b(function(){b.isDOMReady=!0;k("DOM",!0);setTimeout(function(){k("WINDOWLOAD",!0)},
|
15
|
-
|
16
|
-
d.triggerDomUpdate(this)});return a};b.each(["after","before","append","prepend","replaceWith"],function(a,e){b.fn[e+"Polyfill"]=function(a){a=b(d.fixHTML5(a));b.fn[e].call(this,a);b.isDOMReady&&a.each(function(){1==this.nodeType&&d.triggerDomUpdate(this)});return this}});b.each(["insertAfter","insertBefore","appendTo","prependTo","replaceAll"],function(a,e){b.fn[e.replace(/[A-Z]/,function(a){return"Polyfill"+a})]=function(){b.fn[e].apply(this,arguments);d.triggerDomUpdate(this);
|
17
|
-
function(){d.triggerDomUpdate(this);return this};b.each(["getNativeElement","getShadowElement","getShadowFocusElement"],function(a,d){b.fn[d]=function(){return this}})})();(function(){var a=p.prototype.hasOwnProperty,c=["configurable","enumerable","writable"],e=function(a){for(var b=0;3>b;b++)if(void 0===a[c[b]]&&("writable"!==c[b]||void 0!==a.value))a[c[b]]=!0},f=function(b){if(b)for(var c in b)a.call(b,c)&&e(b[c])};if(p.create)d.objectCreate=function(a,c,d){f(c);
|
18
|
-
{},a.options||{},d),d=a.options;a._create&&b.isFunction(a._create)&&a._create(d);return a};p.defineProperty&&(d.defineProperty=function(a,b,c){e(c);return p.defineProperty(a,b,c)});if(p.defineProperties)d.defineProperties=function(a,b){f(b);return p.defineProperties(a,b)};d.getOwnPropertyDescriptor=p.getOwnPropertyDescriptor;d.getPrototypeOf=p.getPrototypeOf})();
|
19
|
-
!(b.widget&&(!b.fn.datepicker||!b.fn.slider))}});
|
20
|
-
{test:g.geolocation,options:{destroyWrite:!0},d:["json-storage"],c:[14,15]});(function(){if("canvas"in g){var a;l("canvas",{src:"excanvas",test:g.canvas,options:{type:"
|
21
|
-
(b.extend(a,{swfPath:j.basePath+"FlashCanvasPro/"}),this.src="FlashCanvasPro/flashcanvas")},afterLoad:function(){d.addReady(function(a,d){b("canvas",a).add(d.filter("canvas")).each(function(){!this.getContext&&window.G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this)});a==document&&k("canvas",!0)})},methodNames:["getContext"],d:["dom-support"]})}})();var
|
22
|
-
!(b('<input type="date" value="1488-12-11" />')[0].validity||{valid:!0}).valid||!("required"in
|
23
|
-
return!1},options:{placeholderType:"value",langSrc:"i18n/errormessages-",availabeLangs:"ar,ch-ZN,el,es,fr,he,hi,hu,it,ja,nl,pt-PT,ru".split(",")},methodNames:["setCustomValidity","checkValidity"],c:[3,2,59,17,16,5,4,24,19]});
|
24
|
-
7,59,5]}),
|
25
|
-
{f:"forms-ext",uiTest:function(){return
|
26
|
-
langSrc:
|
27
|
-
c:[10,9,12,17,16,8,22,23,24,20]}),l("mediaelement-swf",{f:"mediaelement",options:{hasToPlay:"any",preferFlash:!1,jwVars:{},jwParams:{},jwAttrs:{},changeJW:b.noop},methodNames:["play","pause","canPlayType","mediaLoad:load"],d:["swfobject","dom-support"],test:function(){if(!g.audio
|
28
|
-
{test:!0,loaded:!0,c:
|
1
|
+
(function(b){if(window.jQuery)b(jQuery),b=jQuery.noop;"function"===typeof define&&define.amd&&define.amd.jQuery&&define("polyfiller",["jquery"],b)})(function(b){var C=b(document.scripts||"script"),o=b.event.special,D=b([]),g=window.Modernizr,r=window.asyncWebshims,B=g.addTest,y=parseFloat(b.browser.version,10),p=window.Object,E=window.html5||{};g.genericDOM=!!b("<video><div></div></video>")[0].innerHTML;g.advancedObjectProperties=g.objectAccessor=g.ES5=!!("create"in p&&"seal"in p);var d={version:"1.8.13",
|
2
|
+
cfg:{useImportantStyles:!0,waitReady:!0,extendNative:!0,loadStyles:!0,disableShivMethods:!0,basePath:function(){var a=C.filter('[src*="polyfiller.js"]'),a=a[0]||a.end()[a.end().length-1],a=(b.support.hrefNormalized?a.src:a.getAttribute("src",4)).split("?")[0];return a=a.slice(0,a.lastIndexOf("/")+1)+"shims/"}()},bugs:{},browserVersion:y,modules:{},features:{},featureList:[],setOptions:function(a,c){"string"==typeof a&&void 0!==c?j[a]=!b.isPlainObject(c)?c:b.extend(!0,j[a]||{},c):"object"==typeof a&&
|
3
|
+
b.extend(!0,j,a)},addPolyfill:function(a,c){var c=c||{},e=c.f||a;if(!n[e])n[e]=[],n[e].delayReady=0,d.featureList.push(e),j[e]={};n[e].push(a);c.options=b.extend(j[e],c.options);z(a,c);c.methodNames&&b.each(c.methodNames,function(a,b){d.addMethodName(b)})},polyfill:function(){var a=function(c){var f=[],h;if(j.disableShivMethods&&g.genericDOM&&"html5Clone"in b.support)E.shivMethods=!1;var i=function(){b("html").removeClass("loading-polyfills long-loading-polyfills");b(window).unbind(".lP");clearTimeout(h)};
|
4
|
+
f.push("loading-polyfills");b(window).bind("load.lP error.lP",i);h=setTimeout(function(){b("html").addClass("long-loading-polyfills")},600);j.waitReady&&b.isReady&&d.warn("Call webshims.polyfill before DOM-Ready or set waitReady to false.");q(c,i);j.useImportantStyles&&f.push("polyfill-important");f[0]&&b("html").addClass(f.join(" "));j.loadStyles&&s.loadCSS("styles/shim.css");a=b.noop},c;return function(e){var f=[],e=e||d.featureList;"string"==typeof e&&(e=e.split(" "));c||(c=-1!==b.inArray("forms",
|
5
|
+
e),!c&&-1!==b.inArray("forms-ext",e)&&(e.push("forms"),c=!0));j.waitReady&&(b.readyWait++,q(e,function(){b.ready(!0)}));b.each(e,function(a,b){n[b]?(b!==n[b][0]&&q(n[b],function(){k(b,!0)}),f=f.concat(n[b])):(d.warn("could not find webshims-feature (aborted): "+b),k(b,!0))});a(e);t(f)}}(),reTest:function(){var a,c,e=function(e,h){var i=m[h],d=h+"Ready",g;if(i&&!i.loaded&&!(i.test&&b.isFunction(i.test)?i.test([]):i.test)){o[d]&&delete o[d];if((g=n[i.f])&&!c)g.delayReady++,q(h,function(){g.delayReady--;
|
6
|
+
k(i.f,g.callReady)});a.push(h)}};return function(d,h){c=h;"string"==typeof d&&(d=d.split(" "));a=[];b.each(d,e);t(a)}}(),isReady:function(a,c){if(n[a]&&0<n[a].delayReady){if(c)n[a].callReady=!0;return!1}a+="Ready";if(c){if(o[a]&&o[a].add)return!0;o[a]=b.extend(o[a]||{},{add:function(b){b.handler.call(this,a)}});b.event.trigger(a)}return!(!o[a]||!o[a].add)||!1},ready:function(a,c,e){"string"==typeof a&&(a=a.split(" "));e||(a=b.map(b.grep(a,function(a){return!k(a)}),function(a){return a+"Ready"}));
|
7
|
+
a.length?(e=a.shift(),b(document).one(e,function(){q(a,c,!0)})):c(b,d,window,document)},fixHTML5:function(a){return a},capturingEvents:function(a,c){document.addEventListener&&("string"==typeof a&&(a=[a]),b.each(a,function(a,f){var h=function(a){a=b.event.fix(a);c&&d.capturingEventPrevented&&d.capturingEventPrevented(a);return b.event.handle.call(this,a)};o[f]=o[f]||{};!o[f].setup&&!o[f].teardown&&b.extend(o[f],{setup:function(){this.addEventListener(f,h,!0)},teardown:function(){this.removeEventListener(f,
|
8
|
+
h,!0)}})}))},register:function(a,c){var e=m[a];if(e){if(e.noAutoCallback){var f=function(){c(b,d,window,document,void 0,e.options);k(a,!0)};e.d?q(e.d,f):f()}}else d.warn("can't find module: "+a)},c:{},loader:{addModule:function(a,c){m[a]=c;c.name=c.name||a;if(!c.c)c.c=[];b.each(c.c,function(b,c){d.c[c]||(d.c[c]=[]);d.c[c].push(a)})},loadList:function(){var a=[],c=function(c,e){"string"==typeof e&&(e=[e]);b.merge(a,e);s.loadScript(c,!1,e)},e=function(c,e){if(k(c)||-1!=b.inArray(c,a))return!0;var d=
|
9
|
+
m[c];if(d)if(d=d.test&&b.isFunction(d.test)?d.test(e):d.test)k(c,!0);else return!1;return!0},f=function(a,c){if(a.d&&a.d.length){var d=function(a,d){!e(d,c)&&-1==b.inArray(d,c)&&c.push(d)};b.each(a.d,function(a,c){m[c]?d(a,c):n[c]&&(b.each(n[c],d),q(n[c],function(){k(c,!0)}))});if(!a.noAutoCallback)a.noAutoCallback=!0}};return function(h){var i,g=[],j,k,l=function(e,h){k=h;b.each(d.c[h],function(c,d){if(-1==b.inArray(d,g)||-1!=b.inArray(d,a))return k=!1});if(k)return c("combos/"+k,d.c[k]),!1};for(j=
|
10
|
+
0;j<h.length;j++)i=m[h[j]],!i||e(i.name,h)?i||d.warn("could not find: "+h[j]):(i.css&&s.loadCSS(i.css),i.loadInit&&i.loadInit(),i.loaded=!0,f(i,h),g.push(i.name));for(j=0,h=g.length;j<h;j++)k=!1,i=g[j],-1==b.inArray(i,a)&&("noCombo"!=d.debug&&b.each(m[i].c,l),k||c(m[i].src||i,i))}}(),makePath:function(a){if(-1!=a.indexOf("//")||0===a.indexOf("/"))return a;-1==a.indexOf(".")&&(a+=".js");j.addCacheBuster&&(a+=j.addCacheBuster);return j.basePath+a},loadCSS:function(){var a,c=[];return function(d){d=
|
11
|
+
this.makePath(d);-1==b.inArray(d,c)&&(a=a||b("link, style")[0]||b("script")[0],c.push(d),b('<link rel="stylesheet" />').insertBefore(a).attr({href:d}))}}(),loadScript:function(){var a=[];return function(c,d,f){c=s.makePath(c);if(-1==b.inArray(c,a)){var h=function(){h=null;d&&d();f&&("string"==typeof f&&(f=f.split(" ")),b.each(f,function(a,c){m[c]&&(m[c].afterLoad&&m[c].afterLoad(),k(!m[c].noAutoCallback?c:c+"FileLoaded",!0))}))};a.push(c);window.require?require([c],h):window.sssl?sssl(c,h):window.yepnope?
|
12
|
+
yepnope.injectJs(c,h):window.steal&&steal(c).then(h)}}}()}};b.webshims=d;var u=("https:"==location.protocol?"https://":"http://")+"ajax.googleapis.com/ajax/libs/",y=u+"jqueryui/1.8.21/",j=d.cfg,n=d.features,k=d.isReady,q=d.ready,l=d.addPolyfill,m=d.modules,s=d.loader,t=s.loadList,z=s.addModule,v=[],F={warn:1,error:1};d.addMethodName=function(a){var a=a.split(":"),c=a[1];1==a.length&&(c=a[0]);a=a[0];b.fn[a]=function(){return this.callProp(c,arguments)}};b.fn.callProp=function(a,c){var e;c||(c=[]);
|
13
|
+
this.each(function(){var f=b.prop(this,a);if(f&&f.apply){if(e=f.apply(this,c),void 0!==e)return!1}else d.warn(a+" is not a method of "+this)});return void 0!==e?e:this};d.activeLang=function(){var a=navigator.browserLanguage||navigator.language||"";q("webshimLocalization",function(){d.activeLang(a)});return function(c){if(c)if("string"==typeof c)a=c;else if("object"==typeof c){var b=arguments,f=this;q("webshimLocalization",function(){d.activeLang.apply(f,b)})}return a}}();b.each(["log","error","warn",
|
14
|
+
"info"],function(a,c){d[c]=function(a){if((F[c]&&!1!==d.debug||d.debug)&&window.console&&console.log)return console[console[c]?c:"log"](a)}});(function(){b.isDOMReady=b.isReady;if(b.isDOMReady)k("DOM",!0);else{var a=b.ready;b.ready=function(c){if(!0!==c&&!b.isDOMReady)document.body?(b.isDOMReady=!0,k("DOM",!0),b.ready=a):setTimeout(function(){b.ready(c)},13);return a.apply(this,arguments)};b.ready.promise=a.promise}b(function(){b.isDOMReady=!0;k("DOM",!0);setTimeout(function(){k("WINDOWLOAD",!0)},
|
15
|
+
9999)});b(window).load(function(){k("DOM",!0);k("WINDOWLOAD",!0)})})();(function(){var a=[];b.extend(d,{addReady:function(c){var b=function(a,b){d.ready("DOM",function(){c(a,b)})};a.push(b);b(document,D)},triggerDomUpdate:function(c){if(!c||!c.nodeType)c&&c.jquery&&c.each(function(){d.triggerDomUpdate(this)});else{var e=c.nodeType;if(!(1!=e&&9!=e)){var f=c!==document?b(c):D;b.each(a,function(a,b){b(c,f)})}}}});b.fn.htmlPolyfill=function(a){a=b.fn.html.call(this,a?d.fixHTML5(a):a);a===this&&b.isDOMReady&&
|
16
|
+
this.each(function(){1==this.nodeType&&d.triggerDomUpdate(this)});return a};b.each(["after","before","append","prepend","replaceWith"],function(a,e){b.fn[e+"Polyfill"]=function(a){a=b(d.fixHTML5(a));b.fn[e].call(this,a);b.isDOMReady&&a.each(function(){1==this.nodeType&&d.triggerDomUpdate(this)});return this}});b.each(["insertAfter","insertBefore","appendTo","prependTo","replaceAll"],function(a,e){b.fn[e.replace(/[A-Z]/,function(a){return"Polyfill"+a})]=function(){b.fn[e].apply(this,arguments);d.triggerDomUpdate(this);
|
17
|
+
return this}});b.fn.updatePolyfill=function(){d.triggerDomUpdate(this);return this};b.each(["getNativeElement","getShadowElement","getShadowFocusElement"],function(a,d){b.fn[d]=function(){return this}})})();(function(){var a=p.prototype.hasOwnProperty,c=["configurable","enumerable","writable"],e=function(a){for(var b=0;3>b;b++)if(void 0===a[c[b]]&&("writable"!==c[b]||void 0!==a.value))a[c[b]]=!0},f=function(b){if(b)for(var c in b)a.call(b,c)&&e(b[c])};if(p.create)d.objectCreate=function(a,c,d){f(c);
|
18
|
+
a=p.create(a,c);if(d)a.options=b.extend(!0,{},a.options||{},d),d=a.options;a._create&&b.isFunction(a._create)&&a._create(d);return a};p.defineProperty&&(d.defineProperty=function(a,b,c){e(c);return p.defineProperty(a,b,c)});if(p.defineProperties)d.defineProperties=function(a,b){f(b);return p.defineProperties(a,b)};d.getOwnPropertyDescriptor=p.getOwnPropertyDescriptor;d.getPrototypeOf=p.getPrototypeOf})();z("jquery-ui",{src:y+"jquery-ui.min.js",test:function(){return!(!b.widget||!b.Widget)}});z("input-widgets",
|
19
|
+
{src:"",test:function(){return!this.src||!(b.widget&&(!b.fn.datepicker||!b.fn.slider))}});z("swfobject",{src:u+"swfobject/2.2/swfobject.js",test:function(){return"swfobject"in window}});l("es5",{test:!(!g.ES5||!Function.prototype.bind),c:[10,1,22]});l("dom-extend",{f:"dom-support",noAutoCallback:!0,d:["es5"],c:[10,9,12,17,16,8,1,24,19,11,13]});"localstorage"in g&&l("json-storage",{test:g.localstorage&&"sessionStorage"in window&&"JSON"in window,loadInit:function(){t(["swfobject"])},noAutoCallback:!0,
|
20
|
+
c:[14]});"geolocation"in g&&l("geolocation",{test:g.geolocation,options:{destroyWrite:!0},d:["json-storage"],c:[14,15]});(function(){if("canvas"in g){var a;l("canvas",{src:"excanvas",test:g.canvas,options:{type:"flash"},noAutoCallback:!0,loadInit:function(){var c=this.options.type;if(c&&-1!==c.indexOf("flash")&&(!window.swfobject||swfobject.hasFlashPlayerVersion("9.0.0")))window.FlashCanvasOptions=window.FlashCanvasOptions||{},a=FlashCanvasOptions,"flash"==c?(b.extend(a,{swfPath:j.basePath+"FlashCanvas/"}),
|
21
|
+
this.src="FlashCanvas/flashcanvas"):(b.extend(a,{swfPath:j.basePath+"FlashCanvasPro/"}),this.src="FlashCanvasPro/flashcanvas")},afterLoad:function(){d.addReady(function(a,d){a==document&&window.G_vmlCanvasManager&&G_vmlCanvasManager.init_&&G_vmlCanvasManager.init_(document);b("canvas",a).add(d.filter("canvas")).each(function(){!this.getContext&&window.G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this)});a==document&&k("canvas",!0)})},methodNames:["getContext"],d:["dom-support"]})}})();var A=
|
22
|
+
g.input,w=g.inputtypes;if(A&&w){var x,u=b('<select required="" name="a"><option disabled="" /></select>')[0];B("formvalidation",function(){return!(!A.required||!A.pattern)});if(g.formvalidation)d.bugs.bustedValidity=!(b('<input type="date" value="1488-12-11" />')[0].validity||{valid:!0}).valid||!("required"in u)||(u.validity||{}).valid;B("styleableinputrange",function(){if(!w.range)return!1;var a=document.createElement("input");a.setAttribute("type","range");return void 0!==a.style.WebkitAppearance});
|
23
|
+
d.validationMessages=d.validityMessages=[];d.inputTypes={};l("form-core",{f:"forms",d:["es5"],test:function(){if(x.lightweightDatalist&&!this.datalistLoaded)this.datalistLoaded=!0,m["form-datalist"].f="forms",d.reTest(["form-datalist"]);return!1},options:{placeholderType:"value",langSrc:"i18n/errormessages-",availabeLangs:"ar,ch-ZN,el,es,fr,he,hi,hu,it,ja,nl,pt-PT,ru".split(",")},methodNames:["setCustomValidity","checkValidity"],c:[3,2,59,17,16,5,4,24,19]});x=j.forms;g.formvalidation&&!d.bugs.bustedValidity?
|
24
|
+
(l("form-extend",{f:"forms",src:"form-native-extend",test:function(a){return(m["form-number-date-api"].test()||-1==b.inArray("form-number-date-api",a||[]))&&!x.overrideMessages},d:["form-core","dom-support","form-message"],c:[18,7,59,5]}),v=v.concat([2,3,23,21])):(v=v.concat([18,7,4,59,5]),l("form-extend",{f:"forms",src:"form-shim-extend",test:function(){return!1},d:["form-core","dom-support"],c:[3,2,23,21]}));l("form-message",{f:"forms",test:function(a){return!(x.customMessages||!g.formvalidation||
|
25
|
+
!m["form-extend"].test(a)||d.bugs.validationMessage)},d:["dom-support"],c:[3,2,23,21,59,17,5,4]});d.addPolyfill("form-output",{f:"forms",test:"value"in document.createElement("output"),d:["dom-support"],c:[3,2,23,21]});l("form-number-date-api",{f:"forms-ext",uiTest:function(){return w.range&&w.date&&w.number},test:function(){return this.uiTest()&&!d.bugs.valueAsNumberSet},d:["forms","dom-support"],c:[18,7,6]});l("form-number-date-ui",{f:"forms-ext",test:function(){return m["form-number-date-api"].test()&&
|
26
|
+
!this.options.replaceUI},d:["forms","dom-support","form-number-date-api"],loadInit:function(){t(["jquery-ui"]);m["input-widgets"].src&&t(["input-widgets"])},options:{stepArrows:{number:1,time:1},calculateWidth:!0,slider:{},datepicker:{},langSrc:y+"i18n/jquery.ui.datepicker-",recalcWidth:!0},c:[18,7,6]});l("form-datalist",{f:"forms-ext",test:function(){return A.list&&!x.customDatalist},d:["form-core","dom-support"],c:[3,59,18,24,19,11]})}"details"in g||B("details",function(){return"open"in document.createElement("details")});
|
27
|
+
l("details",{test:g.details,d:["dom-support"],options:{text:"Details"},c:[12,13,15]});if("audio"in g&&"video"in g)d.mediaelement={},l("mediaelement-core",{f:"mediaelement",noAutoCallback:!0,d:["swfobject","dom-support"],c:[10,9,12,17,16,8,22,23,24,20]}),l("mediaelement-swf",{f:"mediaelement",options:{hasToPlay:"any",preferFlash:!1,jwVars:{},jwParams:{},jwAttrs:{},changeJW:b.noop},methodNames:["play","pause","canPlayType","mediaLoad:load"],d:["swfobject","dom-support"],test:function(){if(!g.audio||
|
28
|
+
!g.video)return!1;var a=this.options,b=a.hasToPlay;return!((!window.swfobject||window.swfobject.hasFlashPlayerVersion("9.0.115"))&&(a.preferFlash||"any"!=b&&!g.video[b]&&!g.audio[b]))},c:[10,9,22,20]});l("feature-dummy",{test:!0,loaded:!0,c:v});C.filter("[data-polyfill-cfg]").each(function(){try{d.setOptions(b(this).data("polyfillCfg"))}catch(a){d.warn("error parsing polyfill cfg: "+a)}}).end().filter("[data-polyfill]").each(function(){d.polyfill(b.trim(b(this).data("polyfill")||""))});r&&(r.cfg&&
|
29
|
+
d.setOptions(r.cfg),r.lang&&d.activeLang(r.lang),"polyfill"in r&&d.polyfill(r.polyfill))});
|
@@ -1,33 +1,33 @@
|
|
1
|
-
(function(){var a=Function.prototype.call,b=Object.prototype,h=Array.prototype.slice,m,f;if(!Function.prototype.bind)Function.prototype.bind=function(a){var f=this;if("function"!=typeof f)throw new TypeError;var k=h.call(arguments,1),l=function(){if(this instanceof l){var c=function(){};c.prototype=f.prototype;var c=new c,b=f.apply(c,k.concat(h.call(arguments)));return null!==b&&Object(b)===b?b:c}return f.apply(a,k.concat(h.call(arguments)))};return l};f=a.bind(b.toString);m=a.bind(b.hasOwnProperty);
|
2
|
-
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==f(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,c){var k=q(this),l=0,b=k.length>>>0;if("[object Function]"!=f(a))throw new TypeError;for(;l<b;)l in k&&a.call(c,k[l],l,k),l++};if(!Array.prototype.map)Array.prototype.map=function(a,c){var k=q(this),l=k.length>>>0,b=Array(l);if("[object Function]"!=f(a))throw new TypeError;for(var g=0;g<l;g++)g in k&&(b[g]=a.call(c,k[g],g,k));return b};if(!Array.prototype.filter)Array.prototype.filter=
|
3
|
-
function(a,c){var k=q(this),l=k.length>>>0,b=[];if("[object Function]"!=f(a))throw new TypeError;for(var g=0;g<l;g++)g in k&&a.call(c,k[g],g,k)&&b.push(k[g]);return b};if(!Array.prototype.every)Array.prototype.every=function(a,c){var k=q(this),l=k.length>>>0;if("[object Function]"!=f(a))throw new TypeError;for(var b=0;b<l;b++)if(b in k&&!a.call(c,k[b],b,k))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,c){var k=q(this),l=k.length>>>0;if("[object Function]"!=f(a))throw new TypeError;
|
4
|
-
for(var b=0;b<l;b++)if(b in k&&a.call(c,k[b],b,k))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var b=q(this),k=b.length>>>0;if("[object Function]"!=f(a))throw new TypeError;if(!k&&1==arguments.length)throw new TypeError;var c=0,g;if(2<=arguments.length)g=arguments[1];else{do{if(c in b){g=b[c++];break}if(++c>=k)throw new TypeError;}while(1)}for(;c<k;c++)c in b&&(g=a.call(void 0,g,b[c],c,b));return g};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var c=
|
5
|
-
q(this),b=c.length>>>0;if("[object Function]"!=f(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var g,b=b-1;if(2<=arguments.length)g=arguments[1];else{do{if(b in c){g=c[b--];break}if(0>--b)throw new TypeError;}while(1)}do b in this&&(g=a.call(void 0,g,c[b],b,c));while(b--);return g};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var b=q(this),c=b.length>>>0;if(!c)return-1;var f=0;1<arguments.length&&(f=r(arguments[1]));for(f=0<=f?f:c-Math.abs(f);f<c;f++)if(f in
|
6
|
-
b&&b[f]===a)return f;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var b=q(this),c=b.length>>>0;if(!c)return-1;var f=c-1;1<arguments.length&&(f=r(arguments[1]));for(f=0<=f?f:c-Math.abs(f);0<=f;f--)if(f in b&&a===b[f])return f;return-1};if(!Object.keys){var g=!0,c="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),n=c.length,j;for(j in{toString:null})g=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=
|
7
|
-
typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var b=[],f;for(f in a)m(a,f)&&b.push(f);if(g)for(f=0;f<n;f++){var j=c[f];m(a,j)&&b.push(j)}return b}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,f,b;if(!isFinite(this))throw new RangeError;a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(f=a.length;f--;)b=a[f],10>b&&(a[f]="0"+b);return a.slice(0,3).join("-")+"T"+
|
8
|
-
a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!String.prototype.trim||a.trim()){var a="["+a+"]",p=RegExp("^"+a+a+"*"),x=
|
9
|
-
RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(p,"").replace(x,"")}}var r=function(a){a=+a;a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},u="a"!="a"[0],q=function(a){if(null==a)throw new TypeError;return u&&"string"==typeof a&&a?a.split(""):Object(a)}})();
|
10
|
-
(function(a,b){var h=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);h&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});h=!!a.bar}catch(b){h=!1}a=null}();Modernizr.objectAccessor=!(!(h||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=b.browserVersion));Modernizr.advancedObjectProperties=h;
|
11
|
-
if(!h||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var m=Function.prototype.call.bind(Object.prototype.hasOwnProperty);b.objectCreate=function(a,g,c,n){var j;j=function(){};j.prototype=a;j=new j;if(!n&&!("__proto__"in j)&&!Modernizr.objectAccessor)j.__proto__=a;g&&b.defineProperties(j,g);if(c)j.options=jQuery.extend(!0,{},j.options||{},c),c=j.options;j._create&&jQuery.isFunction(j._create)&&j._create(c);return j};b.defineProperties=function(a,
|
12
|
-
g){for(var c in g)m(g,c)&&b.defineProperty(a,c,g[c]);return a};b.defineProperty=function(a,b,c){if("object"!=typeof c||null===c)return a;if(m(c,"value"))return a[b]=c.value,a;a.__defineGetter__&&("function"==typeof c.get&&a.__defineGetter__(b,c.get),"function"==typeof c.set&&a.__defineSetter__(b,c.set));return a};b.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};b.getOwnPropertyDescriptor=function(a,b){if("object"!==
|
13
|
-
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var c;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return c=Object.getOwnPropertyDescriptor(a,b)}catch(n){}c={configurable:!0,enumerable:!0,writable:!0,value:void 0};var j=a.__lookupGetter__&&a.__lookupGetter__(b),h=a.__lookupSetter__&&a.__lookupSetter__(b);if(!j&&!h){if(!m(a,b))return;c.value=a[b];return c}delete c.writable;delete c.value;c.get=c.set=void 0;if(j)c.get=
|
14
|
-
j;if(h)c.set=h;return c}}})(jQuery,jQuery.webshims);(function(a){if(!Modernizr.genericDOM){var b=document,h,m,f=/<([\w:]+)/,g={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||g[(f.exec(a)||["",""])[1].toLowerCase()])return a;if(!m){h=b.body;if(!h)return a;m=b.createElement("div");m.style.display="none"}var n=m.cloneNode(!1);h.appendChild(n);n.innerHTML=a;h.removeChild(n);return n.childNodes}}})(jQuery);
|
15
|
-
jQuery.webshims.register("dom-extend",function(a,b,h,m,f){var g=b.modules,c=/\s*,\s*/,n={},j={},p={},x={},r={},u=a.fn.val,q=function(i,d,e,b,c){return c?u.call(a(i)):u.call(a(i),e)};a.fn.val=function(i){var d=this[0];arguments.length&&null==i&&(i="");if(!arguments.length)return!d||1!==d.nodeType?u.call(this):a.prop(d,"value",i,"val",!0);if(a.isArray(i))return u.apply(this,arguments);var e=a.isFunction(i);return this.each(function(b){d=this;1===d.nodeType&&(e?(b=i.call(d,b,a.prop(d,"value",f,"val",
|
16
|
-
!0)),null==b&&(b=""),a.prop(d,"value",b,"val")):a.prop(d,"value",i,"val"))})};var t="_webshimsLib"+Math.round(1E3*Math.random()),w=function(i,d,e){i=i.jquery?i[0]:i;if(!i)return e||{};var b=a.data(i,t);e!==f&&(b||(b=a.data(i,t,{})),d&&(b[d]=e));return d?b&&b[d]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(b){a.fn[b.name]=function(){return this.map(function(){var a=w(this,
|
17
|
-
"shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(i){n[i]=a[i];a[i]=function(d,e,b,c,g){var y="val"==c,k=!y?n[i]:q;if(!d||!j[e]||1!==d.nodeType||!y&&c&&"attr"==i&&a.attrFn[e])return k(d,e,b,c,g);var z=(d.nodeName||"").toLowerCase(),s=p[z],v="attr"==i&&(!1===b||null===b)?"removeAttr":i,h,m,l;s||(s=p["*"]);s&&(s=s[e]);s&&(h=s[v]);if(h){if("value"==e)m=h.isVal,h.isVal=y;if("removeAttr"===v)return h.value.call(d);if(b===f)return h.get?h.get.call(d):h.value;h.set&&
|
18
|
-
("attr"==i&&!0===b&&(b=e),l=h.set.call(d,b));if("value"==e)h.isVal=m}else l=k(d,e,b,c,g);if((b!==f||"removeAttr"===v)&&r[z]&&r[z][e]){var o;o="removeAttr"==v?!1:"prop"==v?!!b:!0;r[z][e].forEach(function(a){if(!a.only||(a.only="prop"==i)||"attr"==a.only&&"prop"!=i)a.call(d,b,o,y?"val":v,i)})}return l};x[i]=function(d,e,c){p[d]||(p[d]={});p[d][e]||(p[d][e]={});var B=p[d][e][i],g=function(a,b,d){return b&&b[a]?b[a]:d&&d[a]?d[a]:"prop"==i&&"value"==e?function(a){return c.isVal?q(this,e,a,!1,0===arguments.length):
|
19
|
-
n[i](this,e,a)}:"prop"==i&&"value"==a&&c.value.apply?function(a){var b=n[i](this,e);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(a){return n[i](this,e,a)}};p[d][e][i]=c;if(c.value===f){if(!c.set)c.set=c.writeable?g("set",c,B):b.cfg.useStrict&&"prop"==e?function(){throw e+" is readonly on "+d;}:a.noop;if(!c.get)c.get=g("get",c,B)}["value","get","set"].forEach(function(a){c[a]&&(c["_sup"+a]=g(a,B))})}});var k=!a.browser.msie||8<parseInt(a.browser.version,10),l=function(){var a=b.getPrototypeOf(m.createElement("foobar")),
|
20
|
-
d=Object.prototype.hasOwnProperty;return function(e,c,f){var g=m.createElement(e),h=b.getPrototypeOf(g);if(k&&h&&a!==h&&(!g[c]||!d.call(g,c))){var j=g[c];f._supvalue=function(){return j&&j.apply?j.apply(this,arguments):j};h[c]=f.value}else f._supvalue=function(){var a=w(this,"propValue");return a&&a[c]&&a[c].apply?a[c].apply(this,arguments):a&&a[c]},o.extendValue(e,c,f.value);f.value._supvalue=f._supvalue}}(),o=function(){var i={};b.addReady(function(d,e){var c={},f=function(b){c[b]||(c[b]=a(d.getElementsByTagName(b)),
|
21
|
-
e[0]&&a.nodeName(e[0],b)&&(c[b]=c[b].add(e)))};a.each(i,function(a,d){f(a);!d||!d.forEach?b.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(b){c[a].each(b)})});c=null});var d,e=a([]),c=function(b,e){i[b]?i[b].push(e):i[b]=[e];a.isDOMReady&&(d||a(m.getElementsByTagName(b))).each(e)};return{createTmpCache:function(b){a.isDOMReady&&(d=d||a(m.getElementsByTagName(b)));return d||e},flushTmpCache:function(){d=null},content:function(b,d){c(b,function(){var b=a.attr(this,d);null!=b&&a.attr(this,
|
22
|
-
d,b)})},createElement:function(a,b){c(a,b)},extendValue:function(b,d,e){c(b,function(){a(this).each(function(){w(this,"propValue",{})[d]=this[d];this[d]=e})})}}}(),A=function(a,b){if(a.defaultValue===f)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(b,{getID:function(){var b=(new Date).getTime();return function(d){var d=a(d),e=d.attr("id");e||(b++,e="ID-"+b,d.attr("id",e));return e}}(),extendUNDEFProp:function(b,
|
23
|
-
d){a.each(d,function(a,d){a in b||(b[a]=d)})},createPropDefault:A,data:w,moveToFirstEvent:function(){var b=a._data?"_data":"data";return function(d,e,c){if((d=(a[b](d,"events")||{})[e])&&1<d.length)e=d.pop(),c||(c="bind"),"bind"==c&&d.delegateCount?d.splice(d.delegateCount,0,e):d.unshift(e)}}(),addShadowDom:function(b,d,e){e=e||{};b.jquery&&(b=b[0]);d.jquery&&(d=d[0]);if(!e.shadowFocusElement)e.shadowFocusElement=d;var c=a.data(b,t)||a.data(b,t,{}),f=a.data(d,t)||a.data(d,t,{});c.hasShadow=d;f.nativeElement=
|
24
|
-
b;f.shadowData=c.shadowData={nativeElement:b,shadowElement:d,shadowFocusElement:e.shadowFocusElement};e.shadowChilds&&e.shadowChilds.each(function(){w(this,"shadowData",f.shadowData)});if(e.data)c.shadowData.data=e.data,f.shadowData.data=e.data;e=null},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,
|
25
|
-
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(f,d){"string"==typeof d&&(d=d.split(c));d.forEach(function(d){b.defineNodeNamesProperty(f,d,{prop:{set:function(b){a.attr(this,d,b)},get:function(){return a.attr(this,d)||""}}})})},defineNodeNameProperty:function(c,d,e){j[d]=!0;if(e.reflect)b.propTypes[e.propType||"standard"](e);["prop","attr","removeAttr"].forEach(function(f){var g=e[f];g&&(g="prop"===f?a.extend({writeable:!0},g):a.extend({},
|
26
|
-
g,{writeable:!0}),x[f](c,d,g),"*"!=c&&b.cfg.extendNative&&"prop"==f&&g.value&&a.isFunction(g.value)&&l(c,d,g),e[f]=g)});e.initAttr&&o.content(c,d);return e},defineNodeNameProperties:function(a,d,c,f){for(var g in d)!f&&d[g].initAttr&&o.createTmpCache(a),c&&(d[g][c]?b.log("override: "+a+"["+g+"] for "+c):(d[g][c]={},["value","set","get"].forEach(function(a){a in d[g]&&(d[g][c][a]=d[g][a],delete d[g][a])}))),d[g]=b.defineNodeNameProperty(a,g,d[g]);f||o.flushTmpCache();return d},createElement:function(c,
|
27
|
-
d,e){var f;a.isFunction(d)&&(d={after:d});o.createTmpCache(c);d.before&&o.createElement(c,d.before);e&&(f=b.defineNodeNameProperties(c,e,!1,!0));d.after&&o.createElement(c,d.after);o.flushTmpCache();return f},onNodeNamesPropertyModify:function(b,d,e,f){"string"==typeof b&&(b=b.split(c));a.isFunction(e)&&(e={set:e});b.forEach(function(a){r[a]||(r[a]={});"string"==typeof d&&(d=d.split(c));e.initAttr&&o.createTmpCache(a);d.forEach(function(b){r[a][b]||(r[a][b]=[],j[b]=!0);if(e.set){if(f)e.set.only=f;
|
28
|
-
r[a][b].push(e.set)}e.initAttr&&o.content(a,b)});o.flushTmpCache()})},defineNodeNamesBooleanProperty:function(c,d,e){e||(e={});if(a.isFunction(e))e.set=e;b.defineNodeNamesProperty(c,d,{attr:{set:function(a){this.setAttribute(d,a);e.set&&e.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?f:d}},removeAttr:{value:function(){this.removeAttribute(d);e.set&&e.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:e.initAttr||!1})},contentAttr:function(a,b,c){if(a.nodeName){if(c===
|
29
|
-
f)return c=(a.attributes[b]||{}).value,null==c?f:c;"boolean"==typeof c?c?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var c=[],d={},e,f,h=/:\/\/|^\.*\//,k=function(c,d,e){return d&&e&&-1!==a.inArray(d,e.availabeLangs||[])?(c.loading=!0,e=e.langSrc,h.test(e)||(e=b.cfg.basePath+e),b.loader.loadScript(e+d+".js",function(){c.langObj[d]?(c.loading=!1,l(c,!0)):a(function(){c.langObj[d]&&l(c,!0);c.loading=!1})}),!0):!1},j=function(a){d[a]&&d[a].forEach(function(a){a.callback()})},
|
30
|
-
l=function(a,b){if(a.activeLang!=e&&a.activeLang!==f){var c=g[a.module].options;if(a.langObj[e]||f&&a.langObj[f])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[f],e),j(a.module);else if(!b&&!k(a,e,c)&&!k(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),j(a.module)}};return function(b){if("string"==typeof b&&b!==e)e=b,f=e.split("-")[0],e==f&&(f=!1),a.each(c,function(a,b){l(b)});else if("object"==typeof b)if(b.register)d[b.register]||(d[b.register]=[]),d[b.register].push(b),
|
31
|
-
b.callback();else{if(!b.activeLang)b.activeLang="";c.push(b);l(b)}return e}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,d){b[a]=function(a,f,g,i){"string"==typeof a&&(a=a.split(c));var h={};a.forEach(function(a){h[a]=b[d](a,f,g,i)});return h}});b.isReady("webshimLocalization",!0)});
|
32
|
-
(function(a,b){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var m={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},f=function(a,b){a.getAttribute("role")||a.setAttribute("role",b)};a.webshims.addReady(function(g,c){a.each(m,function(b,h){for(var j=a(b,g).add(c.filter(b)),m=0,n=j.length;m<n;m++)f(j[m],h)});if(g===b){var h=b.getElementsByTagName("header")[0],j=b.getElementsByTagName("footer"),p=j.length;
|
33
|
-
h&&!a(h).closest("section, article")[0]&&f(h,"banner");p&&(h=j[p-1],a(h).closest("section, article")[0]||f(h,"contentinfo"))}})}})(jQuery,document);
|
1
|
+
(function(){var a=Function.prototype.call,b=Object.prototype,h=Array.prototype.slice,m,f;if(!Function.prototype.bind)Function.prototype.bind=function(a){var f=this;if("function"!=typeof f)throw new TypeError;var k=h.call(arguments,1),l=function(){if(this instanceof l){var c=function(){};c.prototype=f.prototype;var c=new c,b=f.apply(c,k.concat(h.call(arguments)));return null!==b&&Object(b)===b?b:c}return f.apply(a,k.concat(h.call(arguments)))};return l};f=a.bind(b.toString);m=a.bind(b.hasOwnProperty);
|
2
|
+
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==f(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,c){var k=q(this),l=0,b=k.length>>>0;if("[object Function]"!=f(a))throw new TypeError;for(;l<b;)l in k&&a.call(c,k[l],l,k),l++};if(!Array.prototype.map)Array.prototype.map=function(a,c){var k=q(this),l=k.length>>>0,b=Array(l);if("[object Function]"!=f(a))throw new TypeError;for(var g=0;g<l;g++)g in k&&(b[g]=a.call(c,k[g],g,k));return b};if(!Array.prototype.filter)Array.prototype.filter=
|
3
|
+
function(a,c){var k=q(this),l=k.length>>>0,b=[];if("[object Function]"!=f(a))throw new TypeError;for(var g=0;g<l;g++)g in k&&a.call(c,k[g],g,k)&&b.push(k[g]);return b};if(!Array.prototype.every)Array.prototype.every=function(a,c){var k=q(this),l=k.length>>>0;if("[object Function]"!=f(a))throw new TypeError;for(var b=0;b<l;b++)if(b in k&&!a.call(c,k[b],b,k))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,c){var k=q(this),l=k.length>>>0;if("[object Function]"!=f(a))throw new TypeError;
|
4
|
+
for(var b=0;b<l;b++)if(b in k&&a.call(c,k[b],b,k))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var b=q(this),k=b.length>>>0;if("[object Function]"!=f(a))throw new TypeError;if(!k&&1==arguments.length)throw new TypeError;var c=0,g;if(2<=arguments.length)g=arguments[1];else{do{if(c in b){g=b[c++];break}if(++c>=k)throw new TypeError;}while(1)}for(;c<k;c++)c in b&&(g=a.call(void 0,g,b[c],c,b));return g};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var c=
|
5
|
+
q(this),b=c.length>>>0;if("[object Function]"!=f(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var g,b=b-1;if(2<=arguments.length)g=arguments[1];else{do{if(b in c){g=c[b--];break}if(0>--b)throw new TypeError;}while(1)}do b in this&&(g=a.call(void 0,g,c[b],b,c));while(b--);return g};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var b=q(this),c=b.length>>>0;if(!c)return-1;var f=0;1<arguments.length&&(f=r(arguments[1]));for(f=0<=f?f:c-Math.abs(f);f<c;f++)if(f in
|
6
|
+
b&&b[f]===a)return f;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var b=q(this),c=b.length>>>0;if(!c)return-1;var f=c-1;1<arguments.length&&(f=r(arguments[1]));for(f=0<=f?f:c-Math.abs(f);0<=f;f--)if(f in b&&a===b[f])return f;return-1};if(!Object.keys){var g=!0,c="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),n=c.length,j;for(j in{toString:null})g=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=
|
7
|
+
typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var b=[],f;for(f in a)m(a,f)&&b.push(f);if(g)for(f=0;f<n;f++){var j=c[f];m(a,j)&&b.push(j)}return b}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,f,b;if(!isFinite(this))throw new RangeError;a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(f=a.length;f--;)b=a[f],10>b&&(a[f]="0"+b);return a.slice(0,3).join("-")+"T"+
|
8
|
+
a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!String.prototype.trim||a.trim()){var a="["+a+"]",p=RegExp("^"+a+a+"*"),x=
|
9
|
+
RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(p,"").replace(x,"")}}var r=function(a){a=+a;a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},u="a"!="a"[0],q=function(a){if(null==a)throw new TypeError;return u&&"string"==typeof a&&a?a.split(""):Object(a)}})();
|
10
|
+
(function(a,b){var h=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);h&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});h=!!a.bar}catch(b){h=!1}a=null}();Modernizr.objectAccessor=!(!(h||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=b.browserVersion));Modernizr.advancedObjectProperties=h;
|
11
|
+
if(!h||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var m=Function.prototype.call.bind(Object.prototype.hasOwnProperty);b.objectCreate=function(a,g,c,n){var j;j=function(){};j.prototype=a;j=new j;if(!n&&!("__proto__"in j)&&!Modernizr.objectAccessor)j.__proto__=a;g&&b.defineProperties(j,g);if(c)j.options=jQuery.extend(!0,{},j.options||{},c),c=j.options;j._create&&jQuery.isFunction(j._create)&&j._create(c);return j};b.defineProperties=function(a,
|
12
|
+
g){for(var c in g)m(g,c)&&b.defineProperty(a,c,g[c]);return a};b.defineProperty=function(a,b,c){if("object"!=typeof c||null===c)return a;if(m(c,"value"))return a[b]=c.value,a;a.__defineGetter__&&("function"==typeof c.get&&a.__defineGetter__(b,c.get),"function"==typeof c.set&&a.__defineSetter__(b,c.set));return a};b.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};b.getOwnPropertyDescriptor=function(a,b){if("object"!==
|
13
|
+
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var c;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return c=Object.getOwnPropertyDescriptor(a,b)}catch(n){}c={configurable:!0,enumerable:!0,writable:!0,value:void 0};var j=a.__lookupGetter__&&a.__lookupGetter__(b),h=a.__lookupSetter__&&a.__lookupSetter__(b);if(!j&&!h){if(!m(a,b))return;c.value=a[b];return c}delete c.writable;delete c.value;c.get=c.set=void 0;if(j)c.get=
|
14
|
+
j;if(h)c.set=h;return c}}})(jQuery,jQuery.webshims);(function(a){if(!Modernizr.genericDOM){var b=document,h,m,f=/<([\w:]+)/,g={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||g[(f.exec(a)||["",""])[1].toLowerCase()])return a;if(!m){h=b.body;if(!h)return a;m=b.createElement("div");m.style.display="none"}var n=m.cloneNode(!1);h.appendChild(n);n.innerHTML=a;h.removeChild(n);return n.childNodes}}})(jQuery);
|
15
|
+
jQuery.webshims.register("dom-extend",function(a,b,h,m,f){var g=b.modules,c=/\s*,\s*/,n={},j={},p={},x={},r={},u=a.fn.val,q=function(i,d,e,b,c){return c?u.call(a(i)):u.call(a(i),e)};a.fn.val=function(i){var d=this[0];arguments.length&&null==i&&(i="");if(!arguments.length)return!d||1!==d.nodeType?u.call(this):a.prop(d,"value",i,"val",!0);if(a.isArray(i))return u.apply(this,arguments);var e=a.isFunction(i);return this.each(function(b){d=this;1===d.nodeType&&(e?(b=i.call(d,b,a.prop(d,"value",f,"val",
|
16
|
+
!0)),null==b&&(b=""),a.prop(d,"value",b,"val")):a.prop(d,"value",i,"val"))})};var t="_webshimsLib"+Math.round(1E3*Math.random()),w=function(i,d,e){i=i.jquery?i[0]:i;if(!i)return e||{};var b=a.data(i,t);e!==f&&(b||(b=a.data(i,t,{})),d&&(b[d]=e));return d?b&&b[d]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(b){a.fn[b.name]=function(){return this.map(function(){var a=w(this,
|
17
|
+
"shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(i){n[i]=a[i];a[i]=function(d,e,b,c,g){var y="val"==c,k=!y?n[i]:q;if(!d||!j[e]||1!==d.nodeType||!y&&c&&"attr"==i&&a.attrFn[e])return k(d,e,b,c,g);var z=(d.nodeName||"").toLowerCase(),s=p[z],v="attr"==i&&(!1===b||null===b)?"removeAttr":i,h,m,l;s||(s=p["*"]);s&&(s=s[e]);s&&(h=s[v]);if(h){if("value"==e)m=h.isVal,h.isVal=y;if("removeAttr"===v)return h.value.call(d);if(b===f)return h.get?h.get.call(d):h.value;h.set&&
|
18
|
+
("attr"==i&&!0===b&&(b=e),l=h.set.call(d,b));if("value"==e)h.isVal=m}else l=k(d,e,b,c,g);if((b!==f||"removeAttr"===v)&&r[z]&&r[z][e]){var o;o="removeAttr"==v?!1:"prop"==v?!!b:!0;r[z][e].forEach(function(a){if(!a.only||(a.only="prop"==i)||"attr"==a.only&&"prop"!=i)a.call(d,b,o,y?"val":v,i)})}return l};x[i]=function(d,e,c){p[d]||(p[d]={});p[d][e]||(p[d][e]={});var B=p[d][e][i],g=function(a,b,d){return b&&b[a]?b[a]:d&&d[a]?d[a]:"prop"==i&&"value"==e?function(a){return c.isVal?q(this,e,a,!1,0===arguments.length):
|
19
|
+
n[i](this,e,a)}:"prop"==i&&"value"==a&&c.value.apply?function(a){var b=n[i](this,e);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(a){return n[i](this,e,a)}};p[d][e][i]=c;if(c.value===f){if(!c.set)c.set=c.writeable?g("set",c,B):b.cfg.useStrict&&"prop"==e?function(){throw e+" is readonly on "+d;}:a.noop;if(!c.get)c.get=g("get",c,B)}["value","get","set"].forEach(function(a){c[a]&&(c["_sup"+a]=g(a,B))})}});var k=!a.browser.msie||8<parseInt(a.browser.version,10),l=function(){var a=b.getPrototypeOf(m.createElement("foobar")),
|
20
|
+
d=Object.prototype.hasOwnProperty;return function(e,c,f){var g=m.createElement(e),h=b.getPrototypeOf(g);if(k&&h&&a!==h&&(!g[c]||!d.call(g,c))){var j=g[c];f._supvalue=function(){return j&&j.apply?j.apply(this,arguments):j};h[c]=f.value}else f._supvalue=function(){var a=w(this,"propValue");return a&&a[c]&&a[c].apply?a[c].apply(this,arguments):a&&a[c]},o.extendValue(e,c,f.value);f.value._supvalue=f._supvalue}}(),o=function(){var i={};b.addReady(function(d,e){var c={},f=function(b){c[b]||(c[b]=a(d.getElementsByTagName(b)),
|
21
|
+
e[0]&&a.nodeName(e[0],b)&&(c[b]=c[b].add(e)))};a.each(i,function(a,d){f(a);!d||!d.forEach?b.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(b){c[a].each(b)})});c=null});var d,e=a([]),c=function(b,e){i[b]?i[b].push(e):i[b]=[e];a.isDOMReady&&(d||a(m.getElementsByTagName(b))).each(e)};return{createTmpCache:function(b){a.isDOMReady&&(d=d||a(m.getElementsByTagName(b)));return d||e},flushTmpCache:function(){d=null},content:function(b,d){c(b,function(){var b=a.attr(this,d);null!=b&&a.attr(this,
|
22
|
+
d,b)})},createElement:function(a,b){c(a,b)},extendValue:function(b,d,e){c(b,function(){a(this).each(function(){w(this,"propValue",{})[d]=this[d];this[d]=e})})}}}(),A=function(a,b){if(a.defaultValue===f)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(b,{getID:function(){var b=(new Date).getTime();return function(d){var d=a(d),e=d.attr("id");e||(b++,e="ID-"+b,d.attr("id",e));return e}}(),extendUNDEFProp:function(b,
|
23
|
+
d){a.each(d,function(a,d){a in b||(b[a]=d)})},createPropDefault:A,data:w,moveToFirstEvent:function(){var b=a._data?"_data":"data";return function(d,e,c){if((d=(a[b](d,"events")||{})[e])&&1<d.length)e=d.pop(),c||(c="bind"),"bind"==c&&d.delegateCount?d.splice(d.delegateCount,0,e):d.unshift(e)}}(),addShadowDom:function(b,d,e){e=e||{};b.jquery&&(b=b[0]);d.jquery&&(d=d[0]);if(!e.shadowFocusElement)e.shadowFocusElement=d;var c=a.data(b,t)||a.data(b,t,{}),f=a.data(d,t)||a.data(d,t,{});c.hasShadow=d;f.nativeElement=
|
24
|
+
b;f.shadowData=c.shadowData={nativeElement:b,shadowElement:d,shadowFocusElement:e.shadowFocusElement};e.shadowChilds&&e.shadowChilds.each(function(){w(this,"shadowData",f.shadowData)});if(e.data)c.shadowData.data=e.data,f.shadowData.data=e.data;e=null},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,
|
25
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(f,d){"string"==typeof d&&(d=d.split(c));d.forEach(function(d){b.defineNodeNamesProperty(f,d,{prop:{set:function(b){a.attr(this,d,b)},get:function(){return a.attr(this,d)||""}}})})},defineNodeNameProperty:function(c,d,e){j[d]=!0;if(e.reflect)b.propTypes[e.propType||"standard"](e);["prop","attr","removeAttr"].forEach(function(f){var g=e[f];g&&(g="prop"===f?a.extend({writeable:!0},g):a.extend({},
|
26
|
+
g,{writeable:!0}),x[f](c,d,g),"*"!=c&&b.cfg.extendNative&&"prop"==f&&g.value&&a.isFunction(g.value)&&l(c,d,g),e[f]=g)});e.initAttr&&o.content(c,d);return e},defineNodeNameProperties:function(a,d,c,f){for(var g in d)!f&&d[g].initAttr&&o.createTmpCache(a),c&&(d[g][c]?b.log("override: "+a+"["+g+"] for "+c):(d[g][c]={},["value","set","get"].forEach(function(a){a in d[g]&&(d[g][c][a]=d[g][a],delete d[g][a])}))),d[g]=b.defineNodeNameProperty(a,g,d[g]);f||o.flushTmpCache();return d},createElement:function(c,
|
27
|
+
d,e){var f;a.isFunction(d)&&(d={after:d});o.createTmpCache(c);d.before&&o.createElement(c,d.before);e&&(f=b.defineNodeNameProperties(c,e,!1,!0));d.after&&o.createElement(c,d.after);o.flushTmpCache();return f},onNodeNamesPropertyModify:function(b,d,e,f){"string"==typeof b&&(b=b.split(c));a.isFunction(e)&&(e={set:e});b.forEach(function(a){r[a]||(r[a]={});"string"==typeof d&&(d=d.split(c));e.initAttr&&o.createTmpCache(a);d.forEach(function(b){r[a][b]||(r[a][b]=[],j[b]=!0);if(e.set){if(f)e.set.only=f;
|
28
|
+
r[a][b].push(e.set)}e.initAttr&&o.content(a,b)});o.flushTmpCache()})},defineNodeNamesBooleanProperty:function(c,d,e){e||(e={});if(a.isFunction(e))e.set=e;b.defineNodeNamesProperty(c,d,{attr:{set:function(a){this.setAttribute(d,a);e.set&&e.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?f:d}},removeAttr:{value:function(){this.removeAttribute(d);e.set&&e.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:e.initAttr||!1})},contentAttr:function(a,b,c){if(a.nodeName){if(c===
|
29
|
+
f)return c=(a.attributes[b]||{}).value,null==c?f:c;"boolean"==typeof c?c?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var c=[],d={},e,f,h=/:\/\/|^\.*\//,k=function(c,d,e){return d&&e&&-1!==a.inArray(d,e.availabeLangs||[])?(c.loading=!0,e=e.langSrc,h.test(e)||(e=b.cfg.basePath+e),b.loader.loadScript(e+d+".js",function(){c.langObj[d]?(c.loading=!1,l(c,!0)):a(function(){c.langObj[d]&&l(c,!0);c.loading=!1})}),!0):!1},j=function(a){d[a]&&d[a].forEach(function(a){a.callback()})},
|
30
|
+
l=function(a,b){if(a.activeLang!=e&&a.activeLang!==f){var c=g[a.module].options;if(a.langObj[e]||f&&a.langObj[f])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[f],e),j(a.module);else if(!b&&!k(a,e,c)&&!k(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),j(a.module)}};return function(b){if("string"==typeof b&&b!==e)e=b,f=e.split("-")[0],e==f&&(f=!1),a.each(c,function(a,b){l(b)});else if("object"==typeof b)if(b.register)d[b.register]||(d[b.register]=[]),d[b.register].push(b),
|
31
|
+
b.callback();else{if(!b.activeLang)b.activeLang="";c.push(b);l(b)}return e}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,d){b[a]=function(a,f,g,i){"string"==typeof a&&(a=a.split(c));var h={};a.forEach(function(a){h[a]=b[d](a,f,g,i)});return h}});b.isReady("webshimLocalization",!0)});
|
32
|
+
(function(a,b){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var m={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},f=function(a,b){a.getAttribute("role")||a.setAttribute("role",b)};a.webshims.addReady(function(g,c){a.each(m,function(b,h){for(var j=a(b,g).add(c.filter(b)),m=0,n=j.length;m<n;m++)f(j[m],h)});if(g===b){var h=b.getElementsByTagName("header")[0],j=b.getElementsByTagName("footer"),p=j.length;
|
33
|
+
h&&!a(h).closest("section, article")[0]&&f(h,"banner");p&&(h=j[p-1],a(h).closest("section, article")[0]||f(h,"contentinfo"))}})}})(jQuery,document);
|
@@ -1,76 +1,76 @@
|
|
1
|
-
(function(){var a=Function.prototype.call,b=Object.prototype,
|
2
|
-
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==
|
3
|
-
function(a,
|
4
|
-
for(var
|
5
|
-
q(this),
|
6
|
-
|
7
|
-
typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var b=[],
|
8
|
-
a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!String.prototype.trim||a.trim()){var a="["+a+"]",o=RegExp("^"+a+a+"*"),
|
9
|
-
RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(o,"").replace(
|
10
|
-
(function(a,b){var
|
11
|
-
if(!
|
12
|
-
|
13
|
-
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var
|
14
|
-
|
15
|
-
jQuery.webshims.register("dom-extend",function(a,b,h,
|
16
|
-
!0)),null==b&&(b=""),a.prop(c,"value",b,"val")):a.prop(c,"value",f,"val"))})};var
|
17
|
-
"shadowData");return a&&a[f.prop]||this})}});["removeAttr","prop","attr"].forEach(function(f){
|
18
|
-
("attr"==f&&!0===b&&(b=
|
19
|
-
|
20
|
-
c=Object.prototype.hasOwnProperty;return function(
|
21
|
-
|
22
|
-
f,c)})},createElement:function(a,c){d(a,c)},extendValue:function(c,f,
|
23
|
-
c){a.each(c,function(a,c){a in f||(f[a]=c)})},createPropDefault:w,data:n,moveToFirstEvent:function(){var f=a._data?"_data":"data";return function(c,
|
24
|
-
f;
|
25
|
-
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(f,c){"string"==typeof c&&(c=c.split(
|
26
|
-
|
27
|
-
c,d){var
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
(function(a,b){var
|
33
|
-
|
34
|
-
(function(a,b,
|
35
|
-
v=function(
|
36
|
-
|
37
|
-
"
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
"
|
44
|
-
|
45
|
-
"
|
46
|
-
|
47
|
-
jQuery.webshims.register("mediaelement-swf",function(a,b,h,
|
48
|
-
muted:!1};Object.keys(v);var q=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:
|
49
|
-
"jwplayer/"+(
|
50
|
-
|
51
|
-
{View:{PLAY:function(a){var
|
52
|
-
d._bufferedEnd>b.percentage)d._bufferedStart=d.currentTime||0;d._bufferedEnd=b.percentage;d.buffered.length=1;if(100==b.percentage)d.networkState=1,c(4,d);a.event.trigger("progress",
|
53
|
-
a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&c(1,b);b.duration&&d!==b.duration&&m(b._elem,"durationchange");m(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=n(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&f(b,a);2>b.readyState&&c(2,b);if(b.ended)b.ended=!1;m(b._elem,"timeupdate")}},STATE:function(a){var b=n(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;c(1,b);m(b._elem,"waiting");
|
54
|
-
break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||f(b,a);3>b.readyState&&c(3,b);if(b.ended)b.ended=!1;m(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,m(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&c(4,b),b.ended=!0,m(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=n(a.id);b&&
|
55
|
-
a.position)b.currentTime=a.position,m(b._elem,"timeupdate")}},VOLUME:function(a){var b=n(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,m(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=n(a.id);if(b&&b.muted!=a.state)b.muted=a.state,m(b._elem,"volumechange")}}}};var
|
56
|
-
a.actionQueue.length,c=0,d;if(b&&"flash"==a.isActive)for(;a.actionQueue.length&&b>c;)c++,d=a.actionQueue.shift(),a.jwapi[d.fn].apply(a.jwapi,d.args);if(a.actionQueue.length)a.actionQueue=[]},F=function(b){b&&(b._ppFlag===
|
57
|
-
(c.remove(),c=!1),f=
|
58
|
-
c=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.bind("load error alreadycomplete",function(){clearTimeout(
|
59
|
-
this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(
|
60
|
-
(b=
|
61
|
-
(d.tryedReframeing++,d.shadowElem.css({overflow:"visible"}),setTimeout(function(){d.shadowElem.css({overflow:"hidden"})},16))};if(d&&d.jwapi){if(!d.tryedReframeing)d.tryedReframeing=0;clearTimeout(
|
62
|
-
".webshimspolyfill"}).join(" "),
|
63
|
-
var f=b.data(c,"shadowData");e.activating=d;a(c).pause();e.isActive=d;"flash"==d?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],a(c).hide().getShadowElement().show()):(a(c).show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1)}};var
|
64
|
-
for(c(0,d);--e;)delete d[a[e]];d.actionQueue=[];d.buffered.length=0;f&&m(d._elem,"emptied")}}}(),
|
65
|
-
"flash",h),
|
66
|
-
shadowElem:{value:
|
67
|
-
controlbar:k?
|
68
|
-
"none"==d.ref.style.display)
|
69
|
-
(2>c[0].offsetWidth||2>c[0].offsetHeight)&&b.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(c).mediaLoad()},1)};var B=function(a,b,c,d){return(d=d||
|
70
|
-
("videoHeight"==a||"videoWidth"==a)||(d[a]={get:function(){var b=
|
71
|
-
a,m(c._elem,"volumechange")}}else if(
|
72
|
-
!0;b.stopPlayPause=!1},50);B(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,m(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(
|
73
|
-
!0,b.paused!=("play"!=a)))b.paused="play"!=a,m(b._elem,a)},1);else if(
|
74
|
-
a.cleanData,
|
75
|
-
c,{prop:{get:function(){var b=this.getAttribute(c),d;if(null==b)return"";y.setAttribute("href",b+"");if(!a.support.hrefNormalized){try{a(y).appendTo(this),d=y.getAttribute("href",4)}catch(e){d=y.getAttribute("href",4)}a(y).detach()}return d||y.href},set:function(b){a.attr(this,c,b)}}})});["autoplay","controls"].forEach(function(a){b.defineNodeNamesBooleanProperty(["audio","video"],a)});b.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},
|
76
|
-
HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop")}});
|
1
|
+
(function(){var a=Function.prototype.call,b=Object.prototype,k=Array.prototype.slice,h,i;if(!Function.prototype.bind)Function.prototype.bind=function(a){var d=this;if("function"!=typeof d)throw new TypeError;var b=k.call(arguments,1),m=function(){if(this instanceof m){var g=function(){};g.prototype=d.prototype;var g=new g,i=d.apply(g,b.concat(k.call(arguments)));return null!==i&&Object(i)===i?i:g}return d.apply(a,b.concat(k.call(arguments)))};return m};i=a.bind(b.toString);h=a.bind(b.hasOwnProperty);
|
2
|
+
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==i(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,d){var g=q(this),m=0,b=g.length>>>0;if("[object Function]"!=i(a))throw new TypeError;for(;m<b;)m in g&&a.call(d,g[m],m,g),m++};if(!Array.prototype.map)Array.prototype.map=function(a,g){var d=q(this),b=d.length>>>0,j=Array(b);if("[object Function]"!=i(a))throw new TypeError;for(var e=0;e<b;e++)e in d&&(j[e]=a.call(g,d[e],e,d));return j};if(!Array.prototype.filter)Array.prototype.filter=
|
3
|
+
function(a,d){var g=q(this),b=g.length>>>0,j=[];if("[object Function]"!=i(a))throw new TypeError;for(var e=0;e<b;e++)e in g&&a.call(d,g[e],e,g)&&j.push(g[e]);return j};if(!Array.prototype.every)Array.prototype.every=function(a,g){var d=q(this),b=d.length>>>0;if("[object Function]"!=i(a))throw new TypeError;for(var e=0;e<b;e++)if(e in d&&!a.call(g,d[e],e,d))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,d){var g=q(this),b=g.length>>>0;if("[object Function]"!=i(a))throw new TypeError;
|
4
|
+
for(var e=0;e<b;e++)if(e in g&&a.call(d,g[e],e,g))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var g=q(this),d=g.length>>>0;if("[object Function]"!=i(a))throw new TypeError;if(!d&&1==arguments.length)throw new TypeError;var b=0,e;if(2<=arguments.length)e=arguments[1];else{do{if(b in g){e=g[b++];break}if(++b>=d)throw new TypeError;}while(1)}for(;b<d;b++)b in g&&(e=a.call(void 0,e,g[b],b,g));return e};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var g=
|
5
|
+
q(this),d=g.length>>>0;if("[object Function]"!=i(a))throw new TypeError;if(!d&&1==arguments.length)throw new TypeError;var b,d=d-1;if(2<=arguments.length)b=arguments[1];else{do{if(d in g){b=g[d--];break}if(0>--d)throw new TypeError;}while(1)}do d in this&&(b=a.call(void 0,b,g[d],d,g));while(d--);return b};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var g=q(this),d=g.length>>>0;if(!d)return-1;var b=0;1<arguments.length&&(b=p(arguments[1]));for(b=0<=b?b:d-Math.abs(b);b<d;b++)if(b in
|
6
|
+
g&&g[b]===a)return b;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var g=q(this),d=g.length>>>0;if(!d)return-1;var b=d-1;1<arguments.length&&(b=p(arguments[1]));for(b=0<=b?b:d-Math.abs(b);0<=b;b--)if(b in g&&a===g[b])return b;return-1};if(!Object.keys){var g=!0,d="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),u=d.length,e;for(e in{toString:null})g=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=
|
7
|
+
typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var b=[],i;for(i in a)h(a,i)&&b.push(i);if(g)for(i=0;i<u;i++){var e=d[i];h(a,e)&&b.push(e)}return b}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,b,g;if(!isFinite(this))throw new RangeError;a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(b=a.length;b--;)g=a[b],10>g&&(a[b]="0"+g);return a.slice(0,3).join("-")+"T"+
|
8
|
+
a.slice(3).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"};if(!Date.now)Date.now=function(){return(new Date).getTime()};if(!Date.prototype.toJSON)Date.prototype.toJSON=function(){if("function"!=typeof this.toISOString)throw new TypeError;return this.toISOString()};a="\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!String.prototype.trim||a.trim()){var a="["+a+"]",o=RegExp("^"+a+a+"*"),j=
|
9
|
+
RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(o,"").replace(j,"")}}var p=function(a){a=+a;a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},v="a"!="a"[0],q=function(a){if(null==a)throw new TypeError;return v&&"string"==typeof a&&a?a.split(""):Object(a)}})();
|
10
|
+
(function(a,b){var k=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);k&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});k=!!a.bar}catch(b){k=!1}a=null}();Modernizr.objectAccessor=!(!(k||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=b.browserVersion));Modernizr.advancedObjectProperties=k;
|
11
|
+
if(!k||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var h=Function.prototype.call.bind(Object.prototype.hasOwnProperty);b.objectCreate=function(a,g,d,h){var e;e=function(){};e.prototype=a;e=new e;if(!h&&!("__proto__"in e)&&!Modernizr.objectAccessor)e.__proto__=a;g&&b.defineProperties(e,g);if(d)e.options=jQuery.extend(!0,{},e.options||{},d),d=e.options;e._create&&jQuery.isFunction(e._create)&&e._create(d);return e};b.defineProperties=function(a,
|
12
|
+
g){for(var d in g)h(g,d)&&b.defineProperty(a,d,g[d]);return a};b.defineProperty=function(a,b,d){if("object"!=typeof d||null===d)return a;if(h(d,"value"))return a[b]=d.value,a;a.__defineGetter__&&("function"==typeof d.get&&a.__defineGetter__(b,d.get),"function"==typeof d.set&&a.__defineSetter__(b,d.set));return a};b.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};b.getOwnPropertyDescriptor=function(a,b){if("object"!==
|
13
|
+
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var d;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return d=Object.getOwnPropertyDescriptor(a,b)}catch(k){}d={configurable:!0,enumerable:!0,writable:!0,value:void 0};var e=a.__lookupGetter__&&a.__lookupGetter__(b),o=a.__lookupSetter__&&a.__lookupSetter__(b);if(!e&&!o){if(!h(a,b))return;d.value=a[b];return d}delete d.writable;delete d.value;d.get=d.set=void 0;if(e)d.get=
|
14
|
+
e;if(o)d.set=o;return d}}})(jQuery,jQuery.webshims);(function(a){if(!Modernizr.genericDOM){var b=document,k,h,i=/<([\w:]+)/,g={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||g[(i.exec(a)||["",""])[1].toLowerCase()])return a;if(!h){k=b.body;if(!k)return a;h=b.createElement("div");h.style.display="none"}var u=h.cloneNode(!1);k.appendChild(u);u.innerHTML=a;k.removeChild(u);return u.childNodes}}})(jQuery);
|
15
|
+
jQuery.webshims.register("dom-extend",function(a,b,k,h,i){var g=b.modules,d=/\s*,\s*/,u={},e={},o={},j={},p={},v=a.fn.val,q=function(f,c,l,b,d){return d?v.call(a(f)):v.call(a(f),l)};a.fn.val=function(f){var c=this[0];arguments.length&&null==f&&(f="");if(!arguments.length)return!c||1!==c.nodeType?v.call(this):a.prop(c,"value",f,"val",!0);if(a.isArray(f))return v.apply(this,arguments);var l=a.isFunction(f);return this.each(function(b){c=this;1===c.nodeType&&(l?(b=f.call(c,b,a.prop(c,"value",i,"val",
|
16
|
+
!0)),null==b&&(b=""),a.prop(c,"value",b,"val")):a.prop(c,"value",f,"val"))})};var r="_webshimsLib"+Math.round(1E3*Math.random()),n=function(f,c,l){f=f.jquery?f[0]:f;if(!f)return l||{};var b=a.data(f,r);l!==i&&(b||(b=a.data(f,r,{})),c&&(b[c]=l));return c?b&&b[c]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(f){a.fn[f.name]=function(){return this.map(function(){var a=n(this,
|
17
|
+
"shadowData");return a&&a[f.prop]||this})}});["removeAttr","prop","attr"].forEach(function(f){u[f]=a[f];a[f]=function(c,l,b,d,g){var j="val"==d,z=!j?u[f]:q;if(!c||!e[l]||1!==c.nodeType||!j&&d&&"attr"==f&&a.attrFn[l])return z(c,l,b,d,g);var A=(c.nodeName||"").toLowerCase(),x=o[A],h="attr"==f&&(!1===b||null===b)?"removeAttr":f,m,k,n;x||(x=o["*"]);x&&(x=x[l]);x&&(m=x[h]);if(m){if("value"==l)k=m.isVal,m.isVal=j;if("removeAttr"===h)return m.value.call(c);if(b===i)return m.get?m.get.call(c):m.value;m.set&&
|
18
|
+
("attr"==f&&!0===b&&(b=l),n=m.set.call(c,b));if("value"==l)m.isVal=k}else n=z(c,l,b,d,g);if((b!==i||"removeAttr"===h)&&p[A]&&p[A][l]){var s;s="removeAttr"==h?!1:"prop"==h?!!b:!0;p[A][l].forEach(function(a){if(!a.only||(a.only="prop"==f)||"attr"==a.only&&"prop"!=f)a.call(c,b,s,j?"val":h,f)})}return n};j[f]=function(c,l,d){o[c]||(o[c]={});o[c][l]||(o[c][l]={});var g=o[c][l][f],e=function(a,c,b){return c&&c[a]?c[a]:b&&b[a]?b[a]:"prop"==f&&"value"==l?function(a){return d.isVal?q(this,l,a,!1,0===arguments.length):
|
19
|
+
u[f](this,l,a)}:"prop"==f&&"value"==a&&d.value.apply?function(a){var c=u[f](this,l);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(a){return u[f](this,l,a)}};o[c][l][f]=d;if(d.value===i){if(!d.set)d.set=d.writeable?e("set",d,g):b.cfg.useStrict&&"prop"==l?function(){throw l+" is readonly on "+c;}:a.noop;if(!d.get)d.get=e("get",d,g)}["value","get","set"].forEach(function(a){d[a]&&(d["_sup"+a]=e(a,g))})}});var t=!a.browser.msie||8<parseInt(a.browser.version,10),m=function(){var a=b.getPrototypeOf(h.createElement("foobar")),
|
20
|
+
c=Object.prototype.hasOwnProperty;return function(l,d,g){var e=h.createElement(l),j=b.getPrototypeOf(e);if(t&&j&&a!==j&&(!e[d]||!c.call(e,d))){var i=e[d];g._supvalue=function(){return i&&i.apply?i.apply(this,arguments):i};j[d]=g.value}else g._supvalue=function(){var a=n(this,"propValue");return a&&a[d]&&a[d].apply?a[d].apply(this,arguments):a&&a[d]},s.extendValue(l,d,g.value);g.value._supvalue=g._supvalue}}(),s=function(){var f={};b.addReady(function(c,l){var d={},g=function(f){d[f]||(d[f]=a(c.getElementsByTagName(f)),
|
21
|
+
l[0]&&a.nodeName(l[0],f)&&(d[f]=d[f].add(l)))};a.each(f,function(a,c){g(a);!c||!c.forEach?b.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){d[a].each(c)})});d=null});var c,l=a([]),d=function(b,l){f[b]?f[b].push(l):f[b]=[l];a.isDOMReady&&(c||a(h.getElementsByTagName(b))).each(l)};return{createTmpCache:function(f){a.isDOMReady&&(c=c||a(h.getElementsByTagName(f)));return c||l},flushTmpCache:function(){c=null},content:function(c,f){d(c,function(){var c=a.attr(this,f);null!=c&&a.attr(this,
|
22
|
+
f,c)})},createElement:function(a,c){d(a,c)},extendValue:function(c,f,b){d(c,function(){a(this).each(function(){n(this,"propValue",{})[f]=this[f];this[f]=b})})}}}(),w=function(a,c){if(a.defaultValue===i)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[c||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(b,{getID:function(){var f=(new Date).getTime();return function(c){var c=a(c),b=c.attr("id");b||(f++,b="ID-"+f,c.attr("id",b));return b}}(),extendUNDEFProp:function(f,
|
23
|
+
c){a.each(c,function(a,c){a in f||(f[a]=c)})},createPropDefault:w,data:n,moveToFirstEvent:function(){var f=a._data?"_data":"data";return function(c,b,d){if((c=(a[f](c,"events")||{})[b])&&1<c.length)b=c.pop(),d||(d="bind"),"bind"==d&&c.delegateCount?c.splice(c.delegateCount,0,b):c.unshift(b)}}(),addShadowDom:function(f,c,b){b=b||{};f.jquery&&(f=f[0]);c.jquery&&(c=c[0]);if(!b.shadowFocusElement)b.shadowFocusElement=c;var d=a.data(f,r)||a.data(f,r,{}),g=a.data(c,r)||a.data(c,r,{});d.hasShadow=c;g.nativeElement=
|
24
|
+
f;g.shadowData=d.shadowData={nativeElement:f,shadowElement:c,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){n(this,"shadowData",g.shadowData)});if(b.data)d.shadowData.data=b.data,g.shadowData.data=b.data;b=null},propTypes:{standard:function(a){w(a);if(!a.prop)a.prop={set:function(c){a.attr.set.call(this,""+c)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){w(a);if(!a.prop)a.prop={set:function(c){c?a.attr.set.call(this,
|
25
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(f,c){"string"==typeof c&&(c=c.split(d));c.forEach(function(c){b.defineNodeNamesProperty(f,c,{prop:{set:function(b){a.attr(this,c,b)},get:function(){return a.attr(this,c)||""}}})})},defineNodeNameProperty:function(f,c,d){e[c]=!0;if(d.reflect)b.propTypes[d.propType||"standard"](d);["prop","attr","removeAttr"].forEach(function(g){var e=d[g];e&&(e="prop"===g?a.extend({writeable:!0},e):a.extend({},
|
26
|
+
e,{writeable:!0}),j[g](f,c,e),"*"!=f&&b.cfg.extendNative&&"prop"==g&&e.value&&a.isFunction(e.value)&&m(f,c,e),d[g]=e)});d.initAttr&&s.content(f,c);return d},defineNodeNameProperties:function(a,c,d,g){for(var e in c)!g&&c[e].initAttr&&s.createTmpCache(a),d&&(c[e][d]?b.log("override: "+a+"["+e+"] for "+d):(c[e][d]={},["value","set","get"].forEach(function(a){a in c[e]&&(c[e][d][a]=c[e][a],delete c[e][a])}))),c[e]=b.defineNodeNameProperty(a,e,c[e]);g||s.flushTmpCache();return c},createElement:function(f,
|
27
|
+
c,d){var g;a.isFunction(c)&&(c={after:c});s.createTmpCache(f);c.before&&s.createElement(f,c.before);d&&(g=b.defineNodeNameProperties(f,d,!1,!0));c.after&&s.createElement(f,c.after);s.flushTmpCache();return g},onNodeNamesPropertyModify:function(b,c,g,C){"string"==typeof b&&(b=b.split(d));a.isFunction(g)&&(g={set:g});b.forEach(function(a){p[a]||(p[a]={});"string"==typeof c&&(c=c.split(d));g.initAttr&&s.createTmpCache(a);c.forEach(function(c){p[a][c]||(p[a][c]=[],e[c]=!0);if(g.set){if(C)g.set.only=C;
|
28
|
+
p[a][c].push(g.set)}g.initAttr&&s.content(a,c)});s.flushTmpCache()})},defineNodeNamesBooleanProperty:function(f,c,d){d||(d={});if(a.isFunction(d))d.set=d;b.defineNodeNamesProperty(f,c,{attr:{set:function(a){this.setAttribute(c,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?i:c}},removeAttr:{value:function(){this.removeAttribute(c);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,c,b){if(a.nodeName){if(b===
|
29
|
+
i)return b=(a.attributes[c]||{}).value,null==b?i:b;"boolean"==typeof b?b?a.setAttribute(c,c):a.removeAttribute(c):a.setAttribute(c,b)}},activeLang:function(){var d=[],c={},l,e,j=/:\/\/|^\.*\//,i=function(c,d,f){return d&&f&&-1!==a.inArray(d,f.availabeLangs||[])?(c.loading=!0,f=f.langSrc,j.test(f)||(f=b.cfg.basePath+f),b.loader.loadScript(f+d+".js",function(){c.langObj[d]?(c.loading=!1,h(c,!0)):a(function(){c.langObj[d]&&h(c,!0);c.loading=!1})}),!0):!1},m=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},
|
30
|
+
h=function(a,c){if(a.activeLang!=l&&a.activeLang!==e){var b=g[a.module].options;if(a.langObj[l]||e&&a.langObj[e])a.activeLang=l,a.callback(a.langObj[l]||a.langObj[e],l),m(a.module);else if(!c&&!i(a,l,b)&&!i(a,e,b)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],l),m(a.module)}};return function(b){if("string"==typeof b&&b!==l)l=b,e=l.split("-")[0],l==e&&(e=!1),a.each(d,function(a,c){h(c)});else if("object"==typeof b)if(b.register)c[b.register]||(c[b.register]=[]),c[b.register].push(b),
|
31
|
+
b.callback();else{if(!b.activeLang)b.activeLang="";d.push(b);h(b)}return l}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,c){b[a]=function(a,f,g,e){"string"==typeof a&&(a=a.split(d));var j={};a.forEach(function(a){j[a]=b[c](a,f,g,e)});return j}});b.isReady("webshimLocalization",!0)});
|
32
|
+
(function(a,b){var k=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<k)&&(!a.browser.msie||12>k&&7<k)){var h={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},i=function(a,b){a.getAttribute("role")||a.setAttribute("role",b)};a.webshims.addReady(function(g,d){a.each(h,function(b,e){for(var h=a(b,g).add(d.filter(b)),k=0,o=h.length;k<o;k++)i(h[k],e)});if(g===b){var k=b.getElementsByTagName("header")[0],e=b.getElementsByTagName("footer"),o=e.length;
|
33
|
+
k&&!a(k).closest("section, article")[0]&&i(k,"banner");o&&(k=e[o-1],a(k).closest("section, article")[0]||i(k,"contentinfo"))}})}})(jQuery,document);
|
34
|
+
(function(a,b,k){var h=b.audio&&b.video,i=!1;if(h)a=document.createElement("video"),b.videoBuffered="buffered"in a,i="loop"in a,k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),b.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:b.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(a,b,k,e,o){var j=b.mediaelement,p=b.cfg.mediaelement,
|
35
|
+
v=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=j.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},q=swfobject.hasFlashPlayerVersion("9.0.115"),r=function(){b.ready("mediaelement-swf",function(){if(!j.createSWF)b.modules["mediaelement-swf"].test=
|
36
|
+
a.noop,b.reTest(["mediaelement-swf"],h)})};j.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf",
|
37
|
+
"asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};j.mimeTypes.source=a.extend({},j.mimeTypes.audio,j.mimeTypes.video);j.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||-1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(j.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};j.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),
|
38
|
+
a.isArray(c)||(c=[c]),c.forEach(function(a){var c=e.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)});else{var c=[],d=b[0].nodeName.toLowerCase(),j=v(b,d);j.src?c.push(j):a("source",b).each(function(){j=v(this,d);j.src&&c.push(j)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==o&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));j.srces(this,
|
39
|
+
b);a(this).mediaLoad()})};j.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");j.canSwfPlaySrces=function(b,c){var d="";q&&(b=a(b),c=c||j.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&-1!=j.swfMimeTypes.indexOf(b.container))return d=b,!1}));return d};var n={};j.canNativePlaySrces=function(b,
|
40
|
+
c){var d="";if(h){var b=a(b),e=(b[0].nodeName||"").toLowerCase();if(!n[e])return d;c=c||j.srces(b);a.each(c,function(a,c){if(c.type&&n[e].prop._supvalue.call(b[0],c.type))return d=c,!1})}return d};j.setError=function(f,c){c||(c="can't play sources");a(f).pause().data("mediaerror",c);b.warn("mediaelementError: "+c);setTimeout(function(){a(f).data("mediaerror")&&a(f).trigger("mediaerror")},1)};var t=function(){var a;return function(c,e,g){b.ready("mediaelement-swf",function(){j.createSWF?j.createSWF(c,
|
41
|
+
e,g):a||(a=!0,r(),t(c,e,g))})}}(),m=function(a,b,d,e,g){d||!1!==d&&b&&"flash"==b.isActive?(d=j.canSwfPlaySrces(a,e))?t(a,d,b):g?j.setError(a,!1):m(a,b,!1,e,!0):(d=j.canNativePlaySrces(a,e))?b&&"flash"==b.isActive&&j.setActive(a,"html5",b):g?(j.setError(a,!1),b&&"flash"==b.isActive&&j.setActive(a,"html5",b)):m(a,b,!0,e,!0)},s=/^(?:embed|object|datalist)$/i,w=function(f,c){var e=b.data(f,"mediaelementBase")||b.data(f,"mediaelementBase",{}),i=j.srces(f),h=f.parentNode;clearTimeout(e.loadTimer);a.data(f,
|
42
|
+
"mediaerror",!1);if(i.length&&h&&!(1!=h.nodeType||s.test(h.nodeName||"")))c=c||b.data(f,"mediaelement"),m(f,c,p.preferFlash||o,i)};a(e).bind("ended",function(f){var c=b.data(f.target,"mediaelement");(!i||c&&"html5"!=c.isActive||a.prop(f.target,"loop"))&&setTimeout(function(){!a.prop(f.target,"paused")&&a.prop(f.target,"loop")&&a(f.target).prop("currentTime",0).play()},1)});i||b.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(f){var c=b.defineNodeNameProperty(f,
|
43
|
+
"load",{prop:{value:function(){var a=b.data(this,"mediaelement");w(this,a);h&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});n[f]=b.defineNodeNameProperty(f,"canPlayType",{prop:{value:function(b){var c="";h&&n[f].prop._supvalue&&(c=n[f].prop._supvalue.call(this,b),"no"==c&&(c=""));!c&&q&&(b=a.trim((b||"").split(";")[0]),-1!=j.swfMimeTypes.indexOf(b)&&(c="maybe"));return c}}})});b.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=
|
44
|
+
this,c=b.data(a,"mediaelementBase")||b.data(a,"mediaelementBase",{});clearTimeout(c.loadTimer);c.loadTimer=setTimeout(function(){w(a);a=null},9)}});k=function(){b.addReady(function(e,c){a("video, audio",e).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<b.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():w(this);if(h){var c,e,f=this,j=function(){var b=a.prop(f,
|
45
|
+
"buffered");if(b){for(var c="",d=0,e=b.length;d<e;d++)c+=b.end(d);return c}},i=function(){var b=j();b!=e&&(e=b,a(f).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(e=j());clearTimeout(c);c=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(e=!1);clearTimeout(c)})}})})};h?(b.isReady("mediaelement-core",!0),k(),q&&b.ready("WINDOWLOAD mediaelement",r)):b.ready("mediaelement-swf",k)})})(jQuery,Modernizr,
|
46
|
+
jQuery.webshims);
|
47
|
+
jQuery.webshims.register("mediaelement-swf",function(a,b,k,h,i,g){var d=b.mediaelement,u=k.swfobject,e=Modernizr.audio&&Modernizr.video,o=u.hasFlashPlayerVersion("9.0.115"),j=0,k={paused:!0,ended:!1,currentSrc:"",duration:k.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)b.error("buffered index size error");else return 0},end:function(a){if(a)b.error("buffered index size error");else return 0},length:0}},p=Object.keys(k),v={currentTime:0,volume:1,
|
48
|
+
muted:!1};Object.keys(v);var q=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:i},k,v),r=/^jwplayer-/,n=function(a){if(a=h.getElementById(a.replace(r,"")))return a=b.data(a,"mediaelement"),"flash"==a.isActive?a:null},t=function(a){return(a=b.data(a,"mediaelement"))&&"flash"==a.isActive?a:null},m=function(b,c){c=a.Event(c);c.preventDefault();a.event.trigger(c,i,b)},s=g.playerPath||b.cfg.basePath+
|
49
|
+
"jwplayer/"+(g.playerName||"player.swf"),w=g.pluginPath||b.cfg.basePath+"swf/jwwebshims.swf";b.extendUNDEFProp(g.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});b.extendUNDEFProp(g.jwVars,{screencolor:"ffffffff"});b.extendUNDEFProp(g.jwAttrs,{bgcolor:"#000000"});var f=function(b,c){var e=b.duration;if(!(e&&0<b._durationCalcs)){try{if(b.duration=b.jwapi.getPlaylist()[0].duration,!b.duration||0>=b.duration||b.duration===b._lastDuration)b.duration=e}catch(f){}b.duration&&
|
50
|
+
b.duration!=b._lastDuration?(m(b._elem,"durationchange"),("audio"==b._elemNodeName||b._callMeta)&&d.jwEvents.Model.META(a.extend({duration:b.duration},c),b),b._durationCalcs--):b._durationCalcs++}},c=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,m(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){c(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,m(b._elem,"canplaythrough");b.readyState=a};d.jwEvents=
|
51
|
+
{View:{PLAY:function(a){var b=n(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;m(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(b){var d=n(b.id);if(d&&"percentage"in b&&d._bufferedEnd!=b.percentage){d.networkState=100==b.percentage?1:2;(isNaN(d.duration)||5<b.percentage&&25>b.percentage||100===b.percentage)&&f(d,b);if(d.ended)d.ended=!1;if(d.duration){2<b.percentage&&20>b.percentage?c(3,d):20<b.percentage&&c(4,d);if(d._bufferedEnd&&
|
52
|
+
d._bufferedEnd>b.percentage)d._bufferedStart=d.currentTime||0;d._bufferedEnd=b.percentage;d.buffered.length=1;if(100==b.percentage)d.networkState=1,c(4,d);a.event.trigger("progress",i,d._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:n(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var d=b.duration;if(a.duration)b.duration=a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=
|
53
|
+
a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&c(1,b);b.duration&&d!==b.duration&&m(b._elem,"durationchange");m(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=n(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&f(b,a);2>b.readyState&&c(2,b);if(b.ended)b.ended=!1;m(b._elem,"timeupdate")}},STATE:function(a){var b=n(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;c(1,b);m(b._elem,"waiting");
|
54
|
+
break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||f(b,a);3>b.readyState&&c(3,b);if(b.ended)b.ended=!1;m(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,m(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&c(4,b),b.ended=!0,m(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=n(a.id);b&&d.setError(b._elem,a.message)},SEEK:function(a){var b=n(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(c){}if(b.currentTime!=
|
55
|
+
a.position)b.currentTime=a.position,m(b._elem,"timeupdate")}},VOLUME:function(a){var b=n(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,m(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=n(a.id);if(b&&b.muted!=a.state)b.muted=a.state,m(b._elem,"volumechange")}}}};var l=function(b){var c=!0;a.each(d.jwEvents,function(d,e){a.each(e,function(a){try{b.jwapi["add"+d+"Listener"](a,"jQuery.webshims.mediaelement.jwEvents."+d+"."+a)}catch(e){return c=!1}})});return c},C=function(a){var b=
|
56
|
+
a.actionQueue.length,c=0,d;if(b&&"flash"==a.isActive)for(;a.actionQueue.length&&b>c;)c++,d=a.actionQueue.shift(),a.jwapi[d.fn].apply(a.jwapi,d.args);if(a.actionQueue.length)a.actionQueue=[]},F=function(b){b&&(b._ppFlag===i&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag===i||!b.paused))try{a(b._elem).play()}catch(c){}},1)},H=function(b){if(b&&"video"==b._elemNodeName){var c,d,e,f,g,j,i,l,h=function(h,k){if(k&&h&&!(1>k||1>h||"flash"!=b.isActive))if(c&&
|
57
|
+
(c.remove(),c=!1),f=h,g=k,clearTimeout(i),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){j=j||a(b._elem).getShadowElement();var m;d&&!e?(m=j.height(),h*=m/k,k=m):!d&&e&&(m=j.width(),k*=m/h,h=m);l=!0;setTimeout(function(){l=!1},9);j.css({width:h,height:k})}},k=function(){if(!("flash"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,"poster");if(f&&(d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e))c&&(c.remove(),c=!1),
|
58
|
+
c=a('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),c.bind("load error alreadycomplete",function(){clearTimeout(i);var b=this,d=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||b.offsetHeight;e&&d?(h(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;h(d,e);c&&(c.remove(),c=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||
|
59
|
+
this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(i),i=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){h(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",k).bind("swfstageresize updatemediaelementdimensions",function(){l||h(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");k();a.prop(b._elem,"readyState")&&h(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};
|
60
|
+
d.playerResize=function(b){b&&(b=h.getElementById(b.replace(r,"")))&&a(b).triggerHandler("swfstageresize")};a(h).bind("emptied",function(a){a=t(a.target);F(a)});var D;d.jwPlayerReady=function(c){var d=n(c.id),e=0,f=function(){if(!(9<e))if(e++,l(d)){if(d.wasSwfReady)a(d._elem).mediaLoad();else{var g=parseFloat(c.version,10);(5.6>g||6<=g)&&b.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady=!0;d.tryedReframeing=0;C(d);F(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(f,
|
61
|
+
9*e),2<e&&9>d.tryedReframeing&&(d.tryedReframeing++,d.shadowElem.css({overflow:"visible"}),setTimeout(function(){d.shadowElem.css({overflow:"hidden"})},16))};if(d&&d.jwapi){if(!d.tryedReframeing)d.tryedReframeing=0;clearTimeout(D);d.jwData=c;d.shadowElem.removeClass("flashblocker-assumed");a.prop(d._elem,"volume",d.volume);a.prop(d._elem,"muted",d.muted);f()}};var z=a.noop;if(e){var A={play:1,playing:1},x="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),
|
62
|
+
G=x.map(function(a){return a+".webshimspolyfill"}).join(" "),I=function(c){var d=b.data(c.target,"mediaelement");d&&(c.originalEvent&&c.originalEvent.type===c.type)==("flash"==d.activating)&&(c.stopImmediatePropagation(),A[c.type]&&d.isActive!=d.activating&&a(c.target).pause())},z=function(c){a(c).unbind(G).bind(G,I);x.forEach(function(a){b.moveToFirstEvent(c,a)})};z(h)}d.setActive=function(c,d,e){e||(e=b.data(c,"mediaelement"));if(e&&e.isActive!=d){"html5"!=d&&"flash"!=d&&b.warn("wrong type for mediaelement activating: "+
|
63
|
+
d);var f=b.data(c,"shadowData");e.activating=d;a(c).pause();e.isActive=d;"flash"==d?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],a(c).hide().getShadowElement().show()):(a(c).show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1)}};var J=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(d){if(d){var e=b,f=d.networkState;
|
64
|
+
for(c(0,d);--e;)delete d[a[e]];d.actionQueue=[];d.buffered.length=0;f&&m(d._elem,"emptied")}}}(),E=function(b,c){var d=b._elem,e=b.shadowElem;a(d)[c?"addClass":"removeClass"]("webshims-controls");"audio"==b._elemNodeName&&!c?e.css({width:0,height:0}):e.css({width:d.style.width||a(d).width(),height:d.style.height||a(d).height()})};d.createSWF=function(c,f,h){if(o){1>j?j=1:j++;var i=a.extend({},g.jwVars,{image:a.prop(c,"poster")||"",file:f.srcProp}),l=a(c).data("jwvars")||{};h||(h=b.data(c,"mediaelement"));
|
65
|
+
if(h&&h.swfCreated)d.setActive(c,"flash",h),J(h),h.currentSrc=f.srcProp,a.extend(i,l),g.changeJW(i,c,f,h,"load"),B(c,"sendEvent",["LOAD",i]);else{var k=a.prop(c,"controls"),m="jwplayer-"+b.getID(c),n=a.extend({},g.jwParams,a(c).data("jwparams")),p=c.nodeName.toLowerCase(),t=a.extend({},g.jwAttrs,{name:m,id:m},a(c).data("jwattrs")),r=a('<div class="polyfill-'+p+' polyfill-mediaelement" id="wrapper-'+m+'"><div id="'+m+'"></div>').css({position:"relative",overflow:"hidden"}),h=b.data(c,"mediaelement",
|
66
|
+
b.objectCreate(q,{actionQueue:{value:[]},shadowElem:{value:r},_elemNodeName:{value:p},_elem:{value:c},currentSrc:{value:f.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=h.buffered.length)b.error("buffered index size error");else return 0},end:function(a){if(a>=h.buffered.length)b.error("buffered index size error");else return(h.duration-h._bufferedStart)*h._bufferedEnd/100+h._bufferedStart},length:0}}}));E(h,k);r.insertBefore(c);e&&a.extend(h,{volume:a.prop(c,"volume"),muted:a.prop(c,
|
67
|
+
"muted")});a.extend(i,{id:m,controlbar:k?g.jwVars.controlbar||("video"==p?"over":"bottom"):"video"==p?"none":"bottom",icons:""+(k&&"video"==p)},l,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});i.plugins=i.plugins?i.plugins+(","+w):w;b.addShadowDom(c,r);z(c);d.setActive(c,"flash",h);g.changeJW(i,c,f,h,"embed");a(c).bind("updatemediaelementdimensions",function(){E(h,a.prop(c,"controls"))});H(h);u.embedSWF(s,m,"100%","100%","9.0.0",!1,i,n,t,function(d){if(d.success)h.jwapi=d.ref,k||a(d.ref).attr("tabindex",
|
68
|
+
"-1").css("outline","none"),setTimeout(function(){if(!d.ref.parentNode&&r[0].parentNode||"none"==d.ref.style.display)r.addClass("flashblocker-assumed"),a(c).trigger("flashblocker"),b.warn("flashblocker assumed");a(d.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),D||(clearTimeout(D),D=setTimeout(function(){var c=a(d.ref);1<c[0].offsetWidth&&1<c[0].offsetHeight&&0===location.protocol.indexOf("file:")?b.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):
|
69
|
+
(2>c[0].offsetWidth||2>c[0].offsetHeight)&&b.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(c).mediaLoad()},1)};var B=function(a,b,c,d){return(d=d||t(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10<d.actionQueue.length&&setTimeout(function(){5<d.actionQueue.length&&d.actionQueue.shift()},99)),d):!1};["audio","video"].forEach(function(c){var d={},f,g=function(a){"audio"==c&&
|
70
|
+
("videoHeight"==a||"videoWidth"==a)||(d[a]={get:function(){var b=t(this);return b?b[a]:e&&f[a].prop._supget?f[a].prop._supget.apply(this):q[a]},writeable:!1})},h=function(a,b){g(a);delete d[a].writeable;d[a].set=b};h("volume",function(a){var c=t(this);if(c){if(a*=100,!isNaN(a)){var d=c.muted;(0>a||100<a)&&b.error("volume greater or less than allowed "+a/100);B(this,"sendEvent",["VOLUME",a],c);if(d)try{c.jwapi.sendEvent("mute","true")}catch(e){}a/=100;if(!(c.volume==a||"flash"!=c.isActive))c.volume=
|
71
|
+
a,m(c._elem,"volumechange")}}else if(f.volume.prop._supset)return f.volume.prop._supset.apply(this,arguments)});h("muted",function(a){var b=t(this);if(b){if(a=!!a,B(this,"sendEvent",["mute",""+a],b),!(b.muted==a||"flash"!=b.isActive))b.muted=a,m(b._elem,"volumechange")}else if(f.muted.prop._supset)return f.muted.prop._supset.apply(this,arguments)});h("currentTime",function(a){var b=t(this);if(b){if(a*=1,!isNaN(a)){if(b.paused)clearTimeout(b.stopPlayPause),b.stopPlayPause=setTimeout(function(){b.paused=
|
72
|
+
!0;b.stopPlayPause=!1},50);B(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,m(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(f.currentTime.prop._supset)return f.currentTime.prop._supset.apply(this,arguments)});["play","pause"].forEach(function(a){d[a]={value:function(){var b=t(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),B(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("flash"==b.isActive&&(b._ppFlag=
|
73
|
+
!0,b.paused!=("play"!=a)))b.paused="play"!=a,m(b._elem,a)},1);else if(f[a].prop._supvalue)return f[a].prop._supvalue.apply(this,arguments)}}});p.forEach(g);b.onNodeNamesPropertyModify(c,"controls",function(d,e){var f=t(this);a(this)[e?"addClass":"removeClass"]("webshims-controls");if(f){try{B(this,e?"showControls":"hideControls",[c],f)}catch(g){b.warn("you need to generate a crossdomain.xml")}"audio"==c&&E(f,e);a(f.jwapi).attr("tabindex",e?"0":"-1")}});f=b.defineNodeNameProperties(c,d,"prop")});if(o){var K=
|
74
|
+
a.cleanData,L=a.browser.msie&&9>b.browserVersion,M={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&j)for(b=0;b<c;b++)if(M[a[b].nodeName]){if("sendEvent"in a[b]){j--;try{a[b].sendEvent("play",!1)}catch(e){}}if(L)try{for(d in a[b])"function"==typeof a[b][d]&&(a[b][d]=null)}catch(f){}}return K.apply(this,arguments)}}if(!e){var y=h.createElement("a");y.style.display="none";["poster","src"].forEach(function(c){b.defineNodeNamesProperty("src"==c?["audio","video","source"]:["video"],
|
75
|
+
c,{prop:{get:function(){var b=this.getAttribute(c),d;if(null==b)return"";y.setAttribute("href",b+"");if(!a.support.hrefNormalized){try{a(y).appendTo(this),d=y.getAttribute("href",4)}catch(e){d=y.getAttribute("href",4)}a(y).detach()}return d||y.href},set:function(b){a.attr(this,c,b)}}})});["autoplay","controls"].forEach(function(a){b.defineNodeNamesBooleanProperty(["audio","video"],a)});b.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},
|
76
|
+
HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop")}});
|
@@ -1,41 +1,42 @@
|
|
1
|
-
(function(a){if(!Modernizr.genericDOM){var g=document,q,
|
2
|
-
jQuery.webshims.register("dom-extend",function(a,g,q,
|
3
|
-
!0)),null==b&&(b=""),a.prop(
|
4
|
-
"shadowData");return a&&a[i.prop]||this})}});["removeAttr","prop","attr"].forEach(function(i){
|
5
|
-
("attr"==i&&!0===c&&(c=
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
b
|
10
|
-
|
11
|
-
b;
|
12
|
-
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(b,
|
13
|
-
|
14
|
-
c,
|
15
|
-
t[a][b].push(
|
16
|
-
|
17
|
-
j=function(a,b){if(a.activeLang!=
|
18
|
-
e.callback();else{if(!e.activeLang)e.activeLang="";b.push(e);j(e)}return
|
19
|
-
(function(a,g){var
|
20
|
-
|
21
|
-
jQuery.webshims.register("form-datalist",function(a,g,q,
|
22
|
-
if(
|
23
|
-
this.timedHide=function(){clearTimeout(
|
24
|
-
function(c){var
|
25
|
-
c.keyCode,g;if(40==e
|
26
|
-
!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&
|
27
|
-
"value"),
|
28
|
-
this.id
|
29
|
-
|
30
|
-
""),className:g.className||"",style:a.attr(g,"style")||""};g.text?g.text!=g.value&&(g.className+=" different-label-value"):g.text=g.value;
|
31
|
-
l.text+'</span> <span class="option-value">'+l.value+"</span></li>";this.arrayOptions=
|
32
|
-
c;var
|
33
|
-
|
34
|
-
a(
|
35
|
-
|
36
|
-
b
|
37
|
-
b).
|
38
|
-
(
|
39
|
-
|
40
|
-
|
41
|
-
|
1
|
+
(function(a){if(!Modernizr.genericDOM){var g=document,n,q,p=/<([\w:]+)/,k={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||k[(p.exec(a)||["",""])[1].toLowerCase()])return a;if(!q){n=g.body;if(!n)return a;q=g.createElement("div");q.style.display="none"}var o=q.cloneNode(!1);n.appendChild(o);o.innerHTML=a;n.removeChild(o);return o.childNodes}}})(jQuery);
|
2
|
+
jQuery.webshims.register("dom-extend",function(a,g,n,q,p){var k=g.modules,r=/\s*,\s*/,o={},w={},s={},v={},t={},u=a.fn.val,b=function(i,h,f,b,c){return c?u.call(a(i)):u.call(a(i),f)};a.fn.val=function(i){var h=this[0];arguments.length&&null==i&&(i="");if(!arguments.length)return!h||1!==h.nodeType?u.call(this):a.prop(h,"value",i,"val",!0);if(a.isArray(i))return u.apply(this,arguments);var f=a.isFunction(i);return this.each(function(b){h=this;1===h.nodeType&&(f?(b=i.call(h,b,a.prop(h,"value",p,"val",
|
3
|
+
!0)),null==b&&(b=""),a.prop(h,"value",b,"val")):a.prop(h,"value",i,"val"))})};var c="_webshimsLib"+Math.round(1E3*Math.random()),d=function(i,h,f){i=i.jquery?i[0]:i;if(!i)return f||{};var b=a.data(i,c);f!==p&&(b||(b=a.data(i,c,{})),h&&(b[h]=f));return h?b&&b[h]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(i){a.fn[i.name]=function(){return this.map(function(){var a=d(this,
|
4
|
+
"shadowData");return a&&a[i.prop]||this})}});["removeAttr","prop","attr"].forEach(function(i){o[i]=a[i];a[i]=function(h,f,c,x,d){var e="val"==x,l=!e?o[i]:b;if(!h||!w[f]||1!==h.nodeType||!e&&x&&"attr"==i&&a.attrFn[f])return l(h,f,c,x,d);var y=(h.nodeName||"").toLowerCase(),m=s[y],g="attr"==i&&(!1===c||null===c)?"removeAttr":i,j,k,r;m||(m=s["*"]);m&&(m=m[f]);m&&(j=m[g]);if(j){if("value"==f)k=j.isVal,j.isVal=e;if("removeAttr"===g)return j.value.call(h);if(c===p)return j.get?j.get.call(h):j.value;j.set&&
|
5
|
+
("attr"==i&&!0===c&&(c=f),r=j.set.call(h,c));if("value"==f)j.isVal=k}else r=l(h,f,c,x,d);if((c!==p||"removeAttr"===g)&&t[y]&&t[y][f]){var n;n="removeAttr"==g?!1:"prop"==g?!!c:!0;t[y][f].forEach(function(a){if(!a.only||(a.only="prop"==i)||"attr"==a.only&&"prop"!=i)a.call(h,c,n,e?"val":g,i)})}return r};v[i]=function(h,f,c){s[h]||(s[h]={});s[h][f]||(s[h][f]={});var d=s[h][f][i],e=function(a,h,d){return h&&h[a]?h[a]:d&&d[a]?d[a]:"prop"==i&&"value"==f?function(a){return c.isVal?b(this,f,a,!1,0===arguments.length):
|
6
|
+
o[i](this,f,a)}:"prop"==i&&"value"==a&&c.value.apply?function(a){var h=o[i](this,f);h&&h.apply&&(h=h.apply(this,arguments));return h}:function(a){return o[i](this,f,a)}};s[h][f][i]=c;if(c.value===p){if(!c.set)c.set=c.writeable?e("set",c,d):g.cfg.useStrict&&"prop"==f?function(){throw f+" is readonly on "+h;}:a.noop;if(!c.get)c.get=e("get",c,d)}["value","get","set"].forEach(function(a){c[a]&&(c["_sup"+a]=e(a,d))})}});var e=!a.browser.msie||8<parseInt(a.browser.version,10),m=function(){var a=g.getPrototypeOf(q.createElement("foobar")),
|
7
|
+
h=Object.prototype.hasOwnProperty;return function(f,b,c){var m=q.createElement(f),j=g.getPrototypeOf(m);if(e&&j&&a!==j&&(!m[b]||!h.call(m,b))){var k=m[b];c._supvalue=function(){return k&&k.apply?k.apply(this,arguments):k};j[b]=c.value}else c._supvalue=function(){var a=d(this,"propValue");return a&&a[b]&&a[b].apply?a[b].apply(this,arguments):a&&a[b]},l.extendValue(f,b,c.value);c.value._supvalue=c._supvalue}}(),l=function(){var b={};g.addReady(function(h,f){var c={},d=function(b){c[b]||(c[b]=a(h.getElementsByTagName(b)),
|
8
|
+
f[0]&&a.nodeName(f[0],b)&&(c[b]=c[b].add(f)))};a.each(b,function(a,b){d(a);!b||!b.forEach?g.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){c[a].each(b)})});c=null});var h,f=a([]),c=function(c,f){b[c]?b[c].push(f):b[c]=[f];a.isDOMReady&&(h||a(q.getElementsByTagName(c))).each(f)};return{createTmpCache:function(b){a.isDOMReady&&(h=h||a(q.getElementsByTagName(b)));return h||f},flushTmpCache:function(){h=null},content:function(b,h){c(b,function(){var b=a.attr(this,h);null!=b&&a.attr(this,
|
9
|
+
h,b)})},createElement:function(a,b){c(a,b)},extendValue:function(b,h,f){c(b,function(){a(this).each(function(){d(this,"propValue",{})[h]=this[h];this[h]=f})})}}}(),j=function(a,b){if(a.defaultValue===p)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(g,{getID:function(){var b=(new Date).getTime();return function(h){var h=a(h),c=h.attr("id");c||(b++,c="ID-"+b,h.attr("id",c));return c}}(),extendUNDEFProp:function(b,
|
10
|
+
h){a.each(h,function(a,h){a in b||(b[a]=h)})},createPropDefault:j,data:d,moveToFirstEvent:function(){var b=a._data?"_data":"data";return function(h,c,d){if((h=(a[b](h,"events")||{})[c])&&1<h.length)c=h.pop(),d||(d="bind"),"bind"==d&&h.delegateCount?h.splice(h.delegateCount,0,c):h.unshift(c)}}(),addShadowDom:function(b,h,f){f=f||{};b.jquery&&(b=b[0]);h.jquery&&(h=h[0]);if(!f.shadowFocusElement)f.shadowFocusElement=h;var e=a.data(b,c)||a.data(b,c,{}),m=a.data(h,c)||a.data(h,c,{});e.hasShadow=h;m.nativeElement=
|
11
|
+
b;m.shadowData=e.shadowData={nativeElement:b,shadowElement:h,shadowFocusElement:f.shadowFocusElement};f.shadowChilds&&f.shadowChilds.each(function(){d(this,"shadowData",m.shadowData)});if(f.data)e.shadowData.data=f.data,m.shadowData.data=f.data;f=null},propTypes:{standard:function(a){j(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){j(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,
|
12
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(b,c){"string"==typeof c&&(c=c.split(r));c.forEach(function(c){g.defineNodeNamesProperty(b,c,{prop:{set:function(b){a.attr(this,c,b)},get:function(){return a.attr(this,c)||""}}})})},defineNodeNameProperty:function(b,c,f){w[c]=!0;if(f.reflect)g.propTypes[f.propType||"standard"](f);["prop","attr","removeAttr"].forEach(function(d){var e=f[d];e&&(e="prop"===d?a.extend({writeable:!0},e):a.extend({},
|
13
|
+
e,{writeable:!0}),v[d](b,c,e),"*"!=b&&g.cfg.extendNative&&"prop"==d&&e.value&&a.isFunction(e.value)&&m(b,c,e),f[d]=e)});f.initAttr&&l.content(b,c);return f},defineNodeNameProperties:function(a,b,c,d){for(var e in b)!d&&b[e].initAttr&&l.createTmpCache(a),c&&(b[e][c]?g.log("override: "+a+"["+e+"] for "+c):(b[e][c]={},["value","set","get"].forEach(function(a){a in b[e]&&(b[e][c][a]=b[e][a],delete b[e][a])}))),b[e]=g.defineNodeNameProperty(a,e,b[e]);d||l.flushTmpCache();return b},createElement:function(b,
|
14
|
+
c,f){var d;a.isFunction(c)&&(c={after:c});l.createTmpCache(b);c.before&&l.createElement(b,c.before);f&&(d=g.defineNodeNameProperties(b,f,!1,!0));c.after&&l.createElement(b,c.after);l.flushTmpCache();return d},onNodeNamesPropertyModify:function(b,c,f,d){"string"==typeof b&&(b=b.split(r));a.isFunction(f)&&(f={set:f});b.forEach(function(a){t[a]||(t[a]={});"string"==typeof c&&(c=c.split(r));f.initAttr&&l.createTmpCache(a);c.forEach(function(b){t[a][b]||(t[a][b]=[],w[b]=!0);if(f.set){if(d)f.set.only=d;
|
15
|
+
t[a][b].push(f.set)}f.initAttr&&l.content(a,b)});l.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,c,f){f||(f={});if(a.isFunction(f))f.set=f;g.defineNodeNamesProperty(b,c,{attr:{set:function(a){this.setAttribute(c,a);f.set&&f.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?p:c}},removeAttr:{value:function(){this.removeAttribute(c);f.set&&f.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:f.initAttr||!1})},contentAttr:function(a,b,c){if(a.nodeName){if(c===
|
16
|
+
p)return c=(a.attributes[b]||{}).value,null==c?p:c;"boolean"==typeof c?c?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var b=[],c={},f,d,e=/:\/\/|^\.*\//,m=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,e.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,j(b,!0)):a(function(){b.langObj[c]&&j(b,!0);b.loading=!1})}),!0):!1},l=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},
|
17
|
+
j=function(a,b){if(a.activeLang!=f&&a.activeLang!==d){var c=k[a.module].options;if(a.langObj[f]||d&&a.langObj[d])a.activeLang=f,a.callback(a.langObj[f]||a.langObj[d],f),l(a.module);else if(!b&&!m(a,f,c)&&!m(a,d,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],f),l(a.module)}};return function(e){if("string"==typeof e&&e!==f)f=e,d=f.split("-")[0],f==d&&(d=!1),a.each(b,function(a,b){j(b)});else if("object"==typeof e)if(e.register)c[e.register]||(c[e.register]=[]),c[e.register].push(e),
|
18
|
+
e.callback();else{if(!e.activeLang)e.activeLang="";b.push(e);j(e)}return f}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,c,d,e){"string"==typeof a&&(a=a.split(r));var m={};a.forEach(function(a){m[a]=g[b](a,c,d,e)});return m}});g.isReady("webshimLocalization",!0)});
|
19
|
+
(function(a,g){var n=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<n)&&(!a.browser.msie||12>n&&7<n)){var q={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(a,g){a.getAttribute("role")||a.setAttribute("role",g)};a.webshims.addReady(function(k,r){a.each(q,function(g,n){for(var o=a(g,k).add(r.filter(g)),b=0,c=o.length;b<c;b++)p(o[b],n)});if(k===g){var o=g.getElementsByTagName("header")[0],n=g.getElementsByTagName("footer"),s=n.length;
|
20
|
+
o&&!a(o).closest("section, article")[0]&&p(o,"banner");s&&(o=n[s-1],a(o).closest("section, article")[0]||p(o,"contentinfo"))}})}})(jQuery,document);
|
21
|
+
jQuery.webshims.register("form-datalist",function(a,g,n,q,p){g.propTypes.element=function(k){g.createPropDefault(k,"attr");if(!k.prop)k.prop={get:function(){var g=k.attr.get.call(this);g&&(g=a("#"+g)[0])&&k.propNodeName&&!a.nodeName(g,k.propNodeName)&&(g=null);return g||null},writeable:!1}};(function(){var k=a.webshims.cfg.forms,r=Modernizr.input.list;if(!r||k.customDatalist){var o=0,w={submit:1,button:1,reset:1,hidden:1,range:1,date:1},s=a.browser.msie&&7>parseInt(a.browser.version,10),v={},t=function(a){if(!a)return[];
|
22
|
+
if(v[a])return v[a];var c;try{c=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(d){}v[a]=c||[];return c||[]},u={_create:function(b){if(!w[a.prop(b.input,"type")]){var c=b.datalist,d=a.data(b.input,"datalistWidget");if(c&&d&&d.datalist!==c)d.datalist=c,d.id=b.id,d.shadowList.prop("className","datalist-polyfill "+(d.datalist.className||"")+" "+d.datalist.id+"-shadowdom"),k.positionDatalist?d.shadowList.insertAfter(b.input):d.shadowList.appendTo("body"),a(d.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
|
23
|
+
a.proxy(d,"_resetListCached")),d._resetListCached();else if(c){if(!(d&&d.datalist===c)){o++;var e=this;this.hideList=a.proxy(e,"hideList");this.timedHide=function(){clearTimeout(e.hideTimer);e.hideTimer=setTimeout(e.hideList,9)};this.datalist=c;this.id=b.id;this.hasViewableData=!0;this._autocomplete=a.attr(b.input,"autocomplete");a.data(b.input,"datalistWidget",this);this.shadowList=a('<div class="datalist-polyfill '+(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom" />');k.positionDatalist?
|
24
|
+
this.shadowList.insertAfter(b.input):this.shadowList.appendTo("body");this.index=-1;this.input=b.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(c){var d=a("li:not(.hidden-item)",e.shadowList),g="mousedown"==c.type||"click"==c.type;e.markItem(d.index(c.currentTarget),g,d);"click"==c.type&&(e.hideList(),a(b.input).trigger("datalistselect"));return"mousedown"!=c.type}).bind("focusout",this.timedHide);b.input.setAttribute("autocomplete",
|
25
|
+
"off");a(b.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!e.triggeredByDatalist)e.changedValue=!1,e.showHideOptions()}).bind("keydown.datalistWidget",function(c){var d=c.keyCode,g;if(40==d&&!e.showList())return e.markItem(e.index+1,!0),!1;if(e.isListVisible){if(38==d)return e.markItem(e.index-1,!0),!1;if(!c.shiftKey&&(33==d||36==d))return e.markItem(0,!0),!1;if(!c.shiftKey&&(34==d||35==d))return c=a("li:not(.hidden-item)",e.shadowList),e.markItem(c.length-1,!0,c),
|
26
|
+
!1;if(13==d||27==d)return 13==d&&(g=a("li.active-item:not(.hidden-item)",e.shadowList),e.changeValue(a("li.active-item:not(.hidden-item)",e.shadowList))),e.hideList(),g&&g[0]&&a(b.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&e.showList()}).bind("mousedown.datalistWidget",function(){a(this).is(":focus")&&e.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
|
27
|
+
a.proxy(this,"_resetListCached"));this._resetListCached();b.input.form&&(b.input.name||b.input.id)&&a(b.input.form).bind("submit.datalistWidget"+b.input.id,function(){if(!a(b.input).hasClass("no-datalist-cache")){var c=a.prop(b.input,"value"),d=(b.input.name||b.input.id)+a.prop(b.input,"type");if(!e.storedOptions)e.storedOptions=t(d);if(c&&-1==e.storedOptions.indexOf(c)&&(e.storedOptions.push(c),c=e.storedOptions,d)){c=c||[];try{localStorage.setItem("storedDatalistOptions"+d,JSON.stringify(c))}catch(g){}}}});
|
28
|
+
a(n).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){e.destroy()})}}else d&&d.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(q).unbind(".datalist"+this.id);a(n).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===p?this.input.removeAttribute("autocomplete"):
|
29
|
+
a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var c=this,d;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(n.QUnit||(d=a&&q.activeElement==c.input)?c.updateListOptions(d):g.ready("WINDOWLOAD",function(){c.updateTimer=setTimeout(function(){c.updateListOptions();c=null;o=1},200+100*o)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.css(this.input,"fontSize"),
|
30
|
+
fontFamily:a.css(this.input,"fontFamily")});this.searchStart=a(this.input).hasClass("search-start");var c=[],d=[],e=[],g,l,j,i;for(l=a.prop(this.datalist,"options"),j=0,i=l.length;j<i;j++){g=l[j];if(g.disabled)return;g={value:a(g).val()||"",text:a.trim(a.attr(g,"label")||g.textContent||g.innerText||a.text([g])||""),className:g.className||"",style:a.attr(g,"style")||""};g.text?g.text!=g.value&&(g.className+=" different-label-value"):g.text=g.value;d[j]=g.value;e[j]=g}if(!this.storedOptions)this.storedOptions=
|
31
|
+
a(this.input).hasClass("no-datalist-cache")?[]:t((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==d.indexOf(a)&&e.push({value:a,text:a,className:"stored-suggest",style:""})});for(j=0,i=e.length;j<i;j++)l=e[j],c[j]='<li class="'+l.className+'" style="'+l.style+'" tabindex="-1" role="listitem"><span class="option-label">'+l.text+'</span> <span class="option-value">'+l.value+"</span></li>";this.arrayOptions=e;this.shadowList.html('<div class="datalist-outer-box"><div class="datalist-box"><ul role="list">'+
|
32
|
+
c.join("\n")+"</ul></div></div>");a.fn.bgIframe&&s&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var c=a.prop(this.input,"value").toLowerCase();if(!(c===this.lastUpdatedValue||this.lastUnfoundValue&&0===c.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=c;var d=!1,e=this.searchStart,g=a("li",this.shadowList);c?this.arrayOptions.forEach(function(b,j){var i;if(!("lowerText"in b))b.lowerText=b.text!=b.value?b.text.toLowerCase()+b.value.toLowerCase():
|
33
|
+
b.text.toLowerCase();i=b.lowerText.indexOf(c);(i=e?!i:-1!==i)?(a(g[j]).removeClass("hidden-item"),d=!0):a(g[j]).addClass("hidden-item")}):g.length&&(g.removeClass("hidden-item"),d=!0);this.hasViewableData=d;!b&&d&&this.showList();if(!d)this.lastUnfoundValue=c,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var b=k.positionDatalist?a(this.input).position():g.getRelOffset(this.shadowList,this.input);b.top+=a(this.input).outerHeight();
|
34
|
+
b.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css({marginTop:"",marginLeft:"",marginRight:"",marginBottom:""}).css(b);return b},showList:function(){if(this.isListVisible)return!1;this.needsUpdate&&this.updateListOptions();this.showHideOptions(!0);if(!this.hasViewableData)return!1;this.isListVisible=!0;var b=this,c;b.setPos();b.shadowList.addClass("datalist-visible").find("li.active-item").removeClass("active-item");
|
35
|
+
a(q).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(c){c.target===b.input||b.shadowList[0]===c.target||a.contains(b.shadowList[0],c.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()});a(n).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+" orientationchange.datalist "+b.id+" emchange.datalist"+b.id,function(){clearTimeout(c);c=setTimeout(function(){b.setPos()},9)});clearTimeout(c);return!0},hideList:function(){if(!this.isListVisible)return!1;
|
36
|
+
var b=this,c=function(){b.changedValue&&a(b.input).trigger("change");b.changedValue=!1};b.shadowList.removeClass("datalist-visible list-item-active");b.index=-1;b.isListVisible=!1;if(b.changedValue){b.triggeredByDatalist=!0;g.triggerInlineForm&&g.triggerInlineForm(b.input,"input");if(a(b.input).is(":focus"))a(b.input).one("blur",c);else c();b.triggeredByDatalist=!1}a(q).unbind(".datalist"+b.id);a(n).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+" orientationchange.datalist "+b.id+" emchange.datalist"+
|
37
|
+
b.id,function(){b.shadowList.css({top:0,left:0});a(n).unbind(".datalist"+b.id)});return!0},scrollIntoView:function(b){var c=a("ul",this.shadowList),d=a("div.datalist-box",this.shadowList),e=b.position();e.top-=(parseInt(c.css("paddingTop"),10)||0)+(parseInt(c.css("marginTop"),10)||0)+(parseInt(c.css("borderTopWidth"),10)||0);0>e.top?d.scrollTop(d.scrollTop()+e.top-2):(e.top+=b.outerHeight(),b=d.height(),e.top>b&&d.scrollTop(d.scrollTop()+(e.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",
|
38
|
+
b).text(),c=a.prop(this.input,"value");if(b!=c)a(this.input).prop("value",b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,c,d){d=d||a("li:not(.hidden-item)",this.shadowList);if(d.length)0>b?b=d.length-1:b>=d.length&&(b=0),d.removeClass("active-item"),this.shadowList.addClass("list-item-active"),d=d.filter(":eq("+b+")").addClass("active-item"),c&&(this.changeValue(d),this.scrollIntoView(d)),this.index=b}};(function(){r||g.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,
|
39
|
+
get:function(){var b=a("select",this);b[0]?b=b[0].options:(b=a("option",this).get(),b.length&&g.warn("you should wrap you option-elements for a datalist in a select element to support IE and other old browsers."));return b}}});var b={autocomplete:{attr:{get:function(){var b=a.data(this,"datalistWidget");return b?b._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(b){var d=a.data(this,"datalistWidget");d?(d._autocomplete=b,"off"==b&&d.hideList()):
|
40
|
+
"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",b)}}}};if(!r||!1 in a("<input />")[0])b.selectedOption={prop:{writeable:!1,get:function(){var b=a.prop(this,"list"),d=null,e;if(!b)return d;e=a.attr(this,"value");if(!e)return d;b=a.prop(b,"options");if(!b.length)return d;a.each(b,function(b,c){if(e==a.prop(c,"value"))return d=c,!1});return d}}};b.list=r?{attr:{get:function(){var b=g.contentAttr(this,"list");null!=b?this.removeAttribute("list"):b=a.data(this,"datalistListAttr");
|
41
|
+
return null==b?p:b},set:function(b){a.data(this,"datalistListAttr",b);g.objectCreate(u,p,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}:{attr:{get:function(){var a=g.contentAttr(this,"list");return null==a?p:a},set:function(b){g.contentAttr(this,"list",b);g.objectCreate(u,p,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};g.defineNodeNameProperties("input",b);if(a.event.customEvent)a.event.customEvent.updateDatalist=
|
42
|
+
!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;g.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
|
@@ -1,38 +1,38 @@
|
|
1
|
-
(function(c){if(!Modernizr.genericDOM){var g=document,j,i,l=/<([\w:]+)/,o={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};c.webshims.fixHTML5=function(c){if("string"!=typeof c||o[(l.exec(c)||["",""])[1].toLowerCase()])return c;if(!i){j=g.body;if(!j)return c;i=g.createElement("div");i.style.display="none"}var m=i.cloneNode(!1);j.appendChild(m);m.innerHTML=c;j.removeChild(m);return m.childNodes}}})(jQuery);
|
2
|
-
jQuery.webshims.register("dom-extend",function(c,g,j,i,l){var o=g.modules,h=/\s*,\s*/,m={},u={},n={},f={},s={},t=c.fn.val,w=function(a,b,d,e,k){return k?t.call(c(a)):t.call(c(a),d)};c.fn.val=function(a){var b=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!b||1!==b.nodeType?t.call(this):c.prop(b,"value",a,"val",!0);if(c.isArray(a))return t.apply(this,arguments);var d=c.isFunction(a);return this.each(function(e){b=this;1===b.nodeType&&(d?(e=a.call(b,e,c.prop(b,"value",l,"val",
|
3
|
-
!0)),null==e&&(e=""),c.prop(b,"value",e,"val")):c.prop(b,"value",a,"val"))})};var p="_webshimsLib"+Math.round(1E3*Math.random()),r=function(a,b,d){a=a.jquery?a[0]:a;if(!a)return d||{};var e=c.data(a,p);d!==l&&(e||(e=c.data(a,p,{})),b&&(e[b]=d));return b?e&&e[b]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){c.fn[a.name]=function(){return this.map(function(){var b=r(this,
|
4
|
-
"shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){m[a]=c[a];c[a]=function(b,d,e,k,A){var f="val"==k,o=!f?m[a]:w;if(!b||!u[d]||1!==b.nodeType||!f&&k&&"attr"==a&&c.attrFn[d])return o(b,d,e,k,A);var y=(b.nodeName||"").toLowerCase(),g=n[y],h="attr"==a&&(!1===e||null===e)?"removeAttr":a,i,t,p;g||(g=n["*"]);g&&(g=g[d]);g&&(i=g[h]);if(i){if("value"==d)t=i.isVal,i.isVal=f;if("removeAttr"===h)return i.value.call(b);if(e===l)return i.get?i.get.call(b):i.value;i.set&&
|
5
|
-
("attr"==a&&!0===e&&(e=d),p=i.set.call(b,e));if("value"==d)i.isVal=t}else p=o(b,d,e,k,A);if((e!==l||"removeAttr"===h)&&s[y]&&s[y][d]){var j;j="removeAttr"==h?!1:"prop"==h?!!e:!0;s[y][d].forEach(function(d){if(!d.only||(d.only="prop"==a)||"attr"==d.only&&"prop"!=a)d.call(b,e,j,f?"val":h,a)})}return p};f[a]=function(b,d,e){n[b]||(n[b]={});n[b][d]||(n[b][d]={});var k=n[b][d][a],f=function(b,c,k){return c&&c[b]?c[b]:k&&k[b]?k[b]:"prop"==a&&"value"==d?function(b){return e.isVal?w(this,d,b,!1,0===arguments.length):
|
6
|
-
m[a](this,d,b)}:"prop"==a&&"value"==b&&e.value.apply?function(b){var e=m[a](this,d);e&&e.apply&&(e=e.apply(this,arguments));return e}:function(b){return m[a](this,d,b)}};n[b][d][a]=e;if(e.value===l){if(!e.set)e.set=e.writeable?f("set",e,k):g.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:c.noop;if(!e.get)e.get=f("get",e,k)}["value","get","set"].forEach(function(b){e[b]&&(e["_sup"+b]=f(b,k))})}});var z=!c.browser.msie||8<parseInt(c.browser.version,10),x=function(){var a=g.getPrototypeOf(i.createElement("foobar")),
|
7
|
-
b=Object.prototype.hasOwnProperty;return function(d,e,c){var f=i.createElement(d),o=g.getPrototypeOf(f);if(z&&o&&a!==o&&(!f[e]||!b.call(f,e))){var h=f[e];c._supvalue=function(){return h&&h.apply?h.apply(this,arguments):h};o[e]=c.value}else c._supvalue=function(){var b=r(this,"propValue");return b&&b[e]&&b[e].apply?b[e].apply(this,arguments):b&&b[e]},q.extendValue(d,e,c.value);c.value._supvalue=c._supvalue}}(),q=function(){var a={};g.addReady(function(b,d){var e={},f=function(a){e[a]||(e[a]=c(b.getElementsByTagName(a)),
|
8
|
-
d[0]&&c.nodeName(d[0],a)&&(e[a]=e[a].add(d)))};c.each(a,function(b,a){f(b);!a||!a.forEach?g.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){e[b].each(a)})});e=null});var b,d=c([]),e=function(d,e){a[d]?a[d].push(e):a[d]=[e];c.isDOMReady&&(b||c(i.getElementsByTagName(d))).each(e)};return{createTmpCache:function(a){c.isDOMReady&&(b=b||c(i.getElementsByTagName(a)));return b||d},flushTmpCache:function(){b=null},content:function(b,a){e(b,function(){var b=c.attr(this,a);null!=b&&c.attr(this,
|
9
|
-
a,b)})},createElement:function(b,a){e(b,a)},extendValue:function(b,a,d){e(b,function(){c(this).each(function(){r(this,"propValue",{})[a]=this[a];this[a]=d})})}}}(),v=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)}}};c.extend(g,{getID:function(){var a=(new Date).getTime();return function(b){var b=c(b),d=b.attr("id");d||(a++,d="ID-"+a,b.attr("id",d));return d}}(),extendUNDEFProp:function(a,
|
10
|
-
b){c.each(b,function(b,e){b in a||(a[b]=e)})},createPropDefault:v,data:r,moveToFirstEvent:function(){var a=c._data?"_data":"data";return function(b,d,e){if((b=(c[a](b,"events")||{})[d])&&1<b.length)d=b.pop(),e||(e="bind"),"bind"==e&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);if(!d.shadowFocusElement)d.shadowFocusElement=b;var e=c.data(a,p)||c.data(a,p,{}),k=c.data(b,p)||c.data(b,p,{});e.hasShadow=b;k.nativeElement=
|
11
|
-
a;k.shadowData=e.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){r(this,"shadowData",k.shadowData)});if(d.data)e.shadowData.data=d.data,k.shadowData.data=d.data;d=null},propTypes:{standard:function(a){v(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){v(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,
|
12
|
-
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,b){"string"==typeof b&&(b=b.split(h));b.forEach(function(b){g.defineNodeNamesProperty(a,b,{prop:{set:function(a){c.attr(this,b,a)},get:function(){return c.attr(this,b)||""}}})})},defineNodeNameProperty:function(a,b,d){u[b]=!0;if(d.reflect)g.propTypes[d.propType||"standard"](d);["prop","attr","removeAttr"].forEach(function(e){var k=d[e];k&&(k="prop"===e?c.extend({writeable:!0},k):c.extend({},
|
13
|
-
k,{writeable:!0}),f[e](a,b,k),"*"!=a&&g.cfg.extendNative&&"prop"==e&&k.value&&c.isFunction(k.value)&&x(a,b,k),d[e]=k)});d.initAttr&&q.content(a,b);return d},defineNodeNameProperties:function(a,b,d,e){for(var c in b)!e&&b[c].initAttr&&q.createTmpCache(a),d&&(b[c][d]?g.log("override: "+a+"["+c+"] for "+d):(b[c][d]={},["value","set","get"].forEach(function(a){a in b[c]&&(b[c][d][a]=b[c][a],delete b[c][a])}))),b[c]=g.defineNodeNameProperty(a,c,b[c]);e||q.flushTmpCache();return b},createElement:function(a,
|
14
|
-
b,d){var e;c.isFunction(b)&&(b={after:b});q.createTmpCache(a);b.before&&q.createElement(a,b.before);d&&(e=g.defineNodeNameProperties(a,d,!1,!0));b.after&&q.createElement(a,b.after);q.flushTmpCache();return e},onNodeNamesPropertyModify:function(a,b,d,e){"string"==typeof a&&(a=a.split(h));c.isFunction(d)&&(d={set:d});a.forEach(function(a){s[a]||(s[a]={});"string"==typeof b&&(b=b.split(h));d.initAttr&&q.createTmpCache(a);b.forEach(function(b){s[a][b]||(s[a][b]=[],u[b]=!0);if(d.set){if(e)d.set.only=e;
|
15
|
-
s[a][b].push(d.set)}d.initAttr&&q.content(a,b)});q.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,b,d){d||(d={});if(c.isFunction(d))d.set=d;g.defineNodeNamesProperty(a,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?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===
|
16
|
-
l)return d=(a.attributes[b]||{}).value,null==d?l:d;"boolean"==typeof d?d?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var a=[],b={},d,e,f=/:\/\/|^\.*\//,h=function(a,
|
17
|
-
i=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=o[a.module].options;if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),n(a.module);else if(!b&&!h(a,d,c)&&!h(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),n(a.module)}};return function(f){if("string"==typeof f&&f!==d)d=f,e=d.split("-")[0],d==e&&(e=!1),c.each(a,function(a,b){i(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f),
|
18
|
-
f.callback();else{if(!f.activeLang)f.activeLang="";a.push(f);i(f)}return d}}()});c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,e,c,f){"string"==typeof a&&(a=a.split(h));var o={};a.forEach(function(a){o[a]=g[b](a,e,c,f)});return o}});g.isReady("webshimLocalization",!0)});
|
19
|
-
(function(c,g){var j=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<j)&&(!c.browser.msie||12>j&&7<j)){var i={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(c,h){c.getAttribute("role")||c.setAttribute("role",h)};c.webshims.addReady(function(o,h){c.each(i,function(f,g){for(var n=c(f,o).add(h.filter(f)),i=0,m=n.length;i<m;i++)l(n[i],g)});if(o===g){var m=g.getElementsByTagName("header")[0],j=g.getElementsByTagName("footer"),n=j.length;
|
20
|
-
m&&!c(m).closest("section, article")[0]&&l(m,"banner");n&&(m=j[n-1],c(m).closest("section, article")[0]||l(m,"contentinfo"))}})}})(jQuery,document);
|
21
|
-
(function(c,g,j){var i=g.audio&&g.video,l=!1;if(i)c=document.createElement("video"),g.videoBuffered="buffered"in c,l="loop"in c,j.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),g.videoBuffered||(j.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),j.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(c,h,g,j,n){var f=h.mediaelement,s=h.cfg.mediaelement,
|
22
|
-
t=function(a,b){var a=c(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var e=a.attr("type");if(e)d.type=e,d.container=c.trim(e.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=f.getTypeForSrc(d.src,b))d.type=e,d.container=e
|
23
|
-
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
"
|
31
|
-
|
32
|
-
"
|
33
|
-
|
34
|
-
jQuery.webshims.register("details",function(c,g,j,i,l,o){var h=function(g){var f=c(g).parent("details");if(f[0]&&f.children(":first").get(0)===g)return f},m=function(g,f){var g=c(g),f=c(f),h=c.data(f[0],"summaryElement");c.data(g[0],"detailsElement",f);if(!h||g[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()),
|
35
|
-
|
36
|
-
function(g){var i=h(this);if(i){if(!j&&g.originalEvent)return j=!0,g.stopImmediatePropagation(),g.preventDefault(),c(this).trigger("click"),j=!1;clearTimeout(f);f=setTimeout(function(){g.isDefaultPrevented()||i.prop("open",!i.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(f){if((13==f.keyCode||32==f.keyCode)&&!f.isDefaultPrevented())j=!0,f.preventDefault(),c(this).trigger("click"),j=!1}).attr({tabindex:l,role:"button"}).prepend('<span class="details-open-indicator" />');g.moveToFirstEvent(this,
|
37
|
-
"click")}});var u;g.defineNodeNamesBooleanProperty("details","open",function(g){var f=c(c.data(this,"summaryElement"));if(f){var h=g?"removeClass":"addClass",i=c(this);if(!u&&o.animate){i.stop().css({width:"",height:""});var j={width:i.width(),height:i.height()}}f.attr("aria-expanded",""+g);i[h]("closed-details-summary").children().not(f[0])[h]("closed-details-child");!u&&o.animate&&(g={width:i.width(),height:i.height()},i.css(j).animate(g,{complete:function(){c(this).css({width:"",height:""})}}))}});
|
38
|
-
g.createElement("details",function(){u=!0;var g=c.data(this,"summaryElement");g||(g=c("> summary:first-child",this),g[0]?m(g,this):(c(this).prependPolyfill('<summary class="fallback-summary">'+o.text+"</summary>"),c.data(this,"summaryElement")));c.prop(this,"open",c.prop(this,"open"));u=!1})});
|
1
|
+
(function(c){if(!Modernizr.genericDOM){var g=document,j,i,l=/<([\w:]+)/,o={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};c.webshims.fixHTML5=function(c){if("string"!=typeof c||o[(l.exec(c)||["",""])[1].toLowerCase()])return c;if(!i){j=g.body;if(!j)return c;i=g.createElement("div");i.style.display="none"}var m=i.cloneNode(!1);j.appendChild(m);m.innerHTML=c;j.removeChild(m);return m.childNodes}}})(jQuery);
|
2
|
+
jQuery.webshims.register("dom-extend",function(c,g,j,i,l){var o=g.modules,h=/\s*,\s*/,m={},u={},n={},f={},s={},t=c.fn.val,w=function(a,b,d,e,k){return k?t.call(c(a)):t.call(c(a),d)};c.fn.val=function(a){var b=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!b||1!==b.nodeType?t.call(this):c.prop(b,"value",a,"val",!0);if(c.isArray(a))return t.apply(this,arguments);var d=c.isFunction(a);return this.each(function(e){b=this;1===b.nodeType&&(d?(e=a.call(b,e,c.prop(b,"value",l,"val",
|
3
|
+
!0)),null==e&&(e=""),c.prop(b,"value",e,"val")):c.prop(b,"value",a,"val"))})};var p="_webshimsLib"+Math.round(1E3*Math.random()),r=function(a,b,d){a=a.jquery?a[0]:a;if(!a)return d||{};var e=c.data(a,p);d!==l&&(e||(e=c.data(a,p,{})),b&&(e[b]=d));return b?e&&e[b]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){c.fn[a.name]=function(){return this.map(function(){var b=r(this,
|
4
|
+
"shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){m[a]=c[a];c[a]=function(b,d,e,k,A){var f="val"==k,o=!f?m[a]:w;if(!b||!u[d]||1!==b.nodeType||!f&&k&&"attr"==a&&c.attrFn[d])return o(b,d,e,k,A);var y=(b.nodeName||"").toLowerCase(),g=n[y],h="attr"==a&&(!1===e||null===e)?"removeAttr":a,i,t,p;g||(g=n["*"]);g&&(g=g[d]);g&&(i=g[h]);if(i){if("value"==d)t=i.isVal,i.isVal=f;if("removeAttr"===h)return i.value.call(b);if(e===l)return i.get?i.get.call(b):i.value;i.set&&
|
5
|
+
("attr"==a&&!0===e&&(e=d),p=i.set.call(b,e));if("value"==d)i.isVal=t}else p=o(b,d,e,k,A);if((e!==l||"removeAttr"===h)&&s[y]&&s[y][d]){var j;j="removeAttr"==h?!1:"prop"==h?!!e:!0;s[y][d].forEach(function(d){if(!d.only||(d.only="prop"==a)||"attr"==d.only&&"prop"!=a)d.call(b,e,j,f?"val":h,a)})}return p};f[a]=function(b,d,e){n[b]||(n[b]={});n[b][d]||(n[b][d]={});var k=n[b][d][a],f=function(b,c,k){return c&&c[b]?c[b]:k&&k[b]?k[b]:"prop"==a&&"value"==d?function(b){return e.isVal?w(this,d,b,!1,0===arguments.length):
|
6
|
+
m[a](this,d,b)}:"prop"==a&&"value"==b&&e.value.apply?function(b){var e=m[a](this,d);e&&e.apply&&(e=e.apply(this,arguments));return e}:function(b){return m[a](this,d,b)}};n[b][d][a]=e;if(e.value===l){if(!e.set)e.set=e.writeable?f("set",e,k):g.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:c.noop;if(!e.get)e.get=f("get",e,k)}["value","get","set"].forEach(function(b){e[b]&&(e["_sup"+b]=f(b,k))})}});var z=!c.browser.msie||8<parseInt(c.browser.version,10),x=function(){var a=g.getPrototypeOf(i.createElement("foobar")),
|
7
|
+
b=Object.prototype.hasOwnProperty;return function(d,e,c){var f=i.createElement(d),o=g.getPrototypeOf(f);if(z&&o&&a!==o&&(!f[e]||!b.call(f,e))){var h=f[e];c._supvalue=function(){return h&&h.apply?h.apply(this,arguments):h};o[e]=c.value}else c._supvalue=function(){var b=r(this,"propValue");return b&&b[e]&&b[e].apply?b[e].apply(this,arguments):b&&b[e]},q.extendValue(d,e,c.value);c.value._supvalue=c._supvalue}}(),q=function(){var a={};g.addReady(function(b,d){var e={},f=function(a){e[a]||(e[a]=c(b.getElementsByTagName(a)),
|
8
|
+
d[0]&&c.nodeName(d[0],a)&&(e[a]=e[a].add(d)))};c.each(a,function(b,a){f(b);!a||!a.forEach?g.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){e[b].each(a)})});e=null});var b,d=c([]),e=function(d,e){a[d]?a[d].push(e):a[d]=[e];c.isDOMReady&&(b||c(i.getElementsByTagName(d))).each(e)};return{createTmpCache:function(a){c.isDOMReady&&(b=b||c(i.getElementsByTagName(a)));return b||d},flushTmpCache:function(){b=null},content:function(b,a){e(b,function(){var b=c.attr(this,a);null!=b&&c.attr(this,
|
9
|
+
a,b)})},createElement:function(b,a){e(b,a)},extendValue:function(b,a,d){e(b,function(){c(this).each(function(){r(this,"propValue",{})[a]=this[a];this[a]=d})})}}}(),v=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)}}};c.extend(g,{getID:function(){var a=(new Date).getTime();return function(b){var b=c(b),d=b.attr("id");d||(a++,d="ID-"+a,b.attr("id",d));return d}}(),extendUNDEFProp:function(a,
|
10
|
+
b){c.each(b,function(b,e){b in a||(a[b]=e)})},createPropDefault:v,data:r,moveToFirstEvent:function(){var a=c._data?"_data":"data";return function(b,d,e){if((b=(c[a](b,"events")||{})[d])&&1<b.length)d=b.pop(),e||(e="bind"),"bind"==e&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);if(!d.shadowFocusElement)d.shadowFocusElement=b;var e=c.data(a,p)||c.data(a,p,{}),k=c.data(b,p)||c.data(b,p,{});e.hasShadow=b;k.nativeElement=
|
11
|
+
a;k.shadowData=e.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){r(this,"shadowData",k.shadowData)});if(d.data)e.shadowData.data=d.data,k.shadowData.data=d.data;d=null},propTypes:{standard:function(a){v(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){v(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,
|
12
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,b){"string"==typeof b&&(b=b.split(h));b.forEach(function(b){g.defineNodeNamesProperty(a,b,{prop:{set:function(a){c.attr(this,b,a)},get:function(){return c.attr(this,b)||""}}})})},defineNodeNameProperty:function(a,b,d){u[b]=!0;if(d.reflect)g.propTypes[d.propType||"standard"](d);["prop","attr","removeAttr"].forEach(function(e){var k=d[e];k&&(k="prop"===e?c.extend({writeable:!0},k):c.extend({},
|
13
|
+
k,{writeable:!0}),f[e](a,b,k),"*"!=a&&g.cfg.extendNative&&"prop"==e&&k.value&&c.isFunction(k.value)&&x(a,b,k),d[e]=k)});d.initAttr&&q.content(a,b);return d},defineNodeNameProperties:function(a,b,d,e){for(var c in b)!e&&b[c].initAttr&&q.createTmpCache(a),d&&(b[c][d]?g.log("override: "+a+"["+c+"] for "+d):(b[c][d]={},["value","set","get"].forEach(function(a){a in b[c]&&(b[c][d][a]=b[c][a],delete b[c][a])}))),b[c]=g.defineNodeNameProperty(a,c,b[c]);e||q.flushTmpCache();return b},createElement:function(a,
|
14
|
+
b,d){var e;c.isFunction(b)&&(b={after:b});q.createTmpCache(a);b.before&&q.createElement(a,b.before);d&&(e=g.defineNodeNameProperties(a,d,!1,!0));b.after&&q.createElement(a,b.after);q.flushTmpCache();return e},onNodeNamesPropertyModify:function(a,b,d,e){"string"==typeof a&&(a=a.split(h));c.isFunction(d)&&(d={set:d});a.forEach(function(a){s[a]||(s[a]={});"string"==typeof b&&(b=b.split(h));d.initAttr&&q.createTmpCache(a);b.forEach(function(b){s[a][b]||(s[a][b]=[],u[b]=!0);if(d.set){if(e)d.set.only=e;
|
15
|
+
s[a][b].push(d.set)}d.initAttr&&q.content(a,b)});q.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,b,d){d||(d={});if(c.isFunction(d))d.set=d;g.defineNodeNamesProperty(a,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?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===
|
16
|
+
l)return d=(a.attributes[b]||{}).value,null==d?l:d;"boolean"==typeof d?d?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var a=[],b={},d,e,f=/:\/\/|^\.*\//,h=function(b,a,d){return a&&d&&-1!==c.inArray(a,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,f.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+a+".js",function(){b.langObj[a]?(b.loading=!1,i(b,!0)):c(function(){b.langObj[a]&&i(b,!0);b.loading=!1})}),!0):!1},n=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},
|
17
|
+
i=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=o[a.module].options;if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),n(a.module);else if(!b&&!h(a,d,c)&&!h(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),n(a.module)}};return function(f){if("string"==typeof f&&f!==d)d=f,e=d.split("-")[0],d==e&&(e=!1),c.each(a,function(a,b){i(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f),
|
18
|
+
f.callback();else{if(!f.activeLang)f.activeLang="";a.push(f);i(f)}return d}}()});c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,e,c,f){"string"==typeof a&&(a=a.split(h));var o={};a.forEach(function(a){o[a]=g[b](a,e,c,f)});return o}});g.isReady("webshimLocalization",!0)});
|
19
|
+
(function(c,g){var j=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<j)&&(!c.browser.msie||12>j&&7<j)){var i={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(c,h){c.getAttribute("role")||c.setAttribute("role",h)};c.webshims.addReady(function(o,h){c.each(i,function(f,g){for(var n=c(f,o).add(h.filter(f)),i=0,m=n.length;i<m;i++)l(n[i],g)});if(o===g){var m=g.getElementsByTagName("header")[0],j=g.getElementsByTagName("footer"),n=j.length;
|
20
|
+
m&&!c(m).closest("section, article")[0]&&l(m,"banner");n&&(m=j[n-1],c(m).closest("section, article")[0]||l(m,"contentinfo"))}})}})(jQuery,document);
|
21
|
+
(function(c,g,j){var i=g.audio&&g.video,l=!1;if(i)c=document.createElement("video"),g.videoBuffered="buffered"in c,l="loop"in c,j.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),g.videoBuffered||(j.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),j.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(c,h,g,j,n){var f=h.mediaelement,s=h.cfg.mediaelement,
|
22
|
+
t=function(a,b){var a=c(a),d={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!d.src)return d;var e=a.attr("type");if(e)d.type=e,d.container=c.trim(e.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=f.getTypeForSrc(d.src,b))d.type=e,d.container=e;if(e=a.attr("media"))d.media=e;return d},w=swfobject.hasFlashPlayerVersion("9.0.115"),p=function(){h.ready("mediaelement-swf",function(){if(!f.createSWF)h.modules["mediaelement-swf"].test=
|
23
|
+
c.noop,h.reTest(["mediaelement-swf"],i)})};f.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf",
|
24
|
+
"asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};f.mimeTypes.source=c.extend({},f.mimeTypes.audio,f.mimeTypes.video);f.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||-1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],d;c.each(f.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};f.srces=function(a,b){a=c(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),
|
25
|
+
c.isArray(b)||(b=[b]),b.forEach(function(b){var d=j.createElement("source");"string"==typeof b&&(b={src:b});d.setAttribute("src",b.src);b.type&&d.setAttribute("type",b.type);b.media&&d.setAttribute("media",b.media);a.append(d)});else{var b=[],d=a[0].nodeName.toLowerCase(),e=t(a,d);e.src?b.push(e):c("source",a).each(function(){e=t(this,d);e.src&&b.push(e)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==n&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));f.srces(this,
|
26
|
+
a);c(this).mediaLoad()})};f.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(",");f.canSwfPlaySrces=function(a,b){var d="";w&&(a=c(a),b=b||f.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&-1!=f.swfMimeTypes.indexOf(b.container))return d=b,!1}));return d};var r={};f.canNativePlaySrces=function(a,
|
27
|
+
b){var d="";if(i){var a=c(a),e=(a[0].nodeName||"").toLowerCase();if(!r[e])return d;b=b||f.srces(a);c.each(b,function(b,c){if(c.type&&r[e].prop._supvalue.call(a[0],c.type))return d=c,!1})}return d};f.setError=function(a,b){b||(b="can't play sources");c(a).pause().data("mediaerror",b);h.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var z=function(){var a;return function(b,d,c){h.ready("mediaelement-swf",function(){f.createSWF?f.createSWF(b,
|
28
|
+
d,c):a||(a=!0,p(),z(b,d,c))})}}(),x=function(a,b,d,c,g){d||!1!==d&&b&&"flash"==b.isActive?(d=f.canSwfPlaySrces(a,c))?z(a,d,b):g?f.setError(a,!1):x(a,b,!1,c,!0):(d=f.canNativePlaySrces(a,c))?b&&"flash"==b.isActive&&f.setActive(a,"html5",b):g?(f.setError(a,!1),b&&"flash"==b.isActive&&f.setActive(a,"html5",b)):x(a,b,!0,c,!0)},q=/^(?:embed|object|datalist)$/i,v=function(a,b){var d=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{}),e=f.srces(a),g=a.parentNode;clearTimeout(d.loadTimer);c.data(a,
|
29
|
+
"mediaerror",!1);if(e.length&&g&&!(1!=g.nodeType||q.test(g.nodeName||"")))b=b||h.data(a,"mediaelement"),x(a,b,s.preferFlash||n,e)};c(j).bind("ended",function(a){var b=h.data(a.target,"mediaelement");(!l||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,"paused")&&c.prop(a.target,"loop")&&c(a.target).prop("currentTime",0).play()},1)});l||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=h.defineNodeNameProperty(a,
|
30
|
+
"load",{prop:{value:function(){var a=h.data(this,"mediaelement");v(this,a);i&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});r[a]=h.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var e="";i&&r[a].prop._supvalue&&(e=r[a].prop._supvalue.call(this,b),"no"==e&&(e=""));!e&&w&&(b=c.trim((b||"").split(";")[0]),-1!=f.swfMimeTypes.indexOf(b)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=
|
31
|
+
this,b=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){v(a);a=null},9)}});g=function(){h.addReady(function(a,b){c("video, audio",a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<h.browserVersion&&c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():v(this);if(i){var a,b,f=this,g=function(){var a=c.prop(f,
|
32
|
+
"buffered");if(a){for(var b="",d=0,e=a.length;d<e;d++)b+=a.end(d);return b}},n=function(){var a=g();a!=b&&(b=a,c(f).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==c.type&&(b=g());clearTimeout(a);a=setTimeout(n,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};i?(h.isReady("mediaelement-core",!0),g(),w&&h.ready("WINDOWLOAD mediaelement",p)):h.ready("mediaelement-swf",g)})})(jQuery,Modernizr,
|
33
|
+
jQuery.webshims);
|
34
|
+
jQuery.webshims.register("details",function(c,g,j,i,l,o){var h=function(g){var f=c(g).parent("details");if(f[0]&&f.children(":first").get(0)===g)return f},m=function(g,f){var g=c(g),f=c(f),h=c.data(f[0],"summaryElement");c.data(g[0],"detailsElement",f);if(!h||g[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()),c.data(f[0],
|
35
|
+
"summaryElement",g),f.prop("open",f.prop("open"))};g.createElement("summary",function(){var i=h(this);if(i&&!c.data(this,"detailsElement")){var f,j,l=c.attr(this,"tabIndex")||"0";m(this,i);c(this).bind("focus.summaryPolyfill",function(){c(this).addClass("summary-has-focus")}).bind("blur.summaryPolyfill",function(){c(this).removeClass("summary-has-focus")}).bind("mouseenter.summaryPolyfill",function(){c(this).addClass("summary-has-hover")}).bind("mouseleave.summaryPolyfill",function(){c(this).removeClass("summary-has-hover")}).bind("click.summaryPolyfill",
|
36
|
+
function(g){var i=h(this);if(i){if(!j&&g.originalEvent)return j=!0,g.stopImmediatePropagation(),g.preventDefault(),c(this).trigger("click"),j=!1;clearTimeout(f);f=setTimeout(function(){g.isDefaultPrevented()||i.prop("open",!i.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(f){if((13==f.keyCode||32==f.keyCode)&&!f.isDefaultPrevented())j=!0,f.preventDefault(),c(this).trigger("click"),j=!1}).attr({tabindex:l,role:"button"}).prepend('<span class="details-open-indicator" />');g.moveToFirstEvent(this,
|
37
|
+
"click")}});var u;g.defineNodeNamesBooleanProperty("details","open",function(g){var f=c(c.data(this,"summaryElement"));if(f){var h=g?"removeClass":"addClass",i=c(this);if(!u&&o.animate){i.stop().css({width:"",height:""});var j={width:i.width(),height:i.height()}}f.attr("aria-expanded",""+g);i[h]("closed-details-summary").children().not(f[0])[h]("closed-details-child");!u&&o.animate&&(g={width:i.width(),height:i.height()},i.css(j).animate(g,{complete:function(){c(this).css({width:"",height:""})}}))}});
|
38
|
+
g.createElement("details",function(){u=!0;var g=c.data(this,"summaryElement");g||(g=c("> summary:first-child",this),g[0]?m(g,this):(c(this).prependPolyfill('<summary class="fallback-summary">'+o.text+"</summary>"),c.data(this,"summaryElement")));c.prop(this,"open",c.prop(this,"open"));u=!1})});
|