yui-base-min.js revision 81633afa56473067b37b848ef71bd39fc5c8d92e
(function(){var D={},B={"io.xdrReady":1,"io.start":1,"io.success":1,"io.failure":1,"io.abort":1};if(typeof YUI==="undefined"||!YUI){YUI=function(G){var F=this;if(F==window){return new YUI(G);}else{F._init(G);F._setup();return F;}};}YUI.prototype={_init:function(G){G=G||{};var F=(G.win)?(G.win.contentWindow):G.win||window;G.win=F;G.doc=F.document;G.debug=("debug" in G)?G.debug:true;G.useConsole=("useConsole" in G)?G.useConsole:true;G.throwFail=("throwFail" in G)?G.debug:true;this.config=G;this.Env={mods:{},_idx:0,_pre:"yuid",_used:{},_attached:{},_yidx:0,_uidx:0};if(YUI.Env){this.Env._yidx=++YUI.Env._idx;this.id=this.stamp(this);D[this.id]=this;}this.constructor=YUI;},_setup:function(F){this.use("yui");this.config=this.merge(this.config);},applyTo:function(L,K,H){if(!(K in B)){this.fail(K+": applyTo not allowed");return null;}var G=D[L];if(G){var J=K.split("."),F=G;for(var I=0;I<J.length;I=I+1){F=F[J[I]];if(!F){this.fail("applyTo not found: "+K);}}return F.apply(G,H);}return null;},add:function(H,J,G,I){var F={name:H,fn:J,version:G,details:I||{}};YUI.Env.mods[H]=F;return this;},_attach:function(G,K){var Q=YUI.Env.mods,H=this.Env._attached;for(var N=0,L=G.length;N<L;N=N+1){var I=G[N],J=Q[I],M;if(!H[I]&&J){H[I]=true;var O=J.details,P=O.requires,F=O.use;if(P){this._attach(this.Array(P));}if(J.fn){J.fn(this);}if(F){this._attach(this.Array(F));}}}},use:function(){var G=this,P=Array.prototype.slice.call(arguments,0),S=YUI.Env.mods,T=G.Env._used,Q,K=P[0],I=false,R=P[P.length-1];if(typeof R==="function"){P.pop();G.Env._callback=R;}else{R=null;}if(K==="*"){P=[];for(var L in S){if(S.hasOwnProperty(L)){P.push(L);}}return G.use.apply(G,P);}if(G.Loader){I=true;Q=new G.Loader(G.config);Q.require(P);Q.ignoreRegistered=true;Q.allowRollup=false;Q.calculate();P=Q.sorted;}var N=[],F=[],O=function(X){if(T[X]){return ;}var U=S[X],W,Y,V;if(U){T[X]=true;Y=U.details.requires;V=U.details.use;}else{N.push(X);}if(Y){if(G.Lang.isString(Y)){O(Y);}else{for(W=0;W<Y.length;W=W+1){O(Y[W]);}}}F.push(X);};for(var M=0,J=P.length;M<J;M=M+1){O(P[M]);}var H=function(V){V=V||{success:true,msg:"not dynamic"};if(G.Env._callback){var U=G.Env._callback;G.Env._callback=null;U(G,V);}if(G.fire){G.fire("yui:load",G,V);}};if(G.Loader&&N.length){Q=new G.Loader(G.config);Q.onSuccess=H;Q.onFailure=H;Q.onTimeout=H;Q.attaching=P;Q.require(N);Q.insert();}else{G._attach(F);H();}return G;},namespace:function(){var F=arguments,J=null,H,G,I;for(H=0;H<F.length;H=H+1){I=F[H].split(".");J=this;for(G=(I[0]=="YAHOO")?1:0;G<I.length;G=G+1){J[I[G]]=J[I[G]]||{};J=J[I[G]];}}return J;},log:function(){},fail:function(H,G){if(this.config.throwFail){throw (G||new Error(H));}else{var F=this;F.log(H,"error");}return this;},guid:function(H){var G=this.Env,F=(H)||G._pre;return F+"-"+G._yidx+"-"+G._uidx++;},stamp:function(G){if(!G){return G;}var F=(typeof G==="string")?G:G._yuid;if(!F){F=this.guid();G._yuid=F;}return F;}};var E=YUI,C=E.prototype,A;for(A in C){if(true){E[A]=C[A];}}E._init();})();YUI.add("yui-base",null,"@VERSION@");YUI.add("log",function(A){A.log=function(D,J,B){var C=A,I=C.config,K=C.Env._eventstack,G=false;if(I.debug&&!G){if(B){var L=I.logExclude,F=I.logInclude;if(F&&!(B in F)){G=true;}else{if(L&&(B in L)){G=true;}}}if(!G){if(I.useConsole&&typeof console!="undefined"){var H=(J&&console[J])?J:"log",E=(B)?B+": "+D:D;console[H](E);}if(C.fire&&!G){C.fire("yui:log",D,J,B);}}}return C;};},"@VERSION@");YUI.add("lang",function(D){D.Lang=D.Lang||{};var A=D.Lang,C="splice",B="length";A.isArray=function(E){if(E){return(E[C]&&A.isNumber(E[B]));}return false;};A.isBoolean=function(E){return typeof E==="boolean";};A.isFunction=function(E){return typeof E==="function";};A.isDate=function(E){return E instanceof Date;};A.isNull=function(E){return E===null;};A.isNumber=function(E){return typeof E==="number"&&isFinite(E);};A.isObject=function(F,E){return(F&&(typeof F==="object"||(!E&&A.isFunction(F))))||false;};A.isString=function(E){return typeof E==="string";};A.isUndefined=function(E){return typeof E==="undefined";};A.trim=function(E){try{return E.replace(/^\s+|\s+$/g,"");}catch(F){return E;}};A.isValue=function(E){return(A.isObject(E)||A.isString(E)||A.isNumber(E)||A.isBoolean(E));};},"@VERSION@");YUI.add("array",function(E){var C=E.Lang,D=Array.prototype;E.Array=function(H,F,G){var A=(G)?2:E.Array.test(H);switch(A){case 1:return(F)?H.slice(H,F):H;case 2:return D.slice.call(H,F||0);default:return[H];}};var B=E.Array;B.test=function(G){var F=0;if(C.isObject(G,true)){if(C.isArray(G)){F=1;}else{try{if("length" in G&&!("tagName" in G)&&!("alert" in G)){F=2;}}catch(A){}}}return F;};B.each=(D.forEach)?function(A,F,G){D.forEach.call(A,F,G||E);return E;}:function(F,H,I){var A=F.length,G;for(G=0;G<A;G=G+1){H.call(I||E,F[G],G,F);}return E;};B.hash=function(G,F){var J={},A=G.length,I=F&&F.length,H;for(H=0;H<A;H=H+1){J[G[H]]=(I&&I>H)?F[H]:true;}return J;};B.indexOf=function(A,G){for(var F=0;F<A.length;F=F+1){if(A[F]===G){return F;}}return -1;};},"@VERSION@");YUI.add("core",function(H){var D=H.Lang,C=H.Array,B=Object.prototype,G=["toString","valueOf"],F="prototype",E=(H.UA&&H.UA.ie)?function(L,K,I){for(var J=0,A=G;J<A.length;J=J+1){var N=A[J],M=K[N];if(D.isFunction(M)&&M!=B[N]){if(!I||(N in I)){L[N]=M;}}}}:function(){};H.merge=function(){var I=arguments,K={};for(var J=0,A=I.length;J<A;J=J+1){H.mix(K,I[J],true);}return K;};H.mix=function(A,R,J,Q,M,O){if(!R||!A){return H;}var P=(Q&&Q.length)?C.hash(Q):null,K=O,N=function(U,T,X,W){var S=K&&D.isArray(U);for(var V in T){if(F===V||"_yuid"===V){continue;}if(!P||W||(V in P)){if(K&&D.isObject(U[V],true)){N(U[V],T[V],X,true);}else{if(!S&&(J||!(V in U))){U[V]=T[V];}else{if(S){U.push(T[V]);}}}}}E(U,T,P);};var L=A.prototype,I=R.prototype;switch(M){case 1:N(L,I,true);break;case 2:N(A,R);N(L,I,true);break;case 3:N(A,I,true);break;case 4:N(L,R);break;default:N(A,R);}return A;};},"@VERSION@");YUI.add("object",function(C){C.Object=function(E){var D=function(){};D.prototype=E;return new D();};var B=C.Object,A=C.Lang;B.owns=function(E,D){return(E&&E.hasOwnProperty)?E.hasOwnProperty(D):false;
};B.keys=function(F){var D=[],E;for(E in F){if(F.hasOwnProperty(E)){D.push(E);}}return D;};B.each=function(H,G,I,F){var E=I||C;for(var D in H){if(F||H.hasOwnProperty(D)){G.call(E,H[D],D,H);}}return C;};},"@VERSION@");YUI.add("ua",function(A){A.UA=function(){var D={ie:0,opera:0,gecko:0,webkit:0,mobile:null};var C=navigator.userAgent,B;if((/KHTML/).test(C)){D.webkit=1;}B=C.match(/AppleWebKit\/([^\s]*)/);if(B&&B[1]){D.webkit=parseFloat(B[1]);if(/ Mobile\//.test(C)){D.mobile="Apple";}else{B=C.match(/NokiaN[^\/]*/);if(B){D.mobile=B[0];}}}if(!D.webkit){B=C.match(/Opera[\s\/]([^\s]*)/);if(B&&B[1]){D.opera=parseFloat(B[1]);B=C.match(/Opera Mini[^;]*/);if(B){D.mobile=B[0];}}else{B=C.match(/MSIE\s([^;]*)/);if(B&&B[1]){D.ie=parseFloat(B[1]);}else{B=C.match(/Gecko\/([^\s]*)/);if(B){D.gecko=1;B=C.match(/rv:([^\s\)]*)/);if(B&&B[1]){D.gecko=parseFloat(B[1]);}}}}}return D;}();},"@VERSION@");YUI.add("later",function(C){var A=C.Lang;var B=function(K,E,L,G,H){K=K||0;E=E||{};var F=L,J=G,I,D;if(A.isString(L)){F=E[L];}if(!F){C.fail("method undefined");}if(!A.isArray(J)){J=[G];}I=function(){F.apply(E,J);};D=(H)?setInterval(I,K):setTimeout(I,K);return{interval:H,cancel:function(){if(this.interval){clearInterval(D);}else{clearTimeout(D);}}};};C.later=B;A.later=B;},"@VERSION@");(function(){var B=["yui-base","log","lang","array","core"],A,C=function(E){var D=E.config;E.use.apply(E,B);if(D.core){A=D.core;}else{A=["object","ua","later"];A.push("get","loader");}E.use.apply(E,A);};YUI.add("yui",C,"@VERSION@");})();