vendor/assets/javascripts/webshims/minified/shims/combos/8.js in webshims-rails-0.1 vs vendor/assets/javascripts/webshims/minified/shims/combos/8.js in webshims-rails-0.2
- old
+ new
@@ -1,33 +1,33 @@
-(function(e){if(!Modernizr.genericDOM){var h=document,k,j,n=/<([\w:]+)/,m={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};e.webshims.fixHTML5=function(e){if("string"!=typeof e||m[(n.exec(e)||["",""])[1].toLowerCase()])return e;if(!j){k=h.body;if(!k)return e;j=h.createElement("div");j.style.display="none"}var l=j.cloneNode(!1);k.appendChild(l);l.innerHTML=e;k.removeChild(l);return l.childNodes}}})(jQuery);
-jQuery.webshims.register("dom-extend",function(e,h,k,j,n){var m=h.modules,g=/\s*,\s*/,l={},B={},o={},i={},r={},u=e.fn.val,x=function(a,b,c,d,f){return f?u.call(e(a)):u.call(e(a),c)};e.fn.val=function(a){var b=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!b||1!==b.nodeType?u.call(this):e.prop(b,"value",a,"val",!0);if(e.isArray(a))return u.apply(this,arguments);var c=e.isFunction(a);return this.each(function(d){b=this;1===b.nodeType&&(c?(d=a.call(b,d,e.prop(b,"value",n,"val",
-!0)),null==d&&(d=""),e.prop(b,"value",d,"val")):e.prop(b,"value",a,"val"))})};var s="_webshimsLib"+Math.round(1E3*Math.random()),q=function(a,b,c){a=a.jquery?a[0]:a;if(!a)return c||{};var d=e.data(a,s);c!==n&&(d||(d=e.data(a,s,{})),b&&(d[b]=c));return b?d&&d[b]:d};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){e.fn[a.name]=function(){return this.map(function(){var b=q(this,
-"shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){l[a]=e[a];e[a]=function(b,c,d,f,y){var m="val"==f,i=!m?l[a]:x;if(!b||!B[c]||1!==b.nodeType||!m&&f&&"attr"==a&&e.attrFn[c])return i(b,c,d,f,y);var t=(b.nodeName||"").toLowerCase(),v=o[t],h="attr"==a&&(!1===d||null===d)?"removeAttr":a,g,j,k;v||(v=o["*"]);v&&(v=v[c]);v&&(g=v[h]);if(g){if("value"==c)j=g.isVal,g.isVal=m;if("removeAttr"===h)return g.value.call(b);if(d===n)return g.get?g.get.call(b):g.value;g.set&&
-("attr"==a&&!0===d&&(d=c),k=g.set.call(b,d));if("value"==c)g.isVal=j}else k=i(b,c,d,f,y);if((d!==n||"removeAttr"===h)&&r[t]&&r[t][c]){var p;p="removeAttr"==h?!1:"prop"==h?!!d:!0;r[t][c].forEach(function(c){if(!c.only||(c.only="prop"==a)||"attr"==c.only&&"prop"!=a)c.call(b,d,p,m?"val":h,a)})}return k};i[a]=function(b,c,d){o[b]||(o[b]={});o[b][c]||(o[b][c]={});var f=o[b][c][a],y=function(b,f,t){return f&&f[b]?f[b]:t&&t[b]?t[b]:"prop"==a&&"value"==c?function(b){return d.isVal?x(this,c,b,!1,0===arguments.length):
-l[a](this,c,b)}:"prop"==a&&"value"==b&&d.value.apply?function(b){var d=l[a](this,c);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(b){return l[a](this,c,b)}};o[b][c][a]=d;if(d.value===n){if(!d.set)d.set=d.writeable?y("set",d,f):h.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+b;}:e.noop;if(!d.get)d.get=y("get",d,f)}["value","get","set"].forEach(function(b){d[b]&&(d["_sup"+b]=y(b,f))})}});var A=!e.browser.msie||8<parseInt(e.browser.version,10),z=function(){var a=h.getPrototypeOf(j.createElement("foobar")),
-b=Object.prototype.hasOwnProperty;return function(c,d,f){var e=j.createElement(c),m=h.getPrototypeOf(e);if(A&&m&&a!==m&&(!e[d]||!b.call(e,d))){var g=e[d];f._supvalue=function(){return g&&g.apply?g.apply(this,arguments):g};m[d]=f.value}else f._supvalue=function(){var b=q(this,"propValue");return b&&b[d]&&b[d].apply?b[d].apply(this,arguments):b&&b[d]},p.extendValue(c,d,f.value);f.value._supvalue=f._supvalue}}(),p=function(){var a={};h.addReady(function(b,c){var d={},m=function(a){d[a]||(d[a]=e(b.getElementsByTagName(a)),
-c[0]&&e.nodeName(c[0],a)&&(d[a]=d[a].add(c)))};e.each(a,function(b,a){m(b);!a||!a.forEach?h.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){d[b].each(a)})});d=null});var b,c=e([]),d=function(c,d){a[c]?a[c].push(d):a[c]=[d];e.isDOMReady&&(b||e(j.getElementsByTagName(c))).each(d)};return{createTmpCache:function(a){e.isDOMReady&&(b=b||e(j.getElementsByTagName(a)));return b||c},flushTmpCache:function(){b=null},content:function(b,a){d(b,function(){var b=e.attr(this,a);null!=b&&e.attr(this,
-a,b)})},createElement:function(b,a){d(b,a)},extendValue:function(b,a,c){d(b,function(){e(this).each(function(){q(this,"propValue",{})[a]=this[a];this[a]=c})})}}}(),w=function(a,b){if(a.defaultValue===n)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};e.extend(h,{getID:function(){var a=(new Date).getTime();return function(b){var b=e(b),c=b.attr("id");c||(a++,c="ID-"+a,b.attr("id",c));return c}}(),extendUNDEFProp:function(a,
-b){e.each(b,function(b,d){b in a||(a[b]=d)})},createPropDefault:w,data:q,moveToFirstEvent:function(){var a=e._data?"_data":"data";return function(b,c,d){if((b=(e[a](b,"events")||{})[c])&&1<b.length)c=b.pop(),d||(d="bind"),"bind"==d&&b.delegateCount?b.splice(b.delegateCount,0,c):b.unshift(c)}}(),addShadowDom:function(a,b,c){c=c||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);if(!c.shadowFocusElement)c.shadowFocusElement=b;var d=e.data(a,s)||e.data(a,s,{}),f=e.data(b,s)||e.data(b,s,{});d.hasShadow=b;f.nativeElement=
-a;f.shadowData=d.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){q(this,"shadowData",f.shadowData)});if(c.data)d.shadowData.data=c.data,f.shadowData.data=c.data;c=null},propTypes:{standard:function(a){w(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){w(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,
-""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,b){"string"==typeof b&&(b=b.split(g));b.forEach(function(b){h.defineNodeNamesProperty(a,b,{prop:{set:function(a){e.attr(this,b,a)},get:function(){return e.attr(this,b)||""}}})})},defineNodeNameProperty:function(a,b,c){B[b]=!0;if(c.reflect)h.propTypes[c.propType||"standard"](c);["prop","attr","removeAttr"].forEach(function(d){var f=c[d];f&&(f="prop"===d?e.extend({writeable:!0},f):e.extend({},
-f,{writeable:!0}),i[d](a,b,f),"*"!=a&&h.cfg.extendNative&&"prop"==d&&f.value&&e.isFunction(f.value)&&z(a,b,f),c[d]=f)});c.initAttr&&p.content(a,b);return c},defineNodeNameProperties:function(a,b,c,d){for(var f in b)!d&&b[f].initAttr&&p.createTmpCache(a),c&&(b[f][c]?h.log("override: "+a+"["+f+"] for "+c):(b[f][c]={},["value","set","get"].forEach(function(a){a in b[f]&&(b[f][c][a]=b[f][a],delete b[f][a])}))),b[f]=h.defineNodeNameProperty(a,f,b[f]);d||p.flushTmpCache();return b},createElement:function(a,
-b,c){var d;e.isFunction(b)&&(b={after:b});p.createTmpCache(a);b.before&&p.createElement(a,b.before);c&&(d=h.defineNodeNameProperties(a,c,!1,!0));b.after&&p.createElement(a,b.after);p.flushTmpCache();return d},onNodeNamesPropertyModify:function(a,b,c,d){"string"==typeof a&&(a=a.split(g));e.isFunction(c)&&(c={set:c});a.forEach(function(a){r[a]||(r[a]={});"string"==typeof b&&(b=b.split(g));c.initAttr&&p.createTmpCache(a);b.forEach(function(b){r[a][b]||(r[a][b]=[],B[b]=!0);if(c.set){if(d)c.set.only=d;
-r[a][b].push(c.set)}c.initAttr&&p.content(a,b)});p.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,b,c){c||(c={});if(e.isFunction(c))c.set=c;h.defineNodeNamesProperty(a,b,{attr:{set:function(a){this.setAttribute(b,a);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?n:b}},removeAttr:{value:function(){this.removeAttribute(b);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===
-n)return c=(a.attributes[b]||{}).value,null==c?n:c;"boolean"==typeof c?c?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var a=[],b={},c,d,f=/:\/\/|^\.*\//,g=function(a,b,c){return b&&c&&-1!==e.inArray(b,c.availabeLangs||[])?(a.loading=!0,c=c.langSrc,f.test(c)||(c=h.cfg.basePath+c),h.loader.loadScript(c+b+".js",function(){a.langObj[b]?(a.loading=!1,j(a,!0)):e(function(){a.langObj[b]&&j(a,!0);a.loading=!1})}),!0):!1},i=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},
-j=function(a,b){if(a.activeLang!=c&&a.activeLang!==d){var f=m[a.module].options;if(a.langObj[c]||d&&a.langObj[d])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[d],c),i(a.module);else if(!b&&!g(a,c,f)&&!g(a,d,f)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),i(a.module)}};return function(f){if("string"==typeof f&&f!==c)c=f,d=c.split("-")[0],c==d&&(d=!1),e.each(a,function(a,b){j(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f),
-f.callback();else{if(!f.activeLang)f.activeLang="";a.push(f);j(f)}return c}}()});e.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){h[a]=function(a,d,f,e){"string"==typeof a&&(a=a.split(g));var m={};a.forEach(function(a){m[a]=h[b](a,d,f,e)});return m}});h.isReady("webshimLocalization",!0)});
-(function(e,h){var k=e.webshims.browserVersion;if(!(e.browser.mozilla&&5<k)&&(!e.browser.msie||12>k&&7<k)){var j={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},n=function(e,g){e.getAttribute("role")||e.setAttribute("role",g)};e.webshims.addReady(function(m,g){e.each(j,function(h,j){for(var k=e(h,m).add(g.filter(h)),l=0,o=k.length;l<o;l++)n(k[l],j)});if(m===h){var l=h.getElementsByTagName("header")[0],k=h.getElementsByTagName("footer"),o=k.length;
-l&&!e(l).closest("section, article")[0]&&n(l,"banner");o&&(l=k[o-1],e(l).closest("section, article")[0]||n(l,"contentinfo"))}})}})(jQuery,document);
-(function(e,h,k){var j=h.audio&&h.video,n=!1;if(j)e=document.createElement("video"),h.videoBuffered="buffered"in e,n="loop"in e,k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),h.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:h.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(e,g,h,k,o){var i=g.mediaelement,r=g.cfg.mediaelement,
-u=function(a,b){var a=e(a),c={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!c.src)return c;var d=a.attr("type");if(d)c.type=d,c.container=e.trim(d.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),d=i.getTypeForSrc(c.src,b))c.type=d,c.container=d,g.warn("you should always provide a proper mime-type using the source element. "+c.src+" detected as: "+d),e.nodeName(a[0],"source")&&a.attr("type",
-d);if(d=a.attr("media"))c.media=d;return c},x=swfobject.hasFlashPlayerVersion("9.0.115"),s=function(){g.ready("mediaelement-swf",function(){if(!i.createSWF)g.modules["mediaelement-swf"].test=e.noop,g.reTest(["mediaelement-swf"],j)})};i.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","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};i.mimeTypes.source=e.extend({},i.mimeTypes.audio,i.mimeTypes.video);i.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||-1!=a.indexOf("youtube.com/v/"))return"video/youtube";
-var a=a.split("?")[0].split("."),a=a[a.length-1],c;e.each(i.mimeTypes[b],function(b,e){if(-1!==e.indexOf(a))return c=b,!1});return c};i.srces=function(a,b){a=e(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),e.isArray(b)||(b=[b]),b.forEach(function(b){var c=k.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});else{var b=[],c=a[0].nodeName.toLowerCase(),
-d=u(a,c);d.src?b.push(d):e("source",a).each(function(){d=u(this,c);d.src&&b.push(d)});return b}};e.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==o&&(e(this).removeAttr("poster"),b&&e.attr(this,"poster",b));i.srces(this,a);e(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(",");
-i.canSwfPlaySrces=function(a,b){var c="";x&&(a=e(a),b=b||i.srces(a),e.each(b,function(a,b){if(b.container&&b.src&&-1!=i.swfMimeTypes.indexOf(b.container))return c=b,!1}));return c};var q={};i.canNativePlaySrces=function(a,b){var c="";if(j){var a=e(a),d=(a[0].nodeName||"").toLowerCase();if(!q[d])return c;b=b||i.srces(a);e.each(b,function(b,e){if(e.type&&q[d].prop._supvalue.call(a[0],e.type))return c=e,!1})}return c};i.setError=function(a,b){b||(b="can't play sources");e(a).pause().data("mediaerror",
-b);g.warn("mediaelementError: "+b);setTimeout(function(){e(a).data("mediaerror")&&e(a).trigger("mediaerror")},1)};var A=function(){var a;return function(b,c,d){g.ready("mediaelement-swf",function(){i.createSWF?i.createSWF(b,c,d):a||(a=!0,s(),A(b,c,d))})}}(),z=function(a,b,c,d,e){c||!1!==c&&b&&"flash"==b.isActive?(c=i.canSwfPlaySrces(a,d))?A(a,c,b):e?i.setError(a,!1):z(a,b,!1,d,!0):(c=i.canNativePlaySrces(a,d))?b&&"flash"==b.isActive&&i.setActive(a,"html5",b):e?(i.setError(a,!1),b&&"flash"==b.isActive&&
-i.setActive(a,"html5",b)):z(a,b,!0,d,!0)},p=/^(?:embed|object|datalist)$/i,w=function(a,b){var c=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{}),d=i.srces(a),f=a.parentNode;clearTimeout(c.loadTimer);e.data(a,"mediaerror",!1);if(d.length&&f&&!(1!=f.nodeType||p.test(f.nodeName||"")))b=b||g.data(a,"mediaelement"),z(a,b,r.preferFlash||o,d)};e(k).bind("ended",function(a){var b=g.data(a.target,"mediaelement");(!n||b&&"html5"!=b.isActive||e.prop(a.target,"loop"))&&setTimeout(function(){!e.prop(a.target,
-"paused")&&e.prop(a.target,"loop")&&e(a.target).prop("currentTime",0).play()},1)});n||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=g.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=g.data(this,"mediaelement");w(this,a);j&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});q[a]=g.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var d="";j&&q[a].prop._supvalue&&(d=q[a].prop._supvalue.call(this,
-b),"no"==d&&(d=""));!d&&x&&(b=e.trim((b||"").split(";")[0]),-1!=i.swfMimeTypes.indexOf(b)&&(d="maybe"));return d}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){w(a);a=null},9)}});j&&g.isReady("mediaelement-core",!0);g.addReady(function(a,b){e("video, audio",a).add(b.filter("video, audio")).each(function(){e.browser.msie&&8<g.browserVersion&&
-e.prop(this,"paused")&&!e.prop(this,"readyState")&&e(this).is('audio[preload="none"][controls]:not([autoplay])')?e(this).prop("preload","metadata").mediaLoad():w(this);if(j){var a,b,f=this,h=function(){var a=e.prop(f,"buffered");if(a){for(var b="",c=0,d=a.length;c<d;c++)b+=a.end(c);return b}},i=function(){var a=h();a!=b&&(b=a,e(f).triggerHandler("progress"))};e(this).bind("play loadstart progress",function(e){"progress"==e.type&&(b=h());clearTimeout(a);a=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",
-function(e){"emptied"==e.type&&(b=!1);clearTimeout(a)})}})});j&&x&&g.ready("WINDOWLOAD mediaelement",s)})})(jQuery,Modernizr,jQuery.webshims);
+(function(e){if(!Modernizr.genericDOM){var g=document,k,i,m=/<([\w:]+)/,l={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};e.webshims.fixHTML5=function(e){if("string"!=typeof e||l[(m.exec(e)||["",""])[1].toLowerCase()])return e;if(!i){k=g.body;if(!k)return e;i=g.createElement("div");i.style.display="none"}var j=i.cloneNode(!1);k.appendChild(j);j.innerHTML=e;k.removeChild(j);return j.childNodes}}})(jQuery);
+jQuery.webshims.register("dom-extend",function(e,g,k,i,m){var l=g.modules,p=/\s*,\s*/,j={},A={},o={},h={},s={},u=e.fn.val,w=function(a,b,c,d,f){return f?u.call(e(a)):u.call(e(a),c)};e.fn.val=function(a){var b=this[0];arguments.length&&null==a&&(a="");if(!arguments.length)return!b||1!==b.nodeType?u.call(this):e.prop(b,"value",a,"val",!0);if(e.isArray(a))return u.apply(this,arguments);var c=e.isFunction(a);return this.each(function(d){b=this;1===b.nodeType&&(c?(d=a.call(b,d,e.prop(b,"value",m,"val",
+!0)),null==d&&(d=""),e.prop(b,"value",d,"val")):e.prop(b,"value",a,"val"))})};var q="_webshimsLib"+Math.round(1E3*Math.random()),r=function(a,b,c){a=a.jquery?a[0]:a;if(!a)return c||{};var d=e.data(a,q);c!==m&&(d||(d=e.data(a,q,{})),b&&(d[b]=c));return b?d&&d[b]:d};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(a){e.fn[a.name]=function(){return this.map(function(){var b=r(this,
+"shadowData");return b&&b[a.prop]||this})}});["removeAttr","prop","attr"].forEach(function(a){j[a]=e[a];e[a]=function(b,c,d,f,x){var l="val"==f,p=!l?j[a]:w;if(!b||!A[c]||1!==b.nodeType||!l&&f&&"attr"==a&&e.attrFn[c])return p(b,c,d,f,x);var t=(b.nodeName||"").toLowerCase(),h=o[t],g="attr"==a&&(!1===d||null===d)?"removeAttr":a,i,k,n;h||(h=o["*"]);h&&(h=h[c]);h&&(i=h[g]);if(i){if("value"==c)k=i.isVal,i.isVal=l;if("removeAttr"===g)return i.value.call(b);if(d===m)return i.get?i.get.call(b):i.value;i.set&&
+("attr"==a&&!0===d&&(d=c),n=i.set.call(b,d));if("value"==c)i.isVal=k}else n=p(b,c,d,f,x);if((d!==m||"removeAttr"===g)&&s[t]&&s[t][c]){var q;q="removeAttr"==g?!1:"prop"==g?!!d:!0;s[t][c].forEach(function(c){if(!c.only||(c.only="prop"==a)||"attr"==c.only&&"prop"!=a)c.call(b,d,q,l?"val":g,a)})}return n};h[a]=function(b,c,d){o[b]||(o[b]={});o[b][c]||(o[b][c]={});var f=o[b][c][a],x=function(b,f,t){return f&&f[b]?f[b]:t&&t[b]?t[b]:"prop"==a&&"value"==c?function(b){return d.isVal?w(this,c,b,!1,0===arguments.length):
+j[a](this,c,b)}:"prop"==a&&"value"==b&&d.value.apply?function(b){var d=j[a](this,c);d&&d.apply&&(d=d.apply(this,arguments));return d}:function(b){return j[a](this,c,b)}};o[b][c][a]=d;if(d.value===m){if(!d.set)d.set=d.writeable?x("set",d,f):g.cfg.useStrict&&"prop"==c?function(){throw c+" is readonly on "+b;}:e.noop;if(!d.get)d.get=x("get",d,f)}["value","get","set"].forEach(function(b){d[b]&&(d["_sup"+b]=x(b,f))})}});var z=!e.browser.msie||8<parseInt(e.browser.version,10),y=function(){var a=g.getPrototypeOf(i.createElement("foobar")),
+b=Object.prototype.hasOwnProperty;return function(c,d,f){var e=i.createElement(c),l=g.getPrototypeOf(e);if(z&&l&&a!==l&&(!e[d]||!b.call(e,d))){var h=e[d];f._supvalue=function(){return h&&h.apply?h.apply(this,arguments):h};l[d]=f.value}else f._supvalue=function(){var b=r(this,"propValue");return b&&b[d]&&b[d].apply?b[d].apply(this,arguments):b&&b[d]},n.extendValue(c,d,f.value);f.value._supvalue=f._supvalue}}(),n=function(){var a={};g.addReady(function(b,c){var d={},l=function(a){d[a]||(d[a]=e(b.getElementsByTagName(a)),
+c[0]&&e.nodeName(c[0],a)&&(d[a]=d[a].add(c)))};e.each(a,function(b,a){l(b);!a||!a.forEach?g.warn("Error: with "+b+"-property. methods: "+a):a.forEach(function(a){d[b].each(a)})});d=null});var b,c=e([]),d=function(c,d){a[c]?a[c].push(d):a[c]=[d];e.isDOMReady&&(b||e(i.getElementsByTagName(c))).each(d)};return{createTmpCache:function(a){e.isDOMReady&&(b=b||e(i.getElementsByTagName(a)));return b||c},flushTmpCache:function(){b=null},content:function(b,a){d(b,function(){var b=e.attr(this,a);null!=b&&e.attr(this,
+a,b)})},createElement:function(b,a){d(b,a)},extendValue:function(b,a,c){d(b,function(){e(this).each(function(){r(this,"propValue",{})[a]=this[a];this[a]=c})})}}}(),v=function(a,b){if(a.defaultValue===m)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[b||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};e.extend(g,{getID:function(){var a=(new Date).getTime();return function(b){var b=e(b),c=b.attr("id");c||(a++,c="ID-"+a,b.attr("id",c));return c}}(),extendUNDEFProp:function(a,
+b){e.each(b,function(b,d){b in a||(a[b]=d)})},createPropDefault:v,data:r,moveToFirstEvent:function(){var a=e._data?"_data":"data";return function(b,c,d){if((b=(e[a](b,"events")||{})[c])&&1<b.length)c=b.pop(),d||(d="bind"),"bind"==d&&b.delegateCount?b.splice(b.delegateCount,0,c):b.unshift(c)}}(),addShadowDom:function(a,b,c){c=c||{};a.jquery&&(a=a[0]);b.jquery&&(b=b[0]);if(!c.shadowFocusElement)c.shadowFocusElement=b;var d=e.data(a,q)||e.data(a,q,{}),f=e.data(b,q)||e.data(b,q,{});d.hasShadow=b;f.nativeElement=
+a;f.shadowData=d.shadowData={nativeElement:a,shadowElement:b,shadowFocusElement:c.shadowFocusElement};c.shadowChilds&&c.shadowChilds.each(function(){r(this,"shadowData",f.shadowData)});if(c.data)d.shadowData.data=c.data,f.shadowData.data=c.data;c=null},propTypes:{standard:function(a){v(a);if(!a.prop)a.prop={set:function(b){a.attr.set.call(this,""+b)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){v(a);if(!a.prop)a.prop={set:function(b){b?a.attr.set.call(this,
+""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(a,b){"string"==typeof b&&(b=b.split(p));b.forEach(function(b){g.defineNodeNamesProperty(a,b,{prop:{set:function(a){e.attr(this,b,a)},get:function(){return e.attr(this,b)||""}}})})},defineNodeNameProperty:function(a,b,c){A[b]=!0;if(c.reflect)g.propTypes[c.propType||"standard"](c);["prop","attr","removeAttr"].forEach(function(d){var f=c[d];f&&(f="prop"===d?e.extend({writeable:!0},f):e.extend({},
+f,{writeable:!0}),h[d](a,b,f),"*"!=a&&g.cfg.extendNative&&"prop"==d&&f.value&&e.isFunction(f.value)&&y(a,b,f),c[d]=f)});c.initAttr&&n.content(a,b);return c},defineNodeNameProperties:function(a,b,c,d){for(var f in b)!d&&b[f].initAttr&&n.createTmpCache(a),c&&(b[f][c]?g.log("override: "+a+"["+f+"] for "+c):(b[f][c]={},["value","set","get"].forEach(function(a){a in b[f]&&(b[f][c][a]=b[f][a],delete b[f][a])}))),b[f]=g.defineNodeNameProperty(a,f,b[f]);d||n.flushTmpCache();return b},createElement:function(a,
+b,c){var d;e.isFunction(b)&&(b={after:b});n.createTmpCache(a);b.before&&n.createElement(a,b.before);c&&(d=g.defineNodeNameProperties(a,c,!1,!0));b.after&&n.createElement(a,b.after);n.flushTmpCache();return d},onNodeNamesPropertyModify:function(a,b,c,d){"string"==typeof a&&(a=a.split(p));e.isFunction(c)&&(c={set:c});a.forEach(function(a){s[a]||(s[a]={});"string"==typeof b&&(b=b.split(p));c.initAttr&&n.createTmpCache(a);b.forEach(function(b){s[a][b]||(s[a][b]=[],A[b]=!0);if(c.set){if(d)c.set.only=d;
+s[a][b].push(c.set)}c.initAttr&&n.content(a,b)});n.flushTmpCache()})},defineNodeNamesBooleanProperty:function(a,b,c){c||(c={});if(e.isFunction(c))c.set=c;g.defineNodeNamesProperty(a,b,{attr:{set:function(a){this.setAttribute(b,a);c.set&&c.set.call(this,!0)},get:function(){return null==this.getAttribute(b)?m:b}},removeAttr:{value:function(){this.removeAttribute(b);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===
+m)return c=(a.attributes[b]||{}).value,null==c?m:c;"boolean"==typeof c?c?a.setAttribute(b,b):a.removeAttribute(b):a.setAttribute(b,c)}},activeLang:function(){var a=[],b={},c,d,f=/:\/\/|^\.*\//,h=function(a,b,c){return b&&c&&-1!==e.inArray(b,c.availabeLangs||[])?(a.loading=!0,c=c.langSrc,f.test(c)||(c=g.cfg.basePath+c),g.loader.loadScript(c+b+".js",function(){a.langObj[b]?(a.loading=!1,i(a,!0)):e(function(){a.langObj[b]&&i(a,!0);a.loading=!1})}),!0):!1},p=function(a){b[a]&&b[a].forEach(function(a){a.callback()})},
+i=function(a,b){if(a.activeLang!=c&&a.activeLang!==d){var f=l[a.module].options;if(a.langObj[c]||d&&a.langObj[d])a.activeLang=c,a.callback(a.langObj[c]||a.langObj[d],c),p(a.module);else if(!b&&!h(a,c,f)&&!h(a,d,f)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],c),p(a.module)}};return function(f){if("string"==typeof f&&f!==c)c=f,d=c.split("-")[0],c==d&&(d=!1),e.each(a,function(a,b){i(b)});else if("object"==typeof f)if(f.register)b[f.register]||(b[f.register]=[]),b[f.register].push(f),
+f.callback();else{if(!f.activeLang)f.activeLang="";a.push(f);i(f)}return c}}()});e.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,b){g[a]=function(a,d,f,e){"string"==typeof a&&(a=a.split(p));var l={};a.forEach(function(a){l[a]=g[b](a,d,f,e)});return l}});g.isReady("webshimLocalization",!0)});
+(function(e,g){var k=e.webshims.browserVersion;if(!(e.browser.mozilla&&5<k)&&(!e.browser.msie||12>k&&7<k)){var i={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},m=function(e,g){e.getAttribute("role")||e.setAttribute("role",g)};e.webshims.addReady(function(l,p){e.each(i,function(h,g){for(var i=e(h,l).add(p.filter(h)),j=0,k=i.length;j<k;j++)m(i[j],g)});if(l===g){var j=g.getElementsByTagName("header")[0],k=g.getElementsByTagName("footer"),o=k.length;
+j&&!e(j).closest("section, article")[0]&&m(j,"banner");o&&(j=k[o-1],e(j).closest("section, article")[0]||m(j,"contentinfo"))}})}})(jQuery,document);
+(function(e,g,k){var i=g.audio&&g.video,m=!1;if(i)e=document.createElement("video"),g.videoBuffered="buffered"in e,m="loop"in e,k.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),g.videoBuffered||(k.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:g.videoBuffered,d:["dom-support"]}),k.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(e,g,j,k,o){var h=g.mediaelement,s=g.cfg.mediaelement,
+u=function(a,b){var a=e(a),c={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!c.src)return c;var d=a.attr("type");if(d)c.type=d,c.container=e.trim(d.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),d=h.getTypeForSrc(c.src,b))c.type=d,c.container=d,g.warn("you should always provide a proper mime-type using the source element. "+c.src+" detected as: "+d),e.nodeName(a[0],"source")&&a.attr("type",
+d);if(d=a.attr("media"))c.media=d;return c},w=swfobject.hasFlashPlayerVersion("9.0.115"),q=function(){g.ready("mediaelement-swf",function(){if(!h.createSWF)g.modules["mediaelement-swf"].test=e.noop,g.reTest(["mediaelement-swf"],i)})};h.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","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};h.mimeTypes.source=e.extend({},h.mimeTypes.audio,h.mimeTypes.video);h.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||-1!=a.indexOf("youtube.com/v/"))return"video/youtube";
+var a=a.split("?")[0].split("."),a=a[a.length-1],c;e.each(h.mimeTypes[b],function(b,e){if(-1!==e.indexOf(a))return c=b,!1});return c};h.srces=function(a,b){a=e(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),e.isArray(b)||(b=[b]),b.forEach(function(b){var c=k.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});else{var b=[],c=a[0].nodeName.toLowerCase(),
+d=u(a,c);d.src?b.push(d):e("source",a).each(function(){d=u(this,c);d.src&&b.push(d)});return b}};e.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==o&&(e(this).removeAttr("poster"),b&&e.attr(this,"poster",b));h.srces(this,a);e(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(",");
+h.canSwfPlaySrces=function(a,b){var c="";w&&(a=e(a),b=b||h.srces(a),e.each(b,function(a,b){if(b.container&&b.src&&-1!=h.swfMimeTypes.indexOf(b.container))return c=b,!1}));return c};var r={};h.canNativePlaySrces=function(a,b){var c="";if(i){var a=e(a),d=(a[0].nodeName||"").toLowerCase();if(!r[d])return c;b=b||h.srces(a);e.each(b,function(b,e){if(e.type&&r[d].prop._supvalue.call(a[0],e.type))return c=e,!1})}return c};h.setError=function(a,b){b||(b="can't play sources");e(a).pause().data("mediaerror",
+b);g.warn("mediaelementError: "+b);setTimeout(function(){e(a).data("mediaerror")&&e(a).trigger("mediaerror")},1)};var z=function(){var a;return function(b,c,d){g.ready("mediaelement-swf",function(){h.createSWF?h.createSWF(b,c,d):a||(a=!0,q(),z(b,c,d))})}}(),y=function(a,b,c,d,e){c||!1!==c&&b&&"flash"==b.isActive?(c=h.canSwfPlaySrces(a,d))?z(a,c,b):e?h.setError(a,!1):y(a,b,!1,d,!0):(c=h.canNativePlaySrces(a,d))?b&&"flash"==b.isActive&&h.setActive(a,"html5",b):e?(h.setError(a,!1),b&&"flash"==b.isActive&&
+h.setActive(a,"html5",b)):y(a,b,!0,d,!0)},n=/^(?:embed|object|datalist)$/i,v=function(a,b){var c=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{}),d=h.srces(a),f=a.parentNode;clearTimeout(c.loadTimer);e.data(a,"mediaerror",!1);if(d.length&&f&&!(1!=f.nodeType||n.test(f.nodeName||"")))b=b||g.data(a,"mediaelement"),y(a,b,s.preferFlash||o,d)};e(k).bind("ended",function(a){var b=g.data(a.target,"mediaelement");(!m||b&&"html5"!=b.isActive||e.prop(a.target,"loop"))&&setTimeout(function(){!e.prop(a.target,
+"paused")&&e.prop(a.target,"loop")&&e(a.target).prop("currentTime",0).play()},1)});m||g.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=g.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=g.data(this,"mediaelement");v(this,a);i&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});r[a]=g.defineNodeNameProperty(a,"canPlayType",{prop:{value:function(b){var d="";i&&r[a].prop._supvalue&&(d=r[a].prop._supvalue.call(this,
+b),"no"==d&&(d=""));!d&&w&&(b=e.trim((b||"").split(";")[0]),-1!=h.swfMimeTypes.indexOf(b)&&(d="maybe"));return d}}})});g.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=g.data(a,"mediaelementBase")||g.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){v(a);a=null},9)}});j=function(){g.addReady(function(a,b){e("video, audio",a).add(b.filter("video, audio")).each(function(){e.browser.msie&&8<g.browserVersion&&e.prop(this,
+"paused")&&!e.prop(this,"readyState")&&e(this).is('audio[preload="none"][controls]:not([autoplay])')?e(this).prop("preload","metadata").mediaLoad():v(this);if(i){var a,b,f=this,h=function(){var a=e.prop(f,"buffered");if(a){for(var b="",c=0,d=a.length;c<d;c++)b+=a.end(c);return b}},j=function(){var a=h();a!=b&&(b=a,e(f).triggerHandler("progress"))};e(this).bind("play loadstart progress",function(e){"progress"==e.type&&(b=h());clearTimeout(a);a=setTimeout(j,999)}).bind("emptied stalled mediaerror abort suspend",
+function(e){"emptied"==e.type&&(b=!1);clearTimeout(a)})}})})};i?(g.isReady("mediaelement-core",!0),j(),w&&g.ready("WINDOWLOAD mediaelement",q)):g.ready("mediaelement-swf",j)})})(jQuery,Modernizr,jQuery.webshims);