yui-base-min.js revision 736ba5f7cc5cf8d479f8fc621ff3c0777e434c8a
(function(){var J=document,C=J&&J.documentElement,K=C&&C.className,F="yui-js-enabled",M={},B=new Date().getTime(),A,H,L=function(Q,P,O,N){if(Q&&Q.addEventListener){Q.addEventListener(P,O,(!!N));}else{if(Q&&Q.attachEvent){Q.attachEvent("on"+P,O);}}},G=function(Q,P,O,N){if(Q&&Q.removeEventListener){Q.removeEventListener(P,O,!!N);}else{if(Q&&Q.detachEvent){Q.detachEvent("on"+P,O);}}},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&&K.indexOf(F)==-1){if(K){K+=" ";}K+=F;C.className=K;}if(typeof YUI==="undefined"||!YUI){YUI=function(S,R,Q,P,N){var O=this,W=arguments,V,T=W.length,U=(typeof YUI_config!=="undefined")&&YUI_config;if(!(O instanceof YUI)){return new YUI(S,R,Q,P,N);}else{O._init();if(U){O._config(U);}for(V=0;V<T;V++){O._config(W[V]);}O._setup();return O;}};}YUI.prototype={_config:function(R){R=R||{};var S=this.config,P,O,N,Q;Q=S.modules;for(P in R){if(Q&&P=="modules"){N=R[P];for(O in N){if(N.hasOwnProperty(O)){Q[O]=N[O];}}}else{if(P=="win"){S[P]=R[P].contentWindow||R[P];S.doc=S[P].document;}else{S[P]=R[P];}}}},_init:function(){var N="@VERSION@",P=this,O;if(N.indexOf("@")>-1){N="test";}P.version=N;P.Env=P.Env||{mods:{},cdn:"http://yui.yahooapis.com/"+N+"/build/",bootstrapped:false,_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_loaded:{}};P.Env._loaded[N]={};if(YUI.Env&&P!==YUI){P.Env._yidx=(++YUI.Env._yidx);P.Env._guidp=("yui_"+N+"-"+P.Env._yidx+"-"+B).replace(/\./g,"_");M[P.id]=P;}P.id=P.stamp(P);P.constructor=YUI;P.config=P.config||{win:window||{},doc:J,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,fetchCSS:true,base:(YUI.config&&YUI.config.base)||function(){var Q,R,T,U,S;R=(J&&J.getElementsByTagName("script"))||[];for(T=0;T<R.length;T=T+1){U=R[T].src;if(U){S=U.match(/^(.*)yui\/yui([\.\-].*)js(\?.*)?$/);Q=S&&S[1];if(Q){O=S[2];S=U.match(/^(.*\?)(.*\&)(.*)yui\/yui[\.\-].*js(\?.*)?$/);if(S&&S[3]){Q=S[1]+S[3];}break;}}}return Q||P.Env.cdn;}(),loaderPath:(YUI.config&&YUI.config.loaderPath)||"loader/loader"+(O||"-min.")+"js"};},_setup:function(R){var Q=this,N=[],P=YUI.Env.mods,O=Q.config.core||["get","loader","yui-log","yui-later"];for(H=0;H<O.length;H++){if(P[O[H]]){N.push(O[H]);}}Q.use("yui-base");Q.use.apply(Q,N);},applyTo:function(T,S,P){if(!(S in D)){this.log(S+": applyTo not allowed","warn","yui");return null;}var O=M[T],R,N,Q;if(O){R=S.split(".");N=O;for(Q=0;Q<R.length;Q=Q+1){N=N[R[Q]];if(!N){this.log("applyTo not found: "+S,"warn","yui");}}return N.apply(O,P);}return null;},add:function(O,Q,N,P){YUI.Env.mods[O]={name:O,fn:Q,version:N,details:P||{}};return this;},_attach:function(O,S){var X=YUI.Env.mods,P=this.Env._attached,U,T=O.length,Q,R,V,W,N;for(U=0;U<T;U=U+1){Q=O[U];R=X[Q];if(!P[Q]&&R){P[Q]=true;V=R.details;W=V.requires;N=V.use;if(W){this._attach(this.Array(W));}if(R.fn){R.fn(this);}if(N){this._attach(this.Array(N));}}}},use:function(){if(this._loading){this._useQueue=this._useQueue||new this.Queue();this._useQueue.add(I.call(arguments,0));return this;}var N=this,g=I.call(arguments,0),P=YUI.Env.mods,R=N.Env._used,U,T,h=g[0],O=false,Q=g[g.length-1],S=N.config.bootstrap,Z,c,X,b=[],W=[],V=N.config.fetchCSS,d=function(i){if(R[i]){return;}var Y=P[i],f,k,a;if(Y){R[i]=true;k=Y.details.requires;a=Y.details.use;}else{if(!YUI.Env._loaded[N.version][i]){b.push(i);}else{R[i]=true;}}if(k){if(N.Lang.isString(k)){d(k);}else{for(f=0;f<k.length;f=f+1){d(k[f]);}}}W.push(i);},e;if(typeof Q==="function"){g.pop();}else{Q=null;}e=function(Y){Y=Y||{success:true,msg:"not dynamic"};if(Q){Q(N,Y);}if(N.fire){N.fire("yui:load",N,Y);}N._loading=false;if(N._useQueue&&N._useQueue.size()&&!N._loading){N.use.apply(N,N._useQueue.next());}};if(h==="*"){g=[];for(Z in P){if(P.hasOwnProperty(Z)){g.push(Z);}}if(Q){g.push(Q);}return N.use.apply(N,g);}if(N.Loader){O=true;U=new N.Loader(N.config);U.require(g);U.ignoreRegistered=true;U.allowRollup=false;U.calculate(null,(V)?null:"js");g=U.sorted;}X=g.length;for(c=0;c<X;c=c+1){d(g[c]);}X=b.length;if(X){b=N.Object.keys(N.Array.hash(b));}if(S&&X&&N.Loader){N._loading=true;U=new N.Loader(N.config);U.onSuccess=e;U.onFailure=e;U.onTimeout=e;U.context=N;U.attaching=g;U.require((V)?b:g);U.insert(null,(V)?null:"js");}else{if(S&&X&&N.Get&&!N.Env.bootstrapped){N._loading=true;g=N.Array(arguments,0,true);T=function(){N._loading=false;N.Env.bootstrapped=true;N._attach(["loader"]);N.use.apply(N,g);};if(YUI.Env._bootstrapping){YUI.Env._loaderQueue.add(T);}else{YUI.Env._bootstrapping=true;N.Get.script(N.config.base+N.config.loaderPath,{onEnd:T});}return N;}else{if(X){N.message("Unable or not configured to fetch missing modules: "+b,"info","yui");}N._attach(W);e();}}return N;},namespace:function(){var N=arguments,R=null,P,O,Q;for(P=0;P<N.length;P=P+1){Q=(""+N[P]).split(".");R=this;for(O=(Q[0]=="YAHOO")?1:0;O<Q.length;O=O+1){R[Q[O]]=R[Q[O]]||{};R=R[Q[O]];}}return R;},log:function(){},error:function(O,N){if(this.config.throwFail){throw (N||new Error(O));}else{this.message(O,"error");}return this;},guid:function(N){var O=this.Env._guidp+(++this.Env._uidx);return(N)?(N+O):O;},stamp:function(P,Q){if(!P){return P;}var N=(typeof P==="string")?P:P._yuid;if(!N){N=this.guid();if(!Q){try{P._yuid=N;}catch(O){N=null;}}}return N;}};A=YUI.prototype;for(H in A){if(1){YUI[H]=A[H];}}YUI._init();YUI._attach(["yui-base"]);L(window,"load",E);YUI.Env.add=L;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();},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@");