yui-base-min.js revision bdd47f2da58d4a47f193431dd9c903369d65853a
(function(){var J=document,C=J&&J.documentElement,L=C&&C.className,F="yui3-js-enabled",K=function(){},N={},B=new Date().getTime(),A,H,M=function(R,Q,P,O){if(R&&R.addEventListener){R.addEventListener(Q,P,(!!O));}else{if(R&&R.attachEvent){R.attachEvent("on"+Q,P);}}},G=function(R,Q,P,O){if(R&&R.removeEventListener){R.removeEventListener(Q,P,!!O);}else{if(R&&R.detachEvent){R.detachEvent("on"+Q,P);}}},E=function(){YUI.Env.windowLoaded=true;YUI.Env.DOMReady=true;G(window,"load",E);},D={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},I=Array.prototype.slice;if(C&&L.indexOf(F)==-1){if(L){L+=" ";}L+=F;C.className=L;}if(typeof YUI==="undefined"||!YUI){YUI=function(T,S,R,Q,O){var P=this,X=arguments,W,U=X.length,V=(typeof YUI_config!=="undefined")&&YUI_config;if(!(P instanceof YUI)){return new YUI(T,S,R,Q,O);}else{P._init();if(V){P._config(V);}for(W=0;W<U;W++){P._config(X[W]);}P._setup();return P;}};}YUI.prototype={_config:function(S){S=S||{};var T=this.config,Q,P,O,R;R=T.modules;for(Q in S){if(R&&Q=="modules"){O=S[Q];for(P in O){if(O.hasOwnProperty(P)){R[P]=O[P];}}}else{if(Q=="win"){T[Q]=S[Q].contentWindow||S[Q];T.doc=T[Q].document;}else{T[Q]=S[Q];}}}},_init:function(){var O="@VERSION@",Q=this,P;if(O.indexOf("@")>-1){O="test";}Q.version=O;Q.gallery="gallery-2010.02.10-01";if(!Q.Env){Q.Env={mods:{},cdn:"http://yui.yahooapis.com/"+O+"/build/",bootstrapped:false,_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_guidp:"y",_loaded:{}};Q.Env._loaded[O]={};if(YUI.Env&&Q!==YUI){Q.Env._yidx=(++YUI.Env._yidx);Q.Env._guidp=("yui_"+O+"_"+Q.Env._yidx+"_"+B).replace(/\./g,"_");}Q.id=Q.stamp(Q);N[Q.id]=Q;}Q.constructor=YUI;Q.config=Q.config||{win:window||{},doc:J,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,fetchCSS:true,base:(YUI.config&&YUI.config.base)||function(){var R,S,U,V,T;S=(J&&J.getElementsByTagName("script"))||[];for(U=0;U<S.length;U=U+1){V=S[U].src;if(V){T=V.match(/^(.*)yui\/yui([\.\-].*)js(\?.*)?$/);R=T&&T[1];if(R){P=T[2];T=V.match(/^(.*\?)(.*\&)(.*)yui\/yui[\.\-].*js(\?.*)?$/);if(T&&T[3]){R=T[1]+T[3];}break;}}}return R||Q.Env.cdn;}(),loaderPath:(YUI.config&&YUI.config.loaderPath)||"loader/loader"+(P||"-min.")+"js"};},_setup:function(S){var R=this,O=[],Q=YUI.Env.mods,P=R.config.core||["get","intl-load","loader","yui-log","yui-later","yui-throttle"];for(H=0;H<P.length;H++){if(Q[P[H]]){O.push(P[H]);}}R.use("yui-base");R.use.apply(R,O);},applyTo:function(U,T,Q){if(!(T in D)){this.log(T+": applyTo not allowed","warn","yui");return null;}var P=N[U],S,O,R;if(P){S=T.split(".");O=P;for(R=0;R<S.length;R=R+1){O=O[S[R]];if(!O){this.log("applyTo not found: "+T,"warn","yui");}}return O.apply(P,Q);}return null;},add:function(P,R,O,Q){YUI.Env.mods[P]={name:P,fn:R,version:O,details:Q||{}};return this;},_attach:function(P,T){var Y=YUI.Env.mods,Q=this.Env._attached,V,U=P.length,R,S,W,X,O;for(V=0;V<U;V=V+1){R=P[V];S=Y[R];if(!Q[R]&&S){Q[R]=true;W=S.details;X=W.requires;O=W.use;if(X){this._attach(this.Array(X));}if(S.fn){S.fn(this);}if(O){this._attach(this.Array(O));}}}},use:function(){if(this._loading){this._useQueue=this._useQueue||new this.Queue();this._useQueue.add(I.call(arguments,0));return this;}var O=this,j=I.call(arguments,0),Q=YUI.Env.mods,S=O.Env._used,V,Z=YUI.Env._loaderQueue,U,n=j[0],P=false,R=j[j.length-1],m=O.config,T=m.bootstrap,c,e,b,d=[],X=[],W=O.config.fetchCSS,g=function(i){if(S[i]){return;}var Y=Q[i],f,k,a;if(Y){S[i]=true;k=Y.details.requires;a=Y.details.use;}else{if(!YUI.Env._loaded[O.version][i]){d.push(i);}else{S[i]=true;}}if(k){if(typeof k=="string"){g(k);}else{for(f=0;f<k.length;f=f+1){g(k[f]);}}}X.push(i);},h;if(typeof R==="function"){j.pop();}else{R=null;}h=function(Y){Y=Y||{success:true,msg:"not dynamic"};if(R){R(O,Y);}if(O.fire){O.fire("yui:load",O,Y);}O._loading=false;if(O._useQueue&&O._useQueue.size()&&!O._loading){O.use.apply(O,O._useQueue.next());}};if(n==="*"){j=[];for(c in Q){if(Q.hasOwnProperty(c)){j.push(c);}}if(R){j.push(R);}return O.use.apply(O,j);}if(O.Loader){P=true;V=new O.Loader(m);V.require(j);V.ignoreRegistered=true;V.allowRollup=false;V.calculate(null,(W)?null:"js");j=V.sorted;}b=j.length;for(e=0;e<b;e=e+1){g(j[e]);}b=d.length;if(b){d=O.Object.keys(O.Array.hash(d));}if(T&&b&&O.Loader){O._loading=true;V=new O.Loader(m);V.onSuccess=h;V.onFailure=h;V.onTimeout=h;V.context=O;V.attaching=j;V.require((W)?d:j);V.insert(null,(W)?null:"js");}else{if(T&&b&&O.Get&&!O.Env.bootstrapped){O._loading=true;j=O.Array(arguments,0,true);U=function(){O._loading=false;Z.running=false;O.Env.bootstrapped=true;O._attach(["loader"]);O.use.apply(O,j);};if(YUI.Env._bootstrapping){Z.add(U);}else{YUI.Env._bootstrapping=true;O.Get.script(m.base+m.loaderPath,{onEnd:U});}return O;}else{if(b){O.message("Requirement NOT loaded: "+d,"warn","yui");}O._attach(X);h();}}return O;},namespace:function(){var O=arguments,S=null,Q,P,R;for(Q=0;Q<O.length;Q=Q+1){R=(""+O[Q]).split(".");S=this;for(P=(R[0]=="YAHOO")?1:0;P<R.length;P=P+1){S[R[P]]=S[R[P]]||{};S=S[R[P]];}}return S;},log:K,message:K,error:function(P,O){if(this.config.throwFail){throw (O||new Error(P));}else{this.message(P,"error");}return this;},guid:function(O){var P=this.Env._guidp+(++this.Env._uidx);return(O)?(O+P):P;},stamp:function(Q,R){if(!Q){return Q;}var O=(typeof Q==="string")?Q:Q._yuid;if(!O){O=this.guid();if(!R){try{Q._yuid=O;}catch(P){O=null;}}}return O;}};A=YUI.prototype;for(H in A){if(1){YUI[H]=A[H];}}YUI._init();YUI._attach(["yui-base"]);M(window,"load",E);YUI.Env.add=M;YUI.Env.remove=G;})();YUI.add("yui-base",function(B){(function(){B.Lang=B.Lang||{};var R=B.Lang,G="array",I="boolean",D="date",M="error",S="function",H="number",K="null",F="object",O="regexp",N="string",C=Object.prototype.toString,P="undefined",E={"undefined":P,"number":H,"boolean":I,"string":N,"[object Function]":S,"[object RegExp]":O,"[object Array]":G,"[object Date]":D,"[object Error]":M},J=/^\s+|\s+$/g,Q="";R.isArray=function(L){return R.type(L)===G;};R.isBoolean=function(L){return typeof L===I;};R.isFunction=function(L){return R.type(L)===S;};R.isDate=function(L){return R.type(L)===D&&L.toString()!=="Invalid Date"&&!isNaN(L);
};R.isNull=function(L){return L===null;};R.isNumber=function(L){return typeof L===H&&isFinite(L);};R.isObject=function(U,T){var L=typeof U;return(U&&(L===F||(!T&&(L===S||R.isFunction(U)))))||false;};R.isString=function(L){return typeof L===N;};R.isUndefined=function(L){return typeof L===P;};R.trim=function(L){try{return L.replace(J,Q);}catch(T){return L;}};R.isValue=function(T){var L=R.type(T);switch(L){case H:return isFinite(T);case K:case P:return false;default:return !!(L);}};R.type=function(L){return E[typeof L]||E[C.call(L)]||(L?F:K);};})();(function(){var C=B.Lang,D=Array.prototype,E="length",F=function(M,K,I){var J=(I)?2:F.test(M),H,G,N=K||0;if(J){try{return D.slice.call(M,N);}catch(L){G=[];H=M.length;for(;N<H;N++){G.push(M[N]);}return G;}}else{return[M];}};B.Array=F;F.test=function(I){var G=0;if(C.isObject(I)){if(C.isArray(I)){G=1;}else{try{if((E in I)&&!I.tagName&&!I.alert&&!I.apply){G=2;}}catch(H){}}}return G;};F.each=(D.forEach)?function(G,H,I){D.forEach.call(G||[],H,I||B);return B;}:function(H,J,K){var G=(H&&H.length)||0,I;for(I=0;I<G;I=I+1){J.call(K||B,H[I],I,H);}return B;};F.hash=function(I,H){var L={},G=I.length,K=H&&H.length,J;for(J=0;J<G;J=J+1){L[I[J]]=(K&&K>J)?H[J]:true;}return L;};F.indexOf=(D.indexOf)?function(G,H){return D.indexOf.call(G,H);}:function(G,I){for(var H=0;H<G.length;H=H+1){if(G[H]===I){return H;}}return -1;};F.numericSort=function(H,G){return(H-G);};F.some=(D.some)?function(G,H,I){return D.some.call(G,H,I);}:function(H,J,K){var G=H.length,I;for(I=0;I<G;I=I+1){if(J.call(K,H[I],I,H)){return true;}}return false;};})();function A(){this._init();this.add.apply(this,arguments);}A.prototype={_init:function(){this._q=[];},next:function(){return this._q.shift();},last:function(){return this._q.pop();},add:function(){B.Array.each(B.Array(arguments,0,true),function(C){this._q.push(C);},this);return this;},size:function(){return this._q.length;}};B.Queue=A;YUI.Env._loaderQueue=YUI.Env._loaderQueue||new A();(function(){var D=B.Lang,C="__",E=function(H,G){var F=G.toString;if(D.isFunction(F)&&F!=Object.prototype.toString){H.toString=F;}};B.merge=function(){var G=arguments,I={},H,F=G.length;for(H=0;H<F;H=H+1){B.mix(I,G[H],true);}return I;};B.mix=function(F,O,H,N,L,M){if(!O||!F){return F||B;}if(L){switch(L){case 1:return B.mix(F.prototype,O.prototype,H,N,0,M);case 2:B.mix(F.prototype,O.prototype,H,N,0,M);break;case 3:return B.mix(F,O.prototype,H,N,0,M);case 4:return B.mix(F.prototype,O,H,N,0,M);default:}}var K=M&&D.isArray(F),J,I,G;if(N&&N.length){for(J=0,I=N.length;J<I;++J){G=N[J];if(O.hasOwnProperty(G)){if(M&&D.isObject(F[G],true)){B.mix(F[G],O[G]);}else{if(!K&&(H||!(G in F))){F[G]=O[G];}else{if(K){F.push(O[G]);}}}}}}else{for(J in O){if(O.hasOwnProperty(J)){if(M&&D.isObject(F[J],true)){B.mix(F[J],O[J],H,N,0,true);}else{if(!K&&(H||!(J in F))){F[J]=O[J];}else{if(K){F.push(O[J]);}}}}}if(B.UA.ie){E(F,O);}}return F;};B.cached=function(H,F,G){F=F||{};return function(K,J){var I=(J)?Array.prototype.join.call(arguments,C):K;if(!(I in F)||(G&&F[I]==G)){F[I]=H.apply(H,arguments);}return F[I];};};})();(function(){B.Object=function(H){var G=function(){};G.prototype=H;return new G();};var E=B.Object,F=function(H,G){return H&&H.hasOwnProperty&&H.hasOwnProperty(G);},D=undefined,C=function(K,J){var I=(J===2),G=(I)?0:[],H;for(H in K){if(F(K,H)){if(I){G++;}else{G.push((J)?K[H]:H);}}}return G;};E.keys=function(G){return C(G);};E.values=function(G){return C(G,1);};E.size=function(G){return C(G,2);};E.hasKey=F;E.hasValue=function(H,G){return(B.Array.indexOf(E.values(H),G)>-1);};E.owns=F;E.each=function(K,J,L,I){var H=L||B,G;for(G in K){if(I||F(K,G)){J.call(H,K[G],G,K);}}return B;};E.some=function(K,J,L,I){var H=L||B,G;for(G in K){if(I||F(K,G)){if(J.call(H,K[G],G,K)){return true;}}}return false;};E.getValue=function(K,J){if(!B.Lang.isObject(K)){return D;}var I=B.Array(J),G=I.length,H;for(H=0;K!==D&&H<G;H=H+1){K=K[I[H]];}return K;};E.setValue=function(M,K,L){var J=B.Array(K),I=J.length-1,G,H=M;if(I>=0){for(G=0;H!==D&&G<I;G=G+1){H=H[J[G]];}if(H!==D){H[J[G]]=L;}else{return D;}}return M;};})();B.UA=function(){var F=function(J){var K=0;return parseFloat(J.replace(/\./g,function(){return(K++==1)?"":".";}));},I=navigator,H={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,caja:I.cajaVersion,secure:false,os:null},E=I&&I.userAgent,G=B.config.win.location,D=G&&G.href,C;H.secure=D&&(D.toLowerCase().indexOf("https")===0);if(E){if((/windows|win32/i).test(E)){H.os="windows";}else{if((/macintosh/i).test(E)){H.os="macintosh";}else{if((/rhino/i).test(E)){H.os="rhino";}}}if((/KHTML/).test(E)){H.webkit=1;}C=E.match(/AppleWebKit\/([^\s]*)/);if(C&&C[1]){H.webkit=F(C[1]);if(/ Mobile\//.test(E)){H.mobile="Apple";}else{C=E.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/);if(C){H.mobile=C[0];}}C=E.match(/Chrome\/([^\s]*)/);if(C&&C[1]){H.chrome=F(C[1]);}else{C=E.match(/AdobeAIR\/([^\s]*)/);if(C){H.air=C[0];}}}if(!H.webkit){C=E.match(/Opera[\s\/]([^\s]*)/);if(C&&C[1]){H.opera=F(C[1]);C=E.match(/Opera Mini[^;]*/);if(C){H.mobile=C[0];}}else{C=E.match(/MSIE\s([^;]*)/);if(C&&C[1]){H.ie=F(C[1]);}else{C=E.match(/Gecko\/([^\s]*)/);if(C){H.gecko=1;C=E.match(/rv:([^\s\)]*)/);if(C&&C[1]){H.gecko=F(C[1]);}}}}}}return H;}();},"@VERSION@");