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