yui-base-min.js revision 2690c090ce850e485d15cf691f59e8aaeb3b4bb1
(function(){var H={},D=new Date().getTime(),G,C,F=function(){if(window.addEventListener){return function(L,K,J,I){L.addEventListener(K,J,(!!I));};}else{if(window.attachEvent){return function(K,J,I){K.attachEvent("on"+J,I);};}else{return function(){};}}}(),A=function(){if(window.removeEventListener){return function(L,K,J,I){L.removeEventListener(K,J,!!I);};}else{if(window.detachEvent){return function(K,J,I){K.detachEvent("on"+J,I);};}else{return function(){};}}}(),B=function(){YUI.Env.windowLoaded=true;YUI.Env.DOMReady=true;A(window,"load",B);},E={"io.xdrReady":1,"io.start":1,"io.success":1,"io.failure":1};if(typeof YUI==="undefined"||!YUI){YUI=function(J){var I=this;if(!(I instanceof YUI)){return new YUI(J);}else{I._init(J);I._setup();return I;}};}YUI.prototype={_init:function(K){K=K||{};var I="@VERSION@",J=this;K.win=K.win||window||{};K.win=K.win.contentWindow||K.win;K.doc=K.win.document;K.debug=("debug" in K)?K.debug:true;K.useBrowserConsole=("useBrowserConsole" in K)?K.useBrowserConsole:true;K.throwFail=("throwFail" in K)?K.throwFail:true;J.config=K;J.Env={mods:{},_idx:0,_pre:"yuid",_used:{},_attached:{},_yidx:0,_uidx:0,_loaded:{}};if(I.indexOf("@")>-1){I="test";}J.version=I;J.Env._loaded[I]={};if(YUI.Env){J.Env._yidx=++YUI.Env._idx;J.id=J.stamp(J);H[J.id]=J;}J.constructor=YUI;},_setup:function(I){this.use("yui-base");this.config=this.merge(this.config);},applyTo:function(O,N,K){if(!(N in E)){this.error(N+": applyTo not allowed");return null;}var J=H[O],M,I,L;if(J){M=N.split(".");I=J;for(L=0;L<M.length;L=L+1){I=I[M[L]];if(!I){this.error("applyTo not found: "+N);}}return I.apply(J,K);}return null;},add:function(K,M,J,L){var I={name:K,fn:M,version:J,details:L||{}};YUI.Env.mods[K]=I;return this;},_attach:function(J,N){var S=YUI.Env.mods,K=this.Env._attached,P,O=J.length,L,M,Q,R,I;for(P=0;P<O;P=P+1){L=J[P];M=S[L];if(!K[L]&&M){K[L]=true;Q=M.details;R=Q.requires;I=Q.use;if(R){this._attach(this.Array(R));}if(M.fn){M.fn(this);}if(I){this._attach(this.Array(I));}}}},use:function(){if(this._loading){this._useQueue.add(Array.prototype.slice.call(arguments));return this;}var J=this,S=Array.prototype.slice.call(arguments,0),V=YUI.Env.mods,W=J.Env._used,T,N=S[0],L=false,U=S[S.length-1],O,Q,M,P=[],I=[],R=function(a){if(W[a]){return;}var X=V[a],Z,b,Y;if(X){W[a]=true;b=X.details.requires;Y=X.details.use;}else{if(!YUI.Env._loaded[J.version][a]){P.push(a);}else{W[a]=true;}}if(b){if(J.Lang.isString(b)){R(b);}else{for(Z=0;Z<b.length;Z=Z+1){R(b[Z]);}}}I.push(a);},K=function(Y){Y=Y||{success:true,msg:"not dynamic"};if(J.Env._callback){var X=J.Env._callback;J.Env._callback=null;X(J,Y);}if(J.fire){J.fire("yui:load",J,Y);}this._loading=false;while(this._useQueue&&this._useQueue.size()&&!this._loading){J.use.apply(J,this._useQueue.next());}};if(typeof U==="function"){S.pop();J.Env._callback=U;}else{U=null;}if(N==="*"){S=[];for(O in V){if(V.hasOwnProperty(O)){S.push(O);}}return J.use.apply(J,S);}if(J.Loader){L=true;this._useQueue=this._useQueue||new J.Queue();T=new J.Loader(J.config);T.require(S);T.ignoreRegistered=true;T.allowRollup=false;T.calculate();S=T.sorted;}M=S.length;for(Q=0;Q<M;Q=Q+1){R(S[Q]);}if(J.Loader&&P.length){this._loading=true;T=new J.Loader(J.config);T.onSuccess=K;T.onFailure=K;T.onTimeout=K;T.attaching=S;T.require(P);T.insert();}else{J._attach(I);K();}return J;},namespace:function(){var I=arguments,M=null,K,J,L;for(K=0;K<I.length;K=K+1){L=(""+I[K]).split(".");M=this;for(J=(L[0]=="YAHOO")?1:0;J<L.length;J=J+1){M[L[J]]=M[L[J]]||{};M=M[L[J]];}}return M;},log:function(){},error:function(J,I){if(this.config.throwFail){throw (I||new Error(J));}else{this.message(J,"error");}return this;},guid:function(K){var J=this.Env,I=(K)||J._pre,L=I+"-"+this.version+"-"+J._yidx+"-"+(J._uidx++)+"-"+D;return L.replace(/\./g,"_");},stamp:function(K,L){if(!K){return K;}var I=(typeof K==="string")?K:K._yuid;if(!I){I=this.guid();if(!L){try{K._yuid=I;}catch(J){I=null;}}}return I;}};G=YUI.prototype;for(C in G){if(true){YUI[C]=G[C];}}YUI._init();F(window,"load",B);YUI.Env.add=F;YUI.Env.remove=A;})();YUI.add("yui-base",function(A){(function(){var B=A,D="yui:log",C;B.log=function(G,N,E,L){var F=B,M=F.config,J=false,O,I,H,K;if(M.debug){if(E){O=M.logExclude;I=M.logInclude;if(I&&!(E in I)){J=true;}else{if(O&&(E in O)){J=true;}}}if(!J){if(M.useBrowserConsole){H=(E)?E+": "+G:G;if(typeof console!="undefined"){K=(N&&console[N])?N:"log";console[K](H);}else{if(typeof opera!="undefined"){opera.postError(H);}}}if(F.fire&&!J&&!L){if(!C){F.publish(D,{broadcast:2,emitFacade:true});C=true;}F.fire(D,{msg:G,cat:N,src:E});}}}return F;};B.message=function(){return B.log.apply(B,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 C=A.Lang,D=Array.prototype,B=function(L,I,K){var H=(K)?2:A.Array.test(L),G,F,E;if(H){try{return D.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=B;B.test=function(G){var E=0;if(C.isObject(G)){if(C.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;};B.each=(D.forEach)?function(E,F,G){D.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;};B.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;};B.indexOf=(D.indexOf)?function(E,F){return E.indexOf(F);}:function(E,G){for(var F=0;F<E.length;F=F+1){if(E[F]===G){return F;}}return -1;};B.numericSort=function(F,E){return(F-E);};B.some=(D.some)?function(E,F,G){return D.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="__",E={"prototype":1,"_yuid":1},D=function(H,G){var F=G.toString;if(C.isFunction(F)&&F!=Object.prototype.toString){H.toString=F;}};A.merge=function(){var G=arguments,I={},H,F=G.length;for(H=0;H<F;H=H+1){A.mix(I,G[H],true);}return I;};A.mix=function(F,O,H,N,L,M){if(!O||!F){return F||A;}if(L){switch(L){case 1:return A.mix(F.prototype,O.prototype);case 2:A.mix(F.prototype,O.prototype);break;case 3:return A.mix(F,O.prototype);case 4:return A.mix(F.prototype,O);default:}}var K=M&&C.isArray(F),J,I,G;if(N&&N.length){for(J=0,I=N.length;J<I;++J){G=N[J];if(G in O){if(M&&C.isObject(F[G],true)){A.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)&&!(J in E)){if(M&&C.isObject(F[J],true)){A.mix(F[J],O[J]);}else{if(!K&&(H||!(J in F))){F[J]=O[J];}else{if(K){F.push(O[J]);}}}}}if(A.UA.ie){D(F,O);}}return F;};A.cached=function(G,F){F=F||{};return function(J,I){var H=arguments,K=I?A.Array(H,0,true).join(B):J;if(!(K in F)){F[K]=G.apply(G,H);}return F[K];};};})();(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 F={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:0,secure:false,os:null},D=navigator&&navigator.userAgent,E=A.config.win.location,C=E&&E.href,B;F.secure=C&&(C.toLowerCase().indexOf("https")===0);if(D){if((/windows|win32/).test(D)){F.os="windows";}else{if((/macintosh/).test(D)){F.os="macintosh";}}if((/KHTML/).test(D)){F.webkit=1;}B=D.match(/AppleWebKit\/([^\s]*)/);if(B&&B[1]){F.webkit=parseFloat(B[1]);if(/ Mobile\//.test(D)){F.mobile="Apple";}else{B=D.match(/NokiaN[^\/]*/);if(B){F.mobile=B[0];}}B=D.match(/AdobeAIR\/([^\s]*)/);if(B){F.air=B[0];}}if(!F.webkit){B=D.match(/Opera[\s\/]([^\s]*)/);if(B&&B[1]){F.opera=parseFloat(B[1]);B=D.match(/Opera Mini[^;]*/);if(B){F.mobile=B[0];}}else{B=D.match(/MSIE\s([^;]*)/);if(B&&B[1]){F.ie=parseFloat(B[1]);}else{B=D.match(/Gecko\/([^\s]*)/);if(B){F.gecko=1;B=D.match(/rv:([^\s\)]*)/);if(B&&B[1]){F.gecko=parseFloat(B[1]);}}}}}B=D.match(/Caja\/([^\s]*)/);if(B&&B[1]){F.caja=parseFloat(B[1]);}}return F;}();(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","loader"];}A.use.apply(A,B);})();},"@VERSION@");