webshims-rails 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/webshims-rails.rb +1 -1
- data/lib/webshims-rails/version.rb +2 -2
- data/readme.textile +5 -3
- data/vendor/assets/javascripts/webshims/dev/extras/custom-validity.js +261 -0
- data/vendor/assets/javascripts/webshims/dev/extras/modernizr-custom.js +535 -0
- data/vendor/assets/javascripts/webshims/dev/extras/mousepress.js +60 -0
- data/vendor/assets/javascripts/webshims/dev/polyfiller.js +1171 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/README +62 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/canvas2png.js +42 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/flashcanvas.js +28 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/flashcanvas.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/proxy.php +73 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/save.php +49 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/README +82 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/canvas2png.js +42 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flash10canvas.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flash9canvas.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flashcanvas.js +31 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/proxy.php +73 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/save.php +49 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/1.js +1710 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/10.js +3317 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/11.js +1585 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/12.js +1587 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/13.js +1054 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/14.js +476 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/15.js +314 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/16.js +2101 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/17.js +2264 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/18.js +2161 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/19.js +2244 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/2.js +2294 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/20.js +1607 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/21.js +1635 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/22.js +2409 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/23.js +2168 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/24.js +2777 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/25.js +2204 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/26.js +2863 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/27.js +4079 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/3.js +2971 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/4.js +823 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/5.js +1078 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/59.js +1754 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/6.js +1230 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/7.js +1485 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/8.js +1442 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/9.js +2515 -0
- data/vendor/assets/javascripts/webshims/dev/shims/details.js +146 -0
- data/vendor/assets/javascripts/webshims/dev/shims/dom-extend.js +908 -0
- data/vendor/assets/javascripts/webshims/dev/shims/es5.js +802 -0
- data/vendor/assets/javascripts/webshims/dev/shims/excanvas.js +924 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-core.js +660 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-datalist.js +677 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-message.js +164 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-native-extend.js +256 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-native-fix.js +261 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-number-date-api.js +384 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-number-date-ui.js +847 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-shim-extend.js +1472 -0
- data/vendor/assets/javascripts/webshims/dev/shims/geolocation.js +168 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ar.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ch-ZN.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-de.txt +33 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-el.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-en.txt +34 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-es.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-fr.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-he.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-hi.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-hu.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-it.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ja.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-nl.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-pt-PT.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ru.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-sv.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/json-storage.js +308 -0
- data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/license.txt +1 -0
- data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/player.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/readme.html +87 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-core.js +534 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-native-fix.js +99 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-swf.js +1074 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-yt.js +543 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/details-arrows.png +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/forms.png +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/polyfill-loader.gif +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/shim.css +677 -0
- data/vendor/assets/javascripts/webshims/dev/shims/swf/jwwebshims.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/swf/localStorage.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/track-ui.js +292 -0
- data/vendor/assets/javascripts/webshims/dev/shims/track.js +763 -0
- data/vendor/assets/javascripts/webshims/minified/extras/modernizr-custom.js +20 -20
- data/vendor/assets/javascripts/webshims/minified/polyfiller.js +29 -29
- data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +37 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +83 -76
- data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +44 -42
- data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +43 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +27 -25
- data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +60 -55
- data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +68 -64
- data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +60 -59
- data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +66 -64
- data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +74 -69
- data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +46 -43
- data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +52 -47
- data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +61 -57
- data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +68 -60
- data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +82 -77
- data/vendor/assets/javascripts/webshims/minified/shims/combos/25.js +58 -0
- data/vendor/assets/javascripts/webshims/minified/shims/combos/26.js +80 -0
- data/vendor/assets/javascripts/webshims/minified/shims/combos/27.js +103 -0
- data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +96 -91
- data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +30 -31
- data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +37 -39
- data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +59 -61
- data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +31 -29
- data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +38 -37
- data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +38 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +68 -63
- data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +22 -20
- data/vendor/assets/javascripts/webshims/minified/shims/es5.js +15 -14
- data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +22 -22
- data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +22 -22
- data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +8 -9
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +7 -8
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +23 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +44 -33
- data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-sv.js +3 -0
- data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/player.swf +0 -0
- data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/readme.html +86 -86
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +16 -13
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +30 -30
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-yt.js +14 -0
- data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +71 -10
- data/vendor/assets/javascripts/webshims/minified/shims/track-ui.js +9 -0
- data/vendor/assets/javascripts/webshims/minified/shims/track.js +20 -0
- metadata +101 -5
- data/vendor/assets/javascripts/webshims/minified/shims/form-output.js +0 -5
@@ -1,20 +1,20 @@
|
|
1
|
-
window.Modernizr=function(s,
|
2
|
-
0,
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
"")}catch(
|
7
|
-
!0}catch(
|
8
|
-
|
9
|
-
function(
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
(function(s,
|
14
|
-
|
15
|
-
i:0},a}var
|
16
|
-
a.pop(),
|
17
|
-
(
|
18
|
-
b);
|
19
|
-
|
20
|
-
|
1
|
+
window.Modernizr=function(s,g,C){function y(b,a){for(var e in b){var f=b[e];if(!~(""+f).indexOf("-")&&K[f]!==C)return"pfx"==a?f:!0}return!1}function x(b,a,e){var f=b.charAt(0).toUpperCase()+b.slice(1),m=(b+" "+t.join(f+" ")+f).split(" ");if("string"===typeof a||"undefined"===typeof a)return y(m,a);m=(b+" "+D.join(f+" ")+f).split(" ");a:{var b=m,d;for(d in b)if(f=a[b[d]],f!==C){if(!1===e){a=b[d];break a}a="function"===typeof f?f.bind(e||a):f;break a}a=!1}return a}function E(){h.input=function(b){for(var a=
|
2
|
+
0,e=b.length;a<e;a++)u[b[a]]=!!(b[a]in l);if(u.list)u.list=!(!g.createElement("datalist")||!s.HTMLDataListElement);return u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));h.inputtypes=function(b){for(var a=0,e,f,m=b.length;a<m;a++){l.setAttribute("type",f=b[a]);if(e="text"!==l.type)l.value=r,l.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&l.style.WebkitAppearance!==C?(p.appendChild(l),e=g.defaultView,e=e.getComputedStyle&&"textfield"!==
|
3
|
+
e.getComputedStyle(l,null).WebkitAppearance&&0!==l.offsetHeight,p.removeChild(l)):/^(search|tel)$/.test(f)||(e=/^(url|email)$/.test(f)?l.checkValidity&&!1===l.checkValidity():l.value!=r);z[b[a]]=!!e}return z}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var h={},p=g.documentElement,n=g.createElement("modernizr"),K=n.style,l=g.createElement("input"),r=":)",A=" -webkit- -moz- -o- -ms- ".split(" "),t="Webkit Moz O ms".split(" "),D="webkit moz o ms".split(" "),
|
4
|
+
n={},z={},u={},F=[],G=F.slice,B,H={}.hasOwnProperty,J;J="undefined"!==typeof H&&"undefined"!==typeof H.call?function(b,a){return H.call(b,a)}:function(b,a){return a in b&&"undefined"===typeof b.constructor.prototype[a]};if(!Function.prototype.bind)Function.prototype.bind=function(b){var a=this;if("function"!=typeof a)throw new TypeError;var e=G.call(arguments,1),f=function(){if(this instanceof f){var m=function(){};m.prototype=a.prototype;var m=new m,d=a.apply(m,e.concat(G.call(arguments)));return Object(d)===
|
5
|
+
d?d:m}return a.apply(b,e.concat(G.call(arguments)))};return f};n.canvas=function(){var b=g.createElement("canvas");return!(!b.getContext||!b.getContext("2d"))};n.geolocation=function(){return"geolocation"in navigator};n.video=function(){var b=g.createElement("video"),a=!1;try{if(a=!!b.canPlayType)a=new Boolean(a),a.ogg=b.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),a.h264=b.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),a.webm=b.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,
|
6
|
+
"")}catch(e){}return a};n.audio=function(){var b=g.createElement("audio"),a=!1;try{if(a=!!b.canPlayType)a=new Boolean(a),a.ogg=b.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),a.mp3=b.canPlayType("audio/mpeg;").replace(/^no$/,""),a.wav=b.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),a.m4a=(b.canPlayType("audio/x-m4a;")||b.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(e){}return a};n.localstorage=function(){try{return localStorage.setItem("modernizr","modernizr"),localStorage.removeItem("modernizr"),
|
7
|
+
!0}catch(b){return!1}};n.sessionstorage=function(){try{return sessionStorage.setItem("modernizr","modernizr"),sessionStorage.removeItem("modernizr"),!0}catch(b){return!1}};for(var I in n)J(n,I)&&(B=I.toLowerCase(),h[B]=n[I](),F.push((h[B]?"":"no-")+B));h.input||E();h.addTest=function(b,a){if("object"==typeof b)for(var e in b)J(b,e)&&h.addTest(e,b[e]);else{b=b.toLowerCase();if(h[b]!==C)return h;a="function"==typeof a?a():a;p.className+=" "+(a?"":"no-")+b;h[b]=a}return h};K.cssText="";n=l=null;(function(b,
|
8
|
+
a){function e(){var a=v.elements;return"string"==typeof a?a.split(" "):a}function f(a){var c=k[a[j]];c||(c={},q++,a[j]=q,k[q]=c);return c}function m(b,c,d){c||(c=a);if(w)return c.createElement(b);d||(d=f(c));c=d.cache[b]?d.cache[b].cloneNode():l.test(b)?(d.cache[b]=d.createElem(b)).cloneNode():d.createElem(b);return c.canHaveChildren&&!h.test(b)?d.frag.appendChild(c):c}function d(a,c){if(!c.cache)c.cache={},c.createElem=a.createElement,c.createFrag=a.createDocumentFragment,c.frag=c.createFrag();a.createElement=
|
9
|
+
function(b){return!v.shivMethods?c.createElem(b):m(b,a,c)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+e().join().replace(/\w+/g,function(a){c.createElem(a);c.frag.createElement(a);return'c("'+a+'")'})+");return n}")(v,c.frag)}function i(b){b||(b=a);var c=f(b);if(v.shivCSS&&!o&&!c.hasCSS){var k,i=b;k=i.createElement("p");i=i.getElementsByTagName("head")[0]||i.documentElement;k.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
|
10
|
+
k=i.insertBefore(k.lastChild,i.firstChild);c.hasCSS=!!k}w||d(b,c);return b}var g=b.html5||{},h=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,l=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,o,j="_html5shiv",q=0,k={},w;(function(){try{var b=a.createElement("a");b.innerHTML="<xyz></xyz>";o="hidden"in b;var c;if(!(c=1==b.childNodes.length)){a.createElement("a");var d=a.createDocumentFragment();c="undefined"==typeof d.cloneNode||
|
11
|
+
"undefined"==typeof d.createDocumentFragment||"undefined"==typeof d.createElement}w=c}catch(k){w=o=!0}})();var v={elements:g.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!==g.shivCSS,supportsUnknownElements:w,shivMethods:!1!==g.shivMethods,type:"default",shivDocument:i,createElement:m,createDocumentFragment:function(b,d){b||(b=a);if(w)return b.createDocumentFragment();
|
12
|
+
for(var d=d||f(b),k=d.frag.cloneNode(),i=0,q=e(),g=q.length;i<g;i++)k.createElement(q[i]);return k}};b.html5=v;i(a)})(this,g);h._version="2.6.2";h._prefixes=A;h._domPrefixes=D;h._cssomPrefixes=t;h.testProp=function(b){return y([b])};h.testAllProps=x;h.prefixed=function(b,a,e){return a?x(b,a,e):x(b,"pfx")};p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+F.join(" "));return h}(this,this.document);
|
13
|
+
(function(s,g,C){function y(a){return"[object Function]"==D.call(a)}function x(a){return"string"==typeof a}function E(){}function h(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function p(){var a=z.shift();u=1;a?a.t?A(function(){("c"==a.t?m.injectCss:m.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),p()):u=0}function n(b,i,e,f,l,o,j){function q(c){if(!w&&h(k.readyState)&&(n.r=w=1,!u&&p(),k.onload=k.onreadystatechange=null,c)){"img"!=b&&A(function(){B.removeChild(k)},50);for(var q in a[i])a[i].hasOwnProperty(q)&&
|
14
|
+
a[i][q].onload()}}var j=j||m.errorTimeout,k=g.createElement(b),w=0,v=0,n={t:e,s:i,e:l,a:o,x:j};1===a[i]&&(v=1,a[i]=[]);"object"==b?k.data=i:(k.src=i,k.type=b);k.width=k.height="0";k.onerror=k.onload=k.onreadystatechange=function(){q.call(this,v)};z.splice(f,0,n);"img"!=b&&(v||2===a[i]?(B.insertBefore(k,G?null:t),A(q,j)):a[i].push(k))}function K(a,b,e,f,g){return u=0,b=b||"j",x(a)?n("c"==b?J:H,a,b,this.i++,e,f,g):(z.splice(this.i++,0,a),1==z.length&&p()),this}function l(){var a=m;return a.loader={load:K,
|
15
|
+
i:0},a}var r=g.documentElement,A=s.setTimeout,t=g.getElementsByTagName("script")[0],D={}.toString,z=[],u=0,F="MozAppearance"in r.style,G=F&&!!g.createRange().compareNode,B=G?r:t.parentNode,r=s.opera&&"[object Opera]"==D.call(s.opera),r=!!g.attachEvent&&!r,H=F?"object":r?"script":"img",J=r?"script":H,I=Array.isArray||function(a){return"[object Array]"==D.call(a)},b=[],a={},e={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},f,m;m=function(d){function i(a){var a=a.split("!"),k=b.length,d=
|
16
|
+
a.pop(),f=a.length,d={url:d,origUrl:d,prefixes:a},i,c,g;for(c=0;c<f;c++)g=a[c].split("="),(i=e[g.shift()])&&(d=i(d,g));for(c=0;c<k;c++)d=b[c](d);return d}function f(b,d,g,e,h){var c=i(b),j=c.autoCallback;c.url.split(".").pop().split("?").shift();c.bypass||(d&&(d=y(d)?d:d[b]||d[e]||d[b.split("/").pop().split("?")[0]]),c.instead?c.instead(b,d,g,e,h):(a[c.url]?c.noexec=!0:a[c.url]=1,g.load(c.url,c.forceCSS||!c.forceJS&&"css"==c.url.split(".").pop().split("?").shift()?"c":C,c.noexec,c.attrs,c.timeout),
|
17
|
+
(y(d)||y(j))&&g.load(function(){l();d&&d(c.origUrl,h,e);j&&j(c.origUrl,h,e);a[c.url]=2})))}function g(a,b){function d(a,i){if(a)if(x(a))i||(c=function(){var a=[].slice.call(arguments);h.apply(this,a);j()}),f(a,c,b,0,e);else{if(Object(a)===a)for(l in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(l)&&(!i&&!--m&&(y(c)?c=function(){var a=[].slice.call(arguments);h.apply(this,a);j()}:c[l]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,
|
18
|
+
b);j()}}(h[l])),f(a[l],c,b,l,e))}else!i&&j()}var e=!!a.test,i=a.load||a.both,c=a.callback||E,h=c,j=a.complete||E,m,l;d(e?a.yep:a.nope,!!i);i&&d(i)}var h,o,j=this.yepnope.loader;if(x(d))f(d,0,j,0);else if(I(d))for(h=0;h<d.length;h++)o=d[h],x(o)?f(o,0,j,0):I(o)?m(o):Object(o)===o&&g(o,j);else Object(d)===d&&g(d,j)};m.addPrefix=function(a,b){e[a]=b};m.addFilter=function(a){b.push(a)};m.errorTimeout=1E4;null==g.readyState&&g.addEventListener&&(g.readyState="loading",g.addEventListener("DOMContentLoaded",
|
19
|
+
f=function(){g.removeEventListener("DOMContentLoaded",f,0);g.readyState="complete"},0));s.yepnope=l();s.yepnope.executeStack=p;s.yepnope.injectJs=function(a,b,e,f,l,o){var j=g.createElement("script"),n,k,f=f||m.errorTimeout;j.src=a;for(k in e)j.setAttribute(k,e[k]);b=o?p:b||E;j.onreadystatechange=j.onload=function(){!n&&h(j.readyState)&&(n=1,b(),j.onload=j.onreadystatechange=null)};A(function(){n||(n=1,b(1))},f);l?j.onload():t.parentNode.insertBefore(j,t)};s.yepnope.injectCss=function(a,b,e,f,h,l){var f=
|
20
|
+
g.createElement("link"),j,b=l?p:b||E;f.href=a;f.rel="stylesheet";f.type="text/css";for(j in e)f.setAttribute(j,e[j]);h||(t.parentNode.insertBefore(f,t),A(b,0))}})(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};Modernizr.addTest({texttrackapi:"function"===typeof document.createElement("video").addTextTrack,track:"kind"in document.createElement("track")});
|
@@ -1,29 +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
|
-
|
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(){
|
6
|
-
|
7
|
-
a.length?(e=a.shift(),b(document).one(e,function(){q(a,c,!0)})):c(b,d,window,document)},
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
d.validationMessages=d.validityMessages=[];d.inputTypes={};
|
24
|
-
(
|
25
|
-
|
26
|
-
!this.options.replaceUI},d:["forms","dom-support","form-number-date-api"],loadInit:function(){
|
27
|
-
|
28
|
-
!
|
29
|
-
d.setOptions(r.cfg),r.lang&&d.activeLang(r.lang),"polyfill"in r&&d.polyfill(r.polyfill))});
|
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 D=b(document.scripts||"script"),o=b.event.special,E=b([]),f=window.Modernizr,r=window.asyncWebshims,A=f.addTest,B=parseFloat(b.browser.version,10),p=window.Object,F=window.html5||{};f.genericDOM=!!b("<video><div></div></video>")[0].innerHTML;f.advancedObjectProperties=f.objectAccessor=f.ES5=!!("create"in p&&"seal"in p);if(b.browser.chrome)b.browser.webkit=
|
2
|
+
!0;var d={version:"1.9.1",cfg:{useImportantStyles:!0,waitReady:!0,extendNative:!0,loadStyles:!0,disableShivMethods:!0,basePath:function(){var a=D.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:B,modules:{},features:{},featureList:[],setOptions:function(a,c){"string"==typeof a&&void 0!==c?j[a]=!b.isPlainObject(c)?c:b.extend(!0,j[a]||
|
3
|
+
{},c):"object"==typeof a&&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);u(a,c);c.methodNames&&b.each(c.methodNames,function(a,b){d.addMethodName(b)})},polyfill:function(){var a=function(c){var k=[],g;if(j.disableShivMethods&&f.genericDOM&&"html5Clone"in b.support)F.shivMethods=!1;var h=function(){b("html").removeClass("loading-polyfills long-loading-polyfills");b(window).unbind(".lP");
|
4
|
+
clearTimeout(g)};k.push("loading-polyfills");b(window).bind("load.lP error.lP",h);g=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,h);j.useImportantStyles&&k.push("polyfill-important");k[0]&&b("html").addClass(k.join(" "));j.loadStyles&&t.loadCSS("styles/shim.css");a=b.noop},c;return function(e){var k=[],e=e||d.featureList;"string"==typeof e&&(e=e.split(" "));c||(c=-1!==
|
5
|
+
b.inArray("forms",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(){l(b,!0)}),k=k.concat(n[b])):(d.warn("could not find webshims-feature (aborted): "+b),l(b,!0))});a(e);v(k)}}(),reTest:function(){var a,c,e=function(e,g){var h=m[g],d=g+"Ready",f;if(h&&!h.loaded&&!(h.test&&b.isFunction(h.test)?h.test([]):h.test)){o[d]&&delete o[d];if((f=n[h.f])&&!c)f.delayReady++,q(g,function(){f.delayReady--;
|
6
|
+
l(h.f,f.callReady)});a.push(g)}};return function(d,g){c=g;"string"==typeof d&&(d=d.split(" "));a=[];b.each(d,e);v(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!l(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)},capturingEvents:function(a,c){document.addEventListener&&("string"==typeof a&&(a=[a]),b.each(a,function(a,k){var g=function(a){a=b.event.fix(a);c&&d.capturingEventPrevented&&d.capturingEventPrevented(a);return b.event.handle.call(this,a)};o[k]=o[k]||{};!o[k].setup&&!o[k].teardown&&b.extend(o[k],{setup:function(){this.addEventListener(k,g,!0)},teardown:function(){this.removeEventListener(k,g,!0)}})}))},register:function(a,
|
8
|
+
c){var e=m[a];if(e){if(e.noAutoCallback){var k=function(){c(b,d,window,document,void 0,e.options);l(a,!0)};e.d?q(e.d,k):k()}}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);t.loadScript(c,!1,e)},e=function(c,e){if(l(c)||-1!=b.inArray(c,a))return!0;var d=m[c];if(d)if(d=d.test&&b.isFunction(d.test)?
|
9
|
+
d.test(e):d.test)l(c,!0);else return!1;return!0},k=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(){l(c,!0)}))});if(!a.noAutoCallback)a.noAutoCallback=!0}};return function(g){var h,f=[],i,j,l=function(e,g){j=g;b.each(d.c[g],function(c,e){if(-1==b.inArray(e,f)||-1!=b.inArray(e,a))return j=!1});if(j)return c("combos/"+j,d.c[j]),!1};for(i=0;i<g.length;i++)h=m[g[i]],!h||e(h.name,g)?
|
10
|
+
h||d.warn("could not find: "+g[i]):(h.css&&t.loadCSS(h.css),h.loadInit&&h.loadInit(),h.loaded=!0,k(h,g),f.push(h.name));for(i=0,g=f.length;i<g;i++)j=!1,h=f[i],-1==b.inArray(h,a)&&("noCombo"!=d.debug&&b.each(m[h].c,l),j||c(m[h].src||h,h))}}(),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(e){e=this.makePath(e);-1==b.inArray(e,c)&&(a=a||
|
11
|
+
b("link, style")[0]||b("script")[0],c.push(e),b('<link rel="stylesheet" />').insertBefore(a).attr({href:e}))}}(),loadScript:function(){var a=[];return function(c,e,d){c=t.makePath(c);if(-1==b.inArray(c,a)){var g=function(){g=null;e&&e();d&&("string"==typeof d&&(d=d.split(" ")),b.each(d,function(a,c){m[c]&&(m[c].afterLoad&&m[c].afterLoad(),l(!m[c].noAutoCallback?c:c+"FileLoaded",!0))}))};a.push(c);window.require?require([c],g):window.sssl?sssl(c,g):window.yepnope?yepnope.injectJs(c,g):window.steal&&
|
12
|
+
steal(c).then(g)}}}()}};b.webshims=d;var w=("https:"==location.protocol?"https://":"http://")+"ajax.googleapis.com/ajax/libs/",B=w+"jqueryui/1.8.23/",j=d.cfg,n=d.features,l=d.isReady,q=d.ready,i=d.addPolyfill,m=d.modules,t=d.loader,v=t.loadList,u=t.addModule,x=[],G={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=[]);this.each(function(){var f=b.prop(this,
|
13
|
+
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","info"],function(a,c){d[c]=function(a){if((G[c]&&
|
14
|
+
!1!==d.debug||d.debug)&&window.console&&console.log)return console[console[c]?c:"log"](a)}});(function(){b.isDOMReady=b.isReady;if(b.isDOMReady)l("DOM",!0);else{var a=b.ready;b.ready=function(c){if(!0!==c&&!b.isDOMReady)document.body?(b.isDOMReady=!0,l("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;l("DOM",!0);setTimeout(function(){l("WINDOWLOAD",!0)},9999)});b(window).load(function(){l("DOM",!0);l("WINDOWLOAD",
|
15
|
+
!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,E)},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):E;b.each(a,function(a,b){b(c,f)})}}}});b.fn.htmlPolyfill=function(a){a=b.fn.html.call(this,a);a===this&&b.isDOMReady&&this.each(function(){1==this.nodeType&&d.triggerDomUpdate(this)});return a};
|
16
|
+
b.each(["after","before","append","prepend","replaceWith"],function(a,e){b.fn[e+"Polyfill"]=function(a){a=b(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);b.isDOMReady&&d.triggerDomUpdate(this);return this}});b.fn.updatePolyfill=function(){b.isDOMReady&&
|
17
|
+
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);a=p.create(a,c);if(d)a.options=b.extend(!0,
|
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})();u("jquery-ui",{src:B+"jquery-ui.min.js",test:function(){return!(!b.widget||!b.Widget)}});u("input-widgets",{src:"",test:function(){return!this.src||
|
19
|
+
!(b.widget&&(!b.fn.datepicker||!b.fn.slider))}});u("swfobject",{src:w+"swfobject/2.2/swfobject.js",test:function(){return"swfobject"in window}});i("es5",{test:!(!f.ES5||!Function.prototype.bind),c:[27,10,1,22]});i("dom-extend",{f:"dom-support",noAutoCallback:!0,d:["es5"],c:[27,10,9,12,17,26,16,25,8,1,24,19,11,13]});"localstorage"in f&&i("json-storage",{test:f.localstorage&&"sessionStorage"in window&&"JSON"in window,loadInit:function(){v(["swfobject"])},noAutoCallback:!0,c:[14]});"geolocation"in f&&
|
20
|
+
i("geolocation",{test:f.geolocation,options:{destroyWrite:!0},d:["json-storage"],c:[14,15]});(function(){if("canvas"in f){var a;i("canvas",{src:"excanvas",test:f.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/"}),this.src="FlashCanvas/flashcanvas"):
|
21
|
+
(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&&l("canvas",!0)})},methodNames:["getContext"],d:["dom-support"]})}})();var C=f.input,y=f.inputtypes;if(C&&y){var z,
|
22
|
+
s=d.bugs,w=b('<select required="" name="a"><option disabled="" /></select>')[0];A("formvalidation",function(){return!(!C.required||!C.pattern)});A("fieldsetdisabled",function(){var a=b("<fieldset />")[0];return"elements"in a&&"disabled"in a});if(f.formvalidation)s.bustedValidity=!1===f.formattribute||!f.fieldsetdisabled||!("value"in document.createElement("output"))||!(b('<input type="date" value="1488-12-11" />')[0].validity||{valid:!0}).valid||!("required"in w)||(w.validity||{}).valid;A("styleableinputrange",
|
23
|
+
function(){if(!y.range)return!1;var a=document.createElement("input");a.setAttribute("type","range");return void 0!==a.style.WebkitAppearance});d.validationMessages=d.validityMessages=[];d.inputTypes={};i("form-core",{f:"forms",d:["es5"],test:function(){if(z.lightweightDatalist&&!this.datalistLoaded)this.datalistLoaded=!0,m["form-datalist"].f="forms",d.reTest(["form-datalist"]);return!1},options:{placeholderType:"value",langSrc:"i18n/errormessages-",lightweightDatalist:!0,availabeLangs:"ar,ch-ZN,el,es,fr,he,hi,hu,it,ja,nl,pt-PT,ru,sv".split(",")},
|
24
|
+
methodNames:["setCustomValidity","checkValidity"],c:[3,2,59,17,26,16,5,4,24,19]});z=j.forms;f.formvalidation&&!s.bustedValidity?(i("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||[]))&&!z.overrideMessages},d:["form-core","dom-support","form-message"],c:[18,7,59,5]}),x=x.concat([2,3,23,21])):(x=x.concat([18,7,4,59,5]),i("form-extend",{f:"forms",src:"form-shim-extend",test:function(){return!1},d:["form-core",
|
25
|
+
"dom-support"],c:[3,2,23,21]}));i("form-message",{f:"forms",test:function(a){return!(z.customMessages||!f.formvalidation||!m["form-extend"].test(a)||s.validationMessage||s.bustedValidity)},d:["dom-support"],c:[3,2,23,21,59,17,5,4]});i("form-number-date-api",{f:"forms-ext",uiTest:function(){return y.range&&y.date&&y.number},test:function(){return this.uiTest()&&!d.bugs.valueAsNumberSet},d:["forms","dom-support"],c:[18,7,6]});i("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(){v(["jquery-ui"]);m["input-widgets"].src&&v(["input-widgets"])},options:{stepArrows:{number:1,time:1},calculateWidth:!0,slider:{},datepicker:{},langSrc:B+"i18n/jquery.ui.datepicker-",lazyDate:!0},c:[18,7,6]});i("form-datalist",{f:"forms-ext",test:function(){return C.list&&!z.customDatalist},d:["form-core","dom-support"],c:[3,59,18,24,19,11]})}"details"in f||A("details",function(){return"open"in document.createElement("details")});
|
27
|
+
i("details",{test:f.details,d:["dom-support"],options:{text:"Details"},c:[12,13,15]});if("audio"in f&&"video"in f&&"texttrackapi"in f)d.mediaelement={},i("mediaelement-core",{f:"mediaelement",noAutoCallback:!0,d:["swfobject","dom-support"],c:[27,10,9,12,17,26,16,25,8,22,23,24,20]}),i("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"],
|
28
|
+
test:function(){if(!f.audio||!f.video)return!1;var a=this.options,b=a.hasToPlay;return!((!window.swfobject||window.swfobject.hasFlashPlayerVersion("9.0.115"))&&(a.preferFlash||"any"!=b&&!f.video[b]&&!f.audio[b]))},c:[27,10,9,22,20]}),s.track=f.track&&(!f.texttrackapi||"string"!=typeof(document.createElement("track").track||{}).mode),i("track",{options:{positionDisplay:!0,override:s.track},test:function(){return f.track&&!this.options.override&&!s.track},d:["mediaelement","dom-support"],methodNames:["addTextTrack"],
|
29
|
+
c:[27,26,25]}),u("track-ui",{d:["track"]});i("feature-dummy",{test:!0,loaded:!0,c:x});D.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&&d.setOptions(r.cfg),r.lang&&d.activeLang(r.lang),"polyfill"in r&&d.polyfill(r.polyfill))});
|
@@ -1,33 +1,37 @@
|
|
1
|
-
(function(){var a=Function.prototype.call,
|
2
|
-
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==
|
3
|
-
function(a,
|
4
|
-
for(var b=0;b<
|
5
|
-
|
6
|
-
|
7
|
-
typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var
|
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";
|
9
|
-
RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(
|
10
|
-
(
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
"
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
e
|
22
|
-
d,
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
d
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
b.
|
32
|
-
|
33
|
-
|
1
|
+
(function(){var a=Function.prototype.call,i=Object.prototype,l=Array.prototype.slice,j,m;if(!Function.prototype.bind)Function.prototype.bind=function(a){var f=this;if("function"!=typeof f)throw new TypeError;var e=l.call(arguments,1),c=function(){if(this instanceof c){var b=function(){};b.prototype=f.prototype;var b=new b,d=f.apply(b,e.concat(l.call(arguments)));return null!==d&&Object(d)===d?d:b}return f.apply(a,e.concat(l.call(arguments)))};return c};m=a.bind(i.toString);j=a.bind(i.hasOwnProperty);
|
2
|
+
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==m(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,f){var e=s(this),c=0,b=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;for(;c<b;)c in e&&a.call(f,e[c],c,e),c++};if(!Array.prototype.map)Array.prototype.map=function(a,f){var e=s(this),c=e.length>>>0,b=Array(c);if("[object Function]"!=m(a))throw new TypeError;for(var d=0;d<c;d++)d in e&&(b[d]=a.call(f,e[d],d,e));return b};if(!Array.prototype.filter)Array.prototype.filter=
|
3
|
+
function(a,f){var e=s(this),c=e.length>>>0,b=[];if("[object Function]"!=m(a))throw new TypeError;for(var d=0;d<c;d++)d in e&&a.call(f,e[d],d,e)&&b.push(e[d]);return b};if(!Array.prototype.every)Array.prototype.every=function(a,f){var e=s(this),c=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;for(var b=0;b<c;b++)if(b in e&&!a.call(f,e[b],b,e))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,f){var e=s(this),c=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;
|
4
|
+
for(var b=0;b<c;b++)if(b in e&&a.call(f,e[b],b,e))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var f=s(this),e=f.length>>>0;if("[object Function]"!=m(a))throw new TypeError;if(!e&&1==arguments.length)throw new TypeError;var c=0,b;if(2<=arguments.length)b=arguments[1];else{do{if(c in f){b=f[c++];break}if(++c>=e)throw new TypeError;}while(1)}for(;c<e;c++)c in f&&(b=a.call(void 0,b,f[c],c,f));return b};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var f=
|
5
|
+
s(this),e=f.length>>>0;if("[object Function]"!=m(a))throw new TypeError;if(!e&&1==arguments.length)throw new TypeError;var c,e=e-1;if(2<=arguments.length)c=arguments[1];else{do{if(e in f){c=f[e--];break}if(0>--e)throw new TypeError;}while(1)}do e in this&&(c=a.call(void 0,c,f[e],e,f));while(e--);return c};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var f=s(this),e=f.length>>>0;if(!e)return-1;var c=0;1<arguments.length&&(c=p(arguments[1]));for(c=0<=c?c:e-Math.abs(c);c<e;c++)if(c in
|
6
|
+
f&&f[c]===a)return c;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var f=s(this),e=f.length>>>0;if(!e)return-1;var c=e-1;1<arguments.length&&(c=p(arguments[1]));for(c=0<=c?c:e-Math.abs(c);0<=c;c--)if(c in f&&a===f[c])return c;return-1};if(2!=[1,2].splice(0).length){var r=Array.prototype.splice;Array.prototype.splice=function(a,f){return!arguments.length?[]:r.apply(this,[void 0===a?0:a,void 0===f?this.length-a:f].concat(l.call(arguments,2)))}}if(!Object.keys){var h=
|
7
|
+
!0,q="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),k=q.length,n;for(n in{toString:null})h=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var f=[],e;for(e in a)j(a,e)&&f.push(e);if(h)for(e=0;e<k;e++){var c=q[e];j(a,c)&&f.push(c)}return f}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,f,e;if(!isFinite(this))throw new RangeError;
|
8
|
+
a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(f=a.length;f--;)e=a[f],10>e&&(a[f]="0"+e);return a.slice(0,3).join("-")+"T"+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";
|
9
|
+
if(!String.prototype.trim||a.trim()){var a="["+a+"]",x=RegExp("^"+a+a+"*"),t=RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(x,"").replace(t,"")}}if("0".split(void 0,0).length){var v=String.prototype.split;String.prototype.split=function(a,f){return void 0===a&&0===f?[]:v.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var y=String.prototype.substr;String.prototype.substr=function(a,f){return y.call(this,0>a?0>(a=this.length+a)?0:a:a,f)}}var p=function(a){a=+a;
|
10
|
+
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],s=function(a){if(null==a)throw new TypeError;return u&&"string"==typeof a&&a?a.split(""):Object(a)}})();
|
11
|
+
(function(a,i){var l=!(!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor);l&&!a.browser.msie&&Object.defineProperty&&Object.prototype.__defineGetter__&&function(){try{var a=document.createElement("foo");Object.defineProperty(a,"bar",{get:function(){return!0}});l=!!a.bar}catch(i){l=!1}a=null}();Modernizr.objectAccessor=!(!(l||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=i.browserVersion));Modernizr.advancedObjectProperties=l;
|
12
|
+
if(!l||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var j=Function.prototype.call.bind(Object.prototype.hasOwnProperty);i.objectCreate=function(a,r,h,j){var k;k=function(){};k.prototype=a;k=new k;if(!j&&!("__proto__"in k)&&!Modernizr.objectAccessor)k.__proto__=a;r&&i.defineProperties(k,r);if(h)k.options=jQuery.extend(!0,{},k.options||{},h),h=k.options;k._create&&jQuery.isFunction(k._create)&&k._create(h);return k};i.defineProperties=function(a,
|
13
|
+
r){for(var h in r)j(r,h)&&i.defineProperty(a,h,r[h]);return a};i.defineProperty=function(a,i,h){if("object"!=typeof h||null===h)return a;if(j(h,"value"))return a[i]=h.value,a;a.__defineGetter__&&("function"==typeof h.get&&a.__defineGetter__(i,h.get),"function"==typeof h.set&&a.__defineSetter__(i,h.set));return a};i.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};i.getOwnPropertyDescriptor=function(a,i){if("object"!==
|
14
|
+
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var h;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return h=Object.getOwnPropertyDescriptor(a,i)}catch(l){}h={configurable:!0,enumerable:!0,writable:!0,value:void 0};var k=a.__lookupGetter__&&a.__lookupGetter__(i),n=a.__lookupSetter__&&a.__lookupSetter__(i);if(!k&&!n){if(!j(a,i))return;h.value=a[i];return h}delete h.writable;delete h.value;h.get=h.set=void 0;if(k)h.get=
|
15
|
+
k;if(n)h.set=n;return h}}})(jQuery,jQuery.webshims);
|
16
|
+
jQuery.webshims.register("dom-extend",function(a,i,l,j,m){var r=i.modules,h=/\s*,\s*/,q={},k={},n={},x={},t={},v=a.fn.val,y=function(c,b,d,g,o){return o?v.call(a(c)):v.call(a(c),d)};a.fn.val=function(c){var b=this[0];arguments.length&&null==c&&(c="");if(!arguments.length)return!b||1!==b.nodeType?v.call(this):a.prop(b,"value",c,"val",!0);if(a.isArray(c))return v.apply(this,arguments);var d=a.isFunction(c);return this.each(function(g){b=this;1===b.nodeType&&(d?(g=c.call(b,g,a.prop(b,"value",m,"val",
|
17
|
+
!0)),null==g&&(g=""),a.prop(b,"value",g,"val")):a.prop(b,"value",c,"val"))})};var p="_webshimsLib"+Math.round(1E3*Math.random()),u=function(c,b,d){c=c.jquery?c[0]:c;if(!c)return d||{};var g=a.data(c,p);d!==m&&(g||(g=a.data(c,p,{})),b&&(g[b]=d));return b?g&&g[b]:g};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(c){a.fn[c.name]=function(){return this.map(function(){var a=u(this,
|
18
|
+
"shadowData");return a&&a[c.prop]||this})}});["removeAttr","prop","attr"].forEach(function(c){q[c]=a[c];a[c]=function(b,d,g,o,e){var f="val"==o,i=!f?q[c]:y;if(!b||!k[d]||1!==b.nodeType||!f&&o&&"attr"==c&&a.attrFn[d])return i(b,d,g,o,e);var A=(b.nodeName||"").toLowerCase(),h=n[A],w="attr"==c&&(!1===g||null===g)?"removeAttr":c,j,l,r;h||(h=n["*"]);h&&(h=h[d]);h&&(j=h[w]);if(j){if("value"==d)l=j.isVal,j.isVal=f;if("removeAttr"===w)return j.value.call(b);if(g===m)return j.get?j.get.call(b):j.value;j.set&&
|
19
|
+
("attr"==c&&!0===g&&(g=d),r=j.set.call(b,g));if("value"==d)j.isVal=l}else r=i(b,d,g,o,e);if((g!==m||"removeAttr"===w)&&t[A]&&t[A][d]){var p;p="removeAttr"==w?!1:"prop"==w?!!g:!0;t[A][d].forEach(function(a){if(!a.only||(a.only="prop"==c)||"attr"==a.only&&"prop"!=c)a.call(b,g,p,f?"val":w,c)})}return r};x[c]=function(b,d,g){n[b]||(n[b]={});n[b][d]||(n[b][d]={});var o=n[b][d][c],e=function(a,b,o){return b&&b[a]?b[a]:o&&o[a]?o[a]:"prop"==c&&"value"==d?function(a){return g.isVal?y(this,d,a,!1,0===arguments.length):
|
20
|
+
q[c](this,d,a)}:"prop"==c&&"value"==a&&g.value.apply?function(a){var b=q[c](this,d);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(a){return q[c](this,d,a)}};n[b][d][c]=g;if(g.value===m){if(!g.set)g.set=g.writeable?e("set",g,o):i.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+b;}:a.noop;if(!g.get)g.get=e("get",g,o)}["value","get","set"].forEach(function(a){g[a]&&(g["_sup"+a]=e(a,o))})}});var s=!a.browser.msie||8<parseInt(a.browser.version,10),B=function(){var a=i.getPrototypeOf(j.createElement("foobar")),
|
21
|
+
b=Object.prototype.hasOwnProperty;return function(d,g,o){var e=j.createElement(d),h=i.getPrototypeOf(e);if(s&&h&&a!==h&&(!e[g]||!b.call(e,g))){var z=e[g];o._supvalue=function(){return z&&z.apply?z.apply(this,arguments):z};h[g]=o.value}else o._supvalue=function(){var a=u(this,"propValue");return a&&a[g]&&a[g].apply?a[g].apply(this,arguments):a&&a[g]},f.extendValue(d,g,o.value);o.value._supvalue=o._supvalue}}(),f=function(){var c={};i.addReady(function(b,d){var g={},e=function(c){g[c]||(g[c]=a(b.getElementsByTagName(c)),
|
22
|
+
d[0]&&a.nodeName(d[0],c)&&(g[c]=g[c].add(d)))};a.each(c,function(a,c){e(a);!c||!c.forEach?i.warn("Error: with "+a+"-property. methods: "+c):c.forEach(function(c){g[a].each(c)})});g=null});var b,d=a([]),g=function(d,g){c[d]?c[d].push(g):c[d]=[g];a.isDOMReady&&(b||a(j.getElementsByTagName(d))).each(g)};return{createTmpCache:function(c){a.isDOMReady&&(b=b||a(j.getElementsByTagName(c)));return b||d},flushTmpCache:function(){b=null},content:function(c,b){g(c,function(){var c=a.attr(this,b);null!=c&&a.attr(this,
|
23
|
+
b,c)})},createElement:function(a,c){g(a,c)},extendValue:function(c,b,d){g(c,function(){a(this).each(function(){u(this,"propValue",{})[b]=this[b];this[b]=d})})}}}(),e=function(a,b){if(a.defaultValue===m)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(i,{getID:function(){var c=(new Date).getTime();return function(b){var b=a(b),d=b.attr("id");d||(c++,d="ID-"+c,b.attr("id",d));
|
24
|
+
return d}}(),extendUNDEFProp:function(c,b){a.each(b,function(a,b){a in c||(c[a]=b)})},createPropDefault:e,data:u,moveToFirstEvent:function(){var c=a._data?"_data":"data";return function(b,d,g){if((b=(a[c](b,"events")||{})[d])&&1<b.length)d=b.pop(),g||(g="bind"),"bind"==g&&b.delegateCount?b.splice(b.delegateCount,0,d):b.unshift(d)}}(),addShadowDom:function(){var c,b,d,g,e={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(j).height(),this.width=a(j).width(),setInterval(function(){var c=
|
25
|
+
a(j).height(),b=a(j).width();if(c!=e.height||b!=e.width)e.height=c,e.width=b,g({type:"docresize"})},400)}};g=function(g){clearTimeout(c);c=setTimeout(function(){if("resize"==g.type){var c=a(l).width(),f=a(l).width();if(f==b&&c==d)return;b=f;d=c;e.height=a(j).height();e.width=a(j).width()}a.event.trigger("updateshadowdom")},40)};a(l).bind("resize",g);a.event.customEvent.updateshadowdom=!0;return function(c,b,d){d=d||{};c.jquery&&(c=c[0]);b.jquery&&(b=b[0]);var g=a.data(c,p)||a.data(c,p,{}),f=a.data(b,
|
26
|
+
p)||a.data(b,p,{}),h={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];h=a.data(d.shadowFocusElement,p)||a.data(d.shadowFocusElement,p,h)}}else d.shadowFocusElement=b;g.hasShadow=b;h.nativeElement=f.nativeElement=c;h.shadowData=f.shadowData=g.shadowData={nativeElement:c,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){u(this,"shadowData",f.shadowData)});if(d.data)h.shadowData.data=
|
27
|
+
f.shadowData.data=g.shadowData.data=d.data;d=null;e.start()}}(),propTypes:{standard:function(a){e(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){e(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var c=j.createElement("a");c.style.display="none";return function(b,d){e(b);if(!b.prop)b.prop=
|
28
|
+
{set:function(a){b.attr.set.call(this,a)},get:function(){var b=this.getAttribute(d),e;if(null==b)return"";c.setAttribute("href",b+"");if(!a.support.hrefNormalized){try{a(c).insertAfter(this),e=c.getAttribute("href",4)}catch(f){e=c.getAttribute("href",4)}a(c).detach()}return e||c.href}}}}(),enumarated:function(a){e(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var b=(a.attr.get.call(this)||"").toLowerCase();if(!b||-1==a.limitedTo.indexOf(b))b=a.defaultValue;return b}}}},
|
29
|
+
reflectProperties:function(c,b){"string"==typeof b&&(b=b.split(h));b.forEach(function(b){i.defineNodeNamesProperty(c,b,{prop:{set:function(c){a.attr(this,b,c)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(c,b,d){k[b]=!0;if(d.reflect)i.propTypes[d.propType||"standard"](d,b);["prop","attr","removeAttr"].forEach(function(g){var e=d[g];e&&(e="prop"===g?a.extend({writeable:!0},e):a.extend({},e,{writeable:!0}),x[g](c,b,e),"*"!=c&&i.cfg.extendNative&&"prop"==g&&e.value&&
|
30
|
+
a.isFunction(e.value)&&B(c,b,e),d[g]=e)});d.initAttr&&f.content(c,b);return d},defineNodeNameProperties:function(a,b,d,g){for(var e in b)!g&&b[e].initAttr&&f.createTmpCache(a),d&&(b[e][d]?i.log("override: "+a+"["+e+"] for "+d):(b[e][d]={},["value","set","get"].forEach(function(a){a in b[e]&&(b[e][d][a]=b[e][a],delete b[e][a])}))),b[e]=i.defineNodeNameProperty(a,e,b[e]);g||f.flushTmpCache();return b},createElement:function(c,b,d){var e;a.isFunction(b)&&(b={after:b});f.createTmpCache(c);b.before&&f.createElement(c,
|
31
|
+
b.before);d&&(e=i.defineNodeNameProperties(c,d,!1,!0));b.after&&f.createElement(c,b.after);f.flushTmpCache();return e},onNodeNamesPropertyModify:function(c,b,d,e){"string"==typeof c&&(c=c.split(h));a.isFunction(d)&&(d={set:d});c.forEach(function(a){t[a]||(t[a]={});"string"==typeof b&&(b=b.split(h));d.initAttr&&f.createTmpCache(a);b.forEach(function(b){t[a][b]||(t[a][b]=[],k[b]=!0);if(d.set){if(e)d.set.only=e;t[a][b].push(d.set)}d.initAttr&&f.content(a,b)});f.flushTmpCache()})},defineNodeNamesBooleanProperty:function(c,
|
32
|
+
b,d){d||(d={});if(a.isFunction(d))d.set=d;i.defineNodeNamesProperty(c,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?m:b}},removeAttr:{value:function(){this.removeAttribute(b);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(a,b,d){if(a.nodeName){if(d===m)return a=a.attributes[b]||{},d=a.specified?a.value:null,null==d?m:d;"boolean"==typeof d?d?a.setAttribute(b,b):
|
33
|
+
a.removeAttribute(b):a.setAttribute(b,d)}},activeLang:function(){var c=[],b={},d,e,f=/:\/\/|^\.*\//,h=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,f.test(d)||(d=i.cfg.basePath+d),i.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,k(b,!0)):a(function(){b.langObj[c]&&k(b,!0);b.loading=!1})}),!0):!1},j=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},k=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=r[a.module].options;
|
34
|
+
if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),j(a.module);else if(!b&&!h(a,d,c)&&!h(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),j(a.module)}};return function(f){if("string"==typeof f&&f!==d)d=f,e=d.split("-")[0],d==e&&(e=!1),a.each(c,function(a,b){k(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f),f.callback();else{if(!f.activeLang)f.activeLang="";c.push(f);k(f)}return d}}()});
|
35
|
+
a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){i[a]=function(a,c,e,f){"string"==typeof a&&(a=a.split(h));var j={};a.forEach(function(a){j[a]=i[b](a,c,e,f)});return j}});i.isReady("webshimLocalization",!0)});
|
36
|
+
(function(a,i){var l=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<l)&&(!a.browser.msie||12>l&&7<l)){var j={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(a,h){a.getAttribute("role")||a.setAttribute("role",h)};a.webshims.addReady(function(l,h){a.each(j,function(i,j){for(var k=a(i,l).add(h.filter(i)),n=0,p=k.length;n<p;n++)m(k[n],j)});if(l===i){var q=i.getElementsByTagName("header")[0],k=i.getElementsByTagName("footer"),n=k.length;
|
37
|
+
q&&!a(q).closest("section, article")[0]&&m(q,"banner");n&&(q=k[n-1],a(q).closest("section, article")[0]||m(q,"contentinfo"))}})}})(jQuery,document);
|
@@ -1,76 +1,83 @@
|
|
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
|
-
|
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";
|
9
|
-
RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(
|
10
|
-
(
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
"
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
c)
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
(
|
35
|
-
|
36
|
-
a
|
37
|
-
|
38
|
-
|
39
|
-
b
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
"
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
"
|
50
|
-
|
51
|
-
{
|
52
|
-
|
53
|
-
a.
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
(
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
d);var
|
64
|
-
|
65
|
-
if(
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
("
|
71
|
-
a,
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
1
|
+
(function(){var a=Function.prototype.call,b=Object.prototype,h=Array.prototype.slice,k,m;if(!Function.prototype.bind)Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var e=h.call(arguments,1),d=function(){if(this instanceof d){var c=function(){};c.prototype=b.prototype;var c=new c,g=b.apply(c,e.concat(h.call(arguments)));return null!==g&&Object(g)===g?g:c}return b.apply(a,e.concat(h.call(arguments)))};return d};m=a.bind(b.toString);k=a.bind(b.hasOwnProperty);
|
2
|
+
if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==m(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,b){var e=l(this),d=0,c=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;for(;d<c;)d in e&&a.call(b,e[d],d,e),d++};if(!Array.prototype.map)Array.prototype.map=function(a,b){var e=l(this),d=e.length>>>0,c=Array(d);if("[object Function]"!=m(a))throw new TypeError;for(var g=0;g<d;g++)g in e&&(c[g]=a.call(b,e[g],g,e));return c};if(!Array.prototype.filter)Array.prototype.filter=
|
3
|
+
function(a,b){var e=l(this),d=e.length>>>0,c=[];if("[object Function]"!=m(a))throw new TypeError;for(var g=0;g<d;g++)g in e&&a.call(b,e[g],g,e)&&c.push(e[g]);return c};if(!Array.prototype.every)Array.prototype.every=function(a,b){var e=l(this),d=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;for(var c=0;c<d;c++)if(c in e&&!a.call(b,e[c],c,e))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,b){var e=l(this),d=e.length>>>0;if("[object Function]"!=m(a))throw new TypeError;
|
4
|
+
for(var c=0;c<d;c++)if(c in e&&a.call(b,e[c],c,e))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var b=l(this),e=b.length>>>0;if("[object Function]"!=m(a))throw new TypeError;if(!e&&1==arguments.length)throw new TypeError;var d=0,c;if(2<=arguments.length)c=arguments[1];else{do{if(d in b){c=b[d++];break}if(++d>=e)throw new TypeError;}while(1)}for(;d<e;d++)d in b&&(c=a.call(void 0,c,b[d],d,b));return c};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var b=
|
5
|
+
l(this),e=b.length>>>0;if("[object Function]"!=m(a))throw new TypeError;if(!e&&1==arguments.length)throw new TypeError;var d,e=e-1;if(2<=arguments.length)d=arguments[1];else{do{if(e in b){d=b[e--];break}if(0>--e)throw new TypeError;}while(1)}do e in this&&(d=a.call(void 0,d,b[e],e,b));while(e--);return d};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var b=l(this),e=b.length>>>0;if(!e)return-1;var d=0;1<arguments.length&&(d=z(arguments[1]));for(d=0<=d?d:e-Math.abs(d);d<e;d++)if(d in
|
6
|
+
b&&b[d]===a)return d;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var b=l(this),e=b.length>>>0;if(!e)return-1;var d=e-1;1<arguments.length&&(d=z(arguments[1]));for(d=0<=d?d:e-Math.abs(d);0<=d;d--)if(d in b&&a===b[d])return d;return-1};if(2!=[1,2].splice(0).length){var s=Array.prototype.splice;Array.prototype.splice=function(a,b){return!arguments.length?[]:s.apply(this,[void 0===a?0:a,void 0===b?this.length-a:b].concat(h.call(arguments,2)))}}if(!Object.keys){var f=
|
7
|
+
!0,t="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),j=t.length,o;for(o in{toString:null})f=!1;Object.keys=function(a){if("object"!=typeof a&&"function"!=typeof a||null===a)throw new TypeError("Object.keys called on a non-object");var b=[],e;for(e in a)k(a,e)&&b.push(e);if(f)for(e=0;e<j;e++){var d=t[e];k(a,d)&&b.push(d)}return b}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,b,e;if(!isFinite(this))throw new RangeError;
|
8
|
+
a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(b=a.length;b--;)e=a[b],10>e&&(a[b]="0"+e);return a.slice(0,3).join("-")+"T"+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";
|
9
|
+
if(!String.prototype.trim||a.trim()){var a="["+a+"]",w=RegExp("^"+a+a+"*"),y=RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(w,"").replace(y,"")}}if("0".split(void 0,0).length){var A=String.prototype.split;String.prototype.split=function(a,b){return void 0===a&&0===b?[]:A.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var D=String.prototype.substr;String.prototype.substr=function(a,b){return D.call(this,0>a?0>(a=this.length+a)?0:a:a,b)}}var z=function(a){a=+a;
|
10
|
+
a!==a?a=-1:0!==a&&a!==1/0&&a!==-(1/0)&&(a=(0<a||-1)*Math.floor(Math.abs(a)));return a},q="a"!="a"[0],l=function(a){if(null==a)throw new TypeError;return q&&"string"==typeof a&&a?a.split(""):Object(a)}})();
|
11
|
+
(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;
|
12
|
+
if(!h||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var k=Function.prototype.call.bind(Object.prototype.hasOwnProperty);b.objectCreate=function(a,h,f,k){var j;j=function(){};j.prototype=a;j=new j;if(!k&&!("__proto__"in j)&&!Modernizr.objectAccessor)j.__proto__=a;h&&b.defineProperties(j,h);if(f)j.options=jQuery.extend(!0,{},j.options||{},f),f=j.options;j._create&&jQuery.isFunction(j._create)&&j._create(f);return j};b.defineProperties=function(a,
|
13
|
+
h){for(var f in h)k(h,f)&&b.defineProperty(a,f,h[f]);return a};b.defineProperty=function(a,b,f){if("object"!=typeof f||null===f)return a;if(k(f,"value"))return a[b]=f.value,a;a.__defineGetter__&&("function"==typeof f.get&&a.__defineGetter__(b,f.get),"function"==typeof f.set&&a.__defineSetter__(b,f.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"!==
|
14
|
+
typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var f;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return f=Object.getOwnPropertyDescriptor(a,b)}catch(h){}f={configurable:!0,enumerable:!0,writable:!0,value:void 0};var j=a.__lookupGetter__&&a.__lookupGetter__(b),o=a.__lookupSetter__&&a.__lookupSetter__(b);if(!j&&!o){if(!k(a,b))return;f.value=a[b];return f}delete f.writable;delete f.value;f.get=f.set=void 0;if(j)f.get=
|
15
|
+
j;if(o)f.set=o;return f}}})(jQuery,jQuery.webshims);
|
16
|
+
jQuery.webshims.register("dom-extend",function(a,b,h,k,m){var s=b.modules,f=/\s*,\s*/,t={},j={},o={},w={},y={},A=a.fn.val,D=function(d,c,g,b,p){return p?A.call(a(d)):A.call(a(d),g)};a.fn.val=function(d){var c=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!c||1!==c.nodeType?A.call(this):a.prop(c,"value",d,"val",!0);if(a.isArray(d))return A.apply(this,arguments);var g=a.isFunction(d);return this.each(function(b){c=this;1===c.nodeType&&(g?(b=d.call(c,b,a.prop(c,"value",m,"val",
|
17
|
+
!0)),null==b&&(b=""),a.prop(c,"value",b,"val")):a.prop(c,"value",d,"val"))})};var z="_webshimsLib"+Math.round(1E3*Math.random()),q=function(d,c,b){d=d.jquery?d[0]:d;if(!d)return b||{};var i=a.data(d,z);b!==m&&(i||(i=a.data(d,z,{})),c&&(i[c]=b));return c?i&&i[c]:i};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(d){a.fn[d.name]=function(){return this.map(function(){var a=q(this,
|
18
|
+
"shadowData");return a&&a[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){t[d]=a[d];a[d]=function(c,b,i,p,e){var r="val"==p,u=!r?t[d]:D;if(!c||!j[b]||1!==c.nodeType||!r&&p&&"attr"==d&&a.attrFn[b])return u(c,b,i,p,e);var E=(c.nodeName||"").toLowerCase(),B=o[E],C="attr"==d&&(!1===i||null===i)?"removeAttr":d,f,h,l;B||(B=o["*"]);B&&(B=B[b]);B&&(f=B[C]);if(f){if("value"==b)h=f.isVal,f.isVal=r;if("removeAttr"===C)return f.value.call(c);if(i===m)return f.get?f.get.call(c):f.value;f.set&&
|
19
|
+
("attr"==d&&!0===i&&(i=b),l=f.set.call(c,i));if("value"==b)f.isVal=h}else l=u(c,b,i,p,e);if((i!==m||"removeAttr"===C)&&y[E]&&y[E][b]){var A;A="removeAttr"==C?!1:"prop"==C?!!i:!0;y[E][b].forEach(function(a){if(!a.only||(a.only="prop"==d)||"attr"==a.only&&"prop"!=d)a.call(c,i,A,r?"val":C,d)})}return l};w[d]=function(c,g,i){o[c]||(o[c]={});o[c][g]||(o[c][g]={});var p=o[c][g][d],e=function(a,c,b){return c&&c[a]?c[a]:b&&b[a]?b[a]:"prop"==d&&"value"==g?function(a){return i.isVal?D(this,g,a,!1,0===arguments.length):
|
20
|
+
t[d](this,g,a)}:"prop"==d&&"value"==a&&i.value.apply?function(a){var c=t[d](this,g);c&&c.apply&&(c=c.apply(this,arguments));return c}:function(a){return t[d](this,g,a)}};o[c][g][d]=i;if(i.value===m){if(!i.set)i.set=i.writeable?e("set",i,p):b.cfg.useStrict&&"prop"==g?function(){throw g+" is readonly on "+c;}:a.noop;if(!i.get)i.get=e("get",i,p)}["value","get","set"].forEach(function(a){i[a]&&(i["_sup"+a]=e(a,p))})}});var l=!a.browser.msie||8<parseInt(a.browser.version,10),n=function(){var a=b.getPrototypeOf(k.createElement("foobar")),
|
21
|
+
c=Object.prototype.hasOwnProperty;return function(g,i,p){var e=k.createElement(g),r=b.getPrototypeOf(e);if(l&&r&&a!==r&&(!e[i]||!c.call(e,i))){var u=e[i];p._supvalue=function(){return u&&u.apply?u.apply(this,arguments):u};r[i]=p.value}else p._supvalue=function(){var a=q(this,"propValue");return a&&a[i]&&a[i].apply?a[i].apply(this,arguments):a&&a[i]},v.extendValue(g,i,p.value);p.value._supvalue=p._supvalue}}(),v=function(){var d={};b.addReady(function(c,g){var r={},u=function(d){r[d]||(r[d]=a(c.getElementsByTagName(d)),
|
22
|
+
g[0]&&a.nodeName(g[0],d)&&(r[d]=r[d].add(g)))};a.each(d,function(a,d){u(a);!d||!d.forEach?b.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(d){r[a].each(d)})});r=null});var c,g=a([]),i=function(b,g){d[b]?d[b].push(g):d[b]=[g];a.isDOMReady&&(c||a(k.getElementsByTagName(b))).each(g)};return{createTmpCache:function(d){a.isDOMReady&&(c=c||a(k.getElementsByTagName(d)));return c||g},flushTmpCache:function(){c=null},content:function(d,c){i(d,function(){var d=a.attr(this,c);null!=d&&a.attr(this,
|
23
|
+
c,d)})},createElement:function(a,d){i(a,d)},extendValue:function(d,c,b){i(d,function(){a(this).each(function(){q(this,"propValue",{})[c]=this[c];this[c]=b})})}}}(),e=function(a,c){if(a.defaultValue===m)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[c||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(b,{getID:function(){var d=(new Date).getTime();return function(c){var c=a(c),b=c.attr("id");b||(d++,b="ID-"+d,c.attr("id",b));
|
24
|
+
return b}}(),extendUNDEFProp:function(d,c){a.each(c,function(a,c){a in d||(d[a]=c)})},createPropDefault:e,data:q,moveToFirstEvent:function(){var d=a._data?"_data":"data";return function(c,b,i){if((c=(a[d](c,"events")||{})[b])&&1<c.length)b=c.pop(),i||(i="bind"),"bind"==i&&c.delegateCount?c.splice(c.delegateCount,0,b):c.unshift(b)}}(),addShadowDom:function(){var d,c,b,i,e={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(k).height(),this.width=a(k).width(),setInterval(function(){var d=
|
25
|
+
a(k).height(),c=a(k).width();if(d!=e.height||c!=e.width)e.height=d,e.width=c,i({type:"docresize"})},400)}};i=function(i){clearTimeout(d);d=setTimeout(function(){if("resize"==i.type){var d=a(h).width(),u=a(h).width();if(u==c&&d==b)return;c=u;b=d;e.height=a(k).height();e.width=a(k).width()}a.event.trigger("updateshadowdom")},40)};a(h).bind("resize",i);a.event.customEvent.updateshadowdom=!0;return function(d,c,b){b=b||{};d.jquery&&(d=d[0]);c.jquery&&(c=c[0]);var g=a.data(d,z)||a.data(d,z,{}),i=a.data(c,
|
26
|
+
z)||a.data(c,z,{}),f={};if(b.shadowFocusElement){if(b.shadowFocusElement){if(b.shadowFocusElement.jquery)b.shadowFocusElement=b.shadowFocusElement[0];f=a.data(b.shadowFocusElement,z)||a.data(b.shadowFocusElement,z,f)}}else b.shadowFocusElement=c;g.hasShadow=c;f.nativeElement=i.nativeElement=d;f.shadowData=i.shadowData=g.shadowData={nativeElement:d,shadowElement:c,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){q(this,"shadowData",i.shadowData)});if(b.data)f.shadowData.data=
|
27
|
+
i.shadowData.data=g.shadowData.data=b.data;b=null;e.start()}}(),propTypes:{standard:function(a){e(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){e(a);if(!a.prop)a.prop={set:function(c){c?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var d=k.createElement("a");d.style.display="none";return function(c,b){e(c);if(!c.prop)c.prop=
|
28
|
+
{set:function(a){c.attr.set.call(this,a)},get:function(){var c=this.getAttribute(b),e;if(null==c)return"";d.setAttribute("href",c+"");if(!a.support.hrefNormalized){try{a(d).insertAfter(this),e=d.getAttribute("href",4)}catch(f){e=d.getAttribute("href",4)}a(d).detach()}return e||d.href}}}}(),enumarated:function(a){e(a);if(!a.prop)a.prop={set:function(c){a.attr.set.call(this,c)},get:function(){var c=(a.attr.get.call(this)||"").toLowerCase();if(!c||-1==a.limitedTo.indexOf(c))c=a.defaultValue;return c}}}},
|
29
|
+
reflectProperties:function(d,c){"string"==typeof c&&(c=c.split(f));c.forEach(function(c){b.defineNodeNamesProperty(d,c,{prop:{set:function(b){a.attr(this,c,b)},get:function(){return a.attr(this,c)||""}}})})},defineNodeNameProperty:function(d,c,g){j[c]=!0;if(g.reflect)b.propTypes[g.propType||"standard"](g,c);["prop","attr","removeAttr"].forEach(function(e){var f=g[e];f&&(f="prop"===e?a.extend({writeable:!0},f):a.extend({},f,{writeable:!0}),w[e](d,c,f),"*"!=d&&b.cfg.extendNative&&"prop"==e&&f.value&&
|
30
|
+
a.isFunction(f.value)&&n(d,c,f),g[e]=f)});g.initAttr&&v.content(d,c);return g},defineNodeNameProperties:function(a,c,g,e){for(var f in c)!e&&c[f].initAttr&&v.createTmpCache(a),g&&(c[f][g]?b.log("override: "+a+"["+f+"] for "+g):(c[f][g]={},["value","set","get"].forEach(function(a){a in c[f]&&(c[f][g][a]=c[f][a],delete c[f][a])}))),c[f]=b.defineNodeNameProperty(a,f,c[f]);e||v.flushTmpCache();return c},createElement:function(d,c,g){var e;a.isFunction(c)&&(c={after:c});v.createTmpCache(d);c.before&&v.createElement(d,
|
31
|
+
c.before);g&&(e=b.defineNodeNameProperties(d,g,!1,!0));c.after&&v.createElement(d,c.after);v.flushTmpCache();return e},onNodeNamesPropertyModify:function(b,c,g,e){"string"==typeof b&&(b=b.split(f));a.isFunction(g)&&(g={set:g});b.forEach(function(a){y[a]||(y[a]={});"string"==typeof c&&(c=c.split(f));g.initAttr&&v.createTmpCache(a);c.forEach(function(c){y[a][c]||(y[a][c]=[],j[c]=!0);if(g.set){if(e)g.set.only=e;y[a][c].push(g.set)}g.initAttr&&v.content(a,c)});v.flushTmpCache()})},defineNodeNamesBooleanProperty:function(d,
|
32
|
+
c,g){g||(g={});if(a.isFunction(g))g.set=g;b.defineNodeNamesProperty(d,c,{attr:{set:function(a){this.setAttribute(c,a);g.set&&g.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?m:c}},removeAttr:{value:function(){this.removeAttribute(c);g.set&&g.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:g.initAttr||!1})},contentAttr:function(a,c,b){if(a.nodeName){if(b===m)return a=a.attributes[c]||{},b=a.specified?a.value:null,null==b?m:b;"boolean"==typeof b?b?a.setAttribute(c,c):
|
33
|
+
a.removeAttribute(c):a.setAttribute(c,b)}},activeLang:function(){var d=[],c={},e,f,y=/:\/\/|^\.*\//,h=function(c,d,e){return d&&e&&-1!==a.inArray(d,e.availabeLangs||[])?(c.loading=!0,e=e.langSrc,y.test(e)||(e=b.cfg.basePath+e),b.loader.loadScript(e+d+".js",function(){c.langObj[d]?(c.loading=!1,u(c,!0)):a(function(){c.langObj[d]&&u(c,!0);c.loading=!1})}),!0):!1},r=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},u=function(a,c){if(a.activeLang!=e&&a.activeLang!==f){var b=s[a.module].options;
|
34
|
+
if(a.langObj[e]||f&&a.langObj[f])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[f],e),r(a.module);else if(!c&&!h(a,e,b)&&!h(a,f,b)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),r(a.module)}};return function(b){if("string"==typeof b&&b!==e)e=b,f=e.split("-")[0],e==f&&(f=!1),a.each(d,function(a,b){u(b)});else if("object"==typeof b)if(b.register)c[b.register]||(c[b.register]=[]),c[b.register].push(b),b.callback();else{if(!b.activeLang)b.activeLang="";d.push(b);u(b)}return e}}()});
|
35
|
+
a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,c){b[a]=function(a,d,e,y){"string"==typeof a&&(a=a.split(f));var r={};a.forEach(function(a){r[a]=b[c](a,d,e,y)});return r}});b.isReady("webshimLocalization",!0)});
|
36
|
+
(function(a,b){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(a,b){a.getAttribute("role")||a.setAttribute("role",b)};a.webshims.addReady(function(h,f){a.each(k,function(b,y){for(var A=a(b,h).add(f.filter(b)),j=0,k=A.length;j<k;j++)m(A[j],y)});if(h===b){var t=b.getElementsByTagName("header")[0],j=b.getElementsByTagName("footer"),o=j.length;
|
37
|
+
t&&!a(t).closest("section, article")[0]&&m(t,"banner");o&&(t=j[o-1],a(t).closest("section, article")[0]||m(t,"contentinfo"))}})}})(jQuery,document);
|
38
|
+
(function(a,b,h){var k=b.audio&&b.video,m=!1,s=h.cfg.mediaelement,f=h.bugs,t=function(){h.ready("mediaelement-swf",function(){if(!h.mediaelement.createSWF)h.modules["mediaelement-swf"].test=a.noop,h.reTest(["mediaelement-swf"],k)})},j;if(k){var o=document.createElement("video");b.videoBuffered="buffered"in o;m="loop"in o;h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));b.videoBuffered||(h.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
|
39
|
+
test:b.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"))}if(k&&!s.preferFlash){var w=function(b){var f=b.target.parentNode;!s.preferFlash&&(a(b.target).is("audio, video")||f&&a("source:last",f)[0]==b.target)&&h.ready("DOM mediaelement",function(){j&&t();h.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){j&&!s.preferFlash&&h.mediaelement.createSWF&&!a(b.target).closest("audio, video").is(".nonnative-api-active")?(s.preferFlash=!0,document.removeEventListener("error",
|
40
|
+
w,!0),a("audio, video").mediaLoad(),h.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+b.target.src)):j||document.removeEventListener("error",w,!0)},20)})})};document.addEventListener("error",w,!0);a("audio, video").each(function(){this.error&&w({target:this})})}f.track=!1;b.track&&function(){if(!f.track)f.track="number"!=typeof a("<track />")[0].readyState;if(!f.track)try{new TextTrackCue(2,3,"")}catch(b){f.track=!0}var j=h.cfg.track,k=function(b){a(b.target).filter("track").each(m)},
|
41
|
+
m=function(){if(f.track||!j.override&&3==a.prop(this,"readyState"))j.override=!0,h.reTest("track"),document.removeEventListener("error",k,!0),this&&a.nodeName(this,"track")?h.error("track support was overwritten. Please check your vtt including your vtt mime-type"):h.info("track support was overwritten. due to bad browser support")},q=function(){document.addEventListener("error",k,!0);f.track?m():a("track").each(m)};j.override||(h.isReady("track")?q():a(q))}();h.register("mediaelement-core",function(a,
|
42
|
+
h,o,z,q){j=swfobject.hasFlashPlayerVersion("9.0.115");var l=h.mediaelement,n=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=l.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},v=!j&&"postMessage"in o&&k,e=
|
43
|
+
function(){var b;return function(){!b&&v&&(b=!0,h.loader.loadScript("https://www.youtube.com/player_api"),a(function(){h.polyfill("mediaelement-yt")}))}}(),d=function(){j?t():e()};h.addPolyfill("mediaelement-yt",{test:!v,d:["dom-support"]});l.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv",
|
44
|
+
"f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};l.mimeTypes.source=a.extend({},l.mimeTypes.audio,l.mimeTypes.video);l.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||
|
45
|
+
-1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(l.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};l.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(c)||(c=[c]),c.forEach(function(a){var c=z.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)});
|
46
|
+
else{var c=[],d=b[0].nodeName.toLowerCase(),e=n(b,d);e.src?c.push(e):a("source",b).each(function(){e=n(this,d);e.src&&c.push(e)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==q&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));l.srces(this,b);a(this).mediaLoad()})};l.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(",");
|
47
|
+
l.canThirdPlaySrces=function(b,c){var d="";if(j||v)b=a(b),c=c||l.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&(j&&-1!=l.swfMimeTypes.indexOf(b.container)||v&&"video/youtube"==b.container))return d=b,!1});return d};var c={};l.canNativePlaySrces=function(b,d){var e="";if(k){var b=a(b),f=(b[0].nodeName||"").toLowerCase();if(!c[f])return e;d=d||l.srces(b);a.each(d,function(a,d){if(d.type&&c[f].prop._supvalue.call(b[0],d.type))return e=d,!1})}return e};l.setError=function(b,c){c||(c="can't play sources");
|
48
|
+
a(b).pause().data("mediaerror",c);h.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var g=function(){var a;return function(b,c,f){h.ready(j?"mediaelement-swf":"mediaelement-yt",function(){l.createSWF?l.createSWF(b,c,f):a||(a=!0,d(),g(b,c,f))});!a&&v&&!l.createSWF&&e()}}(),i=function(a,b,c,d,e){c||!1!==c&&b&&"third"==b.isActive?(c=l.canThirdPlaySrces(a,d))?g(a,c,b):e?l.setError(a,!1):i(a,b,!1,d,!0):(c=l.canNativePlaySrces(a,d))?b&&"third"==
|
49
|
+
b.isActive&&l.setActive(a,"html5",b):e?(l.setError(a,!1),b&&"third"==b.isActive&&l.setActive(a,"html5",b)):i(a,b,!0,d,!0)},p=/^(?:embed|object|datalist)$/i,w=function(b,c){var d=h.data(b,"mediaelementBase")||h.data(b,"mediaelementBase",{}),e=l.srces(b),f=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||p.test(f.nodeName||"")))c=c||h.data(b,"mediaelement"),i(b,c,s.preferFlash||q,e)};a(z).bind("ended",function(b){var c=h.data(b.target,"mediaelement");
|
50
|
+
(!m||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});m||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var d=h.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=h.data(this,"mediaelement");w(this,a);k&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});c[b]=h.defineNodeNameProperty(b,
|
51
|
+
"canPlayType",{prop:{value:function(d){var e="";k&&c[b].prop._supvalue&&(e=c[b].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&j&&(d=a.trim((d||"").split(";")[0]),-1!=l.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});h.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=h.data(a,"mediaelementBase")||h.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){w(a);a=null},9)}});o=function(){h.addReady(function(b,c){a("video, audio",
|
52
|
+
b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<h.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(k){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,f=b.length;e<f;e++)c+=b.end(e);return c}},f=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==
|
53
|
+
a.type&&(c=e());clearTimeout(b);b=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};b.track&&!f.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});k?(h.isReady("mediaelement-core",!0),o(),h.ready("WINDOWLOAD mediaelement",d)):h.ready("mediaelement-swf",o);a(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
|
54
|
+
jQuery.webshims.register("mediaelement-swf",function(a,b,h,k,m,s){var f=b.mediaelement,t=h.swfobject,j=Modernizr.audio&&Modernizr.video,o=t.hasFlashPlayerVersion("9.0.115"),w=0,h={paused:!0,ended:!1,currentSrc:"",duration:h.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}},y=Object.keys(h),A={currentTime:0,volume:1,
|
55
|
+
muted:!1};Object.keys(A);var D=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:m},h,A),z=/^jwplayer-/,q=function(a){if(a=k.getElementById(a.replace(z,"")))return a=b.data(a,"mediaelement"),"third"==a.isActive?a:null},l=function(a){return(a=b.data(a,"mediaelement"))&&"third"==a.isActive?a:null},n=function(b,c){c=a.Event(c);c.preventDefault();a.event.trigger(c,m,b)},v=s.playerPath||b.cfg.basePath+
|
56
|
+
"jwplayer/"+(s.playerName||"player.swf"),e=s.pluginPath||b.cfg.basePath+"swf/jwwebshims.swf";b.extendUNDEFProp(s.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});b.extendUNDEFProp(s.jwVars,{screencolor:"ffffffff"});b.extendUNDEFProp(s.jwAttrs,{bgcolor:"#000000"});var d=function(b,c){var d=b.duration;if(!(d&&0<b._durationCalcs)){try{if(b.duration=b.jwapi.getPlaylist()[0].duration,!b.duration||0>=b.duration||b.duration===b._lastDuration)b.duration=d}catch(e){}b.duration&&
|
57
|
+
b.duration!=b._lastDuration?(n(b._elem,"durationchange"),("audio"==b._elemNodeName||b._callMeta)&&f.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,n(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){c(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,n(b._elem,"canplaythrough");b.readyState=a};a.extend(a.event.customEvent,
|
58
|
+
{updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});f.jwEvents={View:{PLAY:function(a){var b=q(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;n(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(b){var x=q(b.id);if(x&&"percentage"in b&&x._bufferedEnd!=b.percentage){x.networkState=100==b.percentage?1:2;(isNaN(x.duration)||5<b.percentage&&25>b.percentage||100===b.percentage)&&d(x,b);if(x.ended)x.ended=
|
59
|
+
!1;if(x.duration){2<b.percentage&&20>b.percentage?c(3,x):20<b.percentage&&c(4,x);if(x._bufferedEnd&&x._bufferedEnd>b.percentage)x._bufferedStart=x.currentTime||0;x._bufferedEnd=b.percentage;x.buffered.length=1;if(100==b.percentage)x.networkState=1,c(4,x);a.event.trigger("progress",m,x._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:q(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=
|
60
|
+
a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&c(1,b);b.duration&&d!==b.duration&&n(b._elem,"durationchange");n(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=q(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&d(b,a);2>b.readyState&&c(2,b);if(b.ended)b.ended=!1;n(b._elem,"timeupdate")}},STATE:function(a){var b=
|
61
|
+
q(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;c(1,b);n(b._elem,"waiting");break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||d(b,a);3>b.readyState&&c(3,b);if(b.ended)b.ended=!1;n(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,n(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&c(4,b),b.ended=!0,n(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=q(a.id);b&&f.setError(b._elem,a.message)},SEEK:function(a){var b=
|
62
|
+
q(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(c){}if(b.currentTime!=a.position)b.currentTime=a.position,n(b._elem,"timeupdate")}},VOLUME:function(a){var b=q(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,n(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=q(a.id);if(b&&b.muted!=a.state)b.muted=a.state,n(b._elem,"volumechange")}}}};var g=function(b){var c=!0;a.each(f.jwEvents,function(d,e){a.each(e,function(a){try{b.jwapi["add"+d+"Listener"](a,
|
63
|
+
"jQuery.webshims.mediaelement.jwEvents."+d+"."+a)}catch(e){return c=!1}})});return c},i=function(a){var b=a.actionQueue.length,c=0,d;if(b&&"third"==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=[]},p=function(b){b&&(b._ppFlag===m&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===m||!b.paused))try{a(b._elem).play()}catch(c){}},1)},H=function(b){if(b&&
|
64
|
+
"video"==b._elemNodeName){var c,d,e,f,g,h,i,l,j=function(j,k){if(k&&j&&!(1>k||1>j||"third"!=b.isActive))if(c&&(c.remove(),c=!1),f=j,g=k,clearTimeout(i),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){h=h||a(b._elem).getShadowElement();var m;d&&!e?(m=h.height(),j*=m/k,k=m):!d&&e&&(m=h.width(),k*=m/j,j=m);l=!0;setTimeout(function(){l=!1},9);h.css({width:j,height:k})}},k=function(){if(!("third"!=b.isActive||a.prop(b._elem,"readyState")&&a.prop(this,"videoWidth"))){var f=a.prop(b._elem,
|
65
|
+
"poster");if(f&&(d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e))c&&(c.remove(),c=!1),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?(j(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;
|
66
|
+
j(d,e);c&&(c.remove(),c=!1);b=null},9);a(this).unbind()}).prop("src",f).appendTo("body").each(function(){this.complete||this.error?a(this).triggerHandler("alreadycomplete"):(clearTimeout(i),i=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){j(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",k).bind("swfstageresize updatemediaelementdimensions",function(){l||j(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");
|
67
|
+
k();a.prop(b._elem,"readyState")&&j(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};f.playerResize=function(b){b&&(b=k.getElementById(b.replace(z,"")))&&a(b).triggerHandler("swfstageresize")};a(k).bind("emptied",function(a){a=l(a.target);p(a)});var r;f.jwPlayerReady=function(c){var d=q(c.id),e=0,f=function(){if(!(9<e))if(e++,g(d)){if(d.wasSwfReady)a(d._elem).mediaLoad();else{var h=parseFloat(c.version,10);(5.1>h||6<=h)&&b.warn("mediaelement-swf is only testet with jwplayer 5.6+")}d.wasSwfReady=
|
68
|
+
!0;d.tryedReframeing=0;i(d);p(d)}else clearTimeout(d.reframeTimer),d.reframeTimer=setTimeout(f,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(r);d.jwData=c;d.shadowElem.removeClass("flashblocker-assumed");a.prop(d._elem,"volume",d.volume);a.prop(d._elem,"muted",d.muted);f()}};var u=a.noop;if(j){var E={play:1,playing:1},
|
69
|
+
B="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),C=B.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)==("third"==d.activating)&&(c.stopImmediatePropagation(),E[c.type]&&d.isActive!=d.activating&&a(c.target).pause())},u=function(c){a(c).unbind(C).bind(C,I);B.forEach(function(a){b.moveToFirstEvent(c,a)})};u(k)}f.setActive=function(c,d,
|
70
|
+
e){e||(e=b.data(c,"mediaelement"));if(e&&e.isActive!=d){"html5"!=d&&"third"!=d&&b.warn("wrong type for mediaelement activating: "+d);var f=b.data(c,"shadowData");e.activating=d;a(c).pause();e.isActive=d;"third"==d?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],a(c).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(a(c).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1);a(c).trigger("mediaelementapichange")}};
|
71
|
+
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;for(c(0,d);--e;)delete d[a[e]];d.actionQueue=[];d.buffered.length=0;f&&n(d._elem,"emptied")}}}(),G=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||
|
72
|
+
a(d).width(),height:d.style.height||a(d).height()})};f.createSWF=function(c,d,g){if(o){1>w?w=1:w++;var h=a.extend({},s.jwVars,{image:a.prop(c,"poster")||"",file:d.srcProp}),i=a(c).data("jwvars")||{};g||(g=b.data(c,"mediaelement"));if(g&&g.swfCreated)f.setActive(c,"third",g),J(g),g.currentSrc=d.srcProp,a.extend(h,i),s.changeJW(h,c,d,g,"load"),F(c,"sendEvent",["LOAD",h]);else{var l=a.prop(c,"controls"),k="jwplayer-"+b.getID(c),m=a.extend({},s.jwParams,a(c).data("jwparams")),n=c.nodeName.toLowerCase(),
|
73
|
+
q=a.extend({},s.jwAttrs,{name:k,id:k},a(c).data("jwattrs")),p=a('<div class="polyfill-'+n+' polyfill-mediaelement" id="wrapper-'+k+'"><div id="'+k+'"></div>').css({position:"relative",overflow:"hidden"}),g=b.data(c,"mediaelement",b.objectCreate(D,{actionQueue:{value:[]},shadowElem:{value:p},_elemNodeName:{value:n},_elem:{value:c},currentSrc:{value:d.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=g.buffered.length)b.error("buffered index size error");else return 0},end:function(a){if(a>=
|
74
|
+
g.buffered.length)b.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));G(g,l);p.insertBefore(c);j&&a.extend(g,{volume:a.prop(c,"volume"),muted:a.prop(c,"muted")});a.extend(h,{id:k,controlbar:l?s.jwVars.controlbar||("video"==n?"over":"bottom"):"video"==n?"none":"bottom",icons:""+(l&&"video"==n)},i,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});h.plugins=h.plugins?h.plugins+(","+e):e;b.addShadowDom(c,p);u(c);f.setActive(c,
|
75
|
+
"third",g);s.changeJW(h,c,d,g,"embed");a(c).bind("updatemediaelementdimensions updateshadowdom",function(){G(g,a.prop(c,"controls"))});H(g);t.embedSWF(v,k,"100%","100%","9.0.0",!1,h,m,q,function(d){if(d.success)g.jwapi=d.ref,l||a(d.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!d.ref.parentNode&&p[0].parentNode||"none"==d.ref.style.display)p.addClass("flashblocker-assumed"),a(c).trigger("flashblocker"),b.warn("flashblocker assumed");a(d.ref).css({minHeight:"2px",minWidth:"2px",
|
76
|
+
display:"block"})},9),r||(clearTimeout(r),r=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"):(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()},
|
77
|
+
1)};var F=function(a,b,c,d){return(d=d||l(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={},e,f=function(a){"audio"==c&&("videoHeight"==a||"videoWidth"==a)||(d[a]={get:function(){var b=l(this);return b?b[a]:j&&e[a].prop._supget?e[a].prop._supget.apply(this):D[a]},writeable:!1})},g=function(a,b){f(a);delete d[a].writeable;
|
78
|
+
d[a].set=b};g("volume",function(a){var c=l(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);F(this,"sendEvent",["VOLUME",a],c);if(d)try{c.jwapi.sendEvent("mute","true")}catch(f){}a/=100;if(!(c.volume==a||"third"!=c.isActive))c.volume=a,n(c._elem,"volumechange")}}else if(e.volume.prop._supset)return e.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=l(this);if(b){if(a=!!a,F(this,"sendEvent",["mute",""+a],b),!(b.muted==
|
79
|
+
a||"third"!=b.isActive))b.muted=a,n(b._elem,"volumechange")}else if(e.muted.prop._supset)return e.muted.prop._supset.apply(this,arguments)});g("currentTime",function(a){var b=l(this);if(b){if(a*=1,!isNaN(a)){if(b.paused)clearTimeout(b.stopPlayPause),b.stopPlayPause=setTimeout(function(){b.paused=!0;b.stopPlayPause=!1},50);F(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,n(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(e.currentTime.prop._supset)return e.currentTime.prop._supset.apply(this,
|
80
|
+
arguments)});["play","pause"].forEach(function(a){d[a]={value:function(){var b=l(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),F(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,n(b._elem,a)},1);else if(e[a].prop._supvalue)return e[a].prop._supvalue.apply(this,arguments)}}});y.forEach(f);b.onNodeNamesPropertyModify(c,"controls",function(d,e){var f=l(this);a(this)[e?"addClass":"removeClass"]("webshims-controls");
|
81
|
+
if(f){try{F(this,e?"showControls":"hideControls",[c],f)}catch(g){b.warn("you need to generate a crossdomain.xml")}"audio"==c&&G(f,e);a(f.jwapi).attr("tabindex",e?"0":"-1")}});e=b.defineNodeNameProperties(c,d,"prop")});if(o){var K=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)&&w)for(b=0;b<c;b++)if(M[a[b].nodeName]){if("sendEvent"in a[b]){w--;try{a[b].sendEvent("play",!1)}catch(e){}}if(L)try{for(d in a[b])"function"==typeof a[b][d]&&
|
82
|
+
(a[b][d]=null)}catch(f){}}return K.apply(this,arguments)}}j||(["poster","src"].forEach(function(a){b.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["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},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},
|
83
|
+
NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"))});
|
@@ -1,42 +1,44 @@
|
|
1
|
-
(function(a){
|
2
|
-
|
3
|
-
|
4
|
-
"
|
5
|
-
("
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
b;
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
(
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
a.
|
28
|
-
|
29
|
-
a(this
|
30
|
-
|
31
|
-
|
32
|
-
c.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
b
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
1
|
+
jQuery.webshims.register("dom-extend",function(a,h,o,l,p){var n=h.modules,r=/\s*,\s*/,q={},x={},s={},w={},t={},v=a.fn.val,b=function(g,d,k,b,c){return c?v.call(a(g)):v.call(a(g),k)};a.fn.val=function(g){var d=this[0];arguments.length&&null==g&&(g="");if(!arguments.length)return!d||1!==d.nodeType?v.call(this):a.prop(d,"value",g,"val",!0);if(a.isArray(g))return v.apply(this,arguments);var k=a.isFunction(g);return this.each(function(b){d=this;1===d.nodeType&&(k?(b=g.call(d,b,a.prop(d,"value",p,"val",
|
2
|
+
!0)),null==b&&(b=""),a.prop(d,"value",b,"val")):a.prop(d,"value",g,"val"))})};var c="_webshimsLib"+Math.round(1E3*Math.random()),f=function(g,d,k){g=g.jquery?g[0]:g;if(!g)return k||{};var b=a.data(g,c);k!==p&&(b||(b=a.data(g,c,{})),d&&(b[d]=k));return d?b&&b[d]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(g){a.fn[g.name]=function(){return this.map(function(){var a=f(this,
|
3
|
+
"shadowData");return a&&a[g.prop]||this})}});["removeAttr","prop","attr"].forEach(function(g){q[g]=a[g];a[g]=function(d,k,c,m,f){var e="val"==m,u=!e?q[g]:b;if(!d||!x[k]||1!==d.nodeType||!e&&m&&"attr"==g&&a.attrFn[k])return u(d,k,c,m,f);var z=(d.nodeName||"").toLowerCase(),i=s[z],h="attr"==g&&(!1===c||null===c)?"removeAttr":g,j,n,l;i||(i=s["*"]);i&&(i=i[k]);i&&(j=i[h]);if(j){if("value"==k)n=j.isVal,j.isVal=e;if("removeAttr"===h)return j.value.call(d);if(c===p)return j.get?j.get.call(d):j.value;j.set&&
|
4
|
+
("attr"==g&&!0===c&&(c=k),l=j.set.call(d,c));if("value"==k)j.isVal=n}else l=u(d,k,c,m,f);if((c!==p||"removeAttr"===h)&&t[z]&&t[z][k]){var r;r="removeAttr"==h?!1:"prop"==h?!!c:!0;t[z][k].forEach(function(a){if(!a.only||(a.only="prop"==g)||"attr"==a.only&&"prop"!=g)a.call(d,c,r,e?"val":h,g)})}return l};w[g]=function(d,k,c){s[d]||(s[d]={});s[d][k]||(s[d][k]={});var m=s[d][k][g],f=function(a,d,m){return d&&d[a]?d[a]:m&&m[a]?m[a]:"prop"==g&&"value"==k?function(a){return c.isVal?b(this,k,a,!1,0===arguments.length):
|
5
|
+
q[g](this,k,a)}:"prop"==g&&"value"==a&&c.value.apply?function(a){var d=q[g](this,k);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(a){return q[g](this,k,a)}};s[d][k][g]=c;if(c.value===p){if(!c.set)c.set=c.writeable?f("set",c,m):h.cfg.useStrict&&"prop"==k?function(){throw k+" is readonly on "+d;}:a.noop;if(!c.get)c.get=f("get",c,m)}["value","get","set"].forEach(function(a){c[a]&&(c["_sup"+a]=f(a,m))})}});var e=!a.browser.msie||8<parseInt(a.browser.version,10),u=function(){var a=h.getPrototypeOf(l.createElement("foobar")),
|
6
|
+
d=Object.prototype.hasOwnProperty;return function(b,c,m){var y=l.createElement(b),u=h.getPrototypeOf(y);if(e&&u&&a!==u&&(!y[c]||!d.call(y,c))){var j=y[c];m._supvalue=function(){return j&&j.apply?j.apply(this,arguments):j};u[c]=m.value}else m._supvalue=function(){var a=f(this,"propValue");return a&&a[c]&&a[c].apply?a[c].apply(this,arguments):a&&a[c]},i.extendValue(b,c,m.value);m.value._supvalue=m._supvalue}}(),i=function(){var g={};h.addReady(function(d,c){var b={},k=function(g){b[g]||(b[g]=a(d.getElementsByTagName(g)),
|
7
|
+
c[0]&&a.nodeName(c[0],g)&&(b[g]=b[g].add(c)))};a.each(g,function(a,g){k(a);!g||!g.forEach?h.warn("Error: with "+a+"-property. methods: "+g):g.forEach(function(g){b[a].each(g)})});b=null});var d,b=a([]),c=function(b,c){g[b]?g[b].push(c):g[b]=[c];a.isDOMReady&&(d||a(l.getElementsByTagName(b))).each(c)};return{createTmpCache:function(g){a.isDOMReady&&(d=d||a(l.getElementsByTagName(g)));return d||b},flushTmpCache:function(){d=null},content:function(g,d){c(g,function(){var g=a.attr(this,d);null!=g&&a.attr(this,
|
8
|
+
d,g)})},createElement:function(a,g){c(a,g)},extendValue:function(g,d,b){c(g,function(){a(this).each(function(){f(this,"propValue",{})[d]=this[d];this[d]=b})})}}}(),j=function(a,d){if(a.defaultValue===p)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[d||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(h,{getID:function(){var g=(new Date).getTime();return function(d){var d=a(d),b=d.attr("id");b||(g++,b="ID-"+g,d.attr("id",b));
|
9
|
+
return b}}(),extendUNDEFProp:function(g,d){a.each(d,function(a,d){a in g||(g[a]=d)})},createPropDefault:j,data:f,moveToFirstEvent:function(){var g=a._data?"_data":"data";return function(d,b,c){if((d=(a[g](d,"events")||{})[b])&&1<d.length)b=d.pop(),c||(c="bind"),"bind"==c&&d.delegateCount?d.splice(d.delegateCount,0,b):d.unshift(b)}}(),addShadowDom:function(){var g,d,b,e,m={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(l).height(),this.width=a(l).width(),setInterval(function(){var g=
|
10
|
+
a(l).height(),d=a(l).width();if(g!=m.height||d!=m.width)m.height=g,m.width=d,e({type:"docresize"})},400)}};e=function(c){clearTimeout(g);g=setTimeout(function(){if("resize"==c.type){var g=a(o).width(),f=a(o).width();if(f==d&&g==b)return;d=f;b=g;m.height=a(l).height();m.width=a(l).width()}a.event.trigger("updateshadowdom")},40)};a(o).bind("resize",e);a.event.customEvent.updateshadowdom=!0;return function(g,d,b){b=b||{};g.jquery&&(g=g[0]);d.jquery&&(d=d[0]);var k=a.data(g,c)||a.data(g,c,{}),e=a.data(d,
|
11
|
+
c)||a.data(d,c,{}),i={};if(b.shadowFocusElement){if(b.shadowFocusElement){if(b.shadowFocusElement.jquery)b.shadowFocusElement=b.shadowFocusElement[0];i=a.data(b.shadowFocusElement,c)||a.data(b.shadowFocusElement,c,i)}}else b.shadowFocusElement=d;k.hasShadow=d;i.nativeElement=e.nativeElement=g;i.shadowData=e.shadowData=k.shadowData={nativeElement:g,shadowElement:d,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){f(this,"shadowData",e.shadowData)});if(b.data)i.shadowData.data=
|
12
|
+
e.shadowData.data=k.shadowData.data=b.data;b=null;m.start()}}(),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,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var b=l.createElement("a");b.style.display="none";return function(d,c){j(d);if(!d.prop)d.prop=
|
13
|
+
{set:function(a){d.attr.set.call(this,a)},get:function(){var d=this.getAttribute(c),f;if(null==d)return"";b.setAttribute("href",d+"");if(!a.support.hrefNormalized){try{a(b).insertAfter(this),f=b.getAttribute("href",4)}catch(e){f=b.getAttribute("href",4)}a(b).detach()}return f||b.href}}}}(),enumarated:function(a){j(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,b)},get:function(){var b=(a.attr.get.call(this)||"").toLowerCase();if(!b||-1==a.limitedTo.indexOf(b))b=a.defaultValue;return b}}}},
|
14
|
+
reflectProperties:function(b,d){"string"==typeof d&&(d=d.split(r));d.forEach(function(d){h.defineNodeNamesProperty(b,d,{prop:{set:function(b){a.attr(this,d,b)},get:function(){return a.attr(this,d)||""}}})})},defineNodeNameProperty:function(b,d,c){x[d]=!0;if(c.reflect)h.propTypes[c.propType||"standard"](c,d);["prop","attr","removeAttr"].forEach(function(f){var e=c[f];e&&(e="prop"===f?a.extend({writeable:!0},e):a.extend({},e,{writeable:!0}),w[f](b,d,e),"*"!=b&&h.cfg.extendNative&&"prop"==f&&e.value&&
|
15
|
+
a.isFunction(e.value)&&u(b,d,e),c[f]=e)});c.initAttr&&i.content(b,d);return c},defineNodeNameProperties:function(a,b,c,f){for(var e in b)!f&&b[e].initAttr&&i.createTmpCache(a),c&&(b[e][c]?h.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]=h.defineNodeNameProperty(a,e,b[e]);f||i.flushTmpCache();return b},createElement:function(b,c,e){var f;a.isFunction(c)&&(c={after:c});i.createTmpCache(b);c.before&&i.createElement(b,
|
16
|
+
c.before);e&&(f=h.defineNodeNameProperties(b,e,!1,!0));c.after&&i.createElement(b,c.after);i.flushTmpCache();return f},onNodeNamesPropertyModify:function(b,c,e,f){"string"==typeof b&&(b=b.split(r));a.isFunction(e)&&(e={set:e});b.forEach(function(a){t[a]||(t[a]={});"string"==typeof c&&(c=c.split(r));e.initAttr&&i.createTmpCache(a);c.forEach(function(b){t[a][b]||(t[a][b]=[],x[b]=!0);if(e.set){if(f)e.set.only=f;t[a][b].push(e.set)}e.initAttr&&i.content(a,b)});i.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,
|
17
|
+
c,e){e||(e={});if(a.isFunction(e))e.set=e;h.defineNodeNamesProperty(b,c,{attr:{set:function(a){this.setAttribute(c,a);e.set&&e.set.call(this,!0)},get:function(){return null==this.getAttribute(c)?p:c}},removeAttr:{value:function(){this.removeAttribute(c);e.set&&e.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:e.initAttr||!1})},contentAttr:function(a,b,c){if(a.nodeName){if(c===p)return a=a.attributes[b]||{},c=a.specified?a.value:null,null==c?p:c;"boolean"==typeof c?c?a.setAttribute(b,b):
|
18
|
+
a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var b=[],c={},e,f,i=/:\/\/|^\.*\//,u=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,i.test(d)||(d=h.cfg.basePath+d),h.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,l(b,!0)):a(function(){b.langObj[c]&&l(b,!0);b.loading=!1})}),!0):!1},j=function(a){c[a]&&c[a].forEach(function(a){a.callback()})},l=function(a,b){if(a.activeLang!=e&&a.activeLang!==f){var c=n[a.module].options;
|
19
|
+
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&&!u(a,e,c)&&!u(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),j(a.module)}};return function(i){if("string"==typeof i&&i!==e)e=i,f=e.split("-")[0],e==f&&(f=!1),a.each(b,function(a,b){l(b)});else if("object"==typeof i)if(i.register)c[i.register]||(c[i.register]=[]),c[i.register].push(i),i.callback();else{if(!i.activeLang)i.activeLang="";b.push(i);l(i)}return e}}()});
|
20
|
+
a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){h[a]=function(a,c,e,g){"string"==typeof a&&(a=a.split(r));var f={};a.forEach(function(a){f[a]=h[b](a,c,e,g)});return f}});h.isReady("webshimLocalization",!0)});
|
21
|
+
(function(a,h){var o=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<o)&&(!a.browser.msie||12>o&&7<o)){var l={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(a,h){a.getAttribute("role")||a.setAttribute("role",h)};a.webshims.addReady(function(n,r){a.each(l,function(h,l){for(var o=a(h,n).add(r.filter(h)),b=0,c=o.length;b<c;b++)p(o[b],l)});if(n===h){var q=h.getElementsByTagName("header")[0],o=h.getElementsByTagName("footer"),s=o.length;
|
22
|
+
q&&!a(q).closest("section, article")[0]&&p(q,"banner");s&&(q=o[s-1],a(q).closest("section, article")[0]||p(q,"contentinfo"))}})}})(jQuery,document);
|
23
|
+
jQuery.webshims.register("form-datalist",function(a,h,o,l,p){h.propTypes.element=function(n){h.createPropDefault(n,"attr");if(!n.prop)n.prop={get:function(){var h=n.attr.get.call(this);h&&(h=l.getElementById(h))&&n.propNodeName&&!a.nodeName(h,n.propNodeName)&&(h=null);return h||null},writeable:!1}};(function(){var n=a.webshims.cfg.forms,r=Modernizr.input.list;if(!r||n.customDatalist){var q=0,x={submit:1,button:1,reset:1,hidden:1,range:1,date:1},s=a.browser.msie&&7>parseInt(a.browser.version,10),w=
|
24
|
+
{},t=function(a){if(!a)return[];if(w[a])return w[a];var c;try{c=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(f){}w[a]=c||[];return c||[]},v={_create:function(b){if(!x[a.prop(b.input,"type")]){var c=b.datalist,f=a.data(b.input,"datalistWidget");if(c&&f&&f.datalist!==c)f.datalist=c,f.id=b.id,f.shadowList.prop("className","datalist-polyfill "+(f.datalist.className||"")+" "+f.datalist.id+"-shadowdom"),n.positionDatalist?f.shadowList.insertAfter(b.input):f.shadowList.appendTo("body"),
|
25
|
+
a(f.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(f,"_resetListCached")),f._resetListCached();else if(c){if(!(f&&f.datalist===c)){q++;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 '+
|
26
|
+
(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom" />');n.positionDatalist||a(b.input).hasClass("position-datalist")?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 f=a("li:not(.hidden-item)",e.shadowList),h="mousedown"==c.type||"click"==c.type;e.markItem(f.index(c.currentTarget),h,f);"click"==
|
27
|
+
c.type&&(e.hideList(),n.customDatalist&&a(b.input).trigger("datalistselect"));return"mousedown"!=c.type}).bind("focusout",this.timedHide);b.input.setAttribute("autocomplete","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 f=c.keyCode,h;if(40==f&&!e.showList())return e.markItem(e.index+1,!0),!1;if(e.isListVisible){if(38==f)return e.markItem(e.index-
|
28
|
+
1,!0),!1;if(!c.shiftKey&&(33==f||36==f))return e.markItem(0,!0),!1;if(!c.shiftKey&&(34==f||35==f))return c=a("li:not(.hidden-item)",e.shadowList),e.markItem(c.length-1,!0,c),!1;if(13==f||27==f)return 13==f&&(h=a("li.active-item:not(.hidden-item)",e.shadowList),e.changeValue(a("li.active-item:not(.hidden-item)",e.shadowList))),e.hideList(),n.customDatalist&&h&&h[0]&&a(b.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&e.showList()}).bind("mousedown.datalistWidget",
|
29
|
+
function(){a(this).is(":focus")&&e.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(this,"_resetListCached"));this._resetListCached();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")&&"off"!=e._autocomplete){var c=a.prop(b.input,"value"),f=(b.input.name||b.input.id)+a.prop(b.input,"type");
|
30
|
+
if(!e.storedOptions)e.storedOptions=t(f);if(c&&-1==e.storedOptions.indexOf(c)&&(e.storedOptions.push(c),c=e.storedOptions,f)){c=c||[];try{localStorage.setItem("storedDatalistOptions"+f,JSON.stringify(c))}catch(h){}}}});a(o).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){e.destroy()})}}else f&&f.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(l).unbind(".datalist"+
|
31
|
+
this.id);a(o).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"):a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var c=this,f;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(o.QUnit||(f=a&&l.activeElement==c.input)?c.updateListOptions(f):h.ready("WINDOWLOAD",function(){c.updateTimer=
|
32
|
+
setTimeout(function(){c.updateListOptions();c=null;q=1},200+100*q)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.css(this.input,"fontSize"),fontFamily:a.css(this.input,"fontFamily")});this.searchStart=n.customDatalist&&a(this.input).hasClass("search-start");var c=[],f=[],e=[],h,i,j,g;for(i=a.prop(this.datalist,"options"),j=0,g=i.length;j<g;j++){h=i[j];if(h.disabled)return;h={value:a(h).val()||"",text:a.trim(a.attr(h,
|
33
|
+
"label")||h.textContent||h.innerText||a.text([h])||""),className:h.className||"",style:a.attr(h,"style")||""};h.text?h.text!=h.value&&(h.className+=" different-label-value"):h.text=h.value;f[j]=h.value;e[j]=h}if(!this.storedOptions)this.storedOptions=a(this.input).hasClass("no-datalist-cache")||"off"==this._autocomplete?[]:t((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==f.indexOf(a)&&e.push({value:a,text:a,className:"stored-suggest",style:""})});
|
34
|
+
for(j=0,g=e.length;j<g;j++)i=e[j],c[j]='<li class="'+i.className+'" style="'+i.style+'" tabindex="-1" role="listitem"><span class="option-label">'+i.text+'</span> <span class="option-value">'+i.value+"</span></li>";this.arrayOptions=e;this.shadowList.html('<div class="datalist-outer-box"><div class="datalist-box"><ul role="list">'+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,
|
35
|
+
"value").toLowerCase();if(!(c===this.lastUpdatedValue||this.lastUnfoundValue&&0===c.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=c;var f=!1,e=this.searchStart,h=a("li",this.shadowList);c?this.arrayOptions.forEach(function(b,j){var g;if(!("lowerText"in b))b.lowerText=b.text!=b.value?b.value.toLowerCase()+b.text.toLowerCase():b.text.toLowerCase();g=b.lowerText.indexOf(c);(g=e?!g:-1!==g)?(a(h[j]).removeClass("hidden-item"),f=!0):a(h[j]).addClass("hidden-item")}):h.length&&(h.removeClass("hidden-item"),
|
36
|
+
f=!0);this.hasViewableData=f;!b&&f&&this.showList();if(!f)this.lastUnfoundValue=c,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var b=n.positionDatalist?a(this.input).position():h.getRelOffset(this.shadowList,this.input);b.top+=a(this.input).outerHeight();b.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css({marginTop:"",
|
37
|
+
marginLeft:"",marginRight:"",marginBottom:""}).css(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;b.setPos();b.shadowList.addClass("datalist-visible").find("li.active-item").removeClass("active-item");a(o).unbind(".datalist"+b.id);a(l).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(c){c.target===b.input||
|
38
|
+
b.shadowList[0]===c.target||a.contains(b.shadowList[0],c.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()}).bind("updateshadowdom.datalist"+b.id,function(){b.setPos()});return!0},hideList:function(){if(!this.isListVisible)return!1;var 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=
|
39
|
+
!0;h.triggerInlineForm&&h.triggerInlineForm(b.input,"input");if(a(b.input).is(":focus"))a(b.input).one("blur",c);else c();b.triggeredByDatalist=!1}a(l).unbind(".datalist"+b.id);a(o).unbind(".datalist"+b.id).one("resize.datalist"+b.id,function(){b.shadowList.css({top:0,left:0})});return!0},scrollIntoView:function(b){var c=a("ul",this.shadowList),f=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"),
|
40
|
+
10)||0);0>e.top?f.scrollTop(f.scrollTop()+e.top-2):(e.top+=b.outerHeight(),b=f.height(),e.top>b&&f.scrollTop(f.scrollTop()+(e.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",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,f){f=f||a("li:not(.hidden-item)",this.shadowList);if(f.length)0>b?b=f.length-1:b>=f.length&&(b=0),f.removeClass("active-item"),this.shadowList.addClass("list-item-active"),
|
41
|
+
f=f.filter(":eq("+b+")").addClass("active-item"),c&&(this.changeValue(f),this.scrollIntoView(f)),this.index=b}};(function(){r||h.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=a("select",this);b[0]?b=b[0].options:(b=a("option",this).get(),b.length&&h.warn("you should wrap your 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?
|
42
|
+
b._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(b){var f=a.data(this,"datalistWidget");f?(f._autocomplete=b,"off"==b&&f.hideList()):"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",b)}}}};r?((a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length||h.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var f=a("select",this);
|
43
|
+
if(f[0]&&f[0].options&&f[0].options.length)b=f[0].options}return b}}}),b.list={attr:{get:function(){var b=h.contentAttr(this,"list");null!=b?this.removeAttribute("list"):b=a.data(this,"datalistListAttr");return null==b?p:b},set:function(b){a.data(this,"datalistListAttr",b);h.objectCreate(v,p,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}):b.list={attr:{get:function(){var a=h.contentAttr(this,"list");return null==a?p:a},set:function(b){h.contentAttr(this,
|
44
|
+
"list",b);h.objectCreate(v,p,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};h.defineNodeNameProperties("input",b);if(a.event.customEvent)a.event.customEvent.updateDatalist=!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;h.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
|
@@ -1,38 +1,43 @@
|
|
1
|
-
(function(c){
|
2
|
-
|
3
|
-
|
4
|
-
"
|
5
|
-
("
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
a;
|
12
|
-
|
13
|
-
|
14
|
-
b,
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
(
|
20
|
-
|
21
|
-
(function(c,
|
22
|
-
|
23
|
-
c
|
24
|
-
|
25
|
-
c
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
"
|
30
|
-
"
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
"
|
36
|
-
function(
|
37
|
-
"
|
38
|
-
|
1
|
+
jQuery.webshims.register("dom-extend",function(c,h,k,m,p){var w=h.modules,q=/\s*,\s*/,r={},n={},i={},u={},f={},g=c.fn.val,E=function(b,a,d,e,o){return o?g.call(c(b)):g.call(c(b),d)};c.fn.val=function(b){var a=this[0];arguments.length&&null==b&&(b="");if(!arguments.length)return!a||1!==a.nodeType?g.call(this):c.prop(a,"value",b,"val",!0);if(c.isArray(b))return g.apply(this,arguments);var d=c.isFunction(b);return this.each(function(e){a=this;1===a.nodeType&&(d?(e=b.call(a,e,c.prop(a,"value",p,"val",
|
2
|
+
!0)),null==e&&(e=""),c.prop(a,"value",e,"val")):c.prop(a,"value",b,"val"))})};var x="_webshimsLib"+Math.round(1E3*Math.random()),C=function(b,a,d){b=b.jquery?b[0]:b;if(!b)return d||{};var e=c.data(b,x);d!==p&&(e||(e=c.data(b,x,{})),a&&(e[a]=d));return a?e&&e[a]:e};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(b){c.fn[b.name]=function(){return this.map(function(){var a=C(this,
|
3
|
+
"shadowData");return a&&a[b.prop]||this})}});["removeAttr","prop","attr"].forEach(function(b){r[b]=c[b];c[b]=function(a,d,e,o,A){var j="val"==o,s=!j?r[b]:E;if(!a||!n[d]||1!==a.nodeType||!j&&o&&"attr"==b&&c.attrFn[d])return s(a,d,e,o,A);var v=(a.nodeName||"").toLowerCase(),z=i[v],B="attr"==b&&(!1===e||null===e)?"removeAttr":b,g,h,l;z||(z=i["*"]);z&&(z=z[d]);z&&(g=z[B]);if(g){if("value"==d)h=g.isVal,g.isVal=j;if("removeAttr"===B)return g.value.call(a);if(e===p)return g.get?g.get.call(a):g.value;g.set&&
|
4
|
+
("attr"==b&&!0===e&&(e=d),l=g.set.call(a,e));if("value"==d)g.isVal=h}else l=s(a,d,e,o,A);if((e!==p||"removeAttr"===B)&&f[v]&&f[v][d]){var u;u="removeAttr"==B?!1:"prop"==B?!!e:!0;f[v][d].forEach(function(d){if(!d.only||(d.only="prop"==b)||"attr"==d.only&&"prop"!=b)d.call(a,e,u,j?"val":B,b)})}return l};u[b]=function(a,d,e){i[a]||(i[a]={});i[a][d]||(i[a][d]={});var o=i[a][d][b],f=function(a,c,v){return c&&c[a]?c[a]:v&&v[a]?v[a]:"prop"==b&&"value"==d?function(a){return e.isVal?E(this,d,a,!1,0===arguments.length):
|
5
|
+
r[b](this,d,a)}:"prop"==b&&"value"==a&&e.value.apply?function(a){var j=r[b](this,d);j&&j.apply&&(j=j.apply(this,arguments));return j}:function(a){return r[b](this,d,a)}};i[a][d][b]=e;if(e.value===p){if(!e.set)e.set=e.writeable?f("set",e,o):h.cfg.useStrict&&"prop"==d?function(){throw d+" is readonly on "+a;}:c.noop;if(!e.get)e.get=f("get",e,o)}["value","get","set"].forEach(function(a){e[a]&&(e["_sup"+a]=f(a,o))})}});var l=!c.browser.msie||8<parseInt(c.browser.version,10),D=function(){var b=h.getPrototypeOf(m.createElement("foobar")),
|
6
|
+
a=Object.prototype.hasOwnProperty;return function(d,c,o){var f=m.createElement(d),j=h.getPrototypeOf(f);if(l&&j&&b!==j&&(!f[c]||!a.call(f,c))){var s=f[c];o._supvalue=function(){return s&&s.apply?s.apply(this,arguments):s};j[c]=o.value}else o._supvalue=function(){var a=C(this,"propValue");return a&&a[c]&&a[c].apply?a[c].apply(this,arguments):a&&a[c]},t.extendValue(d,c,o.value);o.value._supvalue=o._supvalue}}(),t=function(){var b={};h.addReady(function(a,d){var j={},s=function(b){j[b]||(j[b]=c(a.getElementsByTagName(b)),
|
7
|
+
d[0]&&c.nodeName(d[0],b)&&(j[b]=j[b].add(d)))};c.each(b,function(a,b){s(a);!b||!b.forEach?h.warn("Error: with "+a+"-property. methods: "+b):b.forEach(function(b){j[a].each(b)})});j=null});var a,d=c([]),e=function(d,e){b[d]?b[d].push(e):b[d]=[e];c.isDOMReady&&(a||c(m.getElementsByTagName(d))).each(e)};return{createTmpCache:function(b){c.isDOMReady&&(a=a||c(m.getElementsByTagName(b)));return a||d},flushTmpCache:function(){a=null},content:function(a,b){e(a,function(){var a=c.attr(this,b);null!=a&&c.attr(this,
|
8
|
+
b,a)})},createElement:function(a,b){e(a,b)},extendValue:function(a,b,d){e(a,function(){c(this).each(function(){C(this,"propValue",{})[b]=this[b];this[b]=d})})}}}(),y=function(b,a){if(b.defaultValue===p)b.defaultValue="";if(!b.removeAttr)b.removeAttr={value:function(){b[a||"prop"].set.call(this,b.defaultValue);b.removeAttr._supvalue.call(this)}};if(!b.attr)b.attr={}};c.extend(h,{getID:function(){var b=(new Date).getTime();return function(a){var a=c(a),d=a.attr("id");d||(b++,d="ID-"+b,a.attr("id",d));
|
9
|
+
return d}}(),extendUNDEFProp:function(b,a){c.each(a,function(a,c){a in b||(b[a]=c)})},createPropDefault:y,data:C,moveToFirstEvent:function(){var b=c._data?"_data":"data";return function(a,d,e){if((a=(c[b](a,"events")||{})[d])&&1<a.length)d=a.pop(),e||(e="bind"),"bind"==e&&a.delegateCount?a.splice(a.delegateCount,0,d):a.unshift(d)}}(),addShadowDom:function(){var b,a,d,e,f={init:!1,start:function(){if(!this.init)this.init=!0,this.height=c(m).height(),this.width=c(m).width(),setInterval(function(){var a=
|
10
|
+
c(m).height(),b=c(m).width();if(a!=f.height||b!=f.width)f.height=a,f.width=b,e({type:"docresize"})},400)}};e=function(e){clearTimeout(b);b=setTimeout(function(){if("resize"==e.type){var b=c(k).width(),s=c(k).width();if(s==a&&b==d)return;a=s;d=b;f.height=c(m).height();f.width=c(m).width()}c.event.trigger("updateshadowdom")},40)};c(k).bind("resize",e);c.event.customEvent.updateshadowdom=!0;return function(a,b,d){d=d||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);var v=c.data(a,x)||c.data(a,x,{}),e=c.data(b,
|
11
|
+
x)||c.data(b,x,{}),g={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];g=c.data(d.shadowFocusElement,x)||c.data(d.shadowFocusElement,x,g)}}else d.shadowFocusElement=b;v.hasShadow=b;g.nativeElement=e.nativeElement=a;g.shadowData=e.shadowData=v.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){C(this,"shadowData",e.shadowData)});if(d.data)g.shadowData.data=
|
12
|
+
e.shadowData.data=v.shadowData.data=d.data;d=null;f.start()}}(),propTypes:{standard:function(b){y(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,""+a)},get:function(){return b.attr.get.call(this)||b.defaultValue}}},"boolean":function(b){y(b);if(!b.prop)b.prop={set:function(a){a?b.attr.set.call(this,""):b.removeAttr.value.call(this)},get:function(){return null!=b.attr.get.call(this)}}},src:function(){var b=m.createElement("a");b.style.display="none";return function(a,d){y(a);if(!a.prop)a.prop=
|
13
|
+
{set:function(b){a.attr.set.call(this,b)},get:function(){var a=this.getAttribute(d),f;if(null==a)return"";b.setAttribute("href",a+"");if(!c.support.hrefNormalized){try{c(b).insertAfter(this),f=b.getAttribute("href",4)}catch(g){f=b.getAttribute("href",4)}c(b).detach()}return f||b.href}}}}(),enumarated:function(b){y(b);if(!b.prop)b.prop={set:function(a){b.attr.set.call(this,a)},get:function(){var a=(b.attr.get.call(this)||"").toLowerCase();if(!a||-1==b.limitedTo.indexOf(a))a=b.defaultValue;return a}}}},
|
14
|
+
reflectProperties:function(b,a){"string"==typeof a&&(a=a.split(q));a.forEach(function(a){h.defineNodeNamesProperty(b,a,{prop:{set:function(b){c.attr(this,a,b)},get:function(){return c.attr(this,a)||""}}})})},defineNodeNameProperty:function(b,a,d){n[a]=!0;if(d.reflect)h.propTypes[d.propType||"standard"](d,a);["prop","attr","removeAttr"].forEach(function(e){var f=d[e];f&&(f="prop"===e?c.extend({writeable:!0},f):c.extend({},f,{writeable:!0}),u[e](b,a,f),"*"!=b&&h.cfg.extendNative&&"prop"==e&&f.value&&
|
15
|
+
c.isFunction(f.value)&&D(b,a,f),d[e]=f)});d.initAttr&&t.content(b,a);return d},defineNodeNameProperties:function(b,a,d,c){for(var f in a)!c&&a[f].initAttr&&t.createTmpCache(b),d&&(a[f][d]?h.log("override: "+b+"["+f+"] for "+d):(a[f][d]={},["value","set","get"].forEach(function(b){b in a[f]&&(a[f][d][b]=a[f][b],delete a[f][b])}))),a[f]=h.defineNodeNameProperty(b,f,a[f]);c||t.flushTmpCache();return a},createElement:function(b,a,d){var f;c.isFunction(a)&&(a={after:a});t.createTmpCache(b);a.before&&t.createElement(b,
|
16
|
+
a.before);d&&(f=h.defineNodeNameProperties(b,d,!1,!0));a.after&&t.createElement(b,a.after);t.flushTmpCache();return f},onNodeNamesPropertyModify:function(b,a,d,e){"string"==typeof b&&(b=b.split(q));c.isFunction(d)&&(d={set:d});b.forEach(function(b){f[b]||(f[b]={});"string"==typeof a&&(a=a.split(q));d.initAttr&&t.createTmpCache(b);a.forEach(function(a){f[b][a]||(f[b][a]=[],n[a]=!0);if(d.set){if(e)d.set.only=e;f[b][a].push(d.set)}d.initAttr&&t.content(b,a)});t.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,
|
17
|
+
a,d){d||(d={});if(c.isFunction(d))d.set=d;h.defineNodeNamesProperty(b,a,{attr:{set:function(b){this.setAttribute(a,b);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(a)?p:a}},removeAttr:{value:function(){this.removeAttribute(a);d.set&&d.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:d.initAttr||!1})},contentAttr:function(b,a,d){if(b.nodeName){if(d===p)return b=b.attributes[a]||{},d=b.specified?b.value:null,null==d?p:d;"boolean"==typeof d?d?b.setAttribute(a,a):
|
18
|
+
b.removeAttribute(a):b.setAttribute(a,d)}},activeLang:function(){var b=[],a={},d,f,g=/:\/\/|^\.*\//,i=function(a,b,d){return b&&d&&-1!==c.inArray(b,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,g.test(d)||(d=h.cfg.basePath+d),h.loader.loadScript(d+b+".js",function(){a.langObj[b]?(a.loading=!1,s(a,!0)):c(function(){a.langObj[b]&&s(a,!0);a.loading=!1})}),!0):!1},j=function(b){a[b]&&a[b].forEach(function(a){a.callback()})},s=function(a,b){if(a.activeLang!=d&&a.activeLang!==f){var c=w[a.module].options;
|
19
|
+
if(a.langObj[d]||f&&a.langObj[f])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[f],d),j(a.module);else if(!b&&!i(a,d,c)&&!i(a,f,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),j(a.module)}};return function(j){if("string"==typeof j&&j!==d)d=j,f=d.split("-")[0],d==f&&(f=!1),c.each(b,function(a,b){s(b)});else if("object"==typeof j)if(j.register)a[j.register]||(a[j.register]=[]),a[j.register].push(j),j.callback();else{if(!j.activeLang)j.activeLang="";b.push(j);s(j)}return d}}()});
|
20
|
+
c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(b,a){h[b]=function(b,c,f,g){"string"==typeof b&&(b=b.split(q));var j={};b.forEach(function(b){j[b]=h[a](b,c,f,g)});return j}});h.isReady("webshimLocalization",!0)});
|
21
|
+
(function(c,h){var k=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<k)&&(!c.browser.msie||12>k&&7<k)){var m={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(c,h){c.getAttribute("role")||c.setAttribute("role",h)};c.webshims.addReady(function(k,q){c.each(m,function(h,f){for(var g=c(h,k).add(q.filter(h)),i=0,m=g.length;i<m;i++)p(g[i],f)});if(k===h){var r=h.getElementsByTagName("header")[0],n=h.getElementsByTagName("footer"),i=n.length;
|
22
|
+
r&&!c(r).closest("section, article")[0]&&p(r,"banner");i&&(r=n[i-1],c(r).closest("section, article")[0]||p(r,"contentinfo"))}})}})(jQuery,document);
|
23
|
+
(function(c,h,k){var m=h.audio&&h.video,p=!1,w=k.cfg.mediaelement,q=k.bugs,r=function(){k.ready("mediaelement-swf",function(){if(!k.mediaelement.createSWF)k.modules["mediaelement-swf"].test=c.noop,k.reTest(["mediaelement-swf"],m)})},n;if(m){var i=document.createElement("video");h.videoBuffered="buffered"in i;p="loop"in i;k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));h.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
|
24
|
+
test:h.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"))}if(m&&!w.preferFlash){var u=function(f){var g=f.target.parentNode;!w.preferFlash&&(c(f.target).is("audio, video")||g&&c("source:last",g)[0]==f.target)&&k.ready("DOM mediaelement",function(){n&&r();k.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){n&&!w.preferFlash&&k.mediaelement.createSWF&&!c(f.target).closest("audio, video").is(".nonnative-api-active")?(w.preferFlash=!0,document.removeEventListener("error",
|
25
|
+
u,!0),c("audio, video").mediaLoad(),k.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):n||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);c("audio, video").each(function(){this.error&&u({target:this})})}q.track=!1;h.track&&function(){if(!q.track)q.track="number"!=typeof c("<track />")[0].readyState;if(!q.track)try{new TextTrackCue(2,3,"")}catch(f){q.track=!0}var g=k.cfg.track,h=function(f){c(f.target).filter("track").each(i)},
|
26
|
+
i=function(){if(q.track||!g.override&&3==c.prop(this,"readyState"))g.override=!0,k.reTest("track"),document.removeEventListener("error",h,!0),this&&c.nodeName(this,"track")?k.error("track support was overwritten. Please check your vtt including your vtt mime-type"):k.info("track support was overwritten. due to bad browser support")},u=function(){document.addEventListener("error",h,!0);q.track?i():c("track").each(i)};g.override||(k.isReady("track")?u():c(u))}();k.register("mediaelement-core",function(c,
|
27
|
+
g,i,u,k){n=swfobject.hasFlashPlayerVersion("9.0.115");var l=g.mediaelement,D=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=l.getTypeForSrc(d.src,b))d.type=e,d.container=e;if(e=a.attr("media"))d.media=e;return d},t=!n&&"postMessage"in i&&m,y=
|
28
|
+
function(){var a;return function(){!a&&t&&(a=!0,g.loader.loadScript("https://www.youtube.com/player_api"),c(function(){g.polyfill("mediaelement-yt")}))}}(),b=function(){n?r():y()};g.addPolyfill("mediaelement-yt",{test:!t,d:["dom-support"]});l.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv",
|
29
|
+
"f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};l.mimeTypes.source=c.extend({},l.mimeTypes.audio,l.mimeTypes.video);l.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||
|
30
|
+
-1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],d;c.each(l.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};l.srces=function(a,b){a=c(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),c.isArray(b)||(b=[b]),b.forEach(function(b){var c=u.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});
|
31
|
+
else{var b=[],d=a[0].nodeName.toLowerCase(),e=D(a,d);e.src?b.push(e):c("source",a).each(function(){e=D(this,d);e.src&&b.push(e)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==k&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));l.srces(this,a);c(this).mediaLoad()})};l.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
|
32
|
+
l.canThirdPlaySrces=function(a,b){var d="";if(n||t)a=c(a),b=b||l.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&(n&&-1!=l.swfMimeTypes.indexOf(b.container)||t&&"video/youtube"==b.container))return d=b,!1});return d};var a={};l.canNativePlaySrces=function(b,d){var e="";if(m){var b=c(b),g=(b[0].nodeName||"").toLowerCase();if(!a[g])return e;d=d||l.srces(b);c.each(d,function(c,d){if(d.type&&a[g].prop._supvalue.call(b[0],d.type))return e=d,!1})}return e};l.setError=function(a,b){b||(b="can't play sources");
|
33
|
+
c(a).pause().data("mediaerror",b);g.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var d=function(){var a;return function(c,e,f){g.ready(n?"mediaelement-swf":"mediaelement-yt",function(){l.createSWF?l.createSWF(c,e,f):a||(a=!0,b(),d(c,e,f))});!a&&t&&!l.createSWF&&y()}}(),e=function(a,b,c,f,g){c||!1!==c&&b&&"third"==b.isActive?(c=l.canThirdPlaySrces(a,f))?d(a,c,b):g?l.setError(a,!1):e(a,b,!1,f,!0):(c=l.canNativePlaySrces(a,f))?b&&"third"==
|
34
|
+
b.isActive&&l.setActive(a,"html5",b):g?(l.setError(a,!1),b&&"third"==b.isActive&&l.setActive(a,"html5",b)):e(a,b,!0,f,!0)},o=/^(?:embed|object|datalist)$/i,A=function(a,b){var d=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{}),i=l.srces(a),h=a.parentNode;clearTimeout(d.loadTimer);c.data(a,"mediaerror",!1);if(i.length&&h&&!(1!=h.nodeType||o.test(h.nodeName||"")))b=b||g.data(a,"mediaelement"),e(a,b,w.preferFlash||k,i)};c(u).bind("ended",function(a){var b=g.data(a.target,"mediaelement");
|
35
|
+
(!p||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)});p||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var d=g.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=g.data(this,"mediaelement");A(this,a);m&&(!a||"html5"==a.isActive)&&d.prop._supvalue&&d.prop._supvalue.apply(this,arguments)}}});a[b]=g.defineNodeNameProperty(b,
|
36
|
+
"canPlayType",{prop:{value:function(d){var e="";m&&a[b].prop._supvalue&&(e=a[b].prop._supvalue.call(this,d),"no"==e&&(e=""));!e&&n&&(d=c.trim((d||"").split(";")[0]),-1!=l.swfMimeTypes.indexOf(d)&&(e="maybe"));return e}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){A(a);a=null},9)}});i=function(){g.addReady(function(a,b){c("video, audio",
|
37
|
+
a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<g.browserVersion&&c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():A(this);if(m){var a,b,d=this,e=function(){var a=c.prop(d,"buffered");if(a){for(var b="",e=0,g=a.length;e<g;e++)b+=a.end(e);return b}},i=function(){var a=e();a!=b&&(b=a,c(d).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==
|
38
|
+
c.type&&(b=e());clearTimeout(a);a=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};h.track&&!q.track&&g.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});m?(g.isReady("mediaelement-core",!0),i(),g.ready("WINDOWLOAD mediaelement",b)):g.ready("mediaelement-swf",i);c(function(){g.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
|
39
|
+
jQuery.webshims.register("details",function(c,h,k,m,p,w){var q=function(i){var h=c(i).parent("details");if(h[0]&&h.children(":first").get(0)===i)return h},r=function(i,h){var i=c(i),h=c(h),f=c.data(h[0],"summaryElement");c.data(i[0],"detailsElement",h);if(!f||i[0]!==f[0])f&&(f.hasClass("fallback-summary")?f.remove():f.unbind(".summaryPolyfill").removeData("detailsElement").removeAttr("role").removeAttr("tabindex").removeAttr("aria-expanded").removeClass("summary-button").find("span.details-open-indicator").remove()),
|
40
|
+
c.data(h[0],"summaryElement",i),h.prop("open",h.prop("open"))};h.createElement("summary",function(){var i=q(this);if(i&&!c.data(this,"detailsElement")){var k,f,g=c.attr(this,"tabIndex")||"0";r(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",
|
41
|
+
function(g){var h=q(this);if(h){if(!f&&g.originalEvent)return f=!0,g.stopImmediatePropagation(),g.preventDefault(),c(this).trigger("click"),f=!1;clearTimeout(k);k=setTimeout(function(){g.isDefaultPrevented()||h.prop("open",!h.prop("open"))},0)}}).bind("keydown.summaryPolyfill",function(g){if((13==g.keyCode||32==g.keyCode)&&!g.isDefaultPrevented())f=!0,g.preventDefault(),c(this).trigger("click"),f=!1}).attr({tabindex:g,role:"button"}).prepend('<span class="details-open-indicator" />');h.moveToFirstEvent(this,
|
42
|
+
"click")}});var n;h.defineNodeNamesBooleanProperty("details","open",function(h){var k=c(c.data(this,"summaryElement"));if(k){var f=h?"removeClass":"addClass",g=c(this);if(!n&&w.animate){g.stop().css({width:"",height:""});var m={width:g.width(),height:g.height()}}k.attr("aria-expanded",""+h);g[f]("closed-details-summary").children().not(k[0])[f]("closed-details-child");!n&&w.animate&&(h={width:g.width(),height:g.height()},g.css(m).animate(h,{complete:function(){c(this).css({width:"",height:""})}}))}});
|
43
|
+
h.createElement("details",function(){n=!0;var h=c.data(this,"summaryElement");h||(h=c("> summary:first-child",this),h[0]?r(h,this):(c(this).prependPolyfill('<summary class="fallback-summary">'+w.text+"</summary>"),c.data(this,"summaryElement")));c.prop(this,"open",c.prop(this,"open"));n=!1})});
|