webshims-rails 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. data/lib/webshims-rails.rb +1 -1
  2. data/lib/webshims-rails/version.rb +2 -2
  3. data/readme.textile +5 -3
  4. data/vendor/assets/javascripts/webshims/dev/extras/custom-validity.js +261 -0
  5. data/vendor/assets/javascripts/webshims/dev/extras/modernizr-custom.js +535 -0
  6. data/vendor/assets/javascripts/webshims/dev/extras/mousepress.js +60 -0
  7. data/vendor/assets/javascripts/webshims/dev/polyfiller.js +1171 -0
  8. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/README +62 -0
  9. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/canvas2png.js +42 -0
  10. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/flashcanvas.js +28 -0
  11. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/flashcanvas.swf +0 -0
  12. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/proxy.php +73 -0
  13. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/save.php +49 -0
  14. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/README +82 -0
  15. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/canvas2png.js +42 -0
  16. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flash10canvas.swf +0 -0
  17. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flash9canvas.swf +0 -0
  18. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flashcanvas.js +31 -0
  19. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/proxy.php +73 -0
  20. data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/save.php +49 -0
  21. data/vendor/assets/javascripts/webshims/dev/shims/combos/1.js +1710 -0
  22. data/vendor/assets/javascripts/webshims/dev/shims/combos/10.js +3317 -0
  23. data/vendor/assets/javascripts/webshims/dev/shims/combos/11.js +1585 -0
  24. data/vendor/assets/javascripts/webshims/dev/shims/combos/12.js +1587 -0
  25. data/vendor/assets/javascripts/webshims/dev/shims/combos/13.js +1054 -0
  26. data/vendor/assets/javascripts/webshims/dev/shims/combos/14.js +476 -0
  27. data/vendor/assets/javascripts/webshims/dev/shims/combos/15.js +314 -0
  28. data/vendor/assets/javascripts/webshims/dev/shims/combos/16.js +2101 -0
  29. data/vendor/assets/javascripts/webshims/dev/shims/combos/17.js +2264 -0
  30. data/vendor/assets/javascripts/webshims/dev/shims/combos/18.js +2161 -0
  31. data/vendor/assets/javascripts/webshims/dev/shims/combos/19.js +2244 -0
  32. data/vendor/assets/javascripts/webshims/dev/shims/combos/2.js +2294 -0
  33. data/vendor/assets/javascripts/webshims/dev/shims/combos/20.js +1607 -0
  34. data/vendor/assets/javascripts/webshims/dev/shims/combos/21.js +1635 -0
  35. data/vendor/assets/javascripts/webshims/dev/shims/combos/22.js +2409 -0
  36. data/vendor/assets/javascripts/webshims/dev/shims/combos/23.js +2168 -0
  37. data/vendor/assets/javascripts/webshims/dev/shims/combos/24.js +2777 -0
  38. data/vendor/assets/javascripts/webshims/dev/shims/combos/25.js +2204 -0
  39. data/vendor/assets/javascripts/webshims/dev/shims/combos/26.js +2863 -0
  40. data/vendor/assets/javascripts/webshims/dev/shims/combos/27.js +4079 -0
  41. data/vendor/assets/javascripts/webshims/dev/shims/combos/3.js +2971 -0
  42. data/vendor/assets/javascripts/webshims/dev/shims/combos/4.js +823 -0
  43. data/vendor/assets/javascripts/webshims/dev/shims/combos/5.js +1078 -0
  44. data/vendor/assets/javascripts/webshims/dev/shims/combos/59.js +1754 -0
  45. data/vendor/assets/javascripts/webshims/dev/shims/combos/6.js +1230 -0
  46. data/vendor/assets/javascripts/webshims/dev/shims/combos/7.js +1485 -0
  47. data/vendor/assets/javascripts/webshims/dev/shims/combos/8.js +1442 -0
  48. data/vendor/assets/javascripts/webshims/dev/shims/combos/9.js +2515 -0
  49. data/vendor/assets/javascripts/webshims/dev/shims/details.js +146 -0
  50. data/vendor/assets/javascripts/webshims/dev/shims/dom-extend.js +908 -0
  51. data/vendor/assets/javascripts/webshims/dev/shims/es5.js +802 -0
  52. data/vendor/assets/javascripts/webshims/dev/shims/excanvas.js +924 -0
  53. data/vendor/assets/javascripts/webshims/dev/shims/form-core.js +660 -0
  54. data/vendor/assets/javascripts/webshims/dev/shims/form-datalist.js +677 -0
  55. data/vendor/assets/javascripts/webshims/dev/shims/form-message.js +164 -0
  56. data/vendor/assets/javascripts/webshims/dev/shims/form-native-extend.js +256 -0
  57. data/vendor/assets/javascripts/webshims/dev/shims/form-native-fix.js +261 -0
  58. data/vendor/assets/javascripts/webshims/dev/shims/form-number-date-api.js +384 -0
  59. data/vendor/assets/javascripts/webshims/dev/shims/form-number-date-ui.js +847 -0
  60. data/vendor/assets/javascripts/webshims/dev/shims/form-shim-extend.js +1472 -0
  61. data/vendor/assets/javascripts/webshims/dev/shims/geolocation.js +168 -0
  62. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ar.js +32 -0
  63. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ch-ZN.js +32 -0
  64. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-de.txt +33 -0
  65. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-el.js +32 -0
  66. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-en.txt +34 -0
  67. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-es.js +32 -0
  68. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-fr.js +32 -0
  69. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-he.js +32 -0
  70. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-hi.js +32 -0
  71. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-hu.js +32 -0
  72. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-it.js +32 -0
  73. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ja.js +32 -0
  74. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-nl.js +32 -0
  75. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-pt-PT.js +32 -0
  76. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ru.js +32 -0
  77. data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-sv.js +32 -0
  78. data/vendor/assets/javascripts/webshims/dev/shims/json-storage.js +308 -0
  79. data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/license.txt +1 -0
  80. data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/player.swf +0 -0
  81. data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/readme.html +87 -0
  82. data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-core.js +534 -0
  83. data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-native-fix.js +99 -0
  84. data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-swf.js +1074 -0
  85. data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-yt.js +543 -0
  86. data/vendor/assets/javascripts/webshims/dev/shims/styles/details-arrows.png +0 -0
  87. data/vendor/assets/javascripts/webshims/dev/shims/styles/forms.png +0 -0
  88. data/vendor/assets/javascripts/webshims/dev/shims/styles/polyfill-loader.gif +0 -0
  89. data/vendor/assets/javascripts/webshims/dev/shims/styles/shim.css +677 -0
  90. data/vendor/assets/javascripts/webshims/dev/shims/swf/jwwebshims.swf +0 -0
  91. data/vendor/assets/javascripts/webshims/dev/shims/swf/localStorage.swf +0 -0
  92. data/vendor/assets/javascripts/webshims/dev/shims/track-ui.js +292 -0
  93. data/vendor/assets/javascripts/webshims/dev/shims/track.js +763 -0
  94. data/vendor/assets/javascripts/webshims/minified/extras/modernizr-custom.js +20 -20
  95. data/vendor/assets/javascripts/webshims/minified/polyfiller.js +29 -29
  96. data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +37 -33
  97. data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +83 -76
  98. data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +44 -42
  99. data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +43 -38
  100. data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +27 -25
  101. data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +60 -55
  102. data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +68 -64
  103. data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +60 -59
  104. data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +66 -64
  105. data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +74 -69
  106. data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +46 -43
  107. data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +52 -47
  108. data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +61 -57
  109. data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +68 -60
  110. data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +82 -77
  111. data/vendor/assets/javascripts/webshims/minified/shims/combos/25.js +58 -0
  112. data/vendor/assets/javascripts/webshims/minified/shims/combos/26.js +80 -0
  113. data/vendor/assets/javascripts/webshims/minified/shims/combos/27.js +103 -0
  114. data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +96 -91
  115. data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +30 -31
  116. data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +37 -39
  117. data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +59 -61
  118. data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +31 -29
  119. data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +38 -37
  120. data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +38 -33
  121. data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +68 -63
  122. data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +22 -20
  123. data/vendor/assets/javascripts/webshims/minified/shims/es5.js +15 -14
  124. data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +22 -22
  125. data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +22 -22
  126. data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +8 -9
  127. data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +7 -8
  128. data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +23 -21
  129. data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +44 -33
  130. data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-sv.js +3 -0
  131. data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/player.swf +0 -0
  132. data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/readme.html +86 -86
  133. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +16 -13
  134. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +30 -30
  135. data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-yt.js +14 -0
  136. data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +71 -10
  137. data/vendor/assets/javascripts/webshims/minified/shims/track-ui.js +9 -0
  138. data/vendor/assets/javascripts/webshims/minified/shims/track.js +20 -0
  139. metadata +101 -5
  140. data/vendor/assets/javascripts/webshims/minified/shims/form-output.js +0 -5
@@ -1,60 +1,68 @@
1
- (function(a,b,q){var m=b.audio&&b.video,p=!1;if(m)a=document.createElement("video"),b.videoBuffered="buffered"in a,p="loop"in a,q.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),b.videoBuffered||(q.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:b.videoBuffered,d:["dom-support"]}),q.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(a,b,k,v,r){var g=b.mediaelement,s=b.cfg.mediaelement,
2
- n=function(c,b){var c=a(c),l={src:c.attr("src")||"",elem:c,srcProp:c.prop("src")};if(!l.src)return l;var i=c.attr("type");if(i)l.type=i,l.container=a.trim(i.split(";")[0]);else if(b||(b=c[0].nodeName.toLowerCase(),"source"==b&&(b=(c.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),i=g.getTypeForSrc(l.src,b))l.type=i,l.container=i;if(i=c.attr("media"))l.media=i;return l},w=swfobject.hasFlashPlayerVersion("9.0.115"),o=function(){b.ready("mediaelement-swf",function(){if(!g.createSWF)b.modules["mediaelement-swf"].test=
3
- a.noop,b.reTest(["mediaelement-swf"],m)})};g.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf",
4
- "asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};g.mimeTypes.source=a.extend({},g.mimeTypes.audio,g.mimeTypes.video);g.getTypeForSrc=function(c,b){if(-1!=c.indexOf("youtube.com/watch?")||-1!=c.indexOf("youtube.com/v/"))return"video/youtube";var c=c.split("?")[0].split("."),c=c[c.length-1],l;a.each(g.mimeTypes[b],function(a,b){if(-1!==b.indexOf(c))return l=a,!1});return l};g.srces=function(c,b){c=a(c);if(b)c.removeAttr("src").removeAttr("type").find("source").remove(),
5
- a.isArray(b)||(b=[b]),b.forEach(function(a){var b=v.createElement("source");"string"==typeof a&&(a={src:a});b.setAttribute("src",a.src);a.type&&b.setAttribute("type",a.type);a.media&&b.setAttribute("media",a.media);c.append(b)});else{var b=[],l=c[0].nodeName.toLowerCase(),i=n(c,l);i.src?b.push(i):a("source",c).each(function(){i=n(this,l);i.src&&b.push(i)});return b}};a.fn.loadMediaSrc=function(c,b){return this.each(function(){b!==r&&(a(this).removeAttr("poster"),b&&a.attr(this,"poster",b));g.srces(this,
6
- c);a(this).mediaLoad()})};g.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");g.canSwfPlaySrces=function(c,b){var l="";w&&(c=a(c),b=b||g.srces(c),a.each(b,function(a,c){if(c.container&&c.src&&-1!=g.swfMimeTypes.indexOf(c.container))return l=c,!1}));return l};var c={};g.canNativePlaySrces=function(b,
7
- d){var l="";if(m){var b=a(b),i=(b[0].nodeName||"").toLowerCase();if(!c[i])return l;d=d||g.srces(b);a.each(d,function(a,d){if(d.type&&c[i].prop._supvalue.call(b[0],d.type))return l=d,!1})}return l};g.setError=function(c,d){d||(d="can't play sources");a(c).pause().data("mediaerror",d);b.warn("mediaelementError: "+d);setTimeout(function(){a(c).data("mediaerror")&&a(c).trigger("mediaerror")},1)};var j=function(){var a;return function(c,l,i){b.ready("mediaelement-swf",function(){g.createSWF?g.createSWF(c,
8
- l,i):a||(a=!0,o(),j(c,l,i))})}}(),d=function(a,c,b,i,t){b||!1!==b&&c&&"flash"==c.isActive?(b=g.canSwfPlaySrces(a,i))?j(a,b,c):t?g.setError(a,!1):d(a,c,!1,i,!0):(b=g.canNativePlaySrces(a,i))?c&&"flash"==c.isActive&&g.setActive(a,"html5",c):t?(g.setError(a,!1),c&&"flash"==c.isActive&&g.setActive(a,"html5",c)):d(a,c,!0,i,!0)},y=/^(?:embed|object|datalist)$/i,x=function(c,j){var l=b.data(c,"mediaelementBase")||b.data(c,"mediaelementBase",{}),i=g.srces(c),t=c.parentNode;clearTimeout(l.loadTimer);a.data(c,
9
- "mediaerror",!1);if(i.length&&t&&!(1!=t.nodeType||y.test(t.nodeName||"")))j=j||b.data(c,"mediaelement"),d(c,j,s.preferFlash||r,i)};a(v).bind("ended",function(c){var d=b.data(c.target,"mediaelement");(!p||d&&"html5"!=d.isActive||a.prop(c.target,"loop"))&&setTimeout(function(){!a.prop(c.target,"paused")&&a.prop(c.target,"loop")&&a(c.target).prop("currentTime",0).play()},1)});p||b.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(d){var j=b.defineNodeNameProperty(d,
10
- "load",{prop:{value:function(){var c=b.data(this,"mediaelement");x(this,c);m&&(!c||"html5"==c.isActive)&&j.prop._supvalue&&j.prop._supvalue.apply(this,arguments)}}});c[d]=b.defineNodeNameProperty(d,"canPlayType",{prop:{value:function(b){var i="";m&&c[d].prop._supvalue&&(i=c[d].prop._supvalue.call(this,b),"no"==i&&(i=""));!i&&w&&(b=a.trim((b||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(b)&&(i="maybe"));return i}}})});b.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var c=
11
- this,a=b.data(c,"mediaelementBase")||b.data(c,"mediaelementBase",{});clearTimeout(a.loadTimer);a.loadTimer=setTimeout(function(){x(c);c=null},9)}});k=function(){b.addReady(function(c,d){a("video, audio",c).add(d.filter("video, audio")).each(function(){a.browser.msie&&8<b.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():x(this);if(m){var c,i,d=this,j=function(){var c=a.prop(d,
12
- "buffered");if(c){for(var b="",i=0,j=c.length;i<j;i++)b+=c.end(i);return b}},g=function(){var c=j();c!=i&&(i=c,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(i=j());clearTimeout(c);c=setTimeout(g,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(i=!1);clearTimeout(c)})}})})};m?(b.isReady("mediaelement-core",!0),k(),w&&b.ready("WINDOWLOAD mediaelement",o)):b.ready("mediaelement-swf",k)})})(jQuery,Modernizr,
13
- jQuery.webshims);
14
- jQuery.webshims.register("form-message",function(a,b,q,m,p,h){var f=b.validityMessages,q=h.overrideMessages||h.customMessages?["customValidationMessage"]:[];f.en=f.en||f["en-US"]||{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
15
- stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}};["select","radio"].forEach(function(a){f.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){f.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date","time","datetime-local"].forEach(function(a){f.en.rangeOverflow[a]=
16
- "Value must be at or before {%max}."});f["en-US"]=f["en-US"]||f.en;f[""]=f[""]||f["en-US"];f.de=f.de||{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
17
- rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
18
- checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}};["select","radio"].forEach(function(a){f.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){f.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){f.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});var k=
19
- f[""];b.createValidationMessage=function(b,f){var g=k[f];g&&"string"!==typeof g&&(g=g[a.prop(b,"type")]||g[(b.nodeName||"").toLowerCase()]||g.defaultMessage);g&&"value,min,max,title,maxlength,label".split(",").forEach(function(f){if(-1!==g.indexOf("{%"+f)){var n=("label"==f?a.trim(a('label[for="'+b.id+'"]',b.form).text()).replace(/\*$|:$/,""):a.attr(b,f))||"";g=g.replace("{%"+f+"}",n);"value"==f&&(g=g.replace("{%valueLen}",n.length))}});return g||""};(b.bugs.validationMessage||!Modernizr.formvalidation||
20
- b.bugs.bustedValidity)&&q.push("validationMessage");b.activeLang({langObj:f,module:"form-core",callback:function(a){k=a}});Modernizr.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var f=a("select",this);if(f[0]&&f[0].options&&f[0].options.length)b=f[0].options}return b}}});q.forEach(function(f){b.defineNodeNamesProperty(["fieldset",
21
- "output","button"],f,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(h){var g=b.defineNodeNameProperty(h,f,{prop:{get:function(){var f=this,h="";if(!a.prop(f,"willValidate"))return h;var k=a.prop(f,"validity")||{valid:1};if(k.valid||(h=b.getContentValidationMessage(f,k)))return h;if(k.customError&&f.nodeName&&(h=Modernizr.formvalidation&&!b.bugs.bustedValidity&&g.prop._supget?g.prop._supget.call(f):b.data(f,"customvalidationMessage")))return h;a.each(k,function(a,c){if("valid"!=
22
- a&&c&&(h=b.createValidationMessage(f,a)))return!1});return h||""},writeable:!1}})})})});
23
- (!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,b,q,m){b.inputTypes=b.inputTypes||{};var p=b.cfg.forms,h,f=b.inputTypes,k={radio:1,checkbox:1};b.addInputType=function(c,a){f[c]=a};var v={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},r={valueMissing:function(c,j,d){if(!c.prop("required"))return!1;var f=!1;if(!("type"in d))d.type=(c[0].getAttribute("type")||
24
- c[0].type||"").toLowerCase();if("select"==d.nodeName){if(j=!j)if(!(j=0>c[0].selectedIndex))c=c[0],j="select-one"==c.type&&2>c.size?!!a("> option:first-child",c).prop("selected"):!1;c=j}else c=k[d.type]?"checkbox"==d.type?!c.is(":checked"):!b.modules["form-core"].getGroupElements(c).filter(":checked")[0]:!j;return c},tooLong:function(){return!1},typeMismatch:function(a,b,d){if(""===b||"select"==d.nodeName)return!1;var g=!1;if(!("type"in d))d.type=(a[0].getAttribute("type")||a[0].type||"").toLowerCase();
25
- if(f[d.type]&&f[d.type].mismatch)g=f[d.type].mismatch(b,a);else if("validity"in a[0])g=a[0].validity.typeMismatch;return g},patternMismatch:function(a,j,d){if(""===j||"select"==d.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(f){b.error('invalid pattern value: "'+a+'" | '+f),a=!1}return!a?!1:!a.test(j)}};b.addValidityRule=function(a,b){r[a]=b};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var c=
26
- this.form||this;if(!a.data(c,"invalidEventShim")&&(a(c).data("invalidEventShim",!0).bind("submit",a.event.special.invalid.handler),b.moveToFirstEvent(c,"submit"),b.bugs.bustedValidity&&a.nodeName(c,"form"))){var j=c.getAttribute("novalidate");c.setAttribute("novalidate","novalidate");b.data(c,"bustedNoValidate",null==j?null:j)}},teardown:a.noop,handler:function(c){if(!("submit"!=c.type||c.testedValidity||!c.originalEvent||!a.nodeName(c.target,"form")||a.prop(c.target,"noValidate"))){h=!0;c.testedValidity=
27
- !0;if(!a(c.target).checkValidity())return c.stopImmediatePropagation(),h=!1;h=!1}}};a(m).bind("invalid",a.noop);a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var g=a.event.special.submit.setup;a.extend(a.event.special.submit,{setup:function(){a.nodeName(this,"form")?a(this).bind("invalid",a.noop):a("form",this).bind("invalid",a.noop);return g.apply(this,arguments)}});b.addInputType("email",{mismatch:function(){var a=p.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
28
- return function(b){return!a.test(b)}}()});b.addInputType("url",{mismatch:function(){var a=p.urlReg||/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;
29
- return function(b){return!a.test(b)}}()});b.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return b.inputTypes[a]?a:this.type}}});b.defineNodeNamesProperties(["button","fieldset","output"],{checkValidity:{value:function(){return!0}},willValidate:{value:!1},setCustomValidity:{value:a.noop},validity:{writeable:!1,get:function(){return a.extend({},v)}}},"prop");var s=function(c){var j,d=a.prop(c,"validity");if(d)a.data(c,"cachedValidity",
30
- d);else return!0;if(!d.valid){j=a.Event("invalid");var f=a(c).trigger(j);if(h&&!s.unhandledInvalids&&!j.isDefaultPrevented())b.validityAlert.showFor(f),s.unhandledInvalids=!0}a.removeData(c,"cachedValidity");return d.valid};b.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var c=!0,j=a("input,textarea,select",this).filter(function(){var a=b.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});s.unhandledInvalids=!1;for(var d=0,f=j.length;d<f;d++)s(j[d])||
31
- (c=!1);return c}}});b.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){s.unhandledInvalids=!1;return s(a(this).getNativeElement()[0])}},setCustomValidity:{value:function(c){a.removeData(this,"cachedValidity");b.data(this,"customvalidationMessage",""+c)}},willValidate:{writeable:!1,get:function(){var c={button:1,reset:1,hidden:1,image:1};return function(){var b=a(this).getNativeElement()[0];return!(b.disabled||b.readOnly||c[b.type])}}()},validity:{writeable:!1,
32
- get:function(){var c=a(this).getNativeElement(),j=c[0],d=a.data(j,"cachedValidity");if(d)return d;d=a.extend({},v);if(!a.prop(j,"willValidate")||"submit"==j.type)return d;var f=c.val(),g={nodeName:j.nodeName.toLowerCase()};d.customError=!!b.data(j,"customvalidationMessage");if(d.customError)d.valid=!1;a.each(r,function(a,b){if(b(c,f,g))d[a]=!0,d.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",d.valid?"false":"true");j=c=null;return d}}},"prop");b.defineNodeNamesBooleanProperty(["input",
33
- "textarea","select"],"required",{set:function(c){a(this).getShadowFocusElement().attr("aria-required",!!c+"")},initAttr:!a.browser.msie||7<b.browserVersion});b.reflectProperties(["input"],["pattern"]);if(!("maxLength"in m.createElement("textarea"))){var n=function(){var c,b=0,d=a([]),f=1E9,g=function(){var a=d.prop("value"),c=a.length;c>b&&c>f&&(c=Math.max(b,f),d.prop("value",a.substr(0,c)));b=c},h=function(){clearTimeout(c);d.unbind(".maxlengthconstraint")};return function(k,l){h();if(-1<l)f=l,b=
34
- a.prop(k,"value").length,d=a(k),d.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(g,0)}),d.bind("keyup.maxlengthconstraint",g),d.bind("blur.maxlengthconstraint",h),c=setInterval(g,200)}}();n.update=function(c,b){a(c).is(":focus")&&(null==b&&(b=a.prop(c,"maxlength")),n(e.target,b))};a(m).bind("focusin",function(c){var b;"TEXTAREA"==c.target.nodeName&&-1<(b=a.prop(c.target,"maxlength"))&&n(c.target,b)});b.defineNodeNameProperty("textarea",
35
- "maxlength",{attr:{set:function(a){this.setAttribute("maxlength",""+a);n.update(this)},get:function(){var a=this.getAttribute("maxlength");return null==a?void 0:a}},prop:{set:function(a){if("number"==typeof a||a&&a==1*a){if(0>a)throw"INDEX_SIZE_ERR";a=parseInt(a,10);this.setAttribute("maxlength",a);n.update(this,a)}else this.setAttribute("maxlength","0"),n.update(this,0)},get:function(){var a=this.getAttribute("maxlength");return("number"==typeof a||a&&a==1*a)&&0<=a?parseInt(a,10):-1}}});b.defineNodeNameProperty("textarea",
36
- "maxLength",{prop:{set:function(c){a.prop(this,"maxlength",c)},get:function(){return a.prop(this,"maxlength")}}})}var w={submit:1,button:1,image:1},o={};[{name:"enctype",limitedTo:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},defaultProp:"application/x-www-form-urlencoded",proptype:"enum"},{name:"method",limitedTo:{get:1,post:1},defaultProp:"get",proptype:"enum"},{name:"action",proptype:"url"},{name:"target"},{name:"novalidate",propName:"noValidate",proptype:"boolean"}].forEach(function(c){var b=
37
- "form"+(c.propName||c.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),d="form"+c.name,f=c.name,g="click.webshimssubmittermutate"+f,h=function(){if("form"in this&&w[this.type]){var g=a.prop(this,"form");if(g){var i=a.attr(this,d);if(null!=i&&(!c.limitedTo||i.toLowerCase()===a.prop(this,b))){var t=a.attr(g,f);a.attr(g,f,i);setTimeout(function(){if(null!=t)a.attr(g,f,t);else try{a(g).removeAttr(f)}catch(c){g.removeAttribute(f)}},9)}}}};switch(c.proptype){case "url":var k=m.createElement("form");
38
- o[b]={prop:{set:function(c){a.attr(this,d,c)},get:function(){var c=a.attr(this,d);if(null==c)return"";k.setAttribute("action",c);return k.action}}};break;case "boolean":o[b]={prop:{set:function(c){c?a.attr(this,"formnovalidate","formnovalidate"):a(this).removeAttr("formnovalidate")},get:function(){return null!=a.attr(this,"formnovalidate")}}};break;case "enum":o[b]={prop:{set:function(c){a.attr(this,d,c)},get:function(){var b=a.attr(this,d);return!b||(b=b.toLowerCase())&&!c.limitedTo[b]?c.defaultProp:
39
- b}}};break;default:o[b]={prop:{set:function(c){a.attr(this,d,c)},get:function(){var c=a.attr(this,d);return null!=c?c:""}}}}o[d]||(o[d]={});o[d].attr={set:function(c){o[d].attr._supset.call(this,c);a(this).unbind(g).bind(g,h)},get:function(){return o[d].attr._supget.call(this)}};o[d].initAttr=!0;o[d].removeAttr={value:function(){a(this).unbind(g);o[d].removeAttr._supvalue.call(this)}}});b.defineNodeNamesProperties(["input","button"],o);!a.support.getSetAttribute&&null==a("<form novalidate></form>").attr("novalidate")?
40
- b.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){this.setAttribute("novalidate",""+a)},get:function(){var a=this.getAttribute("novalidate");return null==a?void 0:a}}}):b.bugs.bustedValidity&&(b.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){b.data(this,"bustedNoValidate",""+a)},get:function(){var a=b.data(this,"bustedNoValidate");return null==a?void 0:a}},removeAttr:{value:function(){b.data(this,"bustedNoValidate",null)}}}),a.each(["rangeUnderflow","rangeOverflow",
41
- "stepMismatch"],function(a,b){r[b]=function(a){return(a[0].validity||{})[b]||!1}}));b.defineNodeNameProperty("form","noValidate",{prop:{set:function(c){c?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});a.browser.webkit&&Modernizr.inputtypes.date&&function(){var c={updateInput:1,input:1},f={date:1,time:1,"datetime-local":1},d={focusout:1,blur:1},g={updateInput:1,change:1},k=function(a){var b,f=!0,i=a.prop("value"),t=
42
- i,u=function(b){if(a){var d=a.prop("value");d!==i&&(i=d,(!b||!c[b.type])&&a.trigger("input"));b&&g[b.type]&&(t=d);!f&&d!==t&&a.trigger("change")}},h,j=function(c){clearInterval(b);setTimeout(function(){c&&d[c.type]&&(f=!1);a&&(a.unbind("focusout blur",j).unbind("input change updateInput",u),u());a=null},1)};clearInterval(b);b=setInterval(u,160);clearTimeout(h);h=setTimeout(u,9);a.unbind("focusout blur",j).unbind("input change updateInput",u);a.bind("focusout blur",j).bind("input updateInput change",
43
- u)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var c=function(c){var b=1,i,d;if("date"==c.type&&(h||!a(c).is(":focus")))if((d=c.value)&&10>d.length&&(d=d.split("-"))&&3==d.length){for(;3>b;b++)if(1==d[b].length)d[b]="0"+d[b];else if(2!=d[b].length){i=!0;break}if(!i)return d=d.join("-"),a.prop(c,"value",d),d}},d,f,i,g;d=b.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){c(this);return d.prop._supvalue.apply(this,arguments)}}});f=b.defineNodeNameProperty("form",
44
- "checkValidity",{prop:{value:function(){a("input",this).each(function(){c(this)});return f.prop._supvalue.apply(this,arguments)}}});i=b.defineNodeNameProperty("input","value",{prop:{set:function(){return i.prop._supset.apply(this,arguments)},get:function(){return c(this)||i.prop._supget.apply(this,arguments)}}});g=b.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){c(this);return g.prop._supget.apply(this,arguments)}}});a(m).bind("change",function(a){isChangeSubmit=!0;c(a.target);
45
- isChangeSubmit=!1})})();a(m).bind("focusin",function(b){b.target&&f[b.target.type]&&!b.target.readOnly&&!b.target.disabled&&k(a(b.target))})}();b.addReady(function(b,f){var d;a("form",b).add(f.filter("form")).bind("invalid",a.noop);try{if(b==m&&!("form"in(m.activeElement||{})))(d=a("input[autofocus], select[autofocus], textarea[autofocus]",b).eq(0).getShadowFocusElement()[0])&&d.offsetHeight&&d.offsetWidth&&d.focus()}catch(g){}});(function(){Modernizr.textareaPlaceholder=!!("placeholder"in a("<textarea />")[0]);
46
- var c=a.browser.webkit&&Modernizr.textareaPlaceholder;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||c){var f="over"==b.cfg.forms.placeholderType,d=["textarea"];Modernizr.input.placeholder||d.push("input");var g=function(a){if(a.setSelectionRange)return a.setSelectionRange(0,0),!0;if(a)return a=a.createTextRange(),a.collapse(!0),a.moveEnd("character",0),a.moveStart("character",0),a.select(),!0},h=function(b,c,d,h){!1===d&&(d=a.prop(b,"value"));if(!f&&"password"!=b.type){if(!d&&h&&
47
- g(b)){var k;a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))b.value=a.prop(b,"value"),c.box.removeClass("placeholder-visible"),clearTimeout(k),a(b).unbind(".placeholderremove")}).bind("mousedown.placeholderremove drag.placeholderremove select.placeholderremove",function(){g(b);clearTimeout(k);k=setTimeout(function(){g(b)},9)}).bind("blur.placeholderremove",
48
- function(){clearTimeout(k);a(b).unbind(".placeholderremove")});return}b.value=d}else if(!d&&h){a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))c.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(b).unbind(".placeholderremove")});return}c.box.removeClass("placeholder-visible")},k=function(b,
49
- c,d,g,k){if(!g&&(g=a.data(b,"placeHolder"),!g))return;a(b).unbind(".placeholderremove");if("focus"==k||!k&&a(b).is(":focus"))("password"==b.type||f||a(b).hasClass("placeholder-visible"))&&h(b,g,"",!0);else if(!1===c&&(c=a.prop(b,"value")),c)h(b,g,c);else if(!1===d&&(d=a.attr(b,"placeholder")||""),d&&!c){c=g;!1===d&&(d=a.prop(b,"placeholder"));if(!f&&"password"!=b.type)b.value=d;c.box.addClass("placeholder-visible")}else h(b,g,c)},n=function(b){var b=a(b),c=b.prop("id"),d=!(!b.prop("title")&&!b.attr("aria-labelledby"));
50
- !d&&c&&(d=!!a('label[for="'+c+'"]',b[0].form)[0]);d||(c||(c=a.webshims.getID(b)),d=!!a("label #"+c)[0]);return a(d?'<span class="placeholder-text"></span>':'<label for="'+c+'" class="placeholder-text"></label>')},l=function(){var c={text:1,search:1,url:1,email:1,password:1,tel:1};return{create:function(b){var c=a.data(b,"placeHolder");if(c)return c;c=a.data(b,"placeHolder",{});a(b).bind("focus.placeholder blur.placeholder",function(a){k(this,!1,!1,c,a.type);c.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});
51
- b.form&&a(b.form).bind("reset.placeholder",function(a){setTimeout(function(){k(b,!1,!1,c,a.type)},0)});if("password"==b.type||f){c.text=n(b);c.box=a(b).wrap('<span class="placeholder-box placeholder-box-'+(b.nodeName||"").toLowerCase()+'" />').parent();c.text.insertAfter(b).bind("mousedown.placeholder",function(){k(this,!1,!1,c,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1});a.each(["Left","Top"],function(d,f){var g=(parseInt(a.css(b,"padding"+f),10)||0)+Math.max(parseInt(a.css(b,
52
- "margin"+f),10)||0,0)+(parseInt(a.css(b,"border"+f+"Width"),10)||0);c.text.css("padding"+f,g)});a.css(b,"lineHeight");var d={width:a(b).width(),height:a(b).height()},g=a.css(b,"float");a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(d,f){var g=a.css(b,f);c.text.css(f)!=g&&c.text.css(f,g)});d.width&&d.height&&c.text.css(d);"none"!==g&&c.box.addClass("placeholder-box-"+g)}else d=function(d){a(b).hasClass("placeholder-visible")&&(h(b,c,""),d&&"submit"==d.type&&setTimeout(function(){d.isDefaultPrevented()&&
53
- k(b,!1,!1,c)},9))},a(q).bind("beforeunload",d),c.box=a(b),b.form&&a(b.form).submit(d);return c},update:function(d,f){if(!c[a.prop(d,"type")]&&!a.nodeName(d,"textarea"))b.warn("placeholder not allowed on type: "+a.prop(d,"type"));else{var g=l.create(d);g.text&&g.text.text(f);k(d,!1,f,g)}}}}();a.webshims.publicMethods={pHolder:l};d.forEach(function(a){b.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){c?(b.data(this,"textareaPlaceholder",a),this.placeholder=""):b.contentAttr(this,"placeholder",
54
- a);l.update(this,a)},get:function(){return(c?b.data(this,"textareaPlaceholder"):"")||b.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});d.forEach(function(d){var f={},g;["attr","prop"].forEach(function(d){f[d]={set:function(f){var h;c&&(h=b.data(this,"textareaPlaceholder"));h||(h=b.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var i=g[d]._supset.call(this,f);h&&"value"in this&&k(this,f,h);return i},get:function(){return a(this).hasClass("placeholder-visible")?"":
55
- g[d]._supget.call(this)}}});g=b.defineNodeNameProperty(d,"value",f)})}})()});
56
- jQuery.webshims.ready("dom-support",function(a,b,q,m){(function(){if(!("value"in m.createElement("output"))){b.defineNodeNameProperty("output","value",{prop:{set:function(b){var f=a.data(this,"outputShim");f||(f=p(this));f(b)},get:function(){return b.contentAttr(this,"value")||a(this).text()||""}}});b.onNodeNamesPropertyModify("input","value",function(b,f,k){"removeAttr"!=k&&(f=a.data(this,"outputShim"))&&f(b)});var p=function(h){if(!h.getAttribute("aria-live")){var h=a(h),f=(h.text()||"").trim(),
57
- k=h.attr("id"),p=h.attr("for"),r=a('<input class="output-shim" type="text" disabled name="'+(h.attr("name")||"")+'" value="'+f+'" style="display: none !important;" />').insertAfter(h),g=r[0].form||m,s=function(a){r[0].value=a;a=r[0].value;h.text(a);b.contentAttr(h[0],"value",a)};h[0].defaultValue=f;b.contentAttr(h[0],"value",f);h.attr({"aria-live":"polite"});k&&(r.attr("id",k),h.attr("aria-labelledby",b.getID(a('label[for="'+k+'"]',g))));p&&(k=b.getID(h),p.split(" ").forEach(function(a){(a=m.getElementById(a))&&
58
- a.setAttribute("aria-controls",k)}));h.data("outputShim",s);r.data("outputShim",s);return s}};b.addReady(function(b,f){a("output",b).add(f.filter("output")).each(function(){p(this)})})}})();(function(){var p={updateInput:1,input:1},h={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},f=function(a){var f,h=a.prop("value"),g=function(f){if(a){var c=a.prop("value");c!==h&&(h=c,(!f||!p[f.type])&&b.triggerInlineForm&&b.triggerInlineForm(a[0],"input"))}},m,n=function(){clearTimeout(m);
59
- m=setTimeout(g,9)},q=function(){a.unbind("focusout",q).unbind("keyup keypress keydown paste cut",n).unbind("input change updateInput",g);clearInterval(f);setTimeout(function(){g();a=null},1)};clearInterval(f);f=setInterval(g,99);n();a.bind("keyup keypress keydown paste cut",n).bind("focusout",q).bind("input updateInput change",g)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(m).bind("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||
60
- "").toLowerCase()&&!h[b.target.type]&&f(a(b.target))})})();b.isReady("form-output",!0)});
1
+ (function(a,c,i){var l=c.audio&&c.video,t=!1,q=i.cfg.mediaelement,g=i.bugs,u=function(){i.ready("mediaelement-swf",function(){if(!i.mediaelement.createSWF)i.modules["mediaelement-swf"].test=a.noop,i.reTest(["mediaelement-swf"],l)})},p;if(l){var s=document.createElement("video");c.videoBuffered="buffered"in s;t="loop"in s;i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));c.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
2
+ test:c.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"))}if(l&&!q.preferFlash){var o=function(c){var f=c.target.parentNode;!q.preferFlash&&(a(c.target).is("audio, video")||f&&a("source:last",f)[0]==c.target)&&i.ready("DOM mediaelement",function(){p&&u();i.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){p&&!q.preferFlash&&i.mediaelement.createSWF&&!a(c.target).closest("audio, video").is(".nonnative-api-active")?(q.preferFlash=!0,document.removeEventListener("error",
3
+ o,!0),a("audio, video").mediaLoad(),i.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+c.target.src)):p||document.removeEventListener("error",o,!0)},20)})})};document.addEventListener("error",o,!0);a("audio, video").each(function(){this.error&&o({target:this})})}g.track=!1;c.track&&function(){if(!g.track)g.track="number"!=typeof a("<track />")[0].readyState;if(!g.track)try{new TextTrackCue(2,3,"")}catch(c){g.track=!0}var f=i.cfg.track,p=function(c){a(c.target).filter("track").each(l)},
4
+ l=function(){if(g.track||!f.override&&3==a.prop(this,"readyState"))f.override=!0,i.reTest("track"),document.removeEventListener("error",p,!0),this&&a.nodeName(this,"track")?i.error("track support was overwritten. Please check your vtt including your vtt mime-type"):i.info("track support was overwritten. due to bad browser support")},o=function(){document.addEventListener("error",p,!0);g.track?l():a("track").each(l)};f.override||(i.isReady("track")?o():a(o))}();i.register("mediaelement-core",function(a,
5
+ f,o,i,s){p=swfobject.hasFlashPlayerVersion("9.0.115");var k=f.mediaelement,b=function(b,h){var b=a(b),d={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!d.src)return d;var c=b.attr("type");if(c)d.type=c,d.container=a.trim(c.split(";")[0]);else if(h||(h=b[0].nodeName.toLowerCase(),"source"==h&&(h=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),c=k.getTypeForSrc(d.src,h))d.type=c,d.container=c;if(c=b.attr("media"))d.media=c;return d},d=!p&&"postMessage"in o&&l,j=
6
+ function(){var b;return function(){!b&&d&&(b=!0,f.loader.loadScript("https://www.youtube.com/player_api"),a(function(){f.polyfill("mediaelement-yt")}))}}(),A=function(){p?u():j()};f.addPolyfill("mediaelement-yt",{test:!d,d:["dom-support"]});k.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",
7
+ "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"]}};k.mimeTypes.source=a.extend({},k.mimeTypes.audio,k.mimeTypes.video);k.getTypeForSrc=function(b,h){if(-1!=b.indexOf("youtube.com/watch?")||
8
+ -1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(k.mimeTypes[h],function(a,h){if(-1!==h.indexOf(b))return d=a,!1});return d};k.srces=function(m,h){m=a(m);if(h)m.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(h)||(h=[h]),h.forEach(function(a){var b=i.createElement("source");"string"==typeof a&&(a={src:a});b.setAttribute("src",a.src);a.type&&b.setAttribute("type",a.type);a.media&&b.setAttribute("media",a.media);m.append(b)});
9
+ else{var h=[],d=m[0].nodeName.toLowerCase(),c=b(m,d);c.src?h.push(c):a("source",m).each(function(){c=b(this,d);c.src&&h.push(c)});return h}};a.fn.loadMediaSrc=function(b,h){return this.each(function(){h!==s&&(a(this).removeAttr("poster"),h&&a.attr(this,"poster",h));k.srces(this,b);a(this).mediaLoad()})};k.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(",");
10
+ k.canThirdPlaySrces=function(b,h){var c="";if(p||d)b=a(b),h=h||k.srces(b),a.each(h,function(a,b){if(b.container&&b.src&&(p&&-1!=k.swfMimeTypes.indexOf(b.container)||d&&"video/youtube"==b.container))return c=b,!1});return c};var n={};k.canNativePlaySrces=function(b,h){var d="";if(l){var b=a(b),c=(b[0].nodeName||"").toLowerCase();if(!n[c])return d;h=h||k.srces(b);a.each(h,function(a,h){if(h.type&&n[c].prop._supvalue.call(b[0],h.type))return d=h,!1})}return d};k.setError=function(b,h){h||(h="can't play sources");
11
+ a(b).pause().data("mediaerror",h);f.warn("mediaelementError: "+h);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var r=function(){var a;return function(b,c,n){f.ready(p?"mediaelement-swf":"mediaelement-yt",function(){k.createSWF?k.createSWF(b,c,n):a||(a=!0,A(),r(b,c,n))});!a&&d&&!k.createSWF&&j()}}(),y=function(a,b,d,c,j){d||!1!==d&&b&&"third"==b.isActive?(d=k.canThirdPlaySrces(a,c))?r(a,d,b):j?k.setError(a,!1):y(a,b,!1,c,!0):(d=k.canNativePlaySrces(a,c))?b&&"third"==
12
+ b.isActive&&k.setActive(a,"html5",b):j?(k.setError(a,!1),b&&"third"==b.isActive&&k.setActive(a,"html5",b)):y(a,b,!0,c,!0)},x=/^(?:embed|object|datalist)$/i,v=function(b,h){var d=f.data(b,"mediaelementBase")||f.data(b,"mediaelementBase",{}),c=k.srces(b),j=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(c.length&&j&&!(1!=j.nodeType||x.test(j.nodeName||"")))h=h||f.data(b,"mediaelement"),y(b,h,q.preferFlash||s,c)};a(i).bind("ended",function(b){var h=f.data(b.target,"mediaelement");
13
+ (!t||h&&"html5"!=h.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)});t||f.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var h=f.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=f.data(this,"mediaelement");v(this,a);l&&(!a||"html5"==a.isActive)&&h.prop._supvalue&&h.prop._supvalue.apply(this,arguments)}}});n[b]=f.defineNodeNameProperty(b,
14
+ "canPlayType",{prop:{value:function(h){var d="";l&&n[b].prop._supvalue&&(d=n[b].prop._supvalue.call(this,h),"no"==d&&(d=""));!d&&p&&(h=a.trim((h||"").split(";")[0]),-1!=k.swfMimeTypes.indexOf(h)&&(d="maybe"));return d}}})});f.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=f.data(a,"mediaelementBase")||f.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){v(a);a=null},9)}});o=function(){f.addReady(function(b,d){a("video, audio",
15
+ b).add(d.filter("video, audio")).each(function(){a.browser.msie&&8<f.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():v(this);if(l){var b,d,h=this,c=function(){var b=a.prop(h,"buffered");if(b){for(var d="",c=0,j=b.length;c<j;c++)d+=b.end(c);return d}},j=function(){var b=c();b!=d&&(d=b,a(h).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==
16
+ a.type&&(d=c());clearTimeout(b);b=setTimeout(j,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(d=!1);clearTimeout(b)})}})})};c.track&&!g.track&&f.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});l?(f.isReady("mediaelement-core",!0),o(),f.ready("WINDOWLOAD mediaelement",A)):f.ready("mediaelement-swf",o);a(function(){f.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
17
+ jQuery.webshims.register("form-message",function(a,c,i,l,t,q){var g=c.validityMessages,i=q.overrideMessages||q.customMessages?["customValidationMessage"]:[];g.en=a.extend(!0,{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
18
+ stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}},g.en||g["en-US"]||{});["select","radio"].forEach(function(a){g.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){g.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date",
19
+ "time","datetime-local"].forEach(function(a){g.en.rangeOverflow[a]="Value must be at or before {%max}."});g["en-US"]=g["en-US"]||g.en;g[""]=g[""]||g["en-US"];g.de=a.extend(!0,{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
20
+ rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
21
+ checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}},g.de||{});["select","radio"].forEach(function(a){g.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){g.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){g.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});
22
+ var u=g[""];c.createValidationMessage=function(g,l){var o=u[l];o&&"string"!==typeof o&&(o=o[a.prop(g,"type")]||o[(g.nodeName||"").toLowerCase()]||o.defaultMessage);o&&"value,min,max,title,maxlength,label".split(",").forEach(function(i){if(-1!==o.indexOf("{%"+i)){var f=("label"==i?a.trim(a('label[for="'+g.id+'"]',g.form).text()).replace(/\*$|:$/,""):a.attr(g,i))||"";"patternMismatch"==l&&"title"==i&&!f&&c.error("no title for patternMismatch provided. Always add a title attribute.");o=o.replace("{%"+
23
+ i+"}",f);"value"==i&&(o=o.replace("{%valueLen}",f.length))}});return o||""};(c.bugs.validationMessage||!Modernizr.formvalidation||c.bugs.bustedValidity)&&i.push("validationMessage");c.activeLang({langObj:g,module:"form-core",callback:function(a){u=a}});i.forEach(function(g){c.defineNodeNamesProperty(["fieldset","output","button"],g,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(i){var l=c.defineNodeNameProperty(i,g,{prop:{get:function(){var g=this,f="";if(!a.prop(g,
24
+ "willValidate"))return f;var i=a.prop(g,"validity")||{valid:1};if(i.valid||(f=c.getContentValidationMessage(g,i)))return f;if(i.customError&&g.nodeName&&(f=Modernizr.formvalidation&&!c.bugs.bustedValidity&&l.prop._supget?l.prop._supget.call(g):c.data(g,"customvalidationMessage")))return f;a.each(i,function(a,i){if("valid"!=a&&i&&(f=c.createValidationMessage(g,a)))return!1});return f||""},writeable:!1}})})})});
25
+ (!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,c,i,l){c.inputTypes=c.inputTypes||{};var t=c.cfg.forms,q,g=c.inputTypes,u={radio:1,checkbox:1};c.addInputType=function(a,d){g[a]=d};var p={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},s={valueMissing:function(b,d,j){if(!b.prop("required"))return!1;var f=!1;if(!("type"in j))j.type=(b[0].getAttribute("type")||
26
+ b[0].type||"").toLowerCase();if("select"==j.nodeName){if(d=!d)if(!(d=0>b[0].selectedIndex))b=b[0],d="select-one"==b.type&&2>b.size?!!a("> option:first-child",b).prop("selected"):!1;b=d}else b=u[j.type]?"checkbox"==j.type?!b.is(":checked"):!c.modules["form-core"].getGroupElements(b).filter(":checked")[0]:!d;return b},tooLong:function(){return!1},typeMismatch:function(a,d,c){if(""===d||"select"==c.nodeName)return!1;var f=!1;if(!("type"in c))c.type=(a[0].getAttribute("type")||a[0].type||"").toLowerCase();
27
+ if(g[c.type]&&g[c.type].mismatch)f=g[c.type].mismatch(d,a);else if("validity"in a[0])f=a[0].validity.typeMismatch;return f},patternMismatch:function(a,d,j){if(""===d||"select"==j.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(f){c.error('invalid pattern value: "'+a+'" | '+f),a=!1}return!a?!1:!a.test(d)}};c.addValidityRule=function(a,d){s[a]=d};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var b=
28
+ this.form||this;if(!a.data(b,"invalidEventShim")&&(a(b).data("invalidEventShim",!0).bind("submit",a.event.special.invalid.handler),c.moveToFirstEvent(b,"submit"),c.bugs.bustedValidity&&a.nodeName(b,"form"))){var d=b.getAttribute("novalidate");b.setAttribute("novalidate","novalidate");c.data(b,"bustedNoValidate",null==d?null:d)}},teardown:a.noop,handler:function(b){if(!("submit"!=b.type||b.testedValidity||!b.originalEvent||!a.nodeName(b.target,"form")||a.prop(b.target,"noValidate"))){q=!0;b.testedValidity=
29
+ !0;if(!a(b.target).checkValidity())return b.stopImmediatePropagation(),q=!1;q=!1}}};var o=function(b){if(!a.support.submitBubbles&&b&&"object"==typeof b&&!b._submit_attached)a.event.add(b,"submit._submit",function(a){a._submit_bubble=!0}),b._submit_attached=!0};if(!a.support.submitBubbles&&a.event.special.submit)a.event.special.submit.setup=function(){if(a.nodeName(this,"form"))return!1;a.event.add(this,"click._submit keypress._submit",function(b){b=b.target;b=a.nodeName(b,"input")||a.nodeName(b,
30
+ "button")?a.prop(b,"form"):void 0;o(b)})};a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var B=a.event.special.submit.setup;a.extend(a.event.special.submit,{setup:function(){a.nodeName(this,"form")?a(this).bind("invalid",a.noop):a("form",this).bind("invalid",a.noop);return B.apply(this,arguments)}});a(i).bind("invalid",a.noop);c.addInputType("email",{mismatch:function(){var a=t.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;return function(d){return!a.test(d)}}()});
31
+ c.addInputType("url",{mismatch:function(){var a=t.urlReg||/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;
32
+ return function(d){return!a.test(d)}}()});c.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return c.inputTypes[a]?a:this.type}}});c.defineNodeNamesProperties(["button","fieldset","output"],{checkValidity:{value:function(){return!0}},willValidate:{value:!1},setCustomValidity:{value:a.noop},validity:{writeable:!1,get:function(){return a.extend({},p)}}},"prop");var f=function(b){var d,j=a.prop(b,"validity");if(j)a.data(b,"cachedValidity",
33
+ j);else return!0;if(!j.valid){d=a.Event("invalid");var g=a(b).trigger(d);if(q&&!f.unhandledInvalids&&!d.isDefaultPrevented())c.validityAlert.showFor(g),f.unhandledInvalids=!0}a.removeData(b,"cachedValidity");return j.valid},C=/^(?:select|textarea|input)/i;c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var b=!0,d=a(a.prop(this,"elements")).filter(function(){if(!C.test(this.nodeName))return!1;var a=c.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});
34
+ f.unhandledInvalids=!1;for(var j=0,g=d.length;j<g;j++)f(d[j])||(b=!1);return b}}});c.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){f.unhandledInvalids=!1;return f(a(this).getNativeElement()[0])}},setCustomValidity:{value:function(b){a.removeData(this,"cachedValidity");c.data(this,"customvalidationMessage",""+b)}},willValidate:{writeable:!1,get:function(){var b={button:1,reset:1,hidden:1,image:1};return function(){var d=a(this).getNativeElement()[0];return!(d.disabled||
35
+ d.readOnly||b[d.type])}}()},validity:{writeable:!1,get:function(){var b=a(this).getNativeElement(),d=b[0],j=a.data(d,"cachedValidity");if(j)return j;j=a.extend({},p);if(!a.prop(d,"willValidate")||"submit"==d.type)return j;var f=b.val(),n={nodeName:d.nodeName.toLowerCase()};j.customError=!!c.data(d,"customvalidationMessage");if(j.customError)j.valid=!1;a.each(s,function(a,d){if(d(b,f,n))j[a]=!0,j.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",j.valid?"false":"true");d=b=null;return j}}},
36
+ "prop");c.defineNodeNamesBooleanProperty(["input","textarea","select"],"required",{set:function(b){a(this).getShadowFocusElement().attr("aria-required",!!b+"")},initAttr:!a.browser.msie||7<c.browserVersion});c.reflectProperties(["input"],["pattern"]);if(!("maxLength"in l.createElement("textarea"))){var w=function(){var b,d=0,c=a([]),f=1E9,n=function(){var a=c.prop("value"),b=a.length;b>d&&b>f&&(b=Math.max(d,f),c.prop("value",a.substr(0,b)));d=b},r=function(){clearTimeout(b);c.unbind(".maxlengthconstraint")};
37
+ return function(g,x){r();if(-1<x)f=x,d=a.prop(g,"value").length,c=a(g),c.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(n,0)}),c.bind("keyup.maxlengthconstraint",n),c.bind("blur.maxlengthconstraint",r),b=setInterval(n,200)}}();w.update=function(b,d){a(b).is(":focus")&&(null==d&&(d=a.prop(b,"maxlength")),w(e.target,d))};a(l).bind("focusin",function(b){var d;"TEXTAREA"==b.target.nodeName&&-1<(d=a.prop(b.target,
38
+ "maxlength"))&&w(b.target,d)});c.defineNodeNameProperty("textarea","maxlength",{attr:{set:function(a){this.setAttribute("maxlength",""+a);w.update(this)},get:function(){var a=this.getAttribute("maxlength");return null==a?void 0:a}},prop:{set:function(a){if("number"==typeof a||a&&a==1*a){if(0>a)throw"INDEX_SIZE_ERR";a=parseInt(a,10);this.setAttribute("maxlength",a);w.update(this,a)}else this.setAttribute("maxlength","0"),w.update(this,0)},get:function(){var a=this.getAttribute("maxlength");return("number"==
39
+ typeof a||a&&a==1*a)&&0<=a?parseInt(a,10):-1}}});c.defineNodeNameProperty("textarea","maxLength",{prop:{set:function(b){a.prop(this,"maxlength",b)},get:function(){return a.prop(this,"maxlength")}}})}var D={submit:1,button:1,image:1},k={};[{name:"enctype",limitedTo:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},defaultProp:"application/x-www-form-urlencoded",proptype:"enum"},{name:"method",limitedTo:{get:1,post:1},defaultProp:"get",proptype:"enum"},{name:"action",proptype:"url"},
40
+ {name:"target"},{name:"novalidate",propName:"noValidate",proptype:"boolean"}].forEach(function(b){var d="form"+(b.propName||b.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),c="form"+b.name,f=b.name,n="click.webshimssubmittermutate"+f,r=function(){if("form"in this&&D[this.type]){var r=a.prop(this,"form");if(r){var n=a.attr(this,c);if(null!=n&&(!b.limitedTo||n.toLowerCase()===a.prop(this,d))){var m=a.attr(r,f);a.attr(r,f,n);setTimeout(function(){if(null!=m)a.attr(r,f,m);else try{a(r).removeAttr(f)}catch(b){r.removeAttribute(f)}},
41
+ 9)}}}};switch(b.proptype){case "url":var g=l.createElement("form");k[d]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var b=a.attr(this,c);if(null==b)return"";g.setAttribute("action",b);return g.action}}};break;case "boolean":k[d]={prop:{set:function(b){b?a.attr(this,"formnovalidate","formnovalidate"):a(this).removeAttr("formnovalidate")},get:function(){return null!=a.attr(this,"formnovalidate")}}};break;case "enum":k[d]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var d=a.attr(this,
42
+ c);return!d||(d=d.toLowerCase())&&!b.limitedTo[d]?b.defaultProp:d}}};break;default:k[d]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var b=a.attr(this,c);return null!=b?b:""}}}}k[c]||(k[c]={});k[c].attr={set:function(b){k[c].attr._supset.call(this,b);a(this).unbind(n).bind(n,r)},get:function(){return k[c].attr._supget.call(this)}};k[c].initAttr=!0;k[c].removeAttr={value:function(){a(this).unbind(n);k[c].removeAttr._supvalue.call(this)}}});c.defineNodeNamesProperties(["input","button"],
43
+ k);!a.support.getSetAttribute&&null==a("<form novalidate></form>").attr("novalidate")?c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){this.setAttribute("novalidate",""+a)},get:function(){var a=this.getAttribute("novalidate");return null==a?void 0:a}}}):c.bugs.bustedValidity&&(c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){c.data(this,"bustedNoValidate",""+a)},get:function(){var a=c.data(this,"bustedNoValidate");return null==a?void 0:a}},removeAttr:{value:function(){c.data(this,
44
+ "bustedNoValidate",null)}}}),a.each(["rangeUnderflow","rangeOverflow","stepMismatch"],function(a,c){s[c]=function(a){return(a[0].validity||{})[c]||!1}}));c.defineNodeNameProperty("form","noValidate",{prop:{set:function(b){b?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});a.browser.webkit&&Modernizr.inputtypes.date&&function(){var b={updateInput:1,input:1},d={date:1,time:1,"datetime-local":1},f={focusout:1,blur:1},g=
45
+ {updateInput:1,change:1},n=function(a){var c,d=!0,n=a.prop("value"),m=n,h=function(c){if(a){var h=a.prop("value");h!==n&&(n=h,(!c||!b[c.type])&&a.trigger("input"));c&&g[c.type]&&(m=h);!d&&h!==m&&a.trigger("change")}},z,i=function(b){clearInterval(c);setTimeout(function(){b&&f[b.type]&&(d=!1);a&&(a.unbind("focusout blur",i).unbind("input change updateInput",h),h());a=null},1)};clearInterval(c);c=setInterval(h,160);clearTimeout(z);z=setTimeout(h,9);a.unbind("focusout blur",i).unbind("input change updateInput",
46
+ h);a.bind("focusout blur",i).bind("input updateInput change",h)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var b=function(b){var c=1,d,m;if("date"==b.type&&(q||!a(b).is(":focus")))if((m=b.value)&&10>m.length&&(m=m.split("-"))&&3==m.length){for(;3>c;c++)if(1==m[c].length)m[c]="0"+m[c];else if(2!=m[c].length){d=!0;break}if(!d)return m=m.join("-"),a.prop(b,"value",m),m}},d,n,f,m;d=c.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){b(this);return d.prop._supvalue.apply(this,
47
+ arguments)}}});n=c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){a("input",this).each(function(){b(this)});return n.prop._supvalue.apply(this,arguments)}}});f=c.defineNodeNameProperty("input","value",{prop:{set:function(){return f.prop._supset.apply(this,arguments)},get:function(){return b(this)||f.prop._supget.apply(this,arguments)}}});m=c.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){b(this);return m.prop._supget.apply(this,arguments)}}});a(l).bind("change",
48
+ function(a){isChangeSubmit=!0;b(a.target);isChangeSubmit=!1})})();a(l).bind("focusin",function(b){b.target&&d[b.target.type]&&!b.target.readOnly&&!b.target.disabled&&n(a(b.target))})}();c.addReady(function(b,c){var f;a("form",b).add(c.filter("form")).bind("invalid",a.noop);try{if(b==l&&!("form"in(l.activeElement||{})))(f=a("input[autofocus], select[autofocus], textarea[autofocus]",b).eq(0).getShadowFocusElement()[0])&&f.offsetHeight&&f.offsetWidth&&f.focus()}catch(g){}});(!Modernizr.formattribute||
49
+ !Modernizr.fieldsetdisabled)&&function(){(function(b,c){a.prop=function(d,f,g){var m;if(d&&1==d.nodeType&&g===c&&a.nodeName(d,"form")&&d.id){m=l.getElementsByName(f);if(!m||!m.length)m=l.getElementById(f);if(m&&(m=a(m).filter(function(){return a.prop(this,"form")==d}).get(),m.length))return 1==m.length?m[0]:m}return b.apply(this,arguments)}})(a.prop,void 0);var b=function(b){var c=a.data(b,"webshimsAddedElements");c&&(c.remove(),a.removeData(b,"webshimsAddedElements"))},d=/\r?\n/g,f=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
50
+ g=/^(?:select|textarea)/i;Modernizr.formattribute||(c.defineNodeNamesProperty(["input","textarea","select","button","fieldset"],"form",{prop:{get:function(){var b=c.contentAttr(this,"form");b&&(b=l.getElementById(b))&&!a.nodeName(b,"form")&&(b=null);return b||this.form},writeable:!1}}),c.defineNodeNamesProperty(["form"],"elements",{prop:{get:function(){var b=this.id,c=a.makeArray(this.elements);b&&(c=a(c).add('input[form="'+b+'"], select[form="'+b+'"], textarea[form="'+b+'"], button[form="'+b+'"], fieldset[form="'+
51
+ b+'"]').not(".webshims-visual-hide > *").get());return c},writeable:!1}}),a(function(){var c=function(a){a.stopPropagation()};a(l).bind("submit",function(c){if(!c.isDefaultPrevented()){var d=c.target;if(c=d.id)b(d),c=a('input[form="'+c+'"], select[form="'+c+'"], textarea[form="'+c+'"]').filter(function(){return!this.disabled&&this.name&&this.form!=d}).clone(),c.length&&(a.data(d,"webshimsAddedElements",a('<div class="webshims-visual-hide" />').append(c).appendTo(d)),setTimeout(function(){b(d)},9)),
52
+ c=null}});a(l).bind("click",function(b){if(!b.isDefaultPrevented()&&a(b.target).is('input[type="submit"][form], button[form], input[type="button"][form], input[type="image"][form], input[type="reset"][form]')){var d=a.prop(b.target,"form"),f=b.target.form,g;d&&d!=f&&(g=a(b.target).clone().removeAttr("form").addClass("webshims-visual-hide").bind("click",c).appendTo(d),f&&b.preventDefault(),o(d),g.trigger("click"),setTimeout(function(){g.remove();g=null},9))}})}));Modernizr.fieldsetdisabled||c.defineNodeNamesProperty(["fieldset"],
53
+ "elements",{prop:{get:function(){return a("input, select, textarea, button, fieldset",this).get()||[]},writeable:!1}});a.fn.serializeArray=function(){return this.map(function(){var b=a.prop(this,"elements");return b?a.makeArray(b):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||g.test(this.nodeName)||f.test(this.type))}).map(function(b,c){var f=a(this).val();return null==f?null:a.isArray(f)?a.map(f,function(a){return{name:c.name,value:a.replace(d,"\r\n")}}):{name:c.name,
54
+ value:f.replace(d,"\r\n")}}).get()}}();(function(){Modernizr.textareaPlaceholder=!!("placeholder"in a("<textarea />")[0]);var b=a.browser.webkit&&Modernizr.textareaPlaceholder&&535>c.browserVersion;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||b){var d="over"==c.cfg.forms.placeholderType,f=c.cfg.forms.responsivePlaceholder,g=["textarea"];Modernizr.input.placeholder||g.push("input");var n=function(a){try{if(a.setSelectionRange)return a.setSelectionRange(0,0),!0;if(a.createTextRange){var b=
55
+ a.createTextRange();b.collapse(!0);b.moveEnd("character",0);b.moveStart("character",0);b.select();return!0}}catch(c){}},k=function(b,c,f,g){!1===f&&(f=a.prop(b,"value"));if(!d&&"password"!=b.type){if(!f&&g&&n(b)){var j=setTimeout(function(){n(b)},9);a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))b.value=a.prop(b,"value"),c.box.removeClass("placeholder-visible"),
56
+ clearTimeout(j),a(b).unbind(".placeholderremove")}).bind("mousedown.placeholderremove drag.placeholderremove select.placeholderremove",function(){n(b);clearTimeout(j);j=setTimeout(function(){n(b)},9)}).bind("blur.placeholderremove",function(){clearTimeout(j);a(b).unbind(".placeholderremove")});return}b.value=f}else if(!f&&g){a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||
57
+ 16==d.keyCode))c.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(b).unbind(".placeholderremove")});return}c.box.removeClass("placeholder-visible")},l=function(b,c,f,g,j){if(!g&&(g=a.data(b,"placeHolder"),!g))return;a(b).unbind(".placeholderremove");if("focus"==j||!j&&a(b).is(":focus"))("password"==b.type||d||a(b).hasClass("placeholder-visible"))&&k(b,g,"",!0);else if(!1===c&&(c=a.prop(b,"value")),c)k(b,g,c);else if(!1===f&&(f=a.attr(b,
58
+ "placeholder")||""),f&&!c){c=g;!1===f&&(f=a.prop(b,"placeholder"));if(!d&&"password"!=b.type)b.value=f;c.box.addClass("placeholder-visible")}else k(b,g,c)},o=function(b){var b=a(b),c=b.prop("id"),d=!(!b.prop("title")&&!b.attr("aria-labelledby"));!d&&c&&(d=!!a('label[for="'+c+'"]',b[0].form)[0]);d||(c||(c=a.webshims.getID(b)),d=!!a("label #"+c)[0]);return a(d?'<span class="placeholder-text"></span>':'<label for="'+c+'" class="placeholder-text"></label>')},v=function(){var b={text:1,search:1,url:1,
59
+ email:1,password:1,tel:1};return{create:function(b){var c=a.data(b,"placeHolder"),g;if(c)return c;c=a.data(b,"placeHolder",{});a(b).bind("focus.placeholder blur.placeholder",function(a){l(this,!1,!1,c,a.type);c.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});(g=a.prop(b,"form"))&&a(g).bind("reset.placeholder",function(a){setTimeout(function(){l(b,!1,!1,c,a.type)},0)});if("password"==b.type||d)c.text=o(b),c.box=f||a(b).is(".responsive-width")||-1!=(b.currentStyle||{width:""}).width.indexOf("%")?
60
+ c.text:a(b).wrap('<span class="placeholder-box placeholder-box-'+(b.nodeName||"").toLowerCase()+" placeholder-box-"+a.css(b,"float")+'" />').parent(),c.text.insertAfter(b).bind("mousedown.placeholder",function(){l(this,!1,!1,c,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1}),a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(d,f){var g=a.css(b,f);c.text.css(f)!=g&&c.text.css(f,g)}),a.each(["Left","Top"],function(d,f){var g=(parseInt(a.css(b,"padding"+f),10)||
61
+ 0)+Math.max(parseInt(a.css(b,"margin"+f),10)||0,0)+(parseInt(a.css(b,"border"+f+"Width"),10)||0);c.text.css("padding"+f,g)}),a(b).bind("updateshadowdom",function(){var d,f;((f=b.offsetWidth)||(d=b.offsetHeight))&&c.text.css({width:f,height:d}).css(a(b).position())}).triggerHandler("updateshadowdom");else{var n=function(d){a(b).hasClass("placeholder-visible")&&(k(b,c,""),d&&"submit"==d.type&&setTimeout(function(){d.isDefaultPrevented()&&l(b,!1,!1,c)},9))};a(i).bind("beforeunload",n);c.box=a(b);g&&
62
+ a(g).submit(n)}return c},update:function(d,f){var g=(a.attr(d,"type")||a.prop(d,"type")||"").toLowerCase();!b[g]&&!a.nodeName(d,"textarea")?(c.error('placeholder not allowed on input[type="'+g+'"]'),"date"==g&&c.error('but you can use data-placeholder for input[type="date"]')):(g=v.create(d),g.text&&g.text.text(f),l(d,!1,f,g))}}}();a.webshims.publicMethods={pHolder:v};g.forEach(function(a){c.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){b?(c.data(this,"textareaPlaceholder",a),this.placeholder=
63
+ ""):c.contentAttr(this,"placeholder",a);v.update(this,a)},get:function(){return(b?c.data(this,"textareaPlaceholder"):"")||c.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});g.forEach(function(d){var f={},g;["attr","prop"].forEach(function(d){f[d]={set:function(f){var h;b&&(h=c.data(this,"textareaPlaceholder"));h||(h=c.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var j=g[d]._supset.call(this,f);h&&"value"in this&&l(this,f,h);return j},get:function(){return a(this).hasClass("placeholder-visible")?
64
+ "":g[d]._supget.call(this)}}});g=c.defineNodeNameProperty(d,"value",f)})}})();(function(){if(!("value"in l.createElement("output"))){c.defineNodeNameProperty("output","value",{prop:{set:function(c){var f=a.data(this,"outputShim");f||(f=b(this));f(c)},get:function(){return c.contentAttr(this,"value")||a(this).text()||""}}});c.onNodeNamesPropertyModify("input","value",function(b,c,f){"removeAttr"!=f&&(c=a.data(this,"outputShim"))&&c(b)});var b=function(b){if(!b.getAttribute("aria-live")){var b=a(b),
65
+ f=(b.text()||"").trim(),g=b.attr("id"),n=b.attr("for"),i=a('<input class="output-shim" type="text" disabled name="'+(b.attr("name")||"")+'" value="'+f+'" style="display: none !important;" />').insertAfter(b),k=i[0].form||l,o=function(a){i[0].value=a;a=i[0].value;b.text(a);c.contentAttr(b[0],"value",a)};b[0].defaultValue=f;c.contentAttr(b[0],"value",f);b.attr({"aria-live":"polite"});g&&(i.attr("id",g),b.attr("aria-labelledby",c.getID(a('label[for="'+g+'"]',k))));n&&(g=c.getID(b),n.split(" ").forEach(function(a){(a=
66
+ l.getElementById(a))&&a.setAttribute("aria-controls",g)}));b.data("outputShim",o);i.data("outputShim",o);return o}};c.addReady(function(c,f){a("output",c).add(f.filter("output")).each(function(){b(this)})});(function(){var b={updateInput:1,input:1},f={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},g=function(a){var f,g=a.prop("value"),i=function(f){if(a){var h=a.prop("value");h!==g&&(g=h,(!f||!b[f.type])&&c.triggerInlineForm&&c.triggerInlineForm(a[0],"input"))}},j,k=function(){clearTimeout(j);
67
+ j=setTimeout(i,9)},h=function(){a.unbind("focusout",h).unbind("keyup keypress keydown paste cut",k).unbind("input change updateInput",i);clearInterval(f);setTimeout(function(){i();a=null},1)};clearInterval(f);f=setInterval(i,99);k();a.bind("keyup keypress keydown paste cut",k).bind("focusout",h).bind("input updateInput change",i)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(l).bind("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||
68
+ "").toLowerCase()&&!f[b.target.type]&&g(a(b.target))})})()}})()});
@@ -1,77 +1,82 @@
1
- (function(a){if(!Modernizr.genericDOM){var c=document,l,k,p=/<([\w:]+)/,h={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||h[(p.exec(a)||["",""])[1].toLowerCase()])return a;if(!k){l=c.body;if(!l)return a;k=c.createElement("div");k.style.display="none"}var u=k.cloneNode(!1);l.appendChild(u);u.innerHTML=a;l.removeChild(u);return u.childNodes}}})(jQuery);
2
- jQuery.webshims.register("dom-extend",function(a,c,l,k,p){var h=c.modules,q=/\s*,\s*/,u={},v={},r={},o={},w={},x=a.fn.val,b=function(d,e,f,n,g){return g?x.call(a(d)):x.call(a(d),f)};a.fn.val=function(d){var e=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!e||1!==e.nodeType?x.call(this):a.prop(e,"value",d,"val",!0);if(a.isArray(d))return x.apply(this,arguments);var f=a.isFunction(d);return this.each(function(n){e=this;1===e.nodeType&&(f?(n=d.call(e,n,a.prop(e,"value",p,"val",
3
- !0)),null==n&&(n=""),a.prop(e,"value",n,"val")):a.prop(e,"value",d,"val"))})};var i="_webshimsLib"+Math.round(1E3*Math.random()),t=function(d,e,f){d=d.jquery?d[0]:d;if(!d)return f||{};var n=a.data(d,i);f!==p&&(n||(n=a.data(d,i,{})),e&&(n[e]=f));return e?n&&n[e]:n};[{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=t(this,
4
- "shadowData");return a&&a[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){u[d]=a[d];a[d]=function(e,f,n,g,m){var i="val"==g,t=!i?u[d]:b;if(!e||!v[f]||1!==e.nodeType||!i&&g&&"attr"==d&&a.attrFn[f])return t(e,f,n,g,m);var y=(e.nodeName||"").toLowerCase(),c=r[y],j="attr"==d&&(!1===n||null===n)?"removeAttr":d,h,s,q;c||(c=r["*"]);c&&(c=c[f]);c&&(h=c[j]);if(h){if("value"==f)s=h.isVal,h.isVal=i;if("removeAttr"===j)return h.value.call(e);if(n===p)return h.get?h.get.call(e):h.value;h.set&&
5
- ("attr"==d&&!0===n&&(n=f),q=h.set.call(e,n));if("value"==f)h.isVal=s}else q=t(e,f,n,g,m);if((n!==p||"removeAttr"===j)&&w[y]&&w[y][f]){var k;k="removeAttr"==j?!1:"prop"==j?!!n:!0;w[y][f].forEach(function(a){if(!a.only||(a.only="prop"==d)||"attr"==a.only&&"prop"!=d)a.call(e,n,k,i?"val":j,d)})}return q};o[d]=function(e,f,n){r[e]||(r[e]={});r[e][f]||(r[e][f]={});var g=r[e][f][d],m=function(a,e,g){return e&&e[a]?e[a]:g&&g[a]?g[a]:"prop"==d&&"value"==f?function(a){return n.isVal?b(this,f,a,!1,0===arguments.length):
6
- u[d](this,f,a)}:"prop"==d&&"value"==a&&n.value.apply?function(a){var e=u[d](this,f);e&&e.apply&&(e=e.apply(this,arguments));return e}:function(a){return u[d](this,f,a)}};r[e][f][d]=n;if(n.value===p){if(!n.set)n.set=n.writeable?m("set",n,g):c.cfg.useStrict&&"prop"==f?function(){throw f+" is readonly on "+e;}:a.noop;if(!n.get)n.get=m("get",n,g)}["value","get","set"].forEach(function(a){n[a]&&(n["_sup"+a]=m(a,g))})}});var j=!a.browser.msie||8<parseInt(a.browser.version,10),g=function(){var a=c.getPrototypeOf(k.createElement("foobar")),
7
- e=Object.prototype.hasOwnProperty;return function(f,n,g){var b=k.createElement(f),i=c.getPrototypeOf(b);if(j&&i&&a!==i&&(!b[n]||!e.call(b,n))){var h=b[n];g._supvalue=function(){return h&&h.apply?h.apply(this,arguments):h};i[n]=g.value}else g._supvalue=function(){var a=t(this,"propValue");return a&&a[n]&&a[n].apply?a[n].apply(this,arguments):a&&a[n]},m.extendValue(f,n,g.value);g.value._supvalue=g._supvalue}}(),m=function(){var d={};c.addReady(function(e,f){var g={},n=function(d){g[d]||(g[d]=a(e.getElementsByTagName(d)),
8
- f[0]&&a.nodeName(f[0],d)&&(g[d]=g[d].add(f)))};a.each(d,function(a,d){n(a);!d||!d.forEach?c.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(d){g[a].each(d)})});g=null});var e,f=a([]),g=function(f,g){d[f]?d[f].push(g):d[f]=[g];a.isDOMReady&&(e||a(k.getElementsByTagName(f))).each(g)};return{createTmpCache:function(d){a.isDOMReady&&(e=e||a(k.getElementsByTagName(d)));return e||f},flushTmpCache:function(){e=null},content:function(d,e){g(d,function(){var d=a.attr(this,e);null!=d&&a.attr(this,
9
- e,d)})},createElement:function(a,d){g(a,d)},extendValue:function(d,e,f){g(d,function(){a(this).each(function(){t(this,"propValue",{})[e]=this[e];this[e]=f})})}}}(),s=function(a,e){if(a.defaultValue===p)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[e||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(c,{getID:function(){var d=(new Date).getTime();return function(e){var e=a(e),f=e.attr("id");f||(d++,f="ID-"+d,e.attr("id",f));return f}}(),extendUNDEFProp:function(d,
10
- e){a.each(e,function(a,e){a in d||(d[a]=e)})},createPropDefault:s,data:t,moveToFirstEvent:function(){var d=a._data?"_data":"data";return function(e,f,g){if((e=(a[d](e,"events")||{})[f])&&1<e.length)f=e.pop(),g||(g="bind"),"bind"==g&&e.delegateCount?e.splice(e.delegateCount,0,f):e.unshift(f)}}(),addShadowDom:function(d,e,f){f=f||{};d.jquery&&(d=d[0]);e.jquery&&(e=e[0]);if(!f.shadowFocusElement)f.shadowFocusElement=e;var g=a.data(d,i)||a.data(d,i,{}),b=a.data(e,i)||a.data(e,i,{});g.hasShadow=e;b.nativeElement=
11
- d;b.shadowData=g.shadowData={nativeElement:d,shadowElement:e,shadowFocusElement:f.shadowFocusElement};f.shadowChilds&&f.shadowChilds.each(function(){t(this,"shadowData",b.shadowData)});if(f.data)g.shadowData.data=f.data,b.shadowData.data=f.data;f=null},propTypes:{standard:function(a){s(a);if(!a.prop)a.prop={set:function(e){a.attr.set.call(this,""+e)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){s(a);if(!a.prop)a.prop={set:function(e){e?a.attr.set.call(this,
12
- ""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(d,e){"string"==typeof e&&(e=e.split(q));e.forEach(function(e){c.defineNodeNamesProperty(d,e,{prop:{set:function(d){a.attr(this,e,d)},get:function(){return a.attr(this,e)||""}}})})},defineNodeNameProperty:function(d,e,f){v[e]=!0;if(f.reflect)c.propTypes[f.propType||"standard"](f);["prop","attr","removeAttr"].forEach(function(n){var b=f[n];b&&(b="prop"===n?a.extend({writeable:!0},b):a.extend({},
13
- b,{writeable:!0}),o[n](d,e,b),"*"!=d&&c.cfg.extendNative&&"prop"==n&&b.value&&a.isFunction(b.value)&&g(d,e,b),f[n]=b)});f.initAttr&&m.content(d,e);return f},defineNodeNameProperties:function(a,e,f,g){for(var b in e)!g&&e[b].initAttr&&m.createTmpCache(a),f&&(e[b][f]?c.log("override: "+a+"["+b+"] for "+f):(e[b][f]={},["value","set","get"].forEach(function(a){a in e[b]&&(e[b][f][a]=e[b][a],delete e[b][a])}))),e[b]=c.defineNodeNameProperty(a,b,e[b]);g||m.flushTmpCache();return e},createElement:function(d,
14
- e,f){var g;a.isFunction(e)&&(e={after:e});m.createTmpCache(d);e.before&&m.createElement(d,e.before);f&&(g=c.defineNodeNameProperties(d,f,!1,!0));e.after&&m.createElement(d,e.after);m.flushTmpCache();return g},onNodeNamesPropertyModify:function(d,e,f,g){"string"==typeof d&&(d=d.split(q));a.isFunction(f)&&(f={set:f});d.forEach(function(a){w[a]||(w[a]={});"string"==typeof e&&(e=e.split(q));f.initAttr&&m.createTmpCache(a);e.forEach(function(d){w[a][d]||(w[a][d]=[],v[d]=!0);if(f.set){if(g)f.set.only=g;
15
- w[a][d].push(f.set)}f.initAttr&&m.content(a,d)});m.flushTmpCache()})},defineNodeNamesBooleanProperty:function(d,e,f){f||(f={});if(a.isFunction(f))f.set=f;c.defineNodeNamesProperty(d,e,{attr:{set:function(a){this.setAttribute(e,a);f.set&&f.set.call(this,!0)},get:function(){return null==this.getAttribute(e)?p:e}},removeAttr:{value:function(){this.removeAttribute(e);f.set&&f.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:f.initAttr||!1})},contentAttr:function(a,e,f){if(a.nodeName){if(f===
16
- p)return f=(a.attributes[e]||{}).value,null==f?p:f;"boolean"==typeof f?f?a.setAttribute(e,e):a.removeAttribute(e):a.setAttribute(e,f)}},activeLang:function(){var d=[],e={},f,g,b=/:\/\/|^\.*\//,m=function(d,e,g){return e&&g&&-1!==a.inArray(e,g.availabeLangs||[])?(d.loading=!0,g=g.langSrc,b.test(g)||(g=c.cfg.basePath+g),c.loader.loadScript(g+e+".js",function(){d.langObj[e]?(d.loading=!1,t(d,!0)):a(function(){d.langObj[e]&&t(d,!0);d.loading=!1})}),!0):!1},i=function(a){e[a]&&e[a].forEach(function(a){a.callback()})},
17
- t=function(a,d){if(a.activeLang!=f&&a.activeLang!==g){var e=h[a.module].options;if(a.langObj[f]||g&&a.langObj[g])a.activeLang=f,a.callback(a.langObj[f]||a.langObj[g],f),i(a.module);else if(!d&&!m(a,f,e)&&!m(a,g,e)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],f),i(a.module)}};return function(b){if("string"==typeof b&&b!==f)f=b,g=f.split("-")[0],f==g&&(g=!1),a.each(d,function(a,d){t(d)});else if("object"==typeof b)if(b.register)e[b.register]||(e[b.register]=[]),e[b.register].push(b),
18
- b.callback();else{if(!b.activeLang)b.activeLang="";d.push(b);t(b)}return f}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,e){c[a]=function(a,d,g,b){"string"==typeof a&&(a=a.split(q));var m={};a.forEach(function(a){m[a]=c[e](a,d,g,b)});return m}});c.isReady("webshimLocalization",!0)});
19
- (function(a,c){var l=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<l)&&(!a.browser.msie||12>l&&7<l)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(a,c){a.getAttribute("role")||a.setAttribute("role",c)};a.webshims.addReady(function(h,q){a.each(k,function(c,l){for(var k=a(c,h).add(q.filter(c)),b=0,i=k.length;b<i;b++)p(k[b],l)});if(h===c){var l=c.getElementsByTagName("header")[0],v=c.getElementsByTagName("footer"),r=v.length;
20
- l&&!a(l).closest("section, article")[0]&&p(l,"banner");r&&(l=v[r-1],a(l).closest("section, article")[0]||p(l,"contentinfo"))}})}})(jQuery,document);
21
- jQuery.webshims.register("form-datalist",function(a,c,l,k,p){c.propTypes.element=function(h){c.createPropDefault(h,"attr");if(!h.prop)h.prop={get:function(){var c=h.attr.get.call(this);c&&(c=a("#"+c)[0])&&h.propNodeName&&!a.nodeName(c,h.propNodeName)&&(c=null);return c||null},writeable:!1}};(function(){var h=a.webshims.cfg.forms,q=Modernizr.input.list;if(!q||h.customDatalist){var u=0,v={submit:1,button:1,reset:1,hidden:1,range:1,date:1},r=a.browser.msie&&7>parseInt(a.browser.version,10),o={},w=function(a){if(!a)return[];
22
- if(o[a])return o[a];var i;try{i=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(c){}o[a]=i||[];return i||[]},x={_create:function(b){if(!v[a.prop(b.input,"type")]){var i=b.datalist,c=a.data(b.input,"datalistWidget");if(i&&c&&c.datalist!==i)c.datalist=i,c.id=b.id,c.shadowList.prop("className","datalist-polyfill "+(c.datalist.className||"")+" "+c.datalist.id+"-shadowdom"),h.positionDatalist?c.shadowList.insertAfter(b.input):c.shadowList.appendTo("body"),a(c.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
23
- a.proxy(c,"_resetListCached")),c._resetListCached();else if(i){if(!(c&&c.datalist===i)){u++;var j=this;this.hideList=a.proxy(j,"hideList");this.timedHide=function(){clearTimeout(j.hideTimer);j.hideTimer=setTimeout(j.hideList,9)};this.datalist=i;this.id=b.id;this.hasViewableData=!0;this._autocomplete=a.attr(b.input,"autocomplete");a.data(b.input,"datalistWidget",this);this.shadowList=a('<div class="datalist-polyfill '+(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom" />');h.positionDatalist?
24
- this.shadowList.insertAfter(b.input):this.shadowList.appendTo("body");this.index=-1;this.input=b.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(g){var m=a("li:not(.hidden-item)",j.shadowList),i="mousedown"==g.type||"click"==g.type;j.markItem(m.index(g.currentTarget),i,m);"click"==g.type&&(j.hideList(),a(b.input).trigger("datalistselect"));return"mousedown"!=g.type}).bind("focusout",this.timedHide);b.input.setAttribute("autocomplete",
25
- "off");a(b.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!j.triggeredByDatalist)j.changedValue=!1,j.showHideOptions()}).bind("keydown.datalistWidget",function(g){var m=g.keyCode,i;if(40==m&&!j.showList())return j.markItem(j.index+1,!0),!1;if(j.isListVisible){if(38==m)return j.markItem(j.index-1,!0),!1;if(!g.shiftKey&&(33==m||36==m))return j.markItem(0,!0),!1;if(!g.shiftKey&&(34==m||35==m))return g=a("li:not(.hidden-item)",j.shadowList),j.markItem(g.length-1,!0,g),
26
- !1;if(13==m||27==m)return 13==m&&(i=a("li.active-item:not(.hidden-item)",j.shadowList),j.changeValue(a("li.active-item:not(.hidden-item)",j.shadowList))),j.hideList(),i&&i[0]&&a(b.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&j.showList()}).bind("mousedown.datalistWidget",function(){a(this).is(":focus")&&j.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
27
- a.proxy(this,"_resetListCached"));this._resetListCached();b.input.form&&(b.input.name||b.input.id)&&a(b.input.form).bind("submit.datalistWidget"+b.input.id,function(){if(!a(b.input).hasClass("no-datalist-cache")){var g=a.prop(b.input,"value"),m=(b.input.name||b.input.id)+a.prop(b.input,"type");if(!j.storedOptions)j.storedOptions=w(m);if(g&&-1==j.storedOptions.indexOf(g)&&(j.storedOptions.push(g),g=j.storedOptions,m)){g=g||[];try{localStorage.setItem("storedDatalistOptions"+m,JSON.stringify(g))}catch(i){}}}});
28
- a(l).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){j.destroy()})}}else c&&c.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(k).unbind(".datalist"+this.id);a(l).unbind(".datalist"+this.id);this.input.form&&this.input.id&&a(this.input.form).unbind("submit.datalistWidget"+this.input.id);this.input.removeAttribute("aria-haspopup");b===p?this.input.removeAttribute("autocomplete"):
29
- a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var i=this,h;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(l.QUnit||(h=a&&k.activeElement==i.input)?i.updateListOptions(h):c.ready("WINDOWLOAD",function(){i.updateTimer=setTimeout(function(){i.updateListOptions();i=null;u=1},200+100*u)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.css(this.input,"fontSize"),
30
- fontFamily:a.css(this.input,"fontFamily")});this.searchStart=a(this.input).hasClass("search-start");var i=[],c=[],h=[],g,m,s,d;for(m=a.prop(this.datalist,"options"),s=0,d=m.length;s<d;s++){g=m[s];if(g.disabled)return;g={value:a(g).val()||"",text:a.trim(a.attr(g,"label")||g.textContent||g.innerText||a.text([g])||""),className:g.className||"",style:a.attr(g,"style")||""};g.text?g.text!=g.value&&(g.className+=" different-label-value"):g.text=g.value;c[s]=g.value;h[s]=g}if(!this.storedOptions)this.storedOptions=
31
- a(this.input).hasClass("no-datalist-cache")?[]:w((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==c.indexOf(a)&&h.push({value:a,text:a,className:"stored-suggest",style:""})});for(s=0,d=h.length;s<d;s++)m=h[s],i[s]='<li class="'+m.className+'" style="'+m.style+'" tabindex="-1" role="listitem"><span class="option-label">'+m.text+'</span> <span class="option-value">'+m.value+"</span></li>";this.arrayOptions=h;this.shadowList.html('<div class="datalist-outer-box"><div class="datalist-box"><ul role="list">'+
32
- i.join("\n")+"</ul></div></div>");a.fn.bgIframe&&r&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var i=a.prop(this.input,"value").toLowerCase();if(!(i===this.lastUpdatedValue||this.lastUnfoundValue&&0===i.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=i;var c=!1,h=this.searchStart,g=a("li",this.shadowList);i?this.arrayOptions.forEach(function(b,s){var d;if(!("lowerText"in b))b.lowerText=b.text!=b.value?b.text.toLowerCase()+b.value.toLowerCase():
33
- b.text.toLowerCase();d=b.lowerText.indexOf(i);(d=h?!d:-1!==d)?(a(g[s]).removeClass("hidden-item"),c=!0):a(g[s]).addClass("hidden-item")}):g.length&&(g.removeClass("hidden-item"),c=!0);this.hasViewableData=c;!b&&c&&this.showList();if(!c)this.lastUnfoundValue=i,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var b=h.positionDatalist?a(this.input).position():c.getRelOffset(this.shadowList,this.input);b.top+=a(this.input).outerHeight();
34
- b.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css({marginTop:"",marginLeft:"",marginRight:"",marginBottom:""}).css(b);return b},showList:function(){if(this.isListVisible)return!1;this.needsUpdate&&this.updateListOptions();this.showHideOptions(!0);if(!this.hasViewableData)return!1;this.isListVisible=!0;var b=this,c;b.setPos();b.shadowList.addClass("datalist-visible").find("li.active-item").removeClass("active-item");
35
- a(k).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(c){c.target===b.input||b.shadowList[0]===c.target||a.contains(b.shadowList[0],c.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()});a(l).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+" orientationchange.datalist "+b.id+" emchange.datalist"+b.id,function(){clearTimeout(c);c=setTimeout(function(){b.setPos()},9)});clearTimeout(c);return!0},hideList:function(){if(!this.isListVisible)return!1;
36
- var b=this,i=function(){b.changedValue&&a(b.input).trigger("change");b.changedValue=!1};b.shadowList.removeClass("datalist-visible list-item-active");b.index=-1;b.isListVisible=!1;if(b.changedValue){b.triggeredByDatalist=!0;c.triggerInlineForm&&c.triggerInlineForm(b.input,"input");if(a(b.input).is(":focus"))a(b.input).one("blur",i);else i();b.triggeredByDatalist=!1}a(k).unbind(".datalist"+b.id);a(l).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+" orientationchange.datalist "+b.id+" emchange.datalist"+
37
- b.id,function(){b.shadowList.css({top:0,left:0});a(l).unbind(".datalist"+b.id)});return!0},scrollIntoView:function(b){var c=a("ul",this.shadowList),h=a("div.datalist-box",this.shadowList),j=b.position();j.top-=(parseInt(c.css("paddingTop"),10)||0)+(parseInt(c.css("marginTop"),10)||0)+(parseInt(c.css("borderTopWidth"),10)||0);0>j.top?h.scrollTop(h.scrollTop()+j.top-2):(j.top+=b.outerHeight(),b=h.height(),j.top>b&&h.scrollTop(h.scrollTop()+(j.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",
38
- b).text(),c=a.prop(this.input,"value");if(b!=c)a(this.input).prop("value",b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,c,h){h=h||a("li:not(.hidden-item)",this.shadowList);if(h.length)0>b?b=h.length-1:b>=h.length&&(b=0),h.removeClass("active-item"),this.shadowList.addClass("list-item-active"),h=h.filter(":eq("+b+")").addClass("active-item"),c&&(this.changeValue(h),this.scrollIntoView(h)),this.index=b}};(function(){q||c.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,
39
- get:function(){var b=a("select",this);b[0]?b=b[0].options:(b=a("option",this).get(),b.length&&c.warn("you should wrap you option-elements for a datalist in a select element to support IE and other old browsers."));return b}}});var b={autocomplete:{attr:{get:function(){var b=a.data(this,"datalistWidget");return b?b._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(b){var c=a.data(this,"datalistWidget");c?(c._autocomplete=b,"off"==b&&c.hideList()):
40
- "autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",b)}}}};if(!q||!1 in a("<input />")[0])b.selectedOption={prop:{writeable:!1,get:function(){var b=a.prop(this,"list"),c=null,h;if(!b)return c;h=a.attr(this,"value");if(!h)return c;b=a.prop(b,"options");if(!b.length)return c;a.each(b,function(g,b){if(h==a.prop(b,"value"))return c=b,!1});return c}}};b.list=q?{attr:{get:function(){var b=c.contentAttr(this,"list");null!=b?this.removeAttribute("list"):b=a.data(this,"datalistListAttr");
41
- return null==b?p:b},set:function(b){a.data(this,"datalistListAttr",b);c.objectCreate(x,p,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}:{attr:{get:function(){var a=c.contentAttr(this,"list");return null==a?p:a},set:function(b){c.contentAttr(this,"list",b);c.objectCreate(x,p,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};c.defineNodeNameProperties("input",b);if(a.event.customEvent)a.event.customEvent.updateDatalist=
42
- !0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;c.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
43
- (function(a){var c=window.Modernizr,l=a.webshims,k=l.bugs,p=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),h=function(){if(p[0].querySelector)try{k.findRequired=!p[0].querySelector("select:required")}catch(a){k.findRequired=!1}};k.findRequired=!1;k.validationMessage=!1;k.valueAsNumberSet=!1;l.capturingEventPrevented=function(c){if(!c._isPolyfilled){var h=c.isDefaultPrevented,
44
- b=c.preventDefault;c.preventDefault=function(){clearTimeout(a.data(c.target,c.type+"DefaultPrevented"));a.data(c.target,c.type+"DefaultPrevented",setTimeout(function(){a.removeData(c.target,c.type+"DefaultPrevented")},30));return b.apply(this,arguments)};c.isDefaultPrevented=function(){return!(!h.apply(this,arguments)&&!a.data(c.target,c.type+"DefaultPrevented"))};c._isPolyfilled=!0}};if(!c.formvalidation||k.bustedValidity)h();else if(l.capturingEvents(["input"]),l.capturingEvents(["invalid"],!0),
45
- c.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var q=a("input",p).eq(0),u,v=function(a){l.loader.loadList(["dom-extend"]);l.ready("dom-extend",a)},r=function(h){var k=["form-extend","form-message","form-native-fix"];h&&(h.preventDefault(),h.stopImmediatePropagation());clearTimeout(u);setTimeout(function(){p&&(p.remove(),p=q=null)},9);if(!c.bugfreeformvalidation)l.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),l.modules["form-extend"].test=a.noop;l.isReady("form-number-date-api")&&
46
- k.push("form-number-date-api");l.reTest(k);if(q)try{q.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&v(function(){l.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(b){!b&&this&&a.prop(this,"value",a.prop(this,"value"))}});l.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(b){if(!b&&this)b=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(b)}})})}catch(b){}(a.browser.opera||window.testGoodWithFix)&&
47
- v(function(){var b=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(c){var h=l.defineNodeNameProperty(c,"checkValidity",{prop:{value:function(){l.fromSubmit||a(this).bind("invalid.checkvalidity",b);l.fromCheckValidity=!0;var g=h.prop._supvalue.apply(this,arguments);l.fromSubmit||a(this).unbind("invalid.checkvalidity",b);l.fromCheckValidity=!1;return g}}})});c.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&
48
- l.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var c=a("select",this);if(c[0]&&c[0].options&&c[0].options.length)b=c[0].options}return b}}})})};p.appendTo("head");if(window.opera||window.testGoodWithFix){h();k.validationMessage=!q.prop("validationMessage");if((c.inputtypes||{}).date){try{q.prop("valueAsNumber",0)}catch(o){}k.valueAsNumberSet="1970-01-01"!=q.prop("value")}q.prop("value","")}p.bind("submit",function(a){c.bugfreeformvalidation=
49
- !1;r(a)});u=setTimeout(function(){p&&p.triggerHandler("submit")},9);a("input, select",p).bind("invalid",r).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click")}})(jQuery);
50
- jQuery.webshims.register("form-core",function(a,c,l,k,p,h){var q={radio:1},u={checkbox:1,radio:1},v=a([]),r=c.bugs,o=function(b){var b=a(b),c,h;c=v;if(q[b[0].type])h=b.prop("form"),c=(c=b[0].name)?h?a(h[c]):a(k.getElementsByName(c)).filter(function(){return!a.prop(this,"form")}):b,c=c.filter('[type="radio"]');return c},w=c.getContentValidationMessage=function(b,c,h){var d=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";h&&d[h]&&(d=d[h]);"object"==typeof d&&(c=c||a.prop(b,"validity")||
51
- {valid:1},c.valid||a.each(c,function(a,b){if(b&&"valid"!=a&&d[a])return d=d[a],!1}));if("object"==typeof d)d=d.defaultMessage;return d||""},x={number:1,range:1,date:1};a.extend(a.expr.filters,{"valid-element":function(b){return!(!a.prop(b,"willValidate")||!(a.prop(b,"validity")||{valid:1}).valid)},"invalid-element":function(b){return!(!a.prop(b,"willValidate")||(a.prop(b,"validity")||{valid:1}).valid)},"required-element":function(b){return!(!a.prop(b,"willValidate")||!a.prop(b,"required"))},"optional-element":function(b){return!!(a.prop(b,
52
- "willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!x[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||b.rangeOverflow||b.rangeUnderflow)},"out-of-range":function(b){if(!x[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||!b.rangeOverflow&&!b.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(b){a.expr.filters[b]=a.expr.filters[b+"-element"]});a.expr.filters.focus=function(a){try{var b=
53
- a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(c){}return!1};var b=a.event.customEvent||{};(r.bustedValidity||r.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var b=a.find,c=a.find.matchesSelector,h=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,d=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,f=function(f){var c=arguments,c=a.call(c,1,c.length);c.unshift(f.replace(h,d));return b.apply(this,
54
- c)},c;for(c in b)b.hasOwnProperty(c)&&(f[c]=b[c]);return f}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",k.documentElement))a.find.matchesSelector=function(a,b){b=b.replace(h,d);return c.call(this,a,b)}}();var i=a.prop,t={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,c,h){var d=i.apply(this,arguments);if(b&&"form"in b&&t[c]&&h!==p&&a(b).hasClass("form-ui-invalid")&&(a.prop(b,"validity")||{valid:1}).valid)a(b).getShadowElement().removeClass("form-ui-invalid"),
55
- "checked"==c&&h&&o(b).not(b).removeClass("form-ui-invalid").removeAttr("aria-invalid");return d};var j=function(b,c){var h;a.each(b,function(b,e){if(e)return h="customError"==b?a.prop(c,"validationMessage"):b,!1});return h};a(k).bind(h.validityUIEvents||"focusout change refreshvalidityui",function(b){if(b.target&&"submit"!=b.target.type&&a.prop(b.target,"willValidate")){var c=a.data(b.target,"webshimsswitchvalidityclass"),h=function(){var d=a(b.target).getNativeElement().trigger("refreshCustomValidityRules")[0],
56
- e=a.prop(d,"validity"),c=a(d).getShadowElement(),h,m,i,k;e.valid?c.hasClass("form-ui-valid")||(h="form-ui-valid",m="form-ui-invalid",k="changedvaliditystate",i="changedvalid",u[d.type]&&d.checked&&o(d).not(d).removeClass(m).addClass(h).removeAttr("aria-invalid"),a.removeData(d,"webshimsinvalidcause")):(e=j(e,d),a.data(d,"webshimsinvalidcause")!=e&&(a.data(d,"webshimsinvalidcause",e),k="changedvaliditystate"),c.hasClass("form-ui-invalid")||(h="form-ui-invalid",m="form-ui-valid",u[d.type]&&!d.checked&&
57
- o(d).not(d).removeClass(m).addClass(h),i="changedinvalid"));h&&(c.addClass(h).removeClass(m),setTimeout(function(){a(d).trigger(i)},0));k&&setTimeout(function(){a(d).trigger(k)},0);a.removeData(b.target,"webshimsswitchvalidityclass")};c&&clearTimeout(c);"refreshvalidityui"==b.type?h():a.data(b.target,"webshimsswitchvalidityclass",setTimeout(h,9))}});b.changedvaliditystate=!0;b.refreshCustomValidityRules=!0;b.changedvalid=!0;b.changedinvalid=!0;b.refreshvalidityui=!0;c.triggerInlineForm=function(b,
58
- c){a(b).trigger(c)};c.modules["form-core"].getGroupElements=o;r=function(){c.scrollRoot=a.browser.webkit||"BackCompat"==k.compatMode?a(k.body):a(k.documentElement)};r();c.ready("DOM",r);c.getRelOffset=function(b,c){var b=a(b),h=a(c).offset(),d;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){d=b.offset()});h.top-=d.top;h.left-=d.left;return h};c.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",h,i=!1,d=!1,e,f={hideDelay:5E3,
59
- showFor:function(b,c,g,k){f._create();var b=a(b),j=a(b).getShadowElement(),q=f.getOffsetFromBody(j);f.clear();k?this.hide():(this.getMessage(b,c),this.position(j,q),h.css({fontSize:b.css("fontSize"),fontFamily:b.css("fontFamily")}),this.show(),this.hideDelay&&(i=setTimeout(e,this.hideDelay)),a(l).bind("resize.validityalert orientationchange.validityalert emchange.validityalert",function(){clearTimeout(d);d=setTimeout(function(){f.position(j)},9)}));g||this.setFocus(j,q)},getOffsetFromBody:function(a){return c.getRelOffset(h,
60
- a)},setFocus:function(d,f){var i=a(d).getShadowFocusElement(),j=c.scrollRoot.scrollTop(),q=(f||i.offset()).top-30,l;c.getID&&"label"==b&&h.attr("for",c.getID(i));j>q&&(c.scrollRoot.animate({scrollTop:q-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(j-q)),80)}),l=!0);try{i[0].focus()}catch(o){}l&&(c.scrollRoot.scrollTop(j),setTimeout(function(){c.scrollRoot.scrollTop(j)},0));setTimeout(function(){a(k).bind("focusout.validityalert",e)},10)},getMessage:function(b,d){d||(d=w(b[0])||b.prop("validationMessage"));
61
- d?a("span.va-box",h).text(d):this.hide()},position:function(b,d){d=d?a.extend({},d):f.getOffsetFromBody(b);d.top+=b.outerHeight();h.css(d)},show:function(){"none"===h.css("display")&&h.css({opacity:0}).show();h.addClass("va-visible").fadeTo(400,1)},hide:function(){h.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(i);a(k).unbind(".validityalert");a(l).unbind(".validityalert");h.stop().removeAttr("for")},_create:function(){if(!h)h=f.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
62
- b+">").css({position:"absolute",display:"none"}),c.ready("DOM",function(){h.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&h.bgIframe()})}};e=a.proxy(f,"hide");return f}();(function(){var b,c=[],h;a(k).bind("invalid",function(d){if(!d.wrongWebkitInvalid){var e=a(d.target),f=e.getShadowElement();f.hasClass("form-ui-invalid")||(f.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(d.target).trigger("changedinvalid").trigger("changedvaliditystate")},
63
- 0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=d.isDefaultPrevented,f=a.Event("firstinvalidsystem"),a(k).triggerHandler(f,{element:d.target,form:d.target.form,isInvalidUIPrevented:d.isDefaultPrevented}),e.trigger(b);b&&b.isDefaultPrevented()&&d.preventDefault();c.push(d.target);d.extraData="fix";clearTimeout(h);h=setTimeout(function(){var e={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(d.target).trigger(e,e)},9);f=e=null}})})();a.fn.getErrorMessage=function(){var b="",
64
- c=this[0];c&&(b=w(c)||a.prop(c,"customValidationMessage")||a.prop(c,"validationMessage"));return b};h.replaceValidationUI&&c.ready("DOM",function(){a(k).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
65
- (function(a,c,l){var k=c.audio&&c.video,p=!1;if(k)a=document.createElement("video"),c.videoBuffered="buffered"in a,p="loop"in a,l.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),c.videoBuffered||(l.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:c.videoBuffered,d:["dom-support"]}),l.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(a,c,l,v,r){var o=c.mediaelement,w=c.cfg.mediaelement,
66
- x=function(b,c){var b=a(b),f={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!f.src)return f;var g=b.attr("type");if(g)f.type=g,f.container=a.trim(g.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),g=o.getTypeForSrc(f.src,c))f.type=g,f.container=g;if(g=b.attr("media"))f.media=g;return f},b=swfobject.hasFlashPlayerVersion("9.0.115"),i=function(){c.ready("mediaelement-swf",function(){if(!o.createSWF)c.modules["mediaelement-swf"].test=
67
- a.noop,c.reTest(["mediaelement-swf"],k)})};o.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf",
68
- "asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};o.mimeTypes.source=a.extend({},o.mimeTypes.audio,o.mimeTypes.video);o.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||-1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],f;a.each(o.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return f=a,!1});return f};o.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),
69
- a.isArray(c)||(c=[c]),c.forEach(function(a){var c=v.createElement("source");"string"==typeof a&&(a={src:a});c.setAttribute("src",a.src);a.type&&c.setAttribute("type",a.type);a.media&&c.setAttribute("media",a.media);b.append(c)});else{var c=[],f=b[0].nodeName.toLowerCase(),g=x(b,f);g.src?c.push(g):a("source",b).each(function(){g=x(this,f);g.src&&c.push(g)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==r&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));o.srces(this,
70
- b);a(this).mediaLoad()})};o.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(",");o.canSwfPlaySrces=function(c,e){var f="";b&&(c=a(c),e=e||o.srces(c),a.each(e,function(a,b){if(b.container&&b.src&&-1!=o.swfMimeTypes.indexOf(b.container))return f=b,!1}));return f};var t={};o.canNativePlaySrces=function(b,
71
- c){var f="";if(k){var b=a(b),g=(b[0].nodeName||"").toLowerCase();if(!t[g])return f;c=c||o.srces(b);a.each(c,function(a,c){if(c.type&&t[g].prop._supvalue.call(b[0],c.type))return f=c,!1})}return f};o.setError=function(b,e){e||(e="can't play sources");a(b).pause().data("mediaerror",e);c.warn("mediaelementError: "+e);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var j=function(){var a;return function(b,f,g){c.ready("mediaelement-swf",function(){o.createSWF?o.createSWF(b,
72
- f,g):a||(a=!0,i(),j(b,f,g))})}}(),g=function(a,b,c,h,i){c||!1!==c&&b&&"flash"==b.isActive?(c=o.canSwfPlaySrces(a,h))?j(a,c,b):i?o.setError(a,!1):g(a,b,!1,h,!0):(c=o.canNativePlaySrces(a,h))?b&&"flash"==b.isActive&&o.setActive(a,"html5",b):i?(o.setError(a,!1),b&&"flash"==b.isActive&&o.setActive(a,"html5",b)):g(a,b,!0,h,!0)},m=/^(?:embed|object|datalist)$/i,s=function(b,e){var f=c.data(b,"mediaelementBase")||c.data(b,"mediaelementBase",{}),i=o.srces(b),j=b.parentNode;clearTimeout(f.loadTimer);a.data(b,
73
- "mediaerror",!1);if(i.length&&j&&!(1!=j.nodeType||m.test(j.nodeName||"")))e=e||c.data(b,"mediaelement"),g(b,e,w.preferFlash||r,i)};a(v).bind("ended",function(b){var e=c.data(b.target,"mediaelement");(!p||e&&"html5"!=e.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)});p||c.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(d){var e=c.defineNodeNameProperty(d,
74
- "load",{prop:{value:function(){var a=c.data(this,"mediaelement");s(this,a);k&&(!a||"html5"==a.isActive)&&e.prop._supvalue&&e.prop._supvalue.apply(this,arguments)}}});t[d]=c.defineNodeNameProperty(d,"canPlayType",{prop:{value:function(c){var e="";k&&t[d].prop._supvalue&&(e=t[d].prop._supvalue.call(this,c),"no"==e&&(e=""));!e&&b&&(c=a.trim((c||"").split(";")[0]),-1!=o.swfMimeTypes.indexOf(c)&&(e="maybe"));return e}}})});c.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=
75
- this,b=c.data(a,"mediaelementBase")||c.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){s(a);a=null},9)}});l=function(){c.addReady(function(b,e){a("video, audio",b).add(e.filter("video, audio")).each(function(){a.browser.msie&&8<c.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():s(this);if(k){var b,d,e=this,g=function(){var b=a.prop(e,
76
- "buffered");if(b){for(var c="",d=0,f=b.length;d<f;d++)c+=b.end(d);return c}},i=function(){var b=g();b!=d&&(d=b,a(e).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(d=g());clearTimeout(b);b=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(d=!1);clearTimeout(b)})}})})};k?(c.isReady("mediaelement-core",!0),l(),b&&c.ready("WINDOWLOAD mediaelement",i)):c.ready("mediaelement-swf",l)})})(jQuery,Modernizr,
77
- jQuery.webshims);
1
+ jQuery.webshims.register("dom-extend",function(a,e,i,l,m){var s=e.modules,n=/\s*,\s*/,q={},r={},p={},u={},f={},o=a.fn.val,b=function(g,k,x,c,b){return b?o.call(a(g)):o.call(a(g),x)};a.fn.val=function(g){var k=this[0];arguments.length&&null==g&&(g="");if(!arguments.length)return!k||1!==k.nodeType?o.call(this):a.prop(k,"value",g,"val",!0);if(a.isArray(g))return o.apply(this,arguments);var x=a.isFunction(g);return this.each(function(c){k=this;1===k.nodeType&&(x?(c=g.call(k,c,a.prop(k,"value",m,"val",
2
+ !0)),null==c&&(c=""),a.prop(k,"value",c,"val")):a.prop(k,"value",g,"val"))})};var h="_webshimsLib"+Math.round(1E3*Math.random()),v=function(g,k,c){g=g.jquery?g[0]:g;if(!g)return c||{};var b=a.data(g,h);c!==m&&(b||(b=a.data(g,h,{})),k&&(b[k]=c));return k?b&&b[k]: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=v(this,
3
+ "shadowData");return a&&a[g.prop]||this})}});["removeAttr","prop","attr"].forEach(function(g){q[g]=a[g];a[g]=function(k,c,d,h,j){var t="val"==h,y=!t?q[g]:b;if(!k||!r[c]||1!==k.nodeType||!t&&h&&"attr"==g&&a.attrFn[c])return y(k,c,d,h,j);var w=(k.nodeName||"").toLowerCase(),B=p[w],v="attr"==g&&(!1===d||null===d)?"removeAttr":g,e,A,i;B||(B=p["*"]);B&&(B=B[c]);B&&(e=B[v]);if(e){if("value"==c)A=e.isVal,e.isVal=t;if("removeAttr"===v)return e.value.call(k);if(d===m)return e.get?e.get.call(k):e.value;e.set&&
4
+ ("attr"==g&&!0===d&&(d=c),i=e.set.call(k,d));if("value"==c)e.isVal=A}else i=y(k,c,d,h,j);if((d!==m||"removeAttr"===v)&&f[w]&&f[w][c]){var o;o="removeAttr"==v?!1:"prop"==v?!!d:!0;f[w][c].forEach(function(a){if(!a.only||(a.only="prop"==g)||"attr"==a.only&&"prop"!=g)a.call(k,d,o,t?"val":v,g)})}return i};u[g]=function(k,c,d){p[k]||(p[k]={});p[k][c]||(p[k][c]={});var h=p[k][c][g],f=function(a,k,w){return k&&k[a]?k[a]:w&&w[a]?w[a]:"prop"==g&&"value"==c?function(a){return d.isVal?b(this,c,a,!1,0===arguments.length):
5
+ q[g](this,c,a)}:"prop"==g&&"value"==a&&d.value.apply?function(a){var k=q[g](this,c);k&&k.apply&&(k=k.apply(this,arguments));return k}:function(a){return q[g](this,c,a)}};p[k][c][g]=d;if(d.value===m){if(!d.set)d.set=d.writeable?f("set",d,h):e.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+k;}:a.noop;if(!d.get)d.get=f("get",d,h)}["value","get","set"].forEach(function(a){d[a]&&(d["_sup"+a]=f(a,h))})}});var j=!a.browser.msie||8<parseInt(a.browser.version,10),c=function(){var a=e.getPrototypeOf(l.createElement("foobar")),
6
+ c=Object.prototype.hasOwnProperty;return function(b,h,z){var f=l.createElement(b),t=e.getPrototypeOf(f);if(j&&t&&a!==t&&(!f[h]||!c.call(f,h))){var y=f[h];z._supvalue=function(){return y&&y.apply?y.apply(this,arguments):y};t[h]=z.value}else z._supvalue=function(){var a=v(this,"propValue");return a&&a[h]&&a[h].apply?a[h].apply(this,arguments):a&&a[h]},d.extendValue(b,h,z.value);z.value._supvalue=z._supvalue}}(),d=function(){var g={};e.addReady(function(c,k){var d={},b=function(g){d[g]||(d[g]=a(c.getElementsByTagName(g)),
7
+ k[0]&&a.nodeName(k[0],g)&&(d[g]=d[g].add(k)))};a.each(g,function(a,g){b(a);!g||!g.forEach?e.warn("Error: with "+a+"-property. methods: "+g):g.forEach(function(g){d[a].each(g)})});d=null});var c,d=a([]),b=function(d,b){g[d]?g[d].push(b):g[d]=[b];a.isDOMReady&&(c||a(l.getElementsByTagName(d))).each(b)};return{createTmpCache:function(g){a.isDOMReady&&(c=c||a(l.getElementsByTagName(g)));return c||d},flushTmpCache:function(){c=null},content:function(g,c){b(g,function(){var g=a.attr(this,c);null!=g&&a.attr(this,
8
+ c,g)})},createElement:function(a,g){b(a,g)},extendValue:function(g,c,k){b(g,function(){a(this).each(function(){v(this,"propValue",{})[c]=this[c];this[c]=k})})}}}(),A=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(e,{getID:function(){var g=(new Date).getTime();return function(c){var c=a(c),d=c.attr("id");d||(g++,d="ID-"+g,c.attr("id",d));
9
+ return d}}(),extendUNDEFProp:function(c,d){a.each(d,function(a,d){a in c||(c[a]=d)})},createPropDefault:A,data:v,moveToFirstEvent:function(){var c=a._data?"_data":"data";return function(d,b,h){if((d=(a[c](d,"events")||{})[b])&&1<d.length)b=d.pop(),h||(h="bind"),"bind"==h&&d.delegateCount?d.splice(d.delegateCount,0,b):d.unshift(b)}}(),addShadowDom:function(){var c,d,b,f,j={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(l).height(),this.width=a(l).width(),setInterval(function(){var c=
10
+ a(l).height(),g=a(l).width();if(c!=j.height||g!=j.width)j.height=c,j.width=g,f({type:"docresize"})},400)}};f=function(h){clearTimeout(c);c=setTimeout(function(){if("resize"==h.type){var c=a(i).width(),g=a(i).width();if(g==d&&c==b)return;d=g;b=c;j.height=a(l).height();j.width=a(l).width()}a.event.trigger("updateshadowdom")},40)};a(i).bind("resize",f);a.event.customEvent.updateshadowdom=!0;return function(c,g,d){d=d||{};c.jquery&&(c=c[0]);g.jquery&&(g=g[0]);var b=a.data(c,h)||a.data(c,h,{}),k=a.data(g,
11
+ h)||a.data(g,h,{}),x={};if(d.shadowFocusElement){if(d.shadowFocusElement){if(d.shadowFocusElement.jquery)d.shadowFocusElement=d.shadowFocusElement[0];x=a.data(d.shadowFocusElement,h)||a.data(d.shadowFocusElement,h,x)}}else d.shadowFocusElement=g;b.hasShadow=g;x.nativeElement=k.nativeElement=c;x.shadowData=k.shadowData=b.shadowData={nativeElement:c,shadowElement:g,shadowFocusElement:d.shadowFocusElement};d.shadowChilds&&d.shadowChilds.each(function(){v(this,"shadowData",k.shadowData)});if(d.data)x.shadowData.data=
12
+ k.shadowData.data=b.shadowData.data=d.data;d=null;j.start()}}(),propTypes:{standard:function(a){A(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){A(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 c=l.createElement("a");c.style.display="none";return function(d,b){A(d);if(!d.prop)d.prop=
13
+ {set:function(a){d.attr.set.call(this,a)},get:function(){var d=this.getAttribute(b),k;if(null==d)return"";c.setAttribute("href",d+"");if(!a.support.hrefNormalized){try{a(c).insertAfter(this),k=c.getAttribute("href",4)}catch(h){k=c.getAttribute("href",4)}a(c).detach()}return k||c.href}}}}(),enumarated:function(a){A(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}}}},
14
+ reflectProperties:function(c,d){"string"==typeof d&&(d=d.split(n));d.forEach(function(d){e.defineNodeNamesProperty(c,d,{prop:{set:function(c){a.attr(this,d,c)},get:function(){return a.attr(this,d)||""}}})})},defineNodeNameProperty:function(g,b,h){r[b]=!0;if(h.reflect)e.propTypes[h.propType||"standard"](h,b);["prop","attr","removeAttr"].forEach(function(d){var f=h[d];f&&(f="prop"===d?a.extend({writeable:!0},f):a.extend({},f,{writeable:!0}),u[d](g,b,f),"*"!=g&&e.cfg.extendNative&&"prop"==d&&f.value&&
15
+ a.isFunction(f.value)&&c(g,b,f),h[d]=f)});h.initAttr&&d.content(g,b);return h},defineNodeNameProperties:function(a,c,b,h){for(var f in c)!h&&c[f].initAttr&&d.createTmpCache(a),b&&(c[f][b]?e.log("override: "+a+"["+f+"] for "+b):(c[f][b]={},["value","set","get"].forEach(function(a){a in c[f]&&(c[f][b][a]=c[f][a],delete c[f][a])}))),c[f]=e.defineNodeNameProperty(a,f,c[f]);h||d.flushTmpCache();return c},createElement:function(c,b,h){var f;a.isFunction(b)&&(b={after:b});d.createTmpCache(c);b.before&&d.createElement(c,
16
+ b.before);h&&(f=e.defineNodeNameProperties(c,h,!1,!0));b.after&&d.createElement(c,b.after);d.flushTmpCache();return f},onNodeNamesPropertyModify:function(c,b,h,j){"string"==typeof c&&(c=c.split(n));a.isFunction(h)&&(h={set:h});c.forEach(function(a){f[a]||(f[a]={});"string"==typeof b&&(b=b.split(n));h.initAttr&&d.createTmpCache(a);b.forEach(function(c){f[a][c]||(f[a][c]=[],r[c]=!0);if(h.set){if(j)h.set.only=j;f[a][c].push(h.set)}h.initAttr&&d.content(a,c)});d.flushTmpCache()})},defineNodeNamesBooleanProperty:function(c,
17
+ d,b){b||(b={});if(a.isFunction(b))b.set=b;e.defineNodeNamesProperty(c,d,{attr:{set:function(a){this.setAttribute(d,a);b.set&&b.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?m:d}},removeAttr:{value:function(){this.removeAttribute(d);b.set&&b.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:b.initAttr||!1})},contentAttr:function(a,c,d){if(a.nodeName){if(d===m)return a=a.attributes[c]||{},d=a.specified?a.value:null,null==d?m:d;"boolean"==typeof d?d?a.setAttribute(c,c):
18
+ a.removeAttribute(c):a.setAttribute(c,d)}},activeLang:function(){var c=[],d={},b,h,f=/:\/\/|^\.*\//,j=function(c,d,b){return d&&b&&-1!==a.inArray(d,b.availabeLangs||[])?(c.loading=!0,b=b.langSrc,f.test(b)||(b=e.cfg.basePath+b),e.loader.loadScript(b+d+".js",function(){c.langObj[d]?(c.loading=!1,y(c,!0)):a(function(){c.langObj[d]&&y(c,!0);c.loading=!1})}),!0):!1},t=function(a){d[a]&&d[a].forEach(function(a){a.callback()})},y=function(a,c){if(a.activeLang!=b&&a.activeLang!==h){var d=s[a.module].options;
19
+ if(a.langObj[b]||h&&a.langObj[h])a.activeLang=b,a.callback(a.langObj[b]||a.langObj[h],b),t(a.module);else if(!c&&!j(a,b,d)&&!j(a,h,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],b),t(a.module)}};return function(f){if("string"==typeof f&&f!==b)b=f,h=b.split("-")[0],b==h&&(h=!1),a.each(c,function(a,c){y(c)});else if("object"==typeof f)if(f.register)d[f.register]||(d[f.register]=[]),d[f.register].push(f),f.callback();else{if(!f.activeLang)f.activeLang="";c.push(f);y(f)}return b}}()});
20
+ a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,c){e[a]=function(a,d,b,h){"string"==typeof a&&(a=a.split(n));var g={};a.forEach(function(a){g[a]=e[c](a,d,b,h)});return g}});e.isReady("webshimLocalization",!0)});
21
+ (function(a,e){var i=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<i)&&(!a.browser.msie||12>i&&7<i)){var l={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(a,e){a.getAttribute("role")||a.setAttribute("role",e)};a.webshims.addReady(function(i,n){a.each(l,function(e,f){for(var o=a(e,i).add(n.filter(e)),b=0,h=o.length;b<h;b++)m(o[b],f)});if(i===e){var q=e.getElementsByTagName("header")[0],r=e.getElementsByTagName("footer"),p=r.length;
22
+ q&&!a(q).closest("section, article")[0]&&m(q,"banner");p&&(q=r[p-1],a(q).closest("section, article")[0]||m(q,"contentinfo"))}})}})(jQuery,document);
23
+ jQuery.webshims.register("form-datalist",function(a,e,i,l,m){e.propTypes.element=function(i){e.createPropDefault(i,"attr");if(!i.prop)i.prop={get:function(){var e=i.attr.get.call(this);e&&(e=l.getElementById(e))&&i.propNodeName&&!a.nodeName(e,i.propNodeName)&&(e=null);return e||null},writeable:!1}};(function(){var s=a.webshims.cfg.forms,n=Modernizr.input.list;if(!n||s.customDatalist){var q=0,r={submit:1,button:1,reset:1,hidden:1,range:1,date:1},p=a.browser.msie&&7>parseInt(a.browser.version,10),u=
24
+ {},f=function(a){if(!a)return[];if(u[a])return u[a];var h;try{h=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(f){}u[a]=h||[];return h||[]},o={_create:function(b){if(!r[a.prop(b.input,"type")]){var h=b.datalist,e=a.data(b.input,"datalistWidget");if(h&&e&&e.datalist!==h)e.datalist=h,e.id=b.id,e.shadowList.prop("className","datalist-polyfill "+(e.datalist.className||"")+" "+e.datalist.id+"-shadowdom"),s.positionDatalist?e.shadowList.insertAfter(b.input):e.shadowList.appendTo("body"),
25
+ a(e.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(e,"_resetListCached")),e._resetListCached();else if(h){if(!(e&&e.datalist===h)){q++;var j=this;this.hideList=a.proxy(j,"hideList");this.timedHide=function(){clearTimeout(j.hideTimer);j.hideTimer=setTimeout(j.hideList,9)};this.datalist=h;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" />');s.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 d=a("li:not(.hidden-item)",j.shadowList),h="mousedown"==c.type||"click"==c.type;j.markItem(d.index(c.currentTarget),h,d);"click"==
27
+ c.type&&(j.hideList(),s.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(!j.triggeredByDatalist)j.changedValue=!1,j.showHideOptions()}).bind("keydown.datalistWidget",function(c){var d=c.keyCode,h;if(40==d&&!j.showList())return j.markItem(j.index+1,!0),!1;if(j.isListVisible){if(38==d)return j.markItem(j.index-
28
+ 1,!0),!1;if(!c.shiftKey&&(33==d||36==d))return j.markItem(0,!0),!1;if(!c.shiftKey&&(34==d||35==d))return c=a("li:not(.hidden-item)",j.shadowList),j.markItem(c.length-1,!0,c),!1;if(13==d||27==d)return 13==d&&(h=a("li.active-item:not(.hidden-item)",j.shadowList),j.changeValue(a("li.active-item:not(.hidden-item)",j.shadowList))),j.hideList(),s.customDatalist&&h&&h[0]&&a(b.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&j.showList()}).bind("mousedown.datalistWidget",
29
+ function(){a(this).is(":focus")&&j.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"!=j._autocomplete){var c=a.prop(b.input,"value"),d=(b.input.name||b.input.id)+a.prop(b.input,"type");
30
+ if(!j.storedOptions)j.storedOptions=f(d);if(c&&-1==j.storedOptions.indexOf(c)&&(j.storedOptions.push(c),c=j.storedOptions,d)){c=c||[];try{localStorage.setItem("storedDatalistOptions"+d,JSON.stringify(c))}catch(h){}}}});a(i).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){j.destroy()})}}else e&&e.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(i).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===m?this.input.removeAttribute("autocomplete"):a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var h=this,f;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(i.QUnit||(f=a&&l.activeElement==h.input)?h.updateListOptions(f):e.ready("WINDOWLOAD",function(){h.updateTimer=
32
+ setTimeout(function(){h.updateListOptions();h=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=s.customDatalist&&a(this.input).hasClass("search-start");var h=[],e=[],j=[],c,d,i,g;for(d=a.prop(this.datalist,"options"),i=0,g=d.length;i<g;i++){c=d[i];if(c.disabled)return;c={value:a(c).val()||"",text:a.trim(a.attr(c,
33
+ "label")||c.textContent||c.innerText||a.text([c])||""),className:c.className||"",style:a.attr(c,"style")||""};c.text?c.text!=c.value&&(c.className+=" different-label-value"):c.text=c.value;e[i]=c.value;j[i]=c}if(!this.storedOptions)this.storedOptions=a(this.input).hasClass("no-datalist-cache")||"off"==this._autocomplete?[]:f((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==e.indexOf(a)&&j.push({value:a,text:a,className:"stored-suggest",style:""})});
34
+ for(i=0,g=j.length;i<g;i++)d=j[i],h[i]='<li class="'+d.className+'" style="'+d.style+'" tabindex="-1" role="listitem"><span class="option-label">'+d.text+'</span> <span class="option-value">'+d.value+"</span></li>";this.arrayOptions=j;this.shadowList.html('<div class="datalist-outer-box"><div class="datalist-box"><ul role="list">'+h.join("\n")+"</ul></div></div>");a.fn.bgIframe&&p&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var h=a.prop(this.input,
35
+ "value").toLowerCase();if(!(h===this.lastUpdatedValue||this.lastUnfoundValue&&0===h.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=h;var f=!1,e=this.searchStart,c=a("li",this.shadowList);h?this.arrayOptions.forEach(function(d,b){var g;if(!("lowerText"in d))d.lowerText=d.text!=d.value?d.value.toLowerCase()+d.text.toLowerCase():d.text.toLowerCase();g=d.lowerText.indexOf(h);(g=e?!g:-1!==g)?(a(c[b]).removeClass("hidden-item"),f=!0):a(c[b]).addClass("hidden-item")}):c.length&&(c.removeClass("hidden-item"),
36
+ f=!0);this.hasViewableData=f;!b&&f&&this.showList();if(!f)this.lastUnfoundValue=h,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var b=s.positionDatalist?a(this.input).position():e.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(i).unbind(".datalist"+b.id);a(l).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(h){h.target===b.input||
38
+ b.shadowList[0]===h.target||a.contains(b.shadowList[0],h.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,h=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;e.triggerInlineForm&&e.triggerInlineForm(b.input,"input");if(a(b.input).is(":focus"))a(b.input).one("blur",h);else h();b.triggeredByDatalist=!1}a(l).unbind(".datalist"+b.id);a(i).unbind(".datalist"+b.id).one("resize.datalist"+b.id,function(){b.shadowList.css({top:0,left:0})});return!0},scrollIntoView:function(b){var h=a("ul",this.shadowList),f=a("div.datalist-box",this.shadowList),e=b.position();e.top-=(parseInt(h.css("paddingTop"),10)||0)+(parseInt(h.css("marginTop"),10)||0)+(parseInt(h.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(),h=a.prop(this.input,"value");if(b!=h)a(this.input).prop("value",b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,h,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"),h&&(this.changeValue(f),this.scrollIntoView(f)),this.index=b}};(function(){n||e.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&&e.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)}}}};n?((a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length||e.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=e.contentAttr(this,"list");null!=b?this.removeAttribute("list"):b=a.data(this,"datalistListAttr");return null==b?m:b},set:function(b){a.data(this,"datalistListAttr",b);e.objectCreate(o,m,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}):b.list={attr:{get:function(){var a=e.contentAttr(this,"list");return null==a?m:a},set:function(b){e.contentAttr(this,
44
+ "list",b);e.objectCreate(o,m,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};e.defineNodeNameProperties("input",b);if(a.event.customEvent)a.event.customEvent.updateDatalist=!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;e.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
45
+ (function(a){var e=window.Modernizr,i=a.webshims,l=i.bugs,m=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),s=function(){if(m[0].querySelector)try{l.findRequired=!m[0].querySelector("select:required")}catch(a){l.findRequired=!1}};l.findRequired=!1;l.validationMessage=!1;l.valueAsNumberSet=!1;i.capturingEventPrevented=function(f){if(!f._isPolyfilled){var e=f.isDefaultPrevented,
46
+ b=f.preventDefault;f.preventDefault=function(){clearTimeout(a.data(f.target,f.type+"DefaultPrevented"));a.data(f.target,f.type+"DefaultPrevented",setTimeout(function(){a.removeData(f.target,f.type+"DefaultPrevented")},30));return b.apply(this,arguments)};f.isDefaultPrevented=function(){return!(!e.apply(this,arguments)&&!a.data(f.target,f.type+"DefaultPrevented"))};f._isPolyfilled=!0}};if(!e.formvalidation||l.bustedValidity)s();else if(i.capturingEvents(["input"]),i.capturingEvents(["invalid"],!0),
47
+ e.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var n=a("input",m).eq(0),q,r=function(a){i.loader.loadList(["dom-extend"]);i.ready("dom-extend",a)},p=function(f){var o=["form-extend","form-message","form-native-fix"];f&&(f.preventDefault(),f.stopImmediatePropagation());clearTimeout(q);setTimeout(function(){m&&(m.remove(),m=n=null)},9);if(!e.bugfreeformvalidation)i.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),i.modules["form-extend"].test=a.noop;i.isReady("form-number-date-api")&&
48
+ o.push("form-number-date-api");i.reTest(o);if(n)try{n.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&r(function(){i.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(b){!b&&this&&a.prop(this,"value",a.prop(this,"value"))}});i.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(b){if(!b&&this)b=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(b)}})})}catch(b){}(a.browser.opera||window.testGoodWithFix)&&
49
+ r(function(){var b=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(f){var e=i.defineNodeNameProperty(f,"checkValidity",{prop:{value:function(){i.fromSubmit||a(this).bind("invalid.checkvalidity",b);i.fromCheckValidity=!0;var c=e.prop._supvalue.apply(this,arguments);i.fromSubmit||a(this).unbind("invalid.checkvalidity",b);i.fromCheckValidity=!1;return c}}})})})};m.appendTo("head");if(window.opera||window.testGoodWithFix){s();l.validationMessage=!n.prop("validationMessage");
50
+ if((e.inputtypes||{}).date){try{n.prop("valueAsNumber",0)}catch(u){}l.valueAsNumberSet="1970-01-01"!=n.prop("value")}n.prop("value","")}m.bind("submit",function(a){e.bugfreeformvalidation=!1;p(a)});q=setTimeout(function(){m&&m.triggerHandler("submit")},9);a("input, select",m).bind("invalid",p).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&e.bugfreeformvalidation&&!i.bugs.bustedValidity&&function(){var f=/^(?:textarea|input)$/i,
51
+ e=!1;document.addEventListener("contextmenu",function(a){f.test(a.target.nodeName||"")&&(e=a.target.form)&&setTimeout(function(){e=!1},1)},!1);a(window).bind("invalid",function(a){if(a.originalEvent&&e&&e==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
52
+ jQuery.webshims.register("form-core",function(a,e,i,l,m,s){var n={radio:1},q={checkbox:1,radio:1},r=a([]),p=e.bugs,u=function(c){var c=a(c),d,b;d=r;if(n[c[0].type])b=c.prop("form"),d=(d=c[0].name)?b?a(b[d]):a(l.getElementsByName(d)).filter(function(){return!a.prop(this,"form")}):c,d=d.filter('[type="radio"]');return d},f=e.getContentValidationMessage=function(c,b,f){var g=a(c).data("errormessage")||c.getAttribute("x-moz-errormessage")||"";f&&g[f]&&(g=g[f]);"object"==typeof g&&(b=b||a.prop(c,"validity")||
53
+ {valid:1},b.valid||a.each(b,function(a,c){if(c&&"valid"!=a&&g[a])return g=g[a],!1}));if("object"==typeof g)g=g.defaultMessage;return g||""},o={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(c){return!(!a.prop(c,"willValidate")||!(a.prop(c,"validity")||{valid:1}).valid)},"invalid-element":function(c){return!(!a.prop(c,"willValidate")||(a.prop(c,"validity")||{valid:1}).valid)},"required-element":function(c){return!(!a.prop(c,"willValidate")||!a.prop(c,"required"))},"optional-element":function(c){return!!(a.prop(c,
54
+ "willValidate")&&!1===a.prop(c,"required"))},"in-range":function(c){if(!o[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||c.rangeOverflow||c.rangeUnderflow)},"out-of-range":function(c){if(!o[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||!c.rangeOverflow&&!c.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(c){a.expr[":"][c]=a.expr.filters[c+"-element"]});a.expr[":"].focus=function(a){try{var b=
55
+ a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(f){}return!1};var b=a.event.customEvent||{};(p.bustedValidity||p.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var c=a.find,b=a.find.matchesSelector,f=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,g=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,b=function(b){var d=arguments,d=a.call(d,1,d.length);d.unshift(b.replace(f,g));return c.apply(this,
56
+ d)},d;for(d in c)c.hasOwnProperty(d)&&(b[d]=c[d]);return b}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",l.documentElement))a.find.matchesSelector=function(a,c){c=c.replace(f,g);return b.call(this,a,c)}}();var h=a.prop,v={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(c,b,f){var g=h.apply(this,arguments);if(c&&"form"in c&&v[b]&&f!==m&&a(c).hasClass("form-ui-invalid")&&(a.prop(c,"validity")||{valid:1}).valid)a(c).getShadowElement().removeClass("form-ui-invalid"),
57
+ "checked"==b&&f&&u(c).not(c).removeClass("form-ui-invalid").removeAttr("aria-invalid");return g};var j=function(c,b){var f;a.each(c,function(c,e){if(e)return f="customError"==c?a.prop(b,"validationMessage"):c,!1});return f};a(l).bind(s.validityUIEvents||"focusout change refreshvalidityui",function(c){var b,f;if(c.target&&(b=a(c.target).getNativeElement()[0],!("submit"==b.type||!a.prop(b,"willValidate")||"focusout"==c.type&&"radio"==c.type))){f=a.data(b,"webshimsswitchvalidityclass");var g=function(){var f=
58
+ a.prop(b,"validity"),g=a(b).getShadowElement(),e,h,i,t;a(b).trigger("refreshCustomValidityRules");f.valid?g.hasClass("form-ui-valid")||(e="form-ui-valid",h="form-ui-invalid",t="changedvaliditystate",i="changedvalid",q[b.type]&&b.checked&&u(b).not(b).removeClass(h).addClass(e).removeAttr("aria-invalid"),a.removeData(b,"webshimsinvalidcause")):(f=j(f,b),a.data(b,"webshimsinvalidcause")!=f&&(a.data(b,"webshimsinvalidcause",f),t="changedvaliditystate"),g.hasClass("form-ui-invalid")||(e="form-ui-invalid",
59
+ h="form-ui-valid",q[b.type]&&!b.checked&&u(b).not(b).removeClass(h).addClass(e),i="changedinvalid"));e&&(g.addClass(e).removeClass(h),setTimeout(function(){a(b).trigger(i)},0));t&&setTimeout(function(){a(b).trigger(t)},0);a.removeData(c.target,"webshimsswitchvalidityclass")};f&&clearTimeout(f);"refreshvalidityui"==c.type?g():a.data(c.target,"webshimsswitchvalidityclass",setTimeout(g,9))}});b.changedvaliditystate=!0;b.refreshCustomValidityRules=!0;b.changedvalid=!0;b.changedinvalid=!0;b.refreshvalidityui=
60
+ !0;e.triggerInlineForm=function(c,b){a(c).trigger(b)};e.modules["form-core"].getGroupElements=u;p=function(){e.scrollRoot=a.browser.webkit||"BackCompat"==l.compatMode?a(l.body):a(l.documentElement)};p();e.ready("DOM",p);e.getRelOffset=function(c,b){var c=a(c),f=a(b).offset(),g;a.swap(a(c)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){g=c.offset()});f.top-=g.top;f.left-=g.left;return f};e.validityAlert=function(){var c=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":
61
+ "label",b,h=!1,g=!1,j,o={hideDelay:5E3,showFor:function(b,c,d,f){o._create();var b=a(b),e=a(b).getShadowElement(),w=o.getOffsetFromBody(e);o.clear();f?this.hide():(this.getMessage(b,c),this.position(e,w),this.show(),this.hideDelay&&(h=setTimeout(j,this.hideDelay)),a(i).bind("resize.validityalert",function(){clearTimeout(g);g=setTimeout(function(){o.position(e)},9)}));d||this.setFocus(e,w)},getOffsetFromBody:function(a){return e.getRelOffset(b,a)},setFocus:function(f,g){var h=a(f).getShadowFocusElement(),
62
+ t=e.scrollRoot.scrollTop(),i=(g||h.offset()).top-30,w;e.getID&&"label"==c&&b.attr("for",e.getID(h));t>i&&(e.scrollRoot.animate({scrollTop:i-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(t-i)),80)}),w=!0);try{h[0].focus()}catch(o){}w&&(e.scrollRoot.scrollTop(t),setTimeout(function(){e.scrollRoot.scrollTop(t)},0));setTimeout(function(){a(l).bind("focusout.validityalert",j)},10)},getMessage:function(c,g){g||(g=f(c[0])||c.prop("validationMessage"));g?a("span.va-box",b).text(g):this.hide()},position:function(c,
63
+ f){f=f?a.extend({},f):o.getOffsetFromBody(c);f.top+=c.outerHeight();b.css(f)},show:function(){"none"===b.css("display")&&b.css({opacity:0}).show();b.addClass("va-visible").fadeTo(400,1)},hide:function(){b.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(h);a(l).unbind(".validityalert");a(i).unbind(".validityalert");b.stop().removeAttr("for")},_create:function(){if(!b)b=o.errorBubble=a("<"+c+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
64
+ c+">").css({position:"absolute",display:"none"}),e.ready("DOM",function(){b.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&b.bgIframe()})}};j=a.proxy(o,"hide");return o}();(function(){var b,f=[],e;a(l).bind("invalid",function(g){if(!g.wrongWebkitInvalid){var h=a(g.target),j=h.getShadowElement();j.hasClass("form-ui-invalid")||(j.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(g.target).trigger("changedinvalid").trigger("changedvaliditystate")},
65
+ 0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=g.isDefaultPrevented,j=a.Event("firstinvalidsystem"),a(l).triggerHandler(j,{element:g.target,form:g.target.form,isInvalidUIPrevented:g.isDefaultPrevented}),h.trigger(b);b&&b.isDefaultPrevented()&&g.preventDefault();f.push(g.target);g.extraData="fix";clearTimeout(e);e=setTimeout(function(){var e={type:"lastinvalid",cancelable:!1,invalidlist:a(f)};b=!1;f=[];a(g.target).trigger(e,e)},9);j=h=null}})})();a.fn.getErrorMessage=function(){var b="",
66
+ d=this[0];d&&(b=f(d)||a.prop(d,"customValidationMessage")||a.prop(d,"validationMessage"));return b};s.replaceValidationUI&&e.ready("DOM forms",function(){a(l).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
67
+ (function(a,e,i){var l=e.audio&&e.video,m=!1,s=i.cfg.mediaelement,n=i.bugs,q=function(){i.ready("mediaelement-swf",function(){if(!i.mediaelement.createSWF)i.modules["mediaelement-swf"].test=a.noop,i.reTest(["mediaelement-swf"],l)})},r;if(l){var p=document.createElement("video");e.videoBuffered="buffered"in p;m="loop"in p;i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));e.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
68
+ test:e.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"))}if(l&&!s.preferFlash){var u=function(f){var e=f.target.parentNode;!s.preferFlash&&(a(f.target).is("audio, video")||e&&a("source:last",e)[0]==f.target)&&i.ready("DOM mediaelement",function(){r&&q();i.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){r&&!s.preferFlash&&i.mediaelement.createSWF&&!a(f.target).closest("audio, video").is(".nonnative-api-active")?(s.preferFlash=!0,document.removeEventListener("error",
69
+ u,!0),a("audio, video").mediaLoad(),i.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+f.target.src)):r||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);a("audio, video").each(function(){this.error&&u({target:this})})}n.track=!1;e.track&&function(){if(!n.track)n.track="number"!=typeof a("<track />")[0].readyState;if(!n.track)try{new TextTrackCue(2,3,"")}catch(f){n.track=!0}var e=i.cfg.track,b=function(b){a(b.target).filter("track").each(h)},
70
+ h=function(){if(n.track||!e.override&&3==a.prop(this,"readyState"))e.override=!0,i.reTest("track"),document.removeEventListener("error",b,!0),this&&a.nodeName(this,"track")?i.error("track support was overwritten. Please check your vtt including your vtt mime-type"):i.info("track support was overwritten. due to bad browser support")},l=function(){document.addEventListener("error",b,!0);n.track?h():a("track").each(h)};e.override||(i.isReady("track")?l():a(l))}();i.register("mediaelement-core",function(a,
71
+ i,b,h,p){r=swfobject.hasFlashPlayerVersion("9.0.115");var j=i.mediaelement,c=function(b,c){var b=a(b),d={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!d.src)return d;var e=b.attr("type");if(e)d.type=e,d.container=a.trim(e.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),e=j.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},d=!r&&"postMessage"in b&&l,u=
72
+ function(){var b;return function(){!b&&d&&(b=!0,i.loader.loadScript("https://www.youtube.com/player_api"),a(function(){i.polyfill("mediaelement-yt")}))}}(),g=function(){r?q():u()};i.addPolyfill("mediaelement-yt",{test:!d,d:["dom-support"]});j.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",
73
+ "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"]}};j.mimeTypes.source=a.extend({},j.mimeTypes.audio,j.mimeTypes.video);j.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||
74
+ -1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(j.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};j.srces=function(b,d){b=a(b);if(d)b.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(d)||(d=[d]),d.forEach(function(a){var c=h.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)});
75
+ else{var d=[],e=b[0].nodeName.toLowerCase(),g=c(b,e);g.src?d.push(g):a("source",b).each(function(){g=c(this,e);g.src&&d.push(g)});return d}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==p&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));j.srces(this,b);a(this).mediaLoad()})};j.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");
76
+ j.canThirdPlaySrces=function(b,c){var e="";if(r||d)b=a(b),c=c||j.srces(b),a.each(c,function(a,b){if(b.container&&b.src&&(r&&-1!=j.swfMimeTypes.indexOf(b.container)||d&&"video/youtube"==b.container))return e=b,!1});return e};var k={};j.canNativePlaySrces=function(b,c){var d="";if(l){var b=a(b),e=(b[0].nodeName||"").toLowerCase();if(!k[e])return d;c=c||j.srces(b);a.each(c,function(a,c){if(c.type&&k[e].prop._supvalue.call(b[0],c.type))return d=c,!1})}return d};j.setError=function(b,c){c||(c="can't play sources");
77
+ a(b).pause().data("mediaerror",c);i.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var x=function(){var a;return function(b,c,e){i.ready(r?"mediaelement-swf":"mediaelement-yt",function(){j.createSWF?j.createSWF(b,c,e):a||(a=!0,g(),x(b,c,e))});!a&&d&&!j.createSWF&&u()}}(),C=function(a,b,c,d,e){c||!1!==c&&b&&"third"==b.isActive?(c=j.canThirdPlaySrces(a,d))?x(a,c,b):e?j.setError(a,!1):C(a,b,!1,d,!0):(c=j.canNativePlaySrces(a,d))?b&&"third"==
78
+ b.isActive&&j.setActive(a,"html5",b):e?(j.setError(a,!1),b&&"third"==b.isActive&&j.setActive(a,"html5",b)):C(a,b,!0,d,!0)},z=/^(?:embed|object|datalist)$/i,D=function(b,c){var d=i.data(b,"mediaelementBase")||i.data(b,"mediaelementBase",{}),e=j.srces(b),g=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&g&&!(1!=g.nodeType||z.test(g.nodeName||"")))c=c||i.data(b,"mediaelement"),C(b,c,s.preferFlash||p,e)};a(h).bind("ended",function(b){var c=i.data(b.target,"mediaelement");
79
+ (!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||i.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var c=i.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=i.data(this,"mediaelement");D(this,a);l&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});k[b]=i.defineNodeNameProperty(b,
80
+ "canPlayType",{prop:{value:function(c){var d="";l&&k[b].prop._supvalue&&(d=k[b].prop._supvalue.call(this,c),"no"==d&&(d=""));!d&&r&&(c=a.trim((c||"").split(";")[0]),-1!=j.swfMimeTypes.indexOf(c)&&(d="maybe"));return d}}})});i.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=i.data(a,"mediaelementBase")||i.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){D(a);a=null},9)}});b=function(){i.addReady(function(b,c){a("video, audio",
81
+ b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<i.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():D(this);if(l){var b,c,d=this,e=function(){var b=a.prop(d,"buffered");if(b){for(var c="",e=0,g=b.length;e<g;e++)c+=b.end(e);return c}},g=function(){var b=e();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==
82
+ a.type&&(c=e());clearTimeout(b);b=setTimeout(g,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};e.track&&!n.track&&i.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});l?(i.isReady("mediaelement-core",!0),b(),i.ready("WINDOWLOAD mediaelement",g)):i.ready("mediaelement-swf",b);a(function(){i.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
@@ -0,0 +1,58 @@
1
+ jQuery.webshims.register("dom-extend",function(c,g,n,o,m){var x=g.modules,q=/\s*,\s*/,s={},r={},p={},v={},t={},k=c.fn.val,z=function(a,d,i,b,e){return e?k.call(c(a)):k.call(c(a),i)};c.fn.val=function(a){var d=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!d||1!==d.nodeType?k.call(this):c.prop(d,"value",a,"val",!0);if(c.isArray(a))return k.apply(this,arguments);var i=c.isFunction(a);return this.each(function(b){d=this;1===d.nodeType&&(i?(b=a.call(d,b,c.prop(d,"value",m,"val",
2
+ !0)),null==b&&(b=""),c.prop(d,"value",b,"val")):c.prop(d,"value",a,"val"))})};var e="_webshimsLib"+Math.round(1E3*Math.random()),b=function(a,d,i){a=a.jquery?a[0]:a;if(!a)return i||{};var b=c.data(a,e);i!==m&&(b||(b=c.data(a,e,{})),d&&(b[d]=i));return d?b&&b[d]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){c.fn[a.name]=function(){return this.map(function(){var d=b(this,
3
+ "shadowData");return d&&d[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){s[a]=c[a];c[a]=function(d,i,b,e,h){var w="val"==e,u=!w?s[a]:z;if(!d||!r[i]||1!==d.nodeType||!w&&e&&"attr"==a&&c.attrFn[i])return u(d,i,b,e,h);var y=(d.nodeName||"").toLowerCase(),f=p[y],j="attr"==a&&(!1===b||null===b)?"removeAttr":a,g,l,k;f||(f=p["*"]);f&&(f=f[i]);f&&(g=f[j]);if(g){if("value"==i)l=g.isVal,g.isVal=w;if("removeAttr"===j)return g.value.call(d);if(b===m)return g.get?g.get.call(d):g.value;g.set&&
4
+ ("attr"==a&&!0===b&&(b=i),k=g.set.call(d,b));if("value"==i)g.isVal=l}else k=u(d,i,b,e,h);if((b!==m||"removeAttr"===j)&&t[y]&&t[y][i]){var n;n="removeAttr"==j?!1:"prop"==j?!!b:!0;t[y][i].forEach(function(i){if(!i.only||(i.only="prop"==a)||"attr"==i.only&&"prop"!=a)i.call(d,b,n,w?"val":j,a)})}return k};v[a]=function(d,i,b){p[d]||(p[d]={});p[d][i]||(p[d][i]={});var e=p[d][i][a],f=function(d,c,y){return c&&c[d]?c[d]:y&&y[d]?y[d]:"prop"==a&&"value"==i?function(d){return b.isVal?z(this,i,d,!1,0===arguments.length):
5
+ s[a](this,i,d)}:"prop"==a&&"value"==d&&b.value.apply?function(d){var b=s[a](this,i);b&&b.apply&&(b=b.apply(this,arguments));return b}:function(d){return s[a](this,i,d)}};p[d][i][a]=b;if(b.value===m){if(!b.set)b.set=b.writeable?f("set",b,e):g.cfg.useStrict&&"prop"==i?function(){throw i+" is readonly on "+d;}:c.noop;if(!b.get)b.get=f("get",b,e)}["value","get","set"].forEach(function(a){b[a]&&(b["_sup"+a]=f(a,e))})}});var h=!c.browser.msie||8<parseInt(c.browser.version,10),l=function(){var a=g.getPrototypeOf(o.createElement("foobar")),
6
+ d=Object.prototype.hasOwnProperty;return function(i,c,e){var j=o.createElement(i),w=g.getPrototypeOf(j);if(h&&w&&a!==w&&(!j[c]||!d.call(j,c))){var u=j[c];e._supvalue=function(){return u&&u.apply?u.apply(this,arguments):u};w[c]=e.value}else e._supvalue=function(){var a=b(this,"propValue");return a&&a[c]&&a[c].apply?a[c].apply(this,arguments):a&&a[c]},f.extendValue(i,c,e.value);e.value._supvalue=e._supvalue}}(),f=function(){var a={};g.addReady(function(d,b){var i={},e=function(a){i[a]||(i[a]=c(d.getElementsByTagName(a)),
7
+ b[0]&&c.nodeName(b[0],a)&&(i[a]=i[a].add(b)))};c.each(a,function(a,d){e(a);!d||!d.forEach?g.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(d){i[a].each(d)})});i=null});var d,i=c([]),e=function(b,i){a[b]?a[b].push(i):a[b]=[i];c.isDOMReady&&(d||c(o.getElementsByTagName(b))).each(i)};return{createTmpCache:function(a){c.isDOMReady&&(d=d||c(o.getElementsByTagName(a)));return d||i},flushTmpCache:function(){d=null},content:function(a,d){e(a,function(){var a=c.attr(this,d);null!=a&&c.attr(this,
8
+ d,a)})},createElement:function(a,d){e(a,d)},extendValue:function(a,d,i){e(a,function(){c(this).each(function(){b(this,"propValue",{})[d]=this[d];this[d]=i})})}}}(),j=function(a,d){if(a.defaultValue===m)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={}};c.extend(g,{getID:function(){var a=(new Date).getTime();return function(d){var d=c(d),b=d.attr("id");b||(a++,b="ID-"+a,d.attr("id",b));
9
+ return b}}(),extendUNDEFProp:function(a,d){c.each(d,function(d,b){d in a||(a[d]=b)})},createPropDefault:j,data:b,moveToFirstEvent:function(){var a=c._data?"_data":"data";return function(d,b,e){if((d=(c[a](d,"events")||{})[b])&&1<d.length)b=d.pop(),e||(e="bind"),"bind"==e&&d.delegateCount?d.splice(d.delegateCount,0,b):d.unshift(b)}}(),addShadowDom:function(){var a,d,i,f,h={init:!1,start:function(){if(!this.init)this.init=!0,this.height=c(o).height(),this.width=c(o).width(),setInterval(function(){var a=
10
+ c(o).height(),d=c(o).width();if(a!=h.height||d!=h.width)h.height=a,h.width=d,f({type:"docresize"})},400)}};f=function(b){clearTimeout(a);a=setTimeout(function(){if("resize"==b.type){var a=c(n).width(),e=c(n).width();if(e==d&&a==i)return;d=e;i=a;h.height=c(o).height();h.width=c(o).width()}c.event.trigger("updateshadowdom")},40)};c(n).bind("resize",f);c.event.customEvent.updateshadowdom=!0;return function(a,d,i){i=i||{};a.jquery&&(a=a[0]);d.jquery&&(d=d[0]);var f=c.data(a,e)||c.data(a,e,{}),j=c.data(d,
11
+ e)||c.data(d,e,{}),g={};if(i.shadowFocusElement){if(i.shadowFocusElement){if(i.shadowFocusElement.jquery)i.shadowFocusElement=i.shadowFocusElement[0];g=c.data(i.shadowFocusElement,e)||c.data(i.shadowFocusElement,e,g)}}else i.shadowFocusElement=d;f.hasShadow=d;g.nativeElement=j.nativeElement=a;g.shadowData=j.shadowData=f.shadowData={nativeElement:a,shadowElement:d,shadowFocusElement:i.shadowFocusElement};i.shadowChilds&&i.shadowChilds.each(function(){b(this,"shadowData",j.shadowData)});if(i.data)g.shadowData.data=
12
+ j.shadowData.data=f.shadowData.data=i.data;i=null;h.start()}}(),propTypes:{standard:function(a){j(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,""+d)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){j(a);if(!a.prop)a.prop={set:function(d){d?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var a=o.createElement("a");a.style.display="none";return function(d,b){j(d);if(!d.prop)d.prop=
13
+ {set:function(a){d.attr.set.call(this,a)},get:function(){var d=this.getAttribute(b),e;if(null==d)return"";a.setAttribute("href",d+"");if(!c.support.hrefNormalized){try{c(a).insertAfter(this),e=a.getAttribute("href",4)}catch(f){e=a.getAttribute("href",4)}c(a).detach()}return e||a.href}}}}(),enumarated:function(a){j(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,d)},get:function(){var d=(a.attr.get.call(this)||"").toLowerCase();if(!d||-1==a.limitedTo.indexOf(d))d=a.defaultValue;return d}}}},
14
+ reflectProperties:function(a,d){"string"==typeof d&&(d=d.split(q));d.forEach(function(d){g.defineNodeNamesProperty(a,d,{prop:{set:function(a){c.attr(this,d,a)},get:function(){return c.attr(this,d)||""}}})})},defineNodeNameProperty:function(a,d,b){r[d]=!0;if(b.reflect)g.propTypes[b.propType||"standard"](b,d);["prop","attr","removeAttr"].forEach(function(e){var f=b[e];f&&(f="prop"===e?c.extend({writeable:!0},f):c.extend({},f,{writeable:!0}),v[e](a,d,f),"*"!=a&&g.cfg.extendNative&&"prop"==e&&f.value&&
15
+ c.isFunction(f.value)&&l(a,d,f),b[e]=f)});b.initAttr&&f.content(a,d);return b},defineNodeNameProperties:function(a,d,b,e){for(var c in d)!e&&d[c].initAttr&&f.createTmpCache(a),b&&(d[c][b]?g.log("override: "+a+"["+c+"] for "+b):(d[c][b]={},["value","set","get"].forEach(function(a){a in d[c]&&(d[c][b][a]=d[c][a],delete d[c][a])}))),d[c]=g.defineNodeNameProperty(a,c,d[c]);e||f.flushTmpCache();return d},createElement:function(a,d,b){var e;c.isFunction(d)&&(d={after:d});f.createTmpCache(a);d.before&&f.createElement(a,
16
+ d.before);b&&(e=g.defineNodeNameProperties(a,b,!1,!0));d.after&&f.createElement(a,d.after);f.flushTmpCache();return e},onNodeNamesPropertyModify:function(a,d,b,e){"string"==typeof a&&(a=a.split(q));c.isFunction(b)&&(b={set:b});a.forEach(function(a){t[a]||(t[a]={});"string"==typeof d&&(d=d.split(q));b.initAttr&&f.createTmpCache(a);d.forEach(function(d){t[a][d]||(t[a][d]=[],r[d]=!0);if(b.set){if(e)b.set.only=e;t[a][d].push(b.set)}b.initAttr&&f.content(a,d)});f.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,
17
+ d,b){b||(b={});if(c.isFunction(b))b.set=b;g.defineNodeNamesProperty(a,d,{attr:{set:function(a){this.setAttribute(d,a);b.set&&b.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?m:d}},removeAttr:{value:function(){this.removeAttribute(d);b.set&&b.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:b.initAttr||!1})},contentAttr:function(a,d,b){if(a.nodeName){if(b===m)return a=a.attributes[d]||{},b=a.specified?a.value:null,null==b?m:b;"boolean"==typeof b?b?a.setAttribute(d,d):
18
+ a.removeAttribute(d):a.setAttribute(d,b)}},activeLang:function(){var a=[],b={},e,f,h=/:\/\/|^\.*\//,j=function(a,b,d){return b&&d&&-1!==c.inArray(b,d.availabeLangs||[])?(a.loading=!0,d=d.langSrc,h.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+b+".js",function(){a.langObj[b]?(a.loading=!1,u(a,!0)):c(function(){a.langObj[b]&&u(a,!0);a.loading=!1})}),!0):!1},w=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},u=function(a,b){if(a.activeLang!=e&&a.activeLang!==f){var d=x[a.module].options;
19
+ if(a.langObj[e]||f&&a.langObj[f])a.activeLang=e,a.callback(a.langObj[e]||a.langObj[f],e),w(a.module);else if(!b&&!j(a,e,d)&&!j(a,f,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],e),w(a.module)}};return function(h){if("string"==typeof h&&h!==e)e=h,f=e.split("-")[0],e==f&&(f=!1),c.each(a,function(a,b){u(b)});else if("object"==typeof h)if(h.register)b[h.register]||(b[h.register]=[]),b[h.register].push(h),h.callback();else{if(!h.activeLang)h.activeLang="";a.push(h);u(h)}return e}}()});
20
+ c.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,e,c,f){"string"==typeof a&&(a=a.split(q));var h={};a.forEach(function(a){h[a]=g[b](a,e,c,f)});return h}});g.isReady("webshimLocalization",!0)});
21
+ (function(c,g){var n=c.webshims.browserVersion;if(!(c.browser.mozilla&&5<n)&&(!c.browser.msie||12>n&&7<n)){var o={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(c,g){c.getAttribute("role")||c.setAttribute("role",g)};c.webshims.addReady(function(n,q){c.each(o,function(g,t){for(var k=c(g,n).add(q.filter(g)),o=0,e=k.length;o<e;o++)m(k[o],t)});if(n===g){var s=g.getElementsByTagName("header")[0],r=g.getElementsByTagName("footer"),p=r.length;
22
+ s&&!c(s).closest("section, article")[0]&&m(s,"banner");p&&(s=r[p-1],c(s).closest("section, article")[0]||m(s,"contentinfo"))}})}})(jQuery,document);
23
+ (function(c,g,n){var o=g.audio&&g.video,m=!1,x=n.cfg.mediaelement,q=n.bugs,s=function(){n.ready("mediaelement-swf",function(){if(!n.mediaelement.createSWF)n.modules["mediaelement-swf"].test=c.noop,n.reTest(["mediaelement-swf"],o)})},r;if(o){var p=document.createElement("video");g.videoBuffered="buffered"in p;m="loop"in p;n.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(n.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
24
+ test:g.videoBuffered,d:["dom-support"]}),n.reTest("mediaelement-native-fix"))}if(o&&!x.preferFlash){var v=function(g){var k=g.target.parentNode;!x.preferFlash&&(c(g.target).is("audio, video")||k&&c("source:last",k)[0]==g.target)&&n.ready("DOM mediaelement",function(){r&&s();n.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){r&&!x.preferFlash&&n.mediaelement.createSWF&&!c(g.target).closest("audio, video").is(".nonnative-api-active")?(x.preferFlash=!0,document.removeEventListener("error",
25
+ v,!0),c("audio, video").mediaLoad(),n.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):r||document.removeEventListener("error",v,!0)},20)})})};document.addEventListener("error",v,!0);c("audio, video").each(function(){this.error&&v({target:this})})}q.track=!1;g.track&&function(){if(!q.track)q.track="number"!=typeof c("<track />")[0].readyState;if(!q.track)try{new TextTrackCue(2,3,"")}catch(g){q.track=!0}var k=n.cfg.track,m=function(b){c(b.target).filter("track").each(e)},
26
+ e=function(){if(q.track||!k.override&&3==c.prop(this,"readyState"))k.override=!0,n.reTest("track"),document.removeEventListener("error",m,!0),this&&c.nodeName(this,"track")?n.error("track support was overwritten. Please check your vtt including your vtt mime-type"):n.info("track support was overwritten. due to bad browser support")},b=function(){document.addEventListener("error",m,!0);q.track?e():c("track").each(e)};k.override||(n.isReady("track")?b():c(b))}();n.register("mediaelement-core",function(c,
27
+ k,n,e,b){r=swfobject.hasFlashPlayerVersion("9.0.115");var h=k.mediaelement,l=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=h.getTypeForSrc(d.src,b))d.type=e,d.container=e;if(e=a.attr("media"))d.media=e;return d},f=!r&&"postMessage"in n&&o,j=
28
+ function(){var a;return function(){!a&&f&&(a=!0,k.loader.loadScript("https://www.youtube.com/player_api"),c(function(){k.polyfill("mediaelement-yt")}))}}(),a=function(){r?s():j()};k.addPolyfill("mediaelement-yt",{test:!f,d:["dom-support"]});h.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"]}};h.mimeTypes.source=c.extend({},h.mimeTypes.audio,h.mimeTypes.video);h.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(h.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return d=b,!1});return d};h.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 d=e.createElement("source");"string"==typeof b&&(b={src:b});d.setAttribute("src",b.src);b.type&&d.setAttribute("type",b.type);b.media&&d.setAttribute("media",b.media);a.append(d)});
31
+ else{var b=[],d=a[0].nodeName.toLowerCase(),f=l(a,d);f.src?b.push(f):c("source",a).each(function(){f=l(this,d);f.src&&b.push(f)});return b}};c.fn.loadMediaSrc=function(a,d){return this.each(function(){d!==b&&(c(this).removeAttr("poster"),d&&c.attr(this,"poster",d));h.srces(this,a);c(this).mediaLoad()})};h.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
+ h.canThirdPlaySrces=function(a,b){var d="";if(r||f)a=c(a),b=b||h.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&(r&&-1!=h.swfMimeTypes.indexOf(b.container)||f&&"video/youtube"==b.container))return d=b,!1});return d};var d={};h.canNativePlaySrces=function(a,b){var e="";if(o){var a=c(a),f=(a[0].nodeName||"").toLowerCase();if(!d[f])return e;b=b||h.srces(a);c.each(b,function(b,c){if(c.type&&d[f].prop._supvalue.call(a[0],c.type))return e=c,!1})}return e};h.setError=function(a,b){b||(b="can't play sources");
33
+ c(a).pause().data("mediaerror",b);k.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var i=function(){var b;return function(d,c,e){k.ready(r?"mediaelement-swf":"mediaelement-yt",function(){h.createSWF?h.createSWF(d,c,e):b||(b=!0,a(),i(d,c,e))});!b&&f&&!h.createSWF&&j()}}(),p=function(a,b,d,c,e){d||!1!==d&&b&&"third"==b.isActive?(d=h.canThirdPlaySrces(a,c))?i(a,d,b):e?h.setError(a,!1):p(a,b,!1,c,!0):(d=h.canNativePlaySrces(a,c))?b&&"third"==
34
+ b.isActive&&h.setActive(a,"html5",b):e?(h.setError(a,!1),b&&"third"==b.isActive&&h.setActive(a,"html5",b)):p(a,b,!0,c,!0)},v=/^(?:embed|object|datalist)$/i,A=function(a,d){var e=k.data(a,"mediaelementBase")||k.data(a,"mediaelementBase",{}),f=h.srces(a),g=a.parentNode;clearTimeout(e.loadTimer);c.data(a,"mediaerror",!1);if(f.length&&g&&!(1!=g.nodeType||v.test(g.nodeName||"")))d=d||k.data(a,"mediaelement"),p(a,d,x.preferFlash||b,f)};c(e).bind("ended",function(a){var b=k.data(a.target,"mediaelement");
35
+ (!m||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,"paused")&&c.prop(a.target,"loop")&&c(a.target).prop("currentTime",0).play()},1)});m||k.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=k.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=k.data(this,"mediaelement");A(this,a);o&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});d[a]=k.defineNodeNameProperty(a,
36
+ "canPlayType",{prop:{value:function(b){var e="";o&&d[a].prop._supvalue&&(e=d[a].prop._supvalue.call(this,b),"no"==e&&(e=""));!e&&r&&(b=c.trim((b||"").split(";")[0]),-1!=h.swfMimeTypes.indexOf(b)&&(e="maybe"));return e}}})});k.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=k.data(a,"mediaelementBase")||k.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){A(a);a=null},9)}});n=function(){k.addReady(function(a,b){c("video, audio",
37
+ a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<k.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(o){var a,b,d=this,e=function(){var a=c.prop(d,"buffered");if(a){for(var b="",e=0,f=a.length;e<f;e++)b+=a.end(e);return b}},f=function(){var a=e();a!=b&&(b=a,c(d).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(d){"progress"==
38
+ d.type&&(b=e());clearTimeout(a);a=setTimeout(f,999)}).bind("emptied stalled mediaerror abort suspend",function(d){"emptied"==d.type&&(b=!1);clearTimeout(a)})}})})};g.track&&!q.track&&k.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});o?(k.isReady("mediaelement-core",!0),n(),k.ready("WINDOWLOAD mediaelement",a)):k.ready("mediaelement-swf",n);c(function(){k.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
39
+ jQuery.webshims.register("track",function(c,g,n,o){var m=g.mediaelement;(new Date).getTime();var x={subtitles:1,captions:1},q=function(c){var b={};c.addEventListener=function(c,e){b[c]&&g.error("always use $.bind to the shimed event: "+c+" already bound fn was: "+b[c]+" your fn was: "+e);b[c]=e};c.removeEventListener=function(c,e){b[c]&&b[c]!=e&&g.error("always use $.bind/$.unbind to the shimed event: "+c+" already bound fn was: "+b[c]+" your fn was: "+e);b[c]&&delete b[c]};return c},s={getCueById:function(c){for(var b=
40
+ null,g=0,l=this.length;g<l;g++)if(this[g].id===c){b=this[g];break}return b}},r={shimActiveCues:null,_shimActiveCues:null,activeCues:null,cues:null,kind:"subtitles",label:"",language:"",mode:"disabled",readyState:0,oncuechange:null,toString:function(){return"[object TextTrack]"},addCue:function(c){if(this.cues){var b=this.cues[this.cues.length-1];b&&b.startTime>c.startTime&&g.error("cue startTime higher than previous cue's startTime")}else this.cues=m.createCueList();c.track&&g.error("cue already part of a track element");
41
+ c.track=this;this.cues.push(c)},removeCue:function(){g.error("not implemented yet")},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},p=["kind","label","srclang"],v=Function.prototype.call.bind(Object.prototype.hasOwnProperty),t=function(e,b){var h=[],l=[],f=[],j,a;e||(e=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}));if(!b)e.blockTrackListUpdate=!0,b=c.prop(this,"textTracks"),e.blockTrackListUpdate=!1;clearTimeout(e.updateTrackListTimer);
42
+ c("track",this).each(function(){var a=c.prop(this,"track");f.push(a);-1==b.indexOf(a)&&l.push(a)});if(e.scriptedTextTracks)for(j=0,a=e.scriptedTextTracks.length;j<a;j++)f.push(e.scriptedTextTracks[j]),-1==b.indexOf(e.scriptedTextTracks[j])&&l.push(e.scriptedTextTracks[j]);for(j=0,a=b.length;j<a;j++)-1==f.indexOf(b[j])&&h.push(b[j]);if(h.length||l.length){b.splice(0);for(j=0,a=f.length;j<a;j++)b.push(f[j]);for(j=0,a=h.length;j<a;j++)c([b]).triggerHandler(c.Event({type:"removetrack",track:b,track:h[j]}));
43
+ for(j=0,a=l.length;j<a;j++)c([b]).triggerHandler(c.Event({type:"addtrack",track:b,track:l[j]}));(e.scriptedTextTracks||h.length)&&c(this).triggerHandler("updatetrackdisplay")}},k=function(e,b){var h,l;b||(b=g.data(e,"trackData"));if(b&&!b.isTriggering)b.isTriggering=!0,h=(b.track||{}).mode,l=(b.track||{}).kind,setTimeout(function(){if(h!==(b.track||{}).mode||l!=(b.track||{}).kind)(b.track||{}).readyState?c(e).parent().triggerHandler("updatetrackdisplay"):c(e).triggerHandler("checktrackmode");b.isTriggering=
44
+ !1},9)},z=c("<div />")[0];n.TextTrackCue=function(c,b,h){3!=arguments.length&&g.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=c;this.endTime=b;this.text=h;this.id="";this.pauseOnExit=!1;q(this)};n.TextTrackCue.prototype={onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var c="",b="",g=o.createDocumentFragment(),l;if(!v(this,"getCueAsHTML"))l=this.getCueAsHTML=function(){var f,j;if(c!=this.text){c=this.text;b=m.parseCueTextToHTML(c);z.innerHTML=b;for(f=
45
+ 0,j=z.childNodes.length;f<j;f++)g.appendChild(z.childNodes[f].cloneNode(!0))}return g.cloneNode(!0)};return l?l.apply(this,arguments):g.cloneNode(!0)},track:null,id:""};m.createCueList=function(){return c.extend([],s)};m.parseCueTextToHTML=function(){var c=/(<\/?[^>]+>)/ig,b=/^(?:c|v|ruby|rt|b|i|u)/,g=/\<\s*\//,l=function(b,a,d,c){g.test(c)?b="</"+b+">":(d.splice(0,1),b="<"+b+" "+a+'="'+d.join(" ").replace(/\"/g,"&#34;")+'">');return b},f=function(c){var a=c.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);
46
+ a[0]&&(a[0]=a[0].toLowerCase(),b.test(a[0])?"c"==a[0]?c=l("span","class",a,c):"v"==a[0]&&(c=l("q","title",a,c)):c="");return c};return function(b){return b.replace(c,f)}}();m.loadTextTrack=function(e,b,h,l){var f=h.track,j=function(){var a=c.prop(b,"src"),d,h;if("disabled"!=f.mode&&a&&c.attr(b,"src")&&(c(e).unbind("play playing timeupdate updatetrackdisplay",j),c(b).unbind("checktrackmode",j),!f.readyState)){d=function(){f.readyState=3;f.cues=null;f.activeCues=f.shimActiveCues=f._shimActiveCues=null;
47
+ c(b).triggerHandler("error")};f.readyState=1;try{f.cues=m.createCueList(),f.activeCues=f.shimActiveCues=f._shimActiveCues=m.createCueList(),h=c.ajax({dataType:"text",url:a,success:function(a){"text/vtt"!=h.getResponseHeader("content-type")&&g.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt");m.parseCaptions(a,f,function(a){a&&"length"in a?(f.readyState=2,c(b).triggerHandler("load"),c(e).triggerHandler("updatetrackdisplay")):d()})},error:d})}catch(l){d(),
48
+ g.warn(l)}}};f.readyState=0;f.shimActiveCues=null;f._shimActiveCues=null;f.activeCues=null;f.cues=null;c(e).unbind("play playing timeupdate updatetrackdisplay",j);c(b).unbind("checktrackmode",j);c(e).bind("play playing timeupdate updatetrackdisplay",j);c(b).bind("checktrackmode",j);if(l)f.mode=x[f.kind]?"showing":"hidden",j()};m.createTextTrack=function(e,b){var h,l;if(b.nodeName&&(l=g.data(b,"trackData")))k(b,l),h=l.track;if(!h)h=q(g.objectCreate(r)),p.forEach(function(e){var g=c.prop(b,e);g&&("srclang"==
49
+ e&&(e="language"),h[e]=g)}),b.nodeName?(l=g.data(b,"trackData",{track:h}),m.loadTextTrack(e,b,l,c.prop(b,"default"))):(h.cues=m.createCueList(),h.activeCues=h._shimActiveCues=h.shimActiveCues=m.createCueList(),h.mode="hidden",h.readyState=2);return h};m.parseCaptionChunk=function(){var c=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,b=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,g=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,l=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;
50
+ return function(f){var j,a,d,i;if(b.exec(f)||g.exec(f)||l.exec(f))return null;for(f=f.split(/\n/g);!f[0].replace(/\s+/ig,"").length&&0<f.length;)f.shift();for(f[0].match(/^\s*[a-z0-9]+\s*$/ig)&&(d=""+f.shift().replace(/\s*/ig,""));0<f.length;){if(i=c.exec(f[0]))a=i.slice(1),j=parseInt(3600*(a[0]||0),10)+parseInt(60*(a[1]||0),10)+parseInt(a[2]||0,10)+parseFloat("0."+(a[3]||0)),a=parseInt(3600*(a[4]||0),10)+parseInt(60*(a[5]||0),10)+parseInt(a[6]||0,10)+parseFloat("0."+(a[7]||0));f=f.slice(0,0).concat(f.slice(1));
51
+ break}if(!j&&!a)return null;f=f.join("\n");j=new TextTrackCue(j,a,f);if(d)j.id=d;return j}}();m.parseCaptions=function(c,b,h){m.createCueList();var l,f,j,a,d;c?(j=/^WEBVTT(\s*FILE)?/ig,f=function(i,k){for(;i<k;i++){l=c[i];if(j.test(l))d=!0;else if(l.replace(/\s*/ig,"").length){if(!d){g.error("please use WebVTT format. This is the standard");h(null);break}(l=m.parseCaptionChunk(l,i))&&b.addCue(l)}if(a<(new Date).getTime()-9){i++;setTimeout(function(){a=(new Date).getTime();f(i,k)},90);break}}i>=k&&
52
+ (d||g.error("please use WebVTT format. This is the standard"),h(b.cues))},c=c.replace(/\r\n/g,"\n"),setTimeout(function(){c=c.replace(/\r/g,"\n");setTimeout(function(){a=(new Date).getTime();c=c.split(/\n\n+/g);f(0,c.length)},9)},9)):g.error("Required parameter captionData not supplied.")};m.createTrackList=function(c,b){b=b||g.data(c,"mediaelementBase")||g.data(c,"mediaelementBase",{});if(!b.textTracks)b.textTracks=[],g.defineProperties(b.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),
53
+ q(b.textTracks);return b.textTracks};Modernizr.track||(g.defineNodeNamesBooleanProperty(["track"],"default"),g.reflectProperties(["track"],["srclang","label"]),g.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));g.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(c){var b=g.data(this,"trackData");this.setAttribute("data-kind",c);if(b)b.attrKind=c},get:function(){var c=g.data(this,"trackData");return c&&"attrKind"in c?c.attrKind:this.getAttribute("kind")}}:
54
+ {},reflect:!0,propType:"enumarated",defaultValue:"subtitles",limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});g.onNodeNamesPropertyModify("track","kind",function(){var e=g.data(this,"trackData");if(e)e.track.kind=c.prop(this,"kind"),k(this,e)});g.onNodeNamesPropertyModify("track","src",function(e){if(e){var e=g.data(this,"trackData"),b;e&&(b=c(this).closest("video, audio"),b[0]&&m.loadTextTrack(b,this,e))}});g.defineNodeNamesProperties(["track"],{ERROR:{value:3},LOADED:{value:2},
55
+ LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(c.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return m.createTextTrack(c(this).closest("audio, video")[0],this)},writeable:!1}},"prop");g.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var c=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}),b=m.createTrackList(this,c);c.blockTrackListUpdate||t.call(this,c,b);return b},writeable:!1},addTextTrack:{value:function(c,
56
+ b,h){c=m.createTextTrack(this,{kind:c||"",label:b||"",srclang:h||""});b=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{});if(!b.scriptedTextTracks)b.scriptedTextTracks=[];b.scriptedTextTracks.push(c);t.call(this);return c}}},"prop");c(o).bind("emptied ended updatetracklist",function(e){if(c(e.target).is("audio, video")){var b=g.data(e.target,"mediaelementBase");if(b)clearTimeout(b.updateTrackListTimer),b.updateTrackListTimer=setTimeout(function(){t.call(e.target,b)},0)}});g.addReady(function(e,
57
+ b){var h=b.filter("video, audio, track").closest("audio, video");c("video, audio",e).add(h).each(function(){t.call(this)}).each(function(){if(Modernizr.track){var b=this.textTracks;c.prop(this,"textTracks").length!=b.length&&g.error("textTracks couldn't be copied");c("track",this).each(function(){var b=c.prop(this,"track"),e=this.track,a,d;if(e){a=c.prop(this,"kind");d=e.readyState||this.readyState;if(e.mode||d)b.mode=e.mode;if("descriptions"!=a)e.mode="string"==typeof e.mode?"disabled":0,this.kind=
58
+ "metadata",c(this).attr({kind:a})}}).bind("load error",function(b){b.originalEvent&&b.stopImmediatePropagation()})}});h.each(function(){var b=this,c=g.data(b,"mediaelementBase");if(c)clearTimeout(c.updateTrackListTimer),c.updateTrackListTimer=setTimeout(function(){t.call(b,c)},9)})});Modernizr.track&&c("video, audio").trigger("trackapichange")});
@@ -0,0 +1,80 @@
1
+ jQuery.webshims.register("dom-extend",function(a,g,i,j,m){var u=g.modules,o=/\s*,\s*/,s={},r={},n={},v={},p={},q=a.fn.val,t=function(f,k,w,c,b){return b?q.call(a(f)):q.call(a(f),w)};a.fn.val=function(f){var k=this[0];arguments.length&&null==f&&(f="");if(!arguments.length)return!k||1!==k.nodeType?q.call(this):a.prop(k,"value",f,"val",!0);if(a.isArray(f))return q.apply(this,arguments);var w=a.isFunction(f);return this.each(function(c){k=this;1===k.nodeType&&(w?(c=f.call(k,c,a.prop(k,"value",m,"val",
2
+ !0)),null==c&&(c=""),a.prop(k,"value",c,"val")):a.prop(k,"value",f,"val"))})};var h="_webshimsLib"+Math.round(1E3*Math.random()),e=function(f,k,c){f=f.jquery?f[0]:f;if(!f)return c||{};var b=a.data(f,h);c!==m&&(b||(b=a.data(f,h,{})),k&&(b[k]=c));return k?b&&b[k]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(f){a.fn[f.name]=function(){return this.map(function(){var a=e(this,
3
+ "shadowData");return a&&a[f.prop]||this})}});["removeAttr","prop","attr"].forEach(function(f){s[f]=a[f];a[f]=function(k,c,b,e,h){var x="val"==e,z=!x?s[f]:t;if(!k||!r[c]||1!==k.nodeType||!x&&e&&"attr"==f&&a.attrFn[c])return z(k,c,b,e,h);var y=(k.nodeName||"").toLowerCase(),d=n[y],g="attr"==f&&(!1===b||null===b)?"removeAttr":f,l,q,i;d||(d=n["*"]);d&&(d=d[c]);d&&(l=d[g]);if(l){if("value"==c)q=l.isVal,l.isVal=x;if("removeAttr"===g)return l.value.call(k);if(b===m)return l.get?l.get.call(k):l.value;l.set&&
4
+ ("attr"==f&&!0===b&&(b=c),i=l.set.call(k,b));if("value"==c)l.isVal=q}else i=z(k,c,b,e,h);if((b!==m||"removeAttr"===g)&&p[y]&&p[y][c]){var j;j="removeAttr"==g?!1:"prop"==g?!!b:!0;p[y][c].forEach(function(a){if(!a.only||(a.only="prop"==f)||"attr"==a.only&&"prop"!=f)a.call(k,b,j,x?"val":g,f)})}return i};v[f]=function(k,c,b){n[k]||(n[k]={});n[k][c]||(n[k][c]={});var e=n[k][c][f],d=function(a,k,y){return k&&k[a]?k[a]:y&&y[a]?y[a]:"prop"==f&&"value"==c?function(a){return b.isVal?t(this,c,a,!1,0===arguments.length):
5
+ s[f](this,c,a)}:"prop"==f&&"value"==a&&b.value.apply?function(a){var k=s[f](this,c);k&&k.apply&&(k=k.apply(this,arguments));return k}:function(a){return s[f](this,c,a)}};n[k][c][f]=b;if(b.value===m){if(!b.set)b.set=b.writeable?d("set",b,e):g.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+k;}:a.noop;if(!b.get)b.get=d("get",b,e)}["value","get","set"].forEach(function(a){b[a]&&(b["_sup"+a]=d(a,e))})}});var l=!a.browser.msie||8<parseInt(a.browser.version,10),b=function(){var a=g.getPrototypeOf(j.createElement("foobar")),
6
+ k=Object.prototype.hasOwnProperty;return function(b,d,h){var p=j.createElement(b),x=g.getPrototypeOf(p);if(l&&x&&a!==x&&(!p[d]||!k.call(p,d))){var z=p[d];h._supvalue=function(){return z&&z.apply?z.apply(this,arguments):z};x[d]=h.value}else h._supvalue=function(){var a=e(this,"propValue");return a&&a[d]&&a[d].apply?a[d].apply(this,arguments):a&&a[d]},c.extendValue(b,d,h.value);h.value._supvalue=h._supvalue}}(),c=function(){var f={};g.addReady(function(c,k){var b={},w=function(f){b[f]||(b[f]=a(c.getElementsByTagName(f)),
7
+ k[0]&&a.nodeName(k[0],f)&&(b[f]=b[f].add(k)))};a.each(f,function(a,f){w(a);!f||!f.forEach?g.warn("Error: with "+a+"-property. methods: "+f):f.forEach(function(f){b[a].each(f)})});b=null});var k,c=a([]),b=function(c,b){f[c]?f[c].push(b):f[c]=[b];a.isDOMReady&&(k||a(j.getElementsByTagName(c))).each(b)};return{createTmpCache:function(f){a.isDOMReady&&(k=k||a(j.getElementsByTagName(f)));return k||c},flushTmpCache:function(){k=null},content:function(f,c){b(f,function(){var f=a.attr(this,c);null!=f&&a.attr(this,
8
+ c,f)})},createElement:function(a,f){b(a,f)},extendValue:function(f,c,k){b(f,function(){a(this).each(function(){e(this,"propValue",{})[c]=this[c];this[c]=k})})}}}(),d=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(g,{getID:function(){var f=(new Date).getTime();return function(c){var c=a(c),b=c.attr("id");b||(f++,b="ID-"+f,c.attr("id",b));
9
+ return b}}(),extendUNDEFProp:function(f,c){a.each(c,function(a,c){a in f||(f[a]=c)})},createPropDefault:d,data:e,moveToFirstEvent:function(){var f=a._data?"_data":"data";return function(c,b,d){if((c=(a[f](c,"events")||{})[b])&&1<c.length)b=c.pop(),d||(d="bind"),"bind"==d&&c.delegateCount?c.splice(c.delegateCount,0,b):c.unshift(b)}}(),addShadowDom:function(){var f,c,b,d,l={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(j).height(),this.width=a(j).width(),setInterval(function(){var f=
10
+ a(j).height(),c=a(j).width();if(f!=l.height||c!=l.width)l.height=f,l.width=c,d({type:"docresize"})},400)}};d=function(d){clearTimeout(f);f=setTimeout(function(){if("resize"==d.type){var f=a(i).width(),e=a(i).width();if(e==c&&f==b)return;c=e;b=f;l.height=a(j).height();l.width=a(j).width()}a.event.trigger("updateshadowdom")},40)};a(i).bind("resize",d);a.event.customEvent.updateshadowdom=!0;return function(f,c,b){b=b||{};f.jquery&&(f=f[0]);c.jquery&&(c=c[0]);var k=a.data(f,h)||a.data(f,h,{}),d=a.data(c,
11
+ h)||a.data(c,h,{}),w={};if(b.shadowFocusElement){if(b.shadowFocusElement){if(b.shadowFocusElement.jquery)b.shadowFocusElement=b.shadowFocusElement[0];w=a.data(b.shadowFocusElement,h)||a.data(b.shadowFocusElement,h,w)}}else b.shadowFocusElement=c;k.hasShadow=c;w.nativeElement=d.nativeElement=f;w.shadowData=d.shadowData=k.shadowData={nativeElement:f,shadowElement:c,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){e(this,"shadowData",d.shadowData)});if(b.data)w.shadowData.data=
12
+ d.shadowData.data=k.shadowData.data=b.data;b=null;l.start()}}(),propTypes:{standard:function(a){d(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){d(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 c=j.createElement("a");c.style.display="none";return function(b,e){d(b);if(!b.prop)b.prop=
13
+ {set:function(a){b.attr.set.call(this,a)},get:function(){var b=this.getAttribute(e),k;if(null==b)return"";c.setAttribute("href",b+"");if(!a.support.hrefNormalized){try{a(c).insertAfter(this),k=c.getAttribute("href",4)}catch(d){k=c.getAttribute("href",4)}a(c).detach()}return k||c.href}}}}(),enumarated:function(a){d(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}}}},
14
+ reflectProperties:function(c,b){"string"==typeof b&&(b=b.split(o));b.forEach(function(b){g.defineNodeNamesProperty(c,b,{prop:{set:function(c){a.attr(this,b,c)},get:function(){return a.attr(this,b)||""}}})})},defineNodeNameProperty:function(f,k,d){r[k]=!0;if(d.reflect)g.propTypes[d.propType||"standard"](d,k);["prop","attr","removeAttr"].forEach(function(c){var e=d[c];e&&(e="prop"===c?a.extend({writeable:!0},e):a.extend({},e,{writeable:!0}),v[c](f,k,e),"*"!=f&&g.cfg.extendNative&&"prop"==c&&e.value&&
15
+ a.isFunction(e.value)&&b(f,k,e),d[c]=e)});d.initAttr&&c.content(f,k);return d},defineNodeNameProperties:function(a,b,d,e){for(var h in b)!e&&b[h].initAttr&&c.createTmpCache(a),d&&(b[h][d]?g.log("override: "+a+"["+h+"] for "+d):(b[h][d]={},["value","set","get"].forEach(function(a){a in b[h]&&(b[h][d][a]=b[h][a],delete b[h][a])}))),b[h]=g.defineNodeNameProperty(a,h,b[h]);e||c.flushTmpCache();return b},createElement:function(b,d,e){var h;a.isFunction(d)&&(d={after:d});c.createTmpCache(b);d.before&&c.createElement(b,
16
+ d.before);e&&(h=g.defineNodeNameProperties(b,e,!1,!0));d.after&&c.createElement(b,d.after);c.flushTmpCache();return h},onNodeNamesPropertyModify:function(b,d,e,h){"string"==typeof b&&(b=b.split(o));a.isFunction(e)&&(e={set:e});b.forEach(function(a){p[a]||(p[a]={});"string"==typeof d&&(d=d.split(o));e.initAttr&&c.createTmpCache(a);d.forEach(function(b){p[a][b]||(p[a][b]=[],r[b]=!0);if(e.set){if(h)e.set.only=h;p[a][b].push(e.set)}e.initAttr&&c.content(a,b)});c.flushTmpCache()})},defineNodeNamesBooleanProperty:function(c,
17
+ b,d){d||(d={});if(a.isFunction(d))d.set=d;g.defineNodeNamesProperty(c,b,{attr:{set:function(a){this.setAttribute(b,a);d.set&&d.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?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,c){if(a.nodeName){if(c===m)return a=a.attributes[b]||{},c=a.specified?a.value:null,null==c?m:c;"boolean"==typeof c?c?a.setAttribute(b,b):
18
+ a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var c=[],b={},d,e,h=/:\/\/|^\.*\//,l=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,h.test(d)||(d=g.cfg.basePath+d),g.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,p(b,!0)):a(function(){b.langObj[c]&&p(b,!0);b.loading=!1})}),!0):!1},x=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},p=function(a,b){if(a.activeLang!=d&&a.activeLang!==e){var c=u[a.module].options;
19
+ if(a.langObj[d]||e&&a.langObj[e])a.activeLang=d,a.callback(a.langObj[d]||a.langObj[e],d),x(a.module);else if(!b&&!l(a,d,c)&&!l(a,e,c)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],d),x(a.module)}};return function(h){if("string"==typeof h&&h!==d)d=h,e=d.split("-")[0],d==e&&(e=!1),a.each(c,function(a,b){p(b)});else if("object"==typeof h)if(h.register)b[h.register]||(b[h.register]=[]),b[h.register].push(h),h.callback();else{if(!h.activeLang)h.activeLang="";c.push(h);p(h)}return d}}()});
20
+ a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,c,d,f){"string"==typeof a&&(a=a.split(o));var e={};a.forEach(function(a){e[a]=g[b](a,c,d,f)});return e}});g.isReady("webshimLocalization",!0)});
21
+ (function(a,g){var i=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<i)&&(!a.browser.msie||12>i&&7<i)){var j={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(a,g){a.getAttribute("role")||a.setAttribute("role",g)};a.webshims.addReady(function(i,o){a.each(j,function(g,p){for(var q=a(g,i).add(o.filter(g)),j=0,h=q.length;j<h;j++)m(q[j],p)});if(i===g){var s=g.getElementsByTagName("header")[0],r=g.getElementsByTagName("footer"),n=r.length;
22
+ s&&!a(s).closest("section, article")[0]&&m(s,"banner");n&&(s=r[n-1],a(s).closest("section, article")[0]||m(s,"contentinfo"))}})}})(jQuery,document);
23
+ (function(a,g,i){var j=g.audio&&g.video,m=!1,u=i.cfg.mediaelement,o=i.bugs,s=function(){i.ready("mediaelement-swf",function(){if(!i.mediaelement.createSWF)i.modules["mediaelement-swf"].test=a.noop,i.reTest(["mediaelement-swf"],j)})},r;if(j){var n=document.createElement("video");g.videoBuffered="buffered"in n;m="loop"in n;i.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));g.videoBuffered||(i.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
24
+ test:g.videoBuffered,d:["dom-support"]}),i.reTest("mediaelement-native-fix"))}if(j&&!u.preferFlash){var v=function(g){var q=g.target.parentNode;!u.preferFlash&&(a(g.target).is("audio, video")||q&&a("source:last",q)[0]==g.target)&&i.ready("DOM mediaelement",function(){r&&s();i.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){r&&!u.preferFlash&&i.mediaelement.createSWF&&!a(g.target).closest("audio, video").is(".nonnative-api-active")?(u.preferFlash=!0,document.removeEventListener("error",
25
+ v,!0),a("audio, video").mediaLoad(),i.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+g.target.src)):r||document.removeEventListener("error",v,!0)},20)})})};document.addEventListener("error",v,!0);a("audio, video").each(function(){this.error&&v({target:this})})}o.track=!1;g.track&&function(){if(!o.track)o.track="number"!=typeof a("<track />")[0].readyState;if(!o.track)try{new TextTrackCue(2,3,"")}catch(g){o.track=!0}var q=i.cfg.track,j=function(e){a(e.target).filter("track").each(h)},
26
+ h=function(){if(o.track||!q.override&&3==a.prop(this,"readyState"))q.override=!0,i.reTest("track"),document.removeEventListener("error",j,!0),this&&a.nodeName(this,"track")?i.error("track support was overwritten. Please check your vtt including your vtt mime-type"):i.info("track support was overwritten. due to bad browser support")},e=function(){document.addEventListener("error",j,!0);o.track?h():a("track").each(h)};q.override||(i.isReady("track")?e():a(e))}();i.register("mediaelement-core",function(a,
27
+ i,t,h,e){r=swfobject.hasFlashPlayerVersion("9.0.115");var l=i.mediaelement,b=function(b,c){var b=a(b),d={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!d.src)return d;var f=b.attr("type");if(f)d.type=f,d.container=a.trim(f.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),f=l.getTypeForSrc(d.src,c))d.type=f,d.container=f;if(f=b.attr("media"))d.media=f;return d},c=!r&&"postMessage"in t&&j,d=
28
+ function(){var b;return function(){!b&&c&&(b=!0,i.loader.loadScript("https://www.youtube.com/player_api"),a(function(){i.polyfill("mediaelement-yt")}))}}(),f=function(){r?s():d()};i.addPolyfill("mediaelement-yt",{test:!c,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=a.extend({},l.mimeTypes.audio,l.mimeTypes.video);l.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||
30
+ -1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],d;a.each(l.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};l.srces=function(c,d){c=a(c);if(d)c.removeAttr("src").removeAttr("type").find("source").remove(),a.isArray(d)||(d=[d]),d.forEach(function(a){var b=h.createElement("source");"string"==typeof a&&(a={src:a});b.setAttribute("src",a.src);a.type&&b.setAttribute("type",a.type);a.media&&b.setAttribute("media",a.media);c.append(b)});
31
+ else{var d=[],f=c[0].nodeName.toLowerCase(),e=b(c,f);e.src?d.push(e):a("source",c).each(function(){e=b(this,f);e.src&&d.push(e)});return d}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==e&&(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(",");
32
+ l.canThirdPlaySrces=function(b,d){var f="";if(r||c)b=a(b),d=d||l.srces(b),a.each(d,function(a,b){if(b.container&&b.src&&(r&&-1!=l.swfMimeTypes.indexOf(b.container)||c&&"video/youtube"==b.container))return f=b,!1});return f};var k={};l.canNativePlaySrces=function(b,c){var d="";if(j){var b=a(b),f=(b[0].nodeName||"").toLowerCase();if(!k[f])return d;c=c||l.srces(b);a.each(c,function(a,c){if(c.type&&k[f].prop._supvalue.call(b[0],c.type))return d=c,!1})}return d};l.setError=function(b,c){c||(c="can't play sources");
33
+ a(b).pause().data("mediaerror",c);i.warn("mediaelementError: "+c);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var w=function(){var a;return function(b,e,h){i.ready(r?"mediaelement-swf":"mediaelement-yt",function(){l.createSWF?l.createSWF(b,e,h):a||(a=!0,f(),w(b,e,h))});!a&&c&&!l.createSWF&&d()}}(),A=function(a,b,c,d,f){c||!1!==c&&b&&"third"==b.isActive?(c=l.canThirdPlaySrces(a,d))?w(a,c,b):f?l.setError(a,!1):A(a,b,!1,d,!0):(c=l.canNativePlaySrces(a,d))?b&&"third"==
34
+ b.isActive&&l.setActive(a,"html5",b):f?(l.setError(a,!1),b&&"third"==b.isActive&&l.setActive(a,"html5",b)):A(a,b,!0,d,!0)},B=/^(?:embed|object|datalist)$/i,n=function(b,c){var d=i.data(b,"mediaelementBase")||i.data(b,"mediaelementBase",{}),f=l.srces(b),h=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(f.length&&h&&!(1!=h.nodeType||B.test(h.nodeName||"")))c=c||i.data(b,"mediaelement"),A(b,c,u.preferFlash||e,f)};a(h).bind("ended",function(b){var c=i.data(b.target,"mediaelement");
35
+ (!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||i.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var c=i.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=i.data(this,"mediaelement");n(this,a);j&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});k[b]=i.defineNodeNameProperty(b,
36
+ "canPlayType",{prop:{value:function(c){var d="";j&&k[b].prop._supvalue&&(d=k[b].prop._supvalue.call(this,c),"no"==d&&(d=""));!d&&r&&(c=a.trim((c||"").split(";")[0]),-1!=l.swfMimeTypes.indexOf(c)&&(d="maybe"));return d}}})});i.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=i.data(a,"mediaelementBase")||i.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){n(a);a=null},9)}});t=function(){i.addReady(function(b,c){a("video, audio",
37
+ b).add(c.filter("video, audio")).each(function(){a.browser.msie&&8<i.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():n(this);if(j){var b,c,d=this,f=function(){var b=a.prop(d,"buffered");if(b){for(var c="",f=0,e=b.length;f<e;f++)c+=b.end(f);return c}},e=function(){var b=f();b!=c&&(c=b,a(d).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==
38
+ a.type&&(c=f());clearTimeout(b);b=setTimeout(e,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(c=!1);clearTimeout(b)})}})})};g.track&&!o.track&&i.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});j?(i.isReady("mediaelement-core",!0),t(),i.ready("WINDOWLOAD mediaelement",f)):i.ready("mediaelement-swf",t);a(function(){i.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
39
+ (function(a){var g=window.Modernizr,i=a.webshims,j=i.bugs,m=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),u=function(){if(m[0].querySelector)try{j.findRequired=!m[0].querySelector("select:required")}catch(a){j.findRequired=!1}};j.findRequired=!1;j.validationMessage=!1;j.valueAsNumberSet=!1;i.capturingEventPrevented=function(g){if(!g._isPolyfilled){var i=g.isDefaultPrevented,
40
+ j=g.preventDefault;g.preventDefault=function(){clearTimeout(a.data(g.target,g.type+"DefaultPrevented"));a.data(g.target,g.type+"DefaultPrevented",setTimeout(function(){a.removeData(g.target,g.type+"DefaultPrevented")},30));return j.apply(this,arguments)};g.isDefaultPrevented=function(){return!(!i.apply(this,arguments)&&!a.data(g.target,g.type+"DefaultPrevented"))};g._isPolyfilled=!0}};if(!g.formvalidation||j.bustedValidity)u();else if(i.capturingEvents(["input"]),i.capturingEvents(["invalid"],!0),
41
+ g.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var o=a("input",m).eq(0),s,r=function(a){i.loader.loadList(["dom-extend"]);i.ready("dom-extend",a)},n=function(j){var q=["form-extend","form-message","form-native-fix"];j&&(j.preventDefault(),j.stopImmediatePropagation());clearTimeout(s);setTimeout(function(){m&&(m.remove(),m=o=null)},9);if(!g.bugfreeformvalidation)i.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),i.modules["form-extend"].test=a.noop;i.isReady("form-number-date-api")&&
42
+ q.push("form-number-date-api");i.reTest(q);if(o)try{o.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&r(function(){i.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(h){!h&&this&&a.prop(this,"value",a.prop(this,"value"))}});i.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(h){if(!h&&this)h=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(h)}})})}catch(n){}(a.browser.opera||window.testGoodWithFix)&&
43
+ r(function(){var h=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(e){var g=i.defineNodeNameProperty(e,"checkValidity",{prop:{value:function(){i.fromSubmit||a(this).bind("invalid.checkvalidity",h);i.fromCheckValidity=!0;var b=g.prop._supvalue.apply(this,arguments);i.fromSubmit||a(this).unbind("invalid.checkvalidity",h);i.fromCheckValidity=!1;return b}}})})})};m.appendTo("head");if(window.opera||window.testGoodWithFix){u();j.validationMessage=!o.prop("validationMessage");
44
+ if((g.inputtypes||{}).date){try{o.prop("valueAsNumber",0)}catch(v){}j.valueAsNumberSet="1970-01-01"!=o.prop("value")}o.prop("value","")}m.bind("submit",function(a){g.bugfreeformvalidation=!1;n(a)});s=setTimeout(function(){m&&m.triggerHandler("submit")},9);a("input, select",m).bind("invalid",n).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&g.bugfreeformvalidation&&!i.bugs.bustedValidity&&function(){var g=/^(?:textarea|input)$/i,
45
+ i=!1;document.addEventListener("contextmenu",function(a){g.test(a.target.nodeName||"")&&(i=a.target.form)&&setTimeout(function(){i=!1},1)},!1);a(window).bind("invalid",function(a){if(a.originalEvent&&i&&i==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
46
+ jQuery.webshims.register("form-core",function(a,g,i,j,m,u){var o={radio:1},s={checkbox:1,radio:1},r=a([]),n=g.bugs,v=function(b){var b=a(b),c,d;c=r;if(o[b[0].type])d=b.prop("form"),c=(c=b[0].name)?d?a(d[c]):a(j.getElementsByName(c)).filter(function(){return!a.prop(this,"form")}):b,c=c.filter('[type="radio"]');return c},p=g.getContentValidationMessage=function(b,c,d){var f=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";d&&f[d]&&(f=f[d]);"object"==typeof f&&(c=c||a.prop(b,"validity")||
47
+ {valid:1},c.valid||a.each(c,function(a,b){if(b&&"valid"!=a&&f[a])return f=f[a],!1}));if("object"==typeof f)f=f.defaultMessage;return f||""},q={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(b){return!(!a.prop(b,"willValidate")||!(a.prop(b,"validity")||{valid:1}).valid)},"invalid-element":function(b){return!(!a.prop(b,"willValidate")||(a.prop(b,"validity")||{valid:1}).valid)},"required-element":function(b){return!(!a.prop(b,"willValidate")||!a.prop(b,"required"))},"optional-element":function(b){return!!(a.prop(b,
48
+ "willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!q[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||b.rangeOverflow||b.rangeUnderflow)},"out-of-range":function(b){if(!q[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||!b.rangeOverflow&&!b.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(b){a.expr[":"][b]=a.expr.filters[b+"-element"]});a.expr[":"].focus=function(a){try{var c=
49
+ a.ownerDocument;return a===c.activeElement&&(!c.hasFocus||c.hasFocus())}catch(d){}return!1};var t=a.event.customEvent||{};(n.bustedValidity||n.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var b=a.find,c=a.find.matchesSelector,d=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,f=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,c=function(c){var e=arguments,e=a.call(e,1,e.length);e.unshift(c.replace(d,f));return b.apply(this,
50
+ e)},e;for(e in b)b.hasOwnProperty(e)&&(c[e]=b[e]);return c}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",j.documentElement))a.find.matchesSelector=function(a,b){b=b.replace(d,f);return c.call(this,a,b)}}();var h=a.prop,e={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,c,d){var f=h.apply(this,arguments);if(b&&"form"in b&&e[c]&&d!==m&&a(b).hasClass("form-ui-invalid")&&(a.prop(b,"validity")||{valid:1}).valid)a(b).getShadowElement().removeClass("form-ui-invalid"),
51
+ "checked"==c&&d&&v(b).not(b).removeClass("form-ui-invalid").removeAttr("aria-invalid");return f};var l=function(b,c){var d;a.each(b,function(b,e){if(e)return d="customError"==b?a.prop(c,"validationMessage"):b,!1});return d};a(j).bind(u.validityUIEvents||"focusout change refreshvalidityui",function(b){var c,d;if(b.target&&(c=a(b.target).getNativeElement()[0],!("submit"==c.type||!a.prop(c,"willValidate")||"focusout"==b.type&&"radio"==b.type))){d=a.data(c,"webshimsswitchvalidityclass");var f=function(){var d=
52
+ a.prop(c,"validity"),f=a(c).getShadowElement(),e,h,g,i;a(c).trigger("refreshCustomValidityRules");d.valid?f.hasClass("form-ui-valid")||(e="form-ui-valid",h="form-ui-invalid",i="changedvaliditystate",g="changedvalid",s[c.type]&&c.checked&&v(c).not(c).removeClass(h).addClass(e).removeAttr("aria-invalid"),a.removeData(c,"webshimsinvalidcause")):(d=l(d,c),a.data(c,"webshimsinvalidcause")!=d&&(a.data(c,"webshimsinvalidcause",d),i="changedvaliditystate"),f.hasClass("form-ui-invalid")||(e="form-ui-invalid",
53
+ h="form-ui-valid",s[c.type]&&!c.checked&&v(c).not(c).removeClass(h).addClass(e),g="changedinvalid"));e&&(f.addClass(e).removeClass(h),setTimeout(function(){a(c).trigger(g)},0));i&&setTimeout(function(){a(c).trigger(i)},0);a.removeData(b.target,"webshimsswitchvalidityclass")};d&&clearTimeout(d);"refreshvalidityui"==b.type?f():a.data(b.target,"webshimsswitchvalidityclass",setTimeout(f,9))}});t.changedvaliditystate=!0;t.refreshCustomValidityRules=!0;t.changedvalid=!0;t.changedinvalid=!0;t.refreshvalidityui=
54
+ !0;g.triggerInlineForm=function(b,c){a(b).trigger(c)};g.modules["form-core"].getGroupElements=v;n=function(){g.scrollRoot=a.browser.webkit||"BackCompat"==j.compatMode?a(j.body):a(j.documentElement)};n();g.ready("DOM",n);g.getRelOffset=function(b,c){var b=a(b),d=a(c).offset(),f;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){f=b.offset()});d.top-=f.top;d.left-=f.left;return d};g.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":
55
+ "label",c,d=!1,f=!1,e,h={hideDelay:5E3,showFor:function(b,c,g,l){h._create();var b=a(b),j=a(b).getShadowElement(),m=h.getOffsetFromBody(j);h.clear();l?this.hide():(this.getMessage(b,c),this.position(j,m),this.show(),this.hideDelay&&(d=setTimeout(e,this.hideDelay)),a(i).bind("resize.validityalert",function(){clearTimeout(f);f=setTimeout(function(){h.position(j)},9)}));g||this.setFocus(j,m)},getOffsetFromBody:function(a){return g.getRelOffset(c,a)},setFocus:function(d,f){var h=a(d).getShadowFocusElement(),
56
+ l=g.scrollRoot.scrollTop(),i=(f||h.offset()).top-30,m;g.getID&&"label"==b&&c.attr("for",g.getID(h));l>i&&(g.scrollRoot.animate({scrollTop:i-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(l-i)),80)}),m=!0);try{h[0].focus()}catch(w){}m&&(g.scrollRoot.scrollTop(l),setTimeout(function(){g.scrollRoot.scrollTop(l)},0));setTimeout(function(){a(j).bind("focusout.validityalert",e)},10)},getMessage:function(b,d){d||(d=p(b[0])||b.prop("validationMessage"));d?a("span.va-box",c).text(d):this.hide()},position:function(b,
57
+ d){d=d?a.extend({},d):h.getOffsetFromBody(b);d.top+=b.outerHeight();c.css(d)},show:function(){"none"===c.css("display")&&c.css({opacity:0}).show();c.addClass("va-visible").fadeTo(400,1)},hide:function(){c.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(d);a(j).unbind(".validityalert");a(i).unbind(".validityalert");c.stop().removeAttr("for")},_create:function(){if(!c)c=h.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
58
+ b+">").css({position:"absolute",display:"none"}),g.ready("DOM",function(){c.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&c.bgIframe()})}};e=a.proxy(h,"hide");return h}();(function(){var b,c=[],d;a(j).bind("invalid",function(f){if(!f.wrongWebkitInvalid){var e=a(f.target),h=e.getShadowElement();h.hasClass("form-ui-invalid")||(h.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(f.target).trigger("changedinvalid").trigger("changedvaliditystate")},
59
+ 0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=f.isDefaultPrevented,h=a.Event("firstinvalidsystem"),a(j).triggerHandler(h,{element:f.target,form:f.target.form,isInvalidUIPrevented:f.isDefaultPrevented}),e.trigger(b);b&&b.isDefaultPrevented()&&f.preventDefault();c.push(f.target);f.extraData="fix";clearTimeout(d);d=setTimeout(function(){var d={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(f.target).trigger(d,d)},9);h=e=null}})})();a.fn.getErrorMessage=function(){var b="",
60
+ c=this[0];c&&(b=p(c)||a.prop(c,"customValidationMessage")||a.prop(c,"validationMessage"));return b};u.replaceValidationUI&&g.ready("DOM forms",function(){a(j).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
61
+ jQuery.webshims.register("track",function(a,g,i,j){var m=g.mediaelement;(new Date).getTime();var u={subtitles:1,captions:1},o=function(a){var e={};a.addEventListener=function(a,b){e[a]&&g.error("always use $.bind to the shimed event: "+a+" already bound fn was: "+e[a]+" your fn was: "+b);e[a]=b};a.removeEventListener=function(a,b){e[a]&&e[a]!=b&&g.error("always use $.bind/$.unbind to the shimed event: "+a+" already bound fn was: "+e[a]+" your fn was: "+b);e[a]&&delete e[a]};return a},s={getCueById:function(a){for(var e=
62
+ null,g=0,b=this.length;g<b;g++)if(this[g].id===a){e=this[g];break}return e}},r={shimActiveCues:null,_shimActiveCues:null,activeCues:null,cues:null,kind:"subtitles",label:"",language:"",mode:"disabled",readyState:0,oncuechange:null,toString:function(){return"[object TextTrack]"},addCue:function(a){if(this.cues){var e=this.cues[this.cues.length-1];e&&e.startTime>a.startTime&&g.error("cue startTime higher than previous cue's startTime")}else this.cues=m.createCueList();a.track&&g.error("cue already part of a track element");
63
+ a.track=this;this.cues.push(a)},removeCue:function(){g.error("not implemented yet")},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},n=["kind","label","srclang"],v=Function.prototype.call.bind(Object.prototype.hasOwnProperty),p=function(h,e){var l=[],b=[],c=[],d,f;h||(h=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}));if(!e)h.blockTrackListUpdate=!0,e=a.prop(this,"textTracks"),h.blockTrackListUpdate=!1;clearTimeout(h.updateTrackListTimer);
64
+ a("track",this).each(function(){var d=a.prop(this,"track");c.push(d);-1==e.indexOf(d)&&b.push(d)});if(h.scriptedTextTracks)for(d=0,f=h.scriptedTextTracks.length;d<f;d++)c.push(h.scriptedTextTracks[d]),-1==e.indexOf(h.scriptedTextTracks[d])&&b.push(h.scriptedTextTracks[d]);for(d=0,f=e.length;d<f;d++)-1==c.indexOf(e[d])&&l.push(e[d]);if(l.length||b.length){e.splice(0);for(d=0,f=c.length;d<f;d++)e.push(c[d]);for(d=0,f=l.length;d<f;d++)a([e]).triggerHandler(a.Event({type:"removetrack",track:e,track:l[d]}));
65
+ for(d=0,f=b.length;d<f;d++)a([e]).triggerHandler(a.Event({type:"addtrack",track:e,track:b[d]}));(h.scriptedTextTracks||l.length)&&a(this).triggerHandler("updatetrackdisplay")}},q=function(h,e){var l,b;e||(e=g.data(h,"trackData"));if(e&&!e.isTriggering)e.isTriggering=!0,l=(e.track||{}).mode,b=(e.track||{}).kind,setTimeout(function(){if(l!==(e.track||{}).mode||b!=(e.track||{}).kind)(e.track||{}).readyState?a(h).parent().triggerHandler("updatetrackdisplay"):a(h).triggerHandler("checktrackmode");e.isTriggering=
66
+ !1},9)},t=a("<div />")[0];i.TextTrackCue=function(a,e,l){3!=arguments.length&&g.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=a;this.endTime=e;this.text=l;this.id="";this.pauseOnExit=!1;o(this)};i.TextTrackCue.prototype={onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var a="",e="",g=j.createDocumentFragment(),b;if(!v(this,"getCueAsHTML"))b=this.getCueAsHTML=function(){var b,d;if(a!=this.text){a=this.text;e=m.parseCueTextToHTML(a);t.innerHTML=e;for(b=
67
+ 0,d=t.childNodes.length;b<d;b++)g.appendChild(t.childNodes[b].cloneNode(!0))}return g.cloneNode(!0)};return b?b.apply(this,arguments):g.cloneNode(!0)},track:null,id:""};m.createCueList=function(){return a.extend([],s)};m.parseCueTextToHTML=function(){var a=/(<\/?[^>]+>)/ig,e=/^(?:c|v|ruby|rt|b|i|u)/,g=/\<\s*\//,b=function(a,b,c,e){g.test(e)?a="</"+a+">":(c.splice(0,1),a="<"+a+" "+b+'="'+c.join(" ").replace(/\"/g,"&#34;")+'">');return a},c=function(a){var c=a.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);
68
+ c[0]&&(c[0]=c[0].toLowerCase(),e.test(c[0])?"c"==c[0]?a=b("span","class",c,a):"v"==c[0]&&(a=b("q","title",c,a)):a="");return a};return function(b){return b.replace(a,c)}}();m.loadTextTrack=function(h,e,i,b){var c=i.track,d=function(){var b=a.prop(e,"src"),i,l;if("disabled"!=c.mode&&b&&a.attr(e,"src")&&(a(h).unbind("play playing timeupdate updatetrackdisplay",d),a(e).unbind("checktrackmode",d),!c.readyState)){i=function(){c.readyState=3;c.cues=null;c.activeCues=c.shimActiveCues=c._shimActiveCues=null;
69
+ a(e).triggerHandler("error")};c.readyState=1;try{c.cues=m.createCueList(),c.activeCues=c.shimActiveCues=c._shimActiveCues=m.createCueList(),l=a.ajax({dataType:"text",url:b,success:function(b){"text/vtt"!=l.getResponseHeader("content-type")&&g.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt");m.parseCaptions(b,c,function(b){b&&"length"in b?(c.readyState=2,a(e).triggerHandler("load"),a(h).triggerHandler("updatetrackdisplay")):i()})},error:i})}catch(j){i(),
70
+ g.warn(j)}}};c.readyState=0;c.shimActiveCues=null;c._shimActiveCues=null;c.activeCues=null;c.cues=null;a(h).unbind("play playing timeupdate updatetrackdisplay",d);a(e).unbind("checktrackmode",d);a(h).bind("play playing timeupdate updatetrackdisplay",d);a(e).bind("checktrackmode",d);if(b)c.mode=u[c.kind]?"showing":"hidden",d()};m.createTextTrack=function(h,e){var i,b;if(e.nodeName&&(b=g.data(e,"trackData")))q(e,b),i=b.track;if(!i)i=o(g.objectCreate(r)),n.forEach(function(b){var d=a.prop(e,b);d&&("srclang"==
71
+ b&&(b="language"),i[b]=d)}),e.nodeName?(b=g.data(e,"trackData",{track:i}),m.loadTextTrack(h,e,b,a.prop(e,"default"))):(i.cues=m.createCueList(),i.activeCues=i._shimActiveCues=i.shimActiveCues=m.createCueList(),i.mode="hidden",i.readyState=2);return i};m.parseCaptionChunk=function(){var a=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,e=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,g=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,b=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;
72
+ return function(c){var d,f,i,j;if(e.exec(c)||g.exec(c)||b.exec(c))return null;for(c=c.split(/\n/g);!c[0].replace(/\s+/ig,"").length&&0<c.length;)c.shift();for(c[0].match(/^\s*[a-z0-9]+\s*$/ig)&&(i=""+c.shift().replace(/\s*/ig,""));0<c.length;){if(j=a.exec(c[0]))f=j.slice(1),d=parseInt(3600*(f[0]||0),10)+parseInt(60*(f[1]||0),10)+parseInt(f[2]||0,10)+parseFloat("0."+(f[3]||0)),f=parseInt(3600*(f[4]||0),10)+parseInt(60*(f[5]||0),10)+parseInt(f[6]||0,10)+parseFloat("0."+(f[7]||0));c=c.slice(0,0).concat(c.slice(1));
73
+ break}if(!d&&!f)return null;c=c.join("\n");d=new TextTrackCue(d,f,c);if(i)d.id=i;return d}}();m.parseCaptions=function(a,e,i){m.createCueList();var b,c,d,f,k;a?(d=/^WEBVTT(\s*FILE)?/ig,c=function(j,n){for(;j<n;j++){b=a[j];if(d.test(b))k=!0;else if(b.replace(/\s*/ig,"").length){if(!k){g.error("please use WebVTT format. This is the standard");i(null);break}(b=m.parseCaptionChunk(b,j))&&e.addCue(b)}if(f<(new Date).getTime()-9){j++;setTimeout(function(){f=(new Date).getTime();c(j,n)},90);break}}j>=n&&
74
+ (k||g.error("please use WebVTT format. This is the standard"),i(e.cues))},a=a.replace(/\r\n/g,"\n"),setTimeout(function(){a=a.replace(/\r/g,"\n");setTimeout(function(){f=(new Date).getTime();a=a.split(/\n\n+/g);c(0,a.length)},9)},9)):g.error("Required parameter captionData not supplied.")};m.createTrackList=function(a,e){e=e||g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});if(!e.textTracks)e.textTracks=[],g.defineProperties(e.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),
75
+ o(e.textTracks);return e.textTracks};Modernizr.track||(g.defineNodeNamesBooleanProperty(["track"],"default"),g.reflectProperties(["track"],["srclang","label"]),g.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));g.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(a){var e=g.data(this,"trackData");this.setAttribute("data-kind",a);if(e)e.attrKind=a},get:function(){var a=g.data(this,"trackData");return a&&"attrKind"in a?a.attrKind:this.getAttribute("kind")}}:
76
+ {},reflect:!0,propType:"enumarated",defaultValue:"subtitles",limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});g.onNodeNamesPropertyModify("track","kind",function(){var h=g.data(this,"trackData");if(h)h.track.kind=a.prop(this,"kind"),q(this,h)});g.onNodeNamesPropertyModify("track","src",function(h){if(h){var h=g.data(this,"trackData"),e;h&&(e=a(this).closest("video, audio"),e[0]&&m.loadTextTrack(e,this,h))}});g.defineNodeNamesProperties(["track"],{ERROR:{value:3},LOADED:{value:2},
77
+ LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(a.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return m.createTextTrack(a(this).closest("audio, video")[0],this)},writeable:!1}},"prop");g.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var a=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{}),e=m.createTrackList(this,a);a.blockTrackListUpdate||p.call(this,a,e);return e},writeable:!1},addTextTrack:{value:function(a,
78
+ e,i){a=m.createTextTrack(this,{kind:a||"",label:e||"",srclang:i||""});e=g.data(this,"mediaelementBase")||g.data(this,"mediaelementBase",{});if(!e.scriptedTextTracks)e.scriptedTextTracks=[];e.scriptedTextTracks.push(a);p.call(this);return a}}},"prop");a(j).bind("emptied ended updatetracklist",function(h){if(a(h.target).is("audio, video")){var e=g.data(h.target,"mediaelementBase");if(e)clearTimeout(e.updateTrackListTimer),e.updateTrackListTimer=setTimeout(function(){p.call(h.target,e)},0)}});g.addReady(function(h,
79
+ e){var i=e.filter("video, audio, track").closest("audio, video");a("video, audio",h).add(i).each(function(){p.call(this)}).each(function(){if(Modernizr.track){var b=this.textTracks;a.prop(this,"textTracks").length!=b.length&&g.error("textTracks couldn't be copied");a("track",this).each(function(){var b=a.prop(this,"track"),d=this.track,f,e;if(d){f=a.prop(this,"kind");e=d.readyState||this.readyState;if(d.mode||e)b.mode=d.mode;if("descriptions"!=f)d.mode="string"==typeof d.mode?"disabled":0,this.kind=
80
+ "metadata",a(this).attr({kind:f})}}).bind("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});i.each(function(){var a=this,c=g.data(a,"mediaelementBase");if(c)clearTimeout(c.updateTrackListTimer),c.updateTrackListTimer=setTimeout(function(){p.call(a,c)},9)})});Modernizr.track&&a("video, audio").trigger("trackapichange")});
@@ -0,0 +1,103 @@
1
+ (function(){var a=Function.prototype.call,f=Object.prototype,h=Array.prototype.slice,o,l;if(!Function.prototype.bind)Function.prototype.bind=function(a){var c=this;if("function"!=typeof c)throw new TypeError;var b=h.call(arguments,1),e=function(){if(this instanceof e){var d=function(){};d.prototype=c.prototype;var d=new d,p=c.apply(d,b.concat(h.call(arguments)));return null!==p&&Object(p)===p?p:d}return c.apply(a,b.concat(h.call(arguments)))};return e};l=a.bind(f.toString);o=a.bind(f.hasOwnProperty);
2
+ if(!Array.isArray)Array.isArray=function(a){return"[object Array]"==l(a)};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,c){var b=i(this),e=0,d=b.length>>>0;if("[object Function]"!=l(a))throw new TypeError;for(;e<d;)e in b&&a.call(c,b[e],e,b),e++};if(!Array.prototype.map)Array.prototype.map=function(a,c){var b=i(this),e=b.length>>>0,d=Array(e);if("[object Function]"!=l(a))throw new TypeError;for(var p=0;p<e;p++)p in b&&(d[p]=a.call(c,b[p],p,b));return d};if(!Array.prototype.filter)Array.prototype.filter=
3
+ function(a,c){var b=i(this),e=b.length>>>0,d=[];if("[object Function]"!=l(a))throw new TypeError;for(var p=0;p<e;p++)p in b&&a.call(c,b[p],p,b)&&d.push(b[p]);return d};if(!Array.prototype.every)Array.prototype.every=function(a,c){var b=i(this),e=b.length>>>0;if("[object Function]"!=l(a))throw new TypeError;for(var d=0;d<e;d++)if(d in b&&!a.call(c,b[d],d,b))return!1;return!0};if(!Array.prototype.some)Array.prototype.some=function(a,c){var b=i(this),e=b.length>>>0;if("[object Function]"!=l(a))throw new TypeError;
4
+ for(var d=0;d<e;d++)if(d in b&&a.call(c,b[d],d,b))return!0;return!1};if(!Array.prototype.reduce)Array.prototype.reduce=function(a){var c=i(this),b=c.length>>>0;if("[object Function]"!=l(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var e=0,d;if(2<=arguments.length)d=arguments[1];else{do{if(e in c){d=c[e++];break}if(++e>=b)throw new TypeError;}while(1)}for(;e<b;e++)e in c&&(d=a.call(void 0,d,c[e],e,c));return d};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a){var c=
5
+ i(this),b=c.length>>>0;if("[object Function]"!=l(a))throw new TypeError;if(!b&&1==arguments.length)throw new TypeError;var e,b=b-1;if(2<=arguments.length)e=arguments[1];else{do{if(b in c){e=c[b--];break}if(0>--b)throw new TypeError;}while(1)}do b in this&&(e=a.call(void 0,e,c[b],b,c));while(b--);return e};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a){var c=i(this),b=c.length>>>0;if(!b)return-1;var e=0;1<arguments.length&&(e=k(arguments[1]));for(e=0<=e?e:b-Math.abs(e);e<b;e++)if(e in
6
+ c&&c[e]===a)return e;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a){var c=i(this),b=c.length>>>0;if(!b)return-1;var e=b-1;1<arguments.length&&(e=k(arguments[1]));for(e=0<=e?e:b-Math.abs(e);0<=e;e--)if(e in c&&a===c[e])return e;return-1};if(2!=[1,2].splice(0).length){var s=Array.prototype.splice;Array.prototype.splice=function(a,c){return!arguments.length?[]:s.apply(this,[void 0===a?0:a,void 0===c?this.length-a:c].concat(h.call(arguments,2)))}}if(!Object.keys){var j=
7
+ !0,t="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),n=t.length,q;for(q in{toString:null})j=!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 c=[],b;for(b in a)o(a,b)&&c.push(b);if(j)for(b=0;b<n;b++){var e=t[b];o(a,e)&&c.push(e)}return c}}if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){var a,c,b;if(!isFinite(this))throw new RangeError;
8
+ a=[this.getUTCFullYear(),this.getUTCMonth()+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];for(c=a.length;c--;)b=a[c],10>b&&(a[c]="0"+b);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+"]",u=RegExp("^"+a+a+"*"),r=RegExp(a+a+"*$");String.prototype.trim=function(){return(""+this).replace(u,"").replace(r,"")}}if("0".split(void 0,0).length){var v=String.prototype.split;String.prototype.split=function(a,c){return void 0===a&&0===c?[]:v.apply(this,arguments)}}if("".substr&&"b"!=="0b".substr(-1)){var x=String.prototype.substr;String.prototype.substr=function(a,c){return x.call(this,0>a?0>(a=this.length+a)?0:a:a,c)}}var k=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},g="a"!="a"[0],i=function(a){if(null==a)throw new TypeError;return g&&"string"==typeof a&&a?a.split(""):Object(a)}})();
11
+ (function(a,f){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(f){h=!1}a=null}();Modernizr.objectAccessor=!(!(h||Object.prototype.__defineGetter__&&Object.prototype.__lookupSetter__)||a.browser.opera&&!(11<=f.browserVersion));Modernizr.advancedObjectProperties=h;
12
+ if(!h||!Object.create||!Object.defineProperties||!Object.getOwnPropertyDescriptor||!Object.defineProperty){var o=Function.prototype.call.bind(Object.prototype.hasOwnProperty);f.objectCreate=function(a,h,j,o){var n;n=function(){};n.prototype=a;n=new n;if(!o&&!("__proto__"in n)&&!Modernizr.objectAccessor)n.__proto__=a;h&&f.defineProperties(n,h);if(j)n.options=jQuery.extend(!0,{},n.options||{},j),j=n.options;n._create&&jQuery.isFunction(n._create)&&n._create(j);return n};f.defineProperties=function(a,
13
+ h){for(var j in h)o(h,j)&&f.defineProperty(a,j,h[j]);return a};f.defineProperty=function(a,f,j){if("object"!=typeof j||null===j)return a;if(o(j,"value"))return a[f]=j.value,a;a.__defineGetter__&&("function"==typeof j.get&&a.__defineGetter__(f,j.get),"function"==typeof j.set&&a.__defineSetter__(f,j.set));return a};f.getPrototypeOf=function(a){return Object.getPrototypeOf&&Object.getPrototypeOf(a)||a.__proto__||a.constructor&&a.constructor.prototype};f.getOwnPropertyDescriptor=function(a,f){if("object"!==
14
+ typeof a&&"function"!==typeof a||null===a)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object");var j;if(Object.defineProperty&&Object.getOwnPropertyDescriptor)try{return j=Object.getOwnPropertyDescriptor(a,f)}catch(h){}j={configurable:!0,enumerable:!0,writable:!0,value:void 0};var n=a.__lookupGetter__&&a.__lookupGetter__(f),q=a.__lookupSetter__&&a.__lookupSetter__(f);if(!n&&!q){if(!o(a,f))return;j.value=a[f];return j}delete j.writable;delete j.value;j.get=j.set=void 0;if(n)j.get=
15
+ n;if(q)j.set=q;return j}}})(jQuery,jQuery.webshims);
16
+ jQuery.webshims.register("dom-extend",function(a,f,h,o,l){var s=f.modules,j=/\s*,\s*/,t={},n={},q={},u={},r={},v=a.fn.val,x=function(e,d,p,b,c){return c?v.call(a(e)):v.call(a(e),p)};a.fn.val=function(e){var d=this[0];arguments.length&&null==e&&(e="");if(!arguments.length)return!d||1!==d.nodeType?v.call(this):a.prop(d,"value",e,"val",!0);if(a.isArray(e))return v.apply(this,arguments);var p=a.isFunction(e);return this.each(function(b){d=this;1===d.nodeType&&(p?(b=e.call(d,b,a.prop(d,"value",l,"val",
17
+ !0)),null==b&&(b=""),a.prop(d,"value",b,"val")):a.prop(d,"value",e,"val"))})};var k="_webshimsLib"+Math.round(1E3*Math.random()),g=function(e,d,p){e=e.jquery?e[0]:e;if(!e)return p||{};var b=a.data(e,k);p!==l&&(b||(b=a.data(e,k,{})),d&&(b[d]=p));return d?b&&b[d]:b};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(e){a.fn[e.name]=function(){return this.map(function(){var a=g(this,
18
+ "shadowData");return a&&a[e.prop]||this})}});["removeAttr","prop","attr"].forEach(function(e){t[e]=a[e];a[e]=function(d,b,c,f,g){var w="val"==f,k=!w?t[e]:x;if(!d||!n[b]||1!==d.nodeType||!w&&f&&"attr"==e&&a.attrFn[b])return k(d,b,c,f,g);var z=(d.nodeName||"").toLowerCase(),i=q[z],m="attr"==e&&(!1===c||null===c)?"removeAttr":e,j,h,v;i||(i=q["*"]);i&&(i=i[b]);i&&(j=i[m]);if(j){if("value"==b)h=j.isVal,j.isVal=w;if("removeAttr"===m)return j.value.call(d);if(c===l)return j.get?j.get.call(d):j.value;j.set&&
19
+ ("attr"==e&&!0===c&&(c=b),v=j.set.call(d,c));if("value"==b)j.isVal=h}else v=k(d,b,c,f,g);if((c!==l||"removeAttr"===m)&&r[z]&&r[z][b]){var o;o="removeAttr"==m?!1:"prop"==m?!!c:!0;r[z][b].forEach(function(a){if(!a.only||(a.only="prop"==e)||"attr"==a.only&&"prop"!=e)a.call(d,c,o,w?"val":m,e)})}return v};u[e]=function(d,b,c){q[d]||(q[d]={});q[d][b]||(q[d][b]={});var g=q[d][b][e],i=function(a,d,f){return d&&d[a]?d[a]:f&&f[a]?f[a]:"prop"==e&&"value"==b?function(a){return c.isVal?x(this,b,a,!1,0===arguments.length):
20
+ t[e](this,b,a)}:"prop"==e&&"value"==a&&c.value.apply?function(a){var d=t[e](this,b);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(a){return t[e](this,b,a)}};q[d][b][e]=c;if(c.value===l){if(!c.set)c.set=c.writeable?i("set",c,g):f.cfg.useStrict&&"prop"==b?function(){throw b+" is readonly on "+d;}:a.noop;if(!c.get)c.get=i("get",c,g)}["value","get","set"].forEach(function(a){c[a]&&(c["_sup"+a]=i(a,g))})}});var i=!a.browser.msie||8<parseInt(a.browser.version,10),m=function(){var a=f.getPrototypeOf(o.createElement("foobar")),
21
+ d=Object.prototype.hasOwnProperty;return function(b,k,m){var j=o.createElement(b),w=f.getPrototypeOf(j);if(i&&w&&a!==w&&(!j[k]||!d.call(j,k))){var y=j[k];m._supvalue=function(){return y&&y.apply?y.apply(this,arguments):y};w[k]=m.value}else m._supvalue=function(){var a=g(this,"propValue");return a&&a[k]&&a[k].apply?a[k].apply(this,arguments):a&&a[k]},c.extendValue(b,k,m.value);m.value._supvalue=m._supvalue}}(),c=function(){var e={};f.addReady(function(d,b){var c={},p=function(e){c[e]||(c[e]=a(d.getElementsByTagName(e)),
22
+ b[0]&&a.nodeName(b[0],e)&&(c[e]=c[e].add(b)))};a.each(e,function(a,e){p(a);!e||!e.forEach?f.warn("Error: with "+a+"-property. methods: "+e):e.forEach(function(e){c[a].each(e)})});c=null});var d,b=a([]),c=function(b,c){e[b]?e[b].push(c):e[b]=[c];a.isDOMReady&&(d||a(o.getElementsByTagName(b))).each(c)};return{createTmpCache:function(e){a.isDOMReady&&(d=d||a(o.getElementsByTagName(e)));return d||b},flushTmpCache:function(){d=null},content:function(e,d){c(e,function(){var e=a.attr(this,d);null!=e&&a.attr(this,
23
+ d,e)})},createElement:function(a,e){c(a,e)},extendValue:function(e,d,b){c(e,function(){a(this).each(function(){g(this,"propValue",{})[d]=this[d];this[d]=b})})}}}(),b=function(a,d){if(a.defaultValue===l)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[d||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}};if(!a.attr)a.attr={}};a.extend(f,{getID:function(){var e=(new Date).getTime();return function(d){var d=a(d),b=d.attr("id");b||(e++,b="ID-"+e,d.attr("id",b));
24
+ return b}}(),extendUNDEFProp:function(e,d){a.each(d,function(a,d){a in e||(e[a]=d)})},createPropDefault:b,data:g,moveToFirstEvent:function(){var e=a._data?"_data":"data";return function(d,b,c){if((d=(a[e](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 e,d,b,c,f={init:!1,start:function(){if(!this.init)this.init=!0,this.height=a(o).height(),this.width=a(o).width(),setInterval(function(){var e=
25
+ a(o).height(),d=a(o).width();if(e!=f.height||d!=f.width)f.height=e,f.width=d,c({type:"docresize"})},400)}};c=function(c){clearTimeout(e);e=setTimeout(function(){if("resize"==c.type){var e=a(h).width(),g=a(h).width();if(g==d&&e==b)return;d=g;b=e;f.height=a(o).height();f.width=a(o).width()}a.event.trigger("updateshadowdom")},40)};a(h).bind("resize",c);a.event.customEvent.updateshadowdom=!0;return function(e,d,b){b=b||{};e.jquery&&(e=e[0]);d.jquery&&(d=d[0]);var c=a.data(e,k)||a.data(e,k,{}),i=a.data(d,
26
+ k)||a.data(d,k,{}),p={};if(b.shadowFocusElement){if(b.shadowFocusElement){if(b.shadowFocusElement.jquery)b.shadowFocusElement=b.shadowFocusElement[0];p=a.data(b.shadowFocusElement,k)||a.data(b.shadowFocusElement,k,p)}}else b.shadowFocusElement=d;c.hasShadow=d;p.nativeElement=i.nativeElement=e;p.shadowData=i.shadowData=c.shadowData={nativeElement:e,shadowElement:d,shadowFocusElement:b.shadowFocusElement};b.shadowChilds&&b.shadowChilds.each(function(){g(this,"shadowData",i.shadowData)});if(b.data)p.shadowData.data=
27
+ i.shadowData.data=c.shadowData.data=b.data;b=null;f.start()}}(),propTypes:{standard:function(a){b(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,""+d)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){b(a);if(!a.prop)a.prop={set:function(d){d?a.attr.set.call(this,""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}},src:function(){var e=o.createElement("a");e.style.display="none";return function(d,c){b(d);if(!d.prop)d.prop=
28
+ {set:function(a){d.attr.set.call(this,a)},get:function(){var d=this.getAttribute(c),b;if(null==d)return"";e.setAttribute("href",d+"");if(!a.support.hrefNormalized){try{a(e).insertAfter(this),b=e.getAttribute("href",4)}catch(f){b=e.getAttribute("href",4)}a(e).detach()}return b||e.href}}}}(),enumarated:function(a){b(a);if(!a.prop)a.prop={set:function(d){a.attr.set.call(this,d)},get:function(){var d=(a.attr.get.call(this)||"").toLowerCase();if(!d||-1==a.limitedTo.indexOf(d))d=a.defaultValue;return d}}}},
29
+ reflectProperties:function(e,d){"string"==typeof d&&(d=d.split(j));d.forEach(function(d){f.defineNodeNamesProperty(e,d,{prop:{set:function(e){a.attr(this,d,e)},get:function(){return a.attr(this,d)||""}}})})},defineNodeNameProperty:function(e,d,b){n[d]=!0;if(b.reflect)f.propTypes[b.propType||"standard"](b,d);["prop","attr","removeAttr"].forEach(function(c){var g=b[c];g&&(g="prop"===c?a.extend({writeable:!0},g):a.extend({},g,{writeable:!0}),u[c](e,d,g),"*"!=e&&f.cfg.extendNative&&"prop"==c&&g.value&&
30
+ a.isFunction(g.value)&&m(e,d,g),b[c]=g)});b.initAttr&&c.content(e,d);return b},defineNodeNameProperties:function(a,d,b,g){for(var i in d)!g&&d[i].initAttr&&c.createTmpCache(a),b&&(d[i][b]?f.log("override: "+a+"["+i+"] for "+b):(d[i][b]={},["value","set","get"].forEach(function(a){a in d[i]&&(d[i][b][a]=d[i][a],delete d[i][a])}))),d[i]=f.defineNodeNameProperty(a,i,d[i]);g||c.flushTmpCache();return d},createElement:function(e,b,g){var i;a.isFunction(b)&&(b={after:b});c.createTmpCache(e);b.before&&c.createElement(e,
31
+ b.before);g&&(i=f.defineNodeNameProperties(e,g,!1,!0));b.after&&c.createElement(e,b.after);c.flushTmpCache();return i},onNodeNamesPropertyModify:function(b,d,g,f){"string"==typeof b&&(b=b.split(j));a.isFunction(g)&&(g={set:g});b.forEach(function(a){r[a]||(r[a]={});"string"==typeof d&&(d=d.split(j));g.initAttr&&c.createTmpCache(a);d.forEach(function(b){r[a][b]||(r[a][b]=[],n[b]=!0);if(g.set){if(f)g.set.only=f;r[a][b].push(g.set)}g.initAttr&&c.content(a,b)});c.flushTmpCache()})},defineNodeNamesBooleanProperty:function(b,
32
+ d,c){c||(c={});if(a.isFunction(c))c.set=c;f.defineNodeNamesProperty(b,d,{attr:{set:function(a){this.setAttribute(d,a);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(d)?l:d}},removeAttr:{value:function(){this.removeAttribute(d);c.set&&c.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:c.initAttr||!1})},contentAttr:function(a,b,c){if(a.nodeName){if(c===l)return a=a.attributes[b]||{},c=a.specified?a.value:null,null==c?l:c;"boolean"==typeof c?c?a.setAttribute(b,b):
33
+ a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var b=[],d={},c,g,i=/:\/\/|^\.*\//,k=function(b,c,d){return c&&d&&-1!==a.inArray(c,d.availabeLangs||[])?(b.loading=!0,d=d.langSrc,i.test(d)||(d=f.cfg.basePath+d),f.loader.loadScript(d+c+".js",function(){b.langObj[c]?(b.loading=!1,m(b,!0)):a(function(){b.langObj[c]&&m(b,!0);b.loading=!1})}),!0):!1},w=function(a){d[a]&&d[a].forEach(function(a){a.callback()})},m=function(a,b){if(a.activeLang!=c&&a.activeLang!==g){var d=s[a.module].options;
34
+ if(a.langObj[c]||g&&a.langObj[g])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[g],c),w(a.module);else if(!b&&!k(a,c,d)&&!k(a,g,d)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),w(a.module)}};return function(f){if("string"==typeof f&&f!==c)c=f,g=c.split("-")[0],c==g&&(g=!1),a.each(b,function(a,b){m(b)});else if("object"==typeof f)if(f.register)d[f.register]||(d[f.register]=[]),d[f.register].push(f),f.callback();else{if(!f.activeLang)f.activeLang="";b.push(f);m(f)}return c}}()});
35
+ a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){f[a]=function(a,c,e,g){"string"==typeof a&&(a=a.split(j));var i={};a.forEach(function(a){i[a]=f[b](a,c,e,g)});return i}});f.isReady("webshimLocalization",!0)});
36
+ (function(a,f){var h=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<h)&&(!a.browser.msie||12>h&&7<h)){var o={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},l=function(a,f){a.getAttribute("role")||a.setAttribute("role",f)};a.webshims.addReady(function(h,j){a.each(o,function(f,r){for(var v=a(f,h).add(j.filter(f)),n=0,k=v.length;n<k;n++)l(v[n],r)});if(h===f){var t=f.getElementsByTagName("header")[0],n=f.getElementsByTagName("footer"),q=n.length;
37
+ t&&!a(t).closest("section, article")[0]&&l(t,"banner");q&&(t=n[q-1],a(t).closest("section, article")[0]||l(t,"contentinfo"))}})}})(jQuery,document);
38
+ (function(a,f,h){var o=f.audio&&f.video,l=!1,s=h.cfg.mediaelement,j=h.bugs,t=function(){h.ready("mediaelement-swf",function(){if(!h.mediaelement.createSWF)h.modules["mediaelement-swf"].test=a.noop,h.reTest(["mediaelement-swf"],o)})},n;if(o){var q=document.createElement("video");f.videoBuffered="buffered"in q;l="loop"in q;h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));f.videoBuffered||(h.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
39
+ test:f.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"))}if(o&&!s.preferFlash){var u=function(f){var j=f.target.parentNode;!s.preferFlash&&(a(f.target).is("audio, video")||j&&a("source:last",j)[0]==f.target)&&h.ready("DOM mediaelement",function(){n&&t();h.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){n&&!s.preferFlash&&h.mediaelement.createSWF&&!a(f.target).closest("audio, video").is(".nonnative-api-active")?(s.preferFlash=!0,document.removeEventListener("error",
40
+ u,!0),a("audio, video").mediaLoad(),h.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);a("audio, video").each(function(){this.error&&u({target:this})})}j.track=!1;f.track&&function(){if(!j.track)j.track="number"!=typeof a("<track />")[0].readyState;if(!j.track)try{new TextTrackCue(2,3,"")}catch(f){j.track=!0}var l=h.cfg.track,n=function(f){a(f.target).filter("track").each(k)},
41
+ k=function(){if(j.track||!l.override&&3==a.prop(this,"readyState"))l.override=!0,h.reTest("track"),document.removeEventListener("error",n,!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")},g=function(){document.addEventListener("error",n,!0);j.track?k():a("track").each(k)};l.override||(h.isReady("track")?g():a(g))}();h.register("mediaelement-core",function(a,
42
+ h,q,k,g){n=swfobject.hasFlashPlayerVersion("9.0.115");var i=h.mediaelement,m=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=i.getTypeForSrc(d.src,c))d.type=e,d.container=e;if(e=b.attr("media"))d.media=e;return d},c=!n&&"postMessage"in q&&o,b=
43
+ function(){var b;return function(){!b&&c&&(b=!0,h.loader.loadScript("https://www.youtube.com/player_api"),a(function(){h.polyfill("mediaelement-yt")}))}}(),e=function(){n?t():b()};h.addPolyfill("mediaelement-yt",{test:!c,d:["dom-support"]});i.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"]}};i.mimeTypes.source=a.extend({},i.mimeTypes.audio,i.mimeTypes.video);i.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(i.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return d=a,!1});return d};i.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=k.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=m(b,d);e.src?c.push(e):a("source",b).each(function(){e=m(this,d);e.src&&c.push(e)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==g&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));i.srces(this,b);a(this).mediaLoad()})};i.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
+ i.canThirdPlaySrces=function(b,d){var e="";if(n||c)b=a(b),d=d||i.srces(b),a.each(d,function(a,b){if(b.container&&b.src&&(n&&-1!=i.swfMimeTypes.indexOf(b.container)||c&&"video/youtube"==b.container))return e=b,!1});return e};var d={};i.canNativePlaySrces=function(b,c){var e="";if(o){var b=a(b),f=(b[0].nodeName||"").toLowerCase();if(!d[f])return e;c=c||i.srces(b);a.each(c,function(a,c){if(c.type&&d[f].prop._supvalue.call(b[0],c.type))return e=c,!1})}return e};i.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 p=function(){var a;return function(d,f,g){h.ready(n?"mediaelement-swf":"mediaelement-yt",function(){i.createSWF?i.createSWF(d,f,g):a||(a=!0,e(),p(d,f,g))});!a&&c&&!i.createSWF&&b()}}(),u=function(a,b,c,d,e){c||!1!==c&&b&&"third"==b.isActive?(c=i.canThirdPlaySrces(a,d))?p(a,c,b):e?i.setError(a,!1):u(a,b,!1,d,!0):(c=i.canNativePlaySrces(a,d))?b&&"third"==
49
+ b.isActive&&i.setActive(a,"html5",b):e?(i.setError(a,!1),b&&"third"==b.isActive&&i.setActive(a,"html5",b)):u(a,b,!0,d,!0)},C=/^(?:embed|object|datalist)$/i,B=function(b,c){var d=h.data(b,"mediaelementBase")||h.data(b,"mediaelementBase",{}),e=i.srces(b),f=b.parentNode;clearTimeout(d.loadTimer);a.data(b,"mediaerror",!1);if(e.length&&f&&!(1!=f.nodeType||C.test(f.nodeName||"")))c=c||h.data(b,"mediaelement"),u(b,c,s.preferFlash||g,e)};a(k).bind("ended",function(b){var c=h.data(b.target,"mediaelement");
50
+ (!l||c&&"html5"!=c.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});l||h.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(b){var c=h.defineNodeNameProperty(b,"load",{prop:{value:function(){var a=h.data(this,"mediaelement");B(this,a);o&&(!a||"html5"==a.isActive)&&c.prop._supvalue&&c.prop._supvalue.apply(this,arguments)}}});d[b]=h.defineNodeNameProperty(b,
51
+ "canPlayType",{prop:{value:function(c){var e="";o&&d[b].prop._supvalue&&(e=d[b].prop._supvalue.call(this,c),"no"==e&&(e=""));!e&&n&&(c=a.trim((c||"").split(";")[0]),-1!=i.swfMimeTypes.indexOf(c)&&(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(){B(a);a=null},9)}});q=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():B(this);if(o){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)})}})})};f.track&&!j.track&&h.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});o?(h.isReady("mediaelement-core",!0),q(),h.ready("WINDOWLOAD mediaelement",e)):h.ready("mediaelement-swf",q);a(function(){h.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
54
+ jQuery.webshims.register("mediaelement-swf",function(a,f,h,o,l,s){var j=f.mediaelement,t=h.swfobject,n=Modernizr.audio&&Modernizr.video,q=t.hasFlashPlayerVersion("9.0.115"),u=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)f.error("buffered index size error");else return 0},end:function(a){if(a)f.error("buffered index size error");else return 0},length:0}},r=Object.keys(h),v={currentTime:0,volume:1,
55
+ muted:!1};Object.keys(v);var x=a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:l},h,v),k=/^jwplayer-/,g=function(a){if(a=o.getElementById(a.replace(k,"")))return a=f.data(a,"mediaelement"),"third"==a.isActive?a:null},i=function(a){return(a=f.data(a,"mediaelement"))&&"third"==a.isActive?a:null},m=function(b,c){c=a.Event(c);c.preventDefault();a.event.trigger(c,l,b)},c=s.playerPath||f.cfg.basePath+
56
+ "jwplayer/"+(s.playerName||"player.swf"),b=s.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(s.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(s.jwVars,{screencolor:"ffffffff"});f.extendUNDEFProp(s.jwAttrs,{bgcolor:"#000000"});var e=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?(m(b._elem,"durationchange"),("audio"==b._elemNodeName||b._callMeta)&&j.jwEvents.Model.META(a.extend({duration:b.duration},c),b),b._durationCalcs--):b._durationCalcs++}},d=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,m(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){d(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,m(b._elem,"canplaythrough");b.readyState=a};a.extend(a.event.customEvent,
58
+ {updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});j.jwEvents={View:{PLAY:function(a){var b=g(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;m(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(b){var c=g(b.id);if(c&&"percentage"in b&&c._bufferedEnd!=b.percentage){c.networkState=100==b.percentage?1:2;(isNaN(c.duration)||5<b.percentage&&25>b.percentage||100===b.percentage)&&e(c,b);if(c.ended)c.ended=
59
+ !1;if(c.duration){2<b.percentage&&20>b.percentage?d(3,c):20<b.percentage&&d(4,c);if(c._bufferedEnd&&c._bufferedEnd>b.percentage)c._bufferedStart=c.currentTime||0;c._bufferedEnd=b.percentage;c.buffered.length=1;if(100==b.percentage)c.networkState=1,d(4,c);a.event.trigger("progress",l,c._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:g(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var c=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&&d(1,b);b.duration&&c!==b.duration&&m(b._elem,"durationchange");m(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=g(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&e(b,a);2>b.readyState&&d(2,b);if(b.ended)b.ended=!1;m(b._elem,"timeupdate")}},STATE:function(a){var b=
61
+ g(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;d(1,b);m(b._elem,"waiting");break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||e(b,a);3>b.readyState&&d(3,b);if(b.ended)b.ended=!1;m(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,m(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&d(4,b),b.ended=!0,m(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=g(a.id);b&&j.setError(b._elem,a.message)},SEEK:function(a){var b=
62
+ g(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,m(b._elem,"timeupdate")}},VOLUME:function(a){var b=g(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,m(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=g(a.id);if(b&&b.muted!=a.state)b.muted=a.state,m(b._elem,"volumechange")}}}};var p=function(b){var c=!0;a.each(j.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},G=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=[]},C=function(b){b&&(b._ppFlag===l&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===l||!b.paused))try{a(b._elem).play()}catch(c){}},1)},B=function(b){if(b&&
64
+ "video"==b._elemNodeName){var c,d,e,f,g,i,k,m,h=function(h,j){if(j&&h&&!(1>j||1>h||"third"!=b.isActive))if(c&&(c.remove(),c=!1),f=h,g=j,clearTimeout(k),d="auto"==b._elem.style.width,e="auto"==b._elem.style.height,d||e){i=i||a(b._elem).getShadowElement();var l;d&&!e?(l=i.height(),h*=l/j,j=l):!d&&e&&(l=i.width(),j*=l/h,h=l);m=!0;setTimeout(function(){m=!1},9);i.css({width:h,height:j})}},j=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(k);var b=this,d=b.naturalWidth||b.width||b.offsetWidth,e=b.naturalHeight||b.height||b.offsetHeight;e&&d?(h(d,e),b=null):setTimeout(function(){d=b.naturalWidth||b.width||b.offsetWidth;e=b.naturalHeight||b.height||b.offsetHeight;
66
+ h(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(k),k=setTimeout(function(){a(b._elem).triggerHandler("error")},9999))})}};a(b._elem).bind("loadedmetadata",function(){h(a.prop(this,"videoWidth"),a.prop(this,"videoHeight"))}).bind("emptied",j).bind("swfstageresize updatemediaelementdimensions",function(){m||h(f,g)}).bind("emptied",function(){f=void 0;g=void 0}).triggerHandler("swfstageresize");
67
+ j();a.prop(b._elem,"readyState")&&h(a.prop(b._elem,"videoWidth"),a.prop(b._elem,"videoHeight"))}};j.playerResize=function(b){b&&(b=o.getElementById(b.replace(k,"")))&&a(b).triggerHandler("swfstageresize")};a(o).bind("emptied",function(a){a=i(a.target);C(a)});var w;j.jwPlayerReady=function(b){var c=g(b.id),d=0,e=function(){if(!(9<d))if(d++,p(c)){if(c.wasSwfReady)a(c._elem).mediaLoad();else{var g=parseFloat(b.version,10);(5.1>g||6<=g)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}c.wasSwfReady=
68
+ !0;c.tryedReframeing=0;G(c);C(c)}else clearTimeout(c.reframeTimer),c.reframeTimer=setTimeout(e,9*d),2<d&&9>c.tryedReframeing&&(c.tryedReframeing++,c.shadowElem.css({overflow:"visible"}),setTimeout(function(){c.shadowElem.css({overflow:"hidden"})},16))};if(c&&c.jwapi){if(!c.tryedReframeing)c.tryedReframeing=0;clearTimeout(w);c.jwData=b;c.shadowElem.removeClass("flashblocker-assumed");a.prop(c._elem,"volume",c.volume);a.prop(c._elem,"muted",c.muted);e()}};var y=a.noop;if(n){var z={play:1,playing:1},
69
+ E="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),F=E.map(function(a){return a+".webshimspolyfill"}).join(" "),H=function(b){var c=f.data(b.target,"mediaelement");c&&(b.originalEvent&&b.originalEvent.type===b.type)==("third"==c.activating)&&(b.stopImmediatePropagation(),z[b.type]&&c.isActive!=c.activating&&a(b.target).pause())},y=function(b){a(b).unbind(F).bind(F,H);E.forEach(function(a){f.moveToFirstEvent(b,a)})};y(o)}j.setActive=function(b,c,
70
+ d){d||(d=f.data(b,"mediaelement"));if(d&&d.isActive!=c){"html5"!=c&&"third"!=c&&f.warn("wrong type for mediaelement activating: "+c);var e=f.data(b,"shadowData");d.activating=c;a(b).pause();d.isActive=c;"third"==c?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],a(b).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(a(b).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1);a(b).trigger("mediaelementapichange")}};
71
+ var I=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(c){if(c){var e=b,f=c.networkState;for(d(0,c);--e;)delete c[a[e]];c.actionQueue=[];c.buffered.length=0;f&&m(c._elem,"emptied")}}}(),D=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()})};j.createSWF=function(d,e,g){if(q){1>u?u=1:u++;var i=a.extend({},s.jwVars,{image:a.prop(d,"poster")||"",file:e.srcProp}),k=a(d).data("jwvars")||{};g||(g=f.data(d,"mediaelement"));if(g&&g.swfCreated)j.setActive(d,"third",g),I(g),g.currentSrc=e.srcProp,a.extend(i,k),s.changeJW(i,d,e,g,"load"),A(d,"sendEvent",["LOAD",i]);else{var h=a.prop(d,"controls"),m="jwplayer-"+f.getID(d),l=a.extend({},s.jwParams,a(d).data("jwparams")),p=d.nodeName.toLowerCase(),
73
+ o=a.extend({},s.jwAttrs,{name:m,id:m},a(d).data("jwattrs")),r=a('<div class="polyfill-'+p+' polyfill-mediaelement" id="wrapper-'+m+'"><div id="'+m+'"></div>').css({position:"relative",overflow:"hidden"}),g=f.data(d,"mediaelement",f.objectCreate(x,{actionQueue:{value:[]},shadowElem:{value:r},_elemNodeName:{value:p},_elem:{value:d},currentSrc:{value:e.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=g.buffered.length)f.error("buffered index size error");else return 0},end:function(a){if(a>=
74
+ g.buffered.length)f.error("buffered index size error");else return(g.duration-g._bufferedStart)*g._bufferedEnd/100+g._bufferedStart},length:0}}}));D(g,h);r.insertBefore(d);n&&a.extend(g,{volume:a.prop(d,"volume"),muted:a.prop(d,"muted")});a.extend(i,{id:m,controlbar:h?s.jwVars.controlbar||("video"==p?"over":"bottom"):"video"==p?"none":"bottom",icons:""+(h&&"video"==p)},k,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});i.plugins=i.plugins?i.plugins+(","+b):b;f.addShadowDom(d,r);y(d);j.setActive(d,
75
+ "third",g);s.changeJW(i,d,e,g,"embed");a(d).bind("updatemediaelementdimensions updateshadowdom",function(){D(g,a.prop(d,"controls"))});B(g);t.embedSWF(c,m,"100%","100%","9.0.0",!1,i,l,o,function(b){if(b.success)g.jwapi=b.ref,h||a(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&r[0].parentNode||"none"==b.ref.style.display)r.addClass("flashblocker-assumed"),a(d).trigger("flashblocker"),f.warn("flashblocker assumed");a(b.ref).css({minHeight:"2px",minWidth:"2px",
76
+ display:"block"})},9),w||(clearTimeout(w),w=setTimeout(function(){var c=a(b.ref);1<c[0].offsetWidth&&1<c[0].offsetHeight&&0===location.protocol.indexOf("file:")?f.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)&&f.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){a(d).mediaLoad()},
77
+ 1)};var A=function(a,b,c,d){return(d=d||i(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(b){var c={},d,e=function(a){"audio"==b&&("videoHeight"==a||"videoWidth"==a)||(c[a]={get:function(){var b=i(this);return b?b[a]:n&&d[a].prop._supget?d[a].prop._supget.apply(this):x[a]},writeable:!1})},g=function(a,b){e(a);delete c[a].writeable;
78
+ c[a].set=b};g("volume",function(a){var b=i(this);if(b){if(a*=100,!isNaN(a)){var c=b.muted;(0>a||100<a)&&f.error("volume greater or less than allowed "+a/100);A(this,"sendEvent",["VOLUME",a],b);if(c)try{b.jwapi.sendEvent("mute","true")}catch(e){}a/=100;if(!(b.volume==a||"third"!=b.isActive))b.volume=a,m(b._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});g("muted",function(a){var b=i(this);if(b){if(a=!!a,A(this,"sendEvent",["mute",""+a],b),!(b.muted==
79
+ a||"third"!=b.isActive))b.muted=a,m(b._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});g("currentTime",function(a){var b=i(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);A(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,m(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,
80
+ arguments)});["play","pause"].forEach(function(a){c[a]={value:function(){var b=i(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),A(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,m(b._elem,a)},1);else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}});r.forEach(e);f.onNodeNamesPropertyModify(b,"controls",function(c,d){var e=i(this);a(this)[d?"addClass":"removeClass"]("webshims-controls");
81
+ if(e){try{A(this,d?"showControls":"hideControls",[b],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==b&&D(e,d);a(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(b,c,"prop")});if(q){var J=a.cleanData,K=a.browser.msie&&9>f.browserVersion,L={object:1,OBJECT:1};a.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&u)for(b=0;b<c;b++)if(L[a[b].nodeName]){if("sendEvent"in a[b]){u--;try{a[b].sendEvent("play",!1)}catch(e){}}if(K)try{for(d in a[b])"function"==typeof a[b][d]&&
82
+ (a[b][d]=null)}catch(g){}}return J.apply(this,arguments)}}n||(["poster","src"].forEach(function(a){f.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){f.defineNodeNamesBooleanProperty(["audio","video"],a)}),f.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"))});
84
+ jQuery.webshims.register("track",function(a,f,h,o){var l=f.mediaelement;(new Date).getTime();var s={subtitles:1,captions:1},j=function(a){var g={};a.addEventListener=function(a,k){g[a]&&f.error("always use $.bind to the shimed event: "+a+" already bound fn was: "+g[a]+" your fn was: "+k);g[a]=k};a.removeEventListener=function(a,k){g[a]&&g[a]!=k&&f.error("always use $.bind/$.unbind to the shimed event: "+a+" already bound fn was: "+g[a]+" your fn was: "+k);g[a]&&delete g[a]};return a},t={getCueById:function(a){for(var g=
85
+ null,f=0,h=this.length;f<h;f++)if(this[f].id===a){g=this[f];break}return g}},n={shimActiveCues:null,_shimActiveCues:null,activeCues:null,cues:null,kind:"subtitles",label:"",language:"",mode:"disabled",readyState:0,oncuechange:null,toString:function(){return"[object TextTrack]"},addCue:function(a){if(this.cues){var g=this.cues[this.cues.length-1];g&&g.startTime>a.startTime&&f.error("cue startTime higher than previous cue's startTime")}else this.cues=l.createCueList();a.track&&f.error("cue already part of a track element");
86
+ a.track=this;this.cues.push(a)},removeCue:function(){f.error("not implemented yet")},DISABLED:"disabled",OFF:"disabled",HIDDEN:"hidden",SHOWING:"showing",ERROR:3,LOADED:2,LOADING:1,NONE:0},q=["kind","label","srclang"],u=Function.prototype.call.bind(Object.prototype.hasOwnProperty),r=function(k,g){var i=[],h=[],c=[],b,e;k||(k=f.data(this,"mediaelementBase")||f.data(this,"mediaelementBase",{}));if(!g)k.blockTrackListUpdate=!0,g=a.prop(this,"textTracks"),k.blockTrackListUpdate=!1;clearTimeout(k.updateTrackListTimer);
87
+ a("track",this).each(function(){var b=a.prop(this,"track");c.push(b);-1==g.indexOf(b)&&h.push(b)});if(k.scriptedTextTracks)for(b=0,e=k.scriptedTextTracks.length;b<e;b++)c.push(k.scriptedTextTracks[b]),-1==g.indexOf(k.scriptedTextTracks[b])&&h.push(k.scriptedTextTracks[b]);for(b=0,e=g.length;b<e;b++)-1==c.indexOf(g[b])&&i.push(g[b]);if(i.length||h.length){g.splice(0);for(b=0,e=c.length;b<e;b++)g.push(c[b]);for(b=0,e=i.length;b<e;b++)a([g]).triggerHandler(a.Event({type:"removetrack",track:g,track:i[b]}));
88
+ for(b=0,e=h.length;b<e;b++)a([g]).triggerHandler(a.Event({type:"addtrack",track:g,track:h[b]}));(k.scriptedTextTracks||i.length)&&a(this).triggerHandler("updatetrackdisplay")}},v=function(k,g){var i,h;g||(g=f.data(k,"trackData"));if(g&&!g.isTriggering)g.isTriggering=!0,i=(g.track||{}).mode,h=(g.track||{}).kind,setTimeout(function(){if(i!==(g.track||{}).mode||h!=(g.track||{}).kind)(g.track||{}).readyState?a(k).parent().triggerHandler("updatetrackdisplay"):a(k).triggerHandler("checktrackmode");g.isTriggering=
89
+ !1},9)},x=a("<div />")[0];h.TextTrackCue=function(a,g,i){3!=arguments.length&&f.error("wrong arguments.length for TextTrackCue.constructor");this.startTime=a;this.endTime=g;this.text=i;this.id="";this.pauseOnExit=!1;j(this)};h.TextTrackCue.prototype={onenter:null,onexit:null,pauseOnExit:!1,getCueAsHTML:function(){var a="",g="",f=o.createDocumentFragment(),h;if(!u(this,"getCueAsHTML"))h=this.getCueAsHTML=function(){var c,b;if(a!=this.text){a=this.text;g=l.parseCueTextToHTML(a);x.innerHTML=g;for(c=
90
+ 0,b=x.childNodes.length;c<b;c++)f.appendChild(x.childNodes[c].cloneNode(!0))}return f.cloneNode(!0)};return h?h.apply(this,arguments):f.cloneNode(!0)},track:null,id:""};l.createCueList=function(){return a.extend([],t)};l.parseCueTextToHTML=function(){var a=/(<\/?[^>]+>)/ig,f=/^(?:c|v|ruby|rt|b|i|u)/,i=/\<\s*\//,h=function(a,c,d,f){i.test(f)?a="</"+a+">":(d.splice(0,1),a="<"+a+" "+c+'="'+d.join(" ").replace(/\"/g,"&#34;")+'">');return a},c=function(a){var c=a.replace(/[<\/>]+/ig,"").split(/[\s\.]+/);
91
+ c[0]&&(c[0]=c[0].toLowerCase(),f.test(c[0])?"c"==c[0]?a=h("span","class",c,a):"v"==c[0]&&(a=h("q","title",c,a)):a="");return a};return function(b){return b.replace(a,c)}}();l.loadTextTrack=function(h,g,i,j){var c=i.track,b=function(){var e=a.prop(g,"src"),d,i;if("disabled"!=c.mode&&e&&a.attr(g,"src")&&(a(h).unbind("play playing timeupdate updatetrackdisplay",b),a(g).unbind("checktrackmode",b),!c.readyState)){d=function(){c.readyState=3;c.cues=null;c.activeCues=c.shimActiveCues=c._shimActiveCues=null;
92
+ a(g).triggerHandler("error")};c.readyState=1;try{c.cues=l.createCueList(),c.activeCues=c.shimActiveCues=c._shimActiveCues=l.createCueList(),i=a.ajax({dataType:"text",url:e,success:function(b){"text/vtt"!=i.getResponseHeader("content-type")&&f.error("set the mime-type of your WebVTT files to text/vtt. see: http://dev.w3.org/html5/webvtt/#text/vtt");l.parseCaptions(b,c,function(b){b&&"length"in b?(c.readyState=2,a(g).triggerHandler("load"),a(h).triggerHandler("updatetrackdisplay")):d()})},error:d})}catch(j){d(),
93
+ f.warn(j)}}};c.readyState=0;c.shimActiveCues=null;c._shimActiveCues=null;c.activeCues=null;c.cues=null;a(h).unbind("play playing timeupdate updatetrackdisplay",b);a(g).unbind("checktrackmode",b);a(h).bind("play playing timeupdate updatetrackdisplay",b);a(g).bind("checktrackmode",b);if(j)c.mode=s[c.kind]?"showing":"hidden",b()};l.createTextTrack=function(h,g){var i,m;if(g.nodeName&&(m=f.data(g,"trackData")))v(g,m),i=m.track;if(!i)i=j(f.objectCreate(n)),q.forEach(function(c){var b=a.prop(g,c);b&&("srclang"==
94
+ c&&(c="language"),i[c]=b)}),g.nodeName?(m=f.data(g,"trackData",{track:i}),l.loadTextTrack(h,g,m,a.prop(g,"default"))):(i.cues=l.createCueList(),i.activeCues=i._shimActiveCues=i.shimActiveCues=l.createCueList(),i.mode="hidden",i.readyState=2);return i};l.parseCaptionChunk=function(){var a=/^(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s+\-\-\>\s+(\d{2})?:?(\d{2}):(\d{2})\.(\d+)\s*(.*)/,f=/^(DEFAULTS|DEFAULT)\s+\-\-\>\s+(.*)/g,i=/^(STYLE|STYLES)\s+\-\-\>\s*\n([\s\S]*)/g,h=/^(COMMENT|COMMENTS)\s+\-\-\>\s+(.*)/g;
95
+ return function(c){var b,e,d,j;if(f.exec(c)||i.exec(c)||h.exec(c))return null;for(c=c.split(/\n/g);!c[0].replace(/\s+/ig,"").length&&0<c.length;)c.shift();for(c[0].match(/^\s*[a-z0-9]+\s*$/ig)&&(d=""+c.shift().replace(/\s*/ig,""));0<c.length;){if(j=a.exec(c[0]))e=j.slice(1),b=parseInt(3600*(e[0]||0),10)+parseInt(60*(e[1]||0),10)+parseInt(e[2]||0,10)+parseFloat("0."+(e[3]||0)),e=parseInt(3600*(e[4]||0),10)+parseInt(60*(e[5]||0),10)+parseInt(e[6]||0,10)+parseFloat("0."+(e[7]||0));c=c.slice(0,0).concat(c.slice(1));
96
+ break}if(!b&&!e)return null;c=c.join("\n");b=new TextTrackCue(b,e,c);if(d)b.id=d;return b}}();l.parseCaptions=function(a,g,i){l.createCueList();var h,c,b,e,d;a?(b=/^WEBVTT(\s*FILE)?/ig,c=function(j,n){for(;j<n;j++){h=a[j];if(b.test(h))d=!0;else if(h.replace(/\s*/ig,"").length){if(!d){f.error("please use WebVTT format. This is the standard");i(null);break}(h=l.parseCaptionChunk(h,j))&&g.addCue(h)}if(e<(new Date).getTime()-9){j++;setTimeout(function(){e=(new Date).getTime();c(j,n)},90);break}}j>=n&&
97
+ (d||f.error("please use WebVTT format. This is the standard"),i(g.cues))},a=a.replace(/\r\n/g,"\n"),setTimeout(function(){a=a.replace(/\r/g,"\n");setTimeout(function(){e=(new Date).getTime();a=a.split(/\n\n+/g);c(0,a.length)},9)},9)):f.error("Required parameter captionData not supplied.")};l.createTrackList=function(a,g){g=g||f.data(a,"mediaelementBase")||f.data(a,"mediaelementBase",{});if(!g.textTracks)g.textTracks=[],f.defineProperties(g.textTracks,{onaddtrack:{value:null},onremovetrack:{value:null}}),
98
+ j(g.textTracks);return g.textTracks};Modernizr.track||(f.defineNodeNamesBooleanProperty(["track"],"default"),f.reflectProperties(["track"],["srclang","label"]),f.defineNodeNameProperties("track",{src:{reflect:!0,propType:"src"}}));f.defineNodeNameProperties("track",{kind:{attr:Modernizr.track?{set:function(a){var g=f.data(this,"trackData");this.setAttribute("data-kind",a);if(g)g.attrKind=a},get:function(){var a=f.data(this,"trackData");return a&&"attrKind"in a?a.attrKind:this.getAttribute("kind")}}:
99
+ {},reflect:!0,propType:"enumarated",defaultValue:"subtitles",limitedTo:["subtitles","captions","descriptions","chapters","metadata"]}});f.onNodeNamesPropertyModify("track","kind",function(){var h=f.data(this,"trackData");if(h)h.track.kind=a.prop(this,"kind"),v(this,h)});f.onNodeNamesPropertyModify("track","src",function(h){if(h){var h=f.data(this,"trackData"),g;h&&(g=a(this).closest("video, audio"),g[0]&&l.loadTextTrack(g,this,h))}});f.defineNodeNamesProperties(["track"],{ERROR:{value:3},LOADED:{value:2},
100
+ LOADING:{value:1},NONE:{value:0},readyState:{get:function(){return(a.prop(this,"track")||{readyState:0}).readyState},writeable:!1},track:{get:function(){return l.createTextTrack(a(this).closest("audio, video")[0],this)},writeable:!1}},"prop");f.defineNodeNamesProperties(["audio","video"],{textTracks:{get:function(){var a=f.data(this,"mediaelementBase")||f.data(this,"mediaelementBase",{}),g=l.createTrackList(this,a);a.blockTrackListUpdate||r.call(this,a,g);return g},writeable:!1},addTextTrack:{value:function(a,
101
+ g,h){a=l.createTextTrack(this,{kind:a||"",label:g||"",srclang:h||""});g=f.data(this,"mediaelementBase")||f.data(this,"mediaelementBase",{});if(!g.scriptedTextTracks)g.scriptedTextTracks=[];g.scriptedTextTracks.push(a);r.call(this);return a}}},"prop");a(o).bind("emptied ended updatetracklist",function(h){if(a(h.target).is("audio, video")){var g=f.data(h.target,"mediaelementBase");if(g)clearTimeout(g.updateTrackListTimer),g.updateTrackListTimer=setTimeout(function(){r.call(h.target,g)},0)}});f.addReady(function(h,
102
+ g){var i=g.filter("video, audio, track").closest("audio, video");a("video, audio",h).add(i).each(function(){r.call(this)}).each(function(){if(Modernizr.track){var g=this.textTracks;a.prop(this,"textTracks").length!=g.length&&f.error("textTracks couldn't be copied");a("track",this).each(function(){var c=a.prop(this,"track"),b=this.track,e,d;if(b){e=a.prop(this,"kind");d=b.readyState||this.readyState;if(b.mode||d)c.mode=b.mode;if("descriptions"!=e)b.mode="string"==typeof b.mode?"disabled":0,this.kind=
103
+ "metadata",a(this).attr({kind:e})}}).bind("load error",function(a){a.originalEvent&&a.stopImmediatePropagation()})}});i.each(function(){var a=this,c=f.data(a,"mediaelementBase");if(c)clearTimeout(c.updateTrackListTimer),c.updateTrackListTimer=setTimeout(function(){r.call(a,c)},9)})});Modernizr.track&&a("video, audio").trigger("trackapichange")});