!function(n){function t(){p||(p=!0,u(y,function(n){f(n)}))}function e(t,e){var a=n.createElement("script");a.type="text/"+(t.type||"javascript"),a.src=t.src||t,a.async=!1,a.onreadystatechange=a.onload=function(){var n=a.readyState;!e.done&&(!n||/loaded|complete/.test(n))&&(e.done=!0,e())},(n.body||v).appendChild(a)}function a(n,t){return n.state==O?t&&t():n.state==b?E.ready(n.name,t):n.state==S?n.onpreload.push(function(){a(n,t)}):(n.state=b,void e(n.url,function(){n.state=O,t&&t(),u(h[n.name],function(n){f(n)}),c()&&p&&u(h.ALL,function(n){f(n)})}))}function o(n){void 0===n.state&&(n.state=S,n.onpreload=[],e({src:n.url,type:"cache"},function(){r(n)}))}function r(n){n.state=j,u(n.onpreload,function(n){n.call()})}function c(n){n=n||w;var t;for(var e in n){if(n.hasOwnProperty(e)&&n[e].state!=O)return!1;t=!0}return t}function i(n){return"[object Function]"==Object.prototype.toString.call(n)}function u(n,t){if(n){"object"==typeof n&&(n=[].slice.call(n));for(var e=0;e