Skip to content
Browse files

YUI & Loader build

  • Loading branch information...
1 parent 3ac2043 commit 9bcccaf25f9f9da57e55ce17a4a971c081e0f02e @davglass committed Nov 29, 2011
View
323 build/loader-base/loader-base-debug.js
@@ -2121,59 +2121,6 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
onSuccess: complete
});
}
-
-
- /*
-
- this.loadType = type;
-
- if (!type) {
-
- var self = this;
-
- // Y.log("trying to load css first");
- this._internalCallback = function() {
-
- var f = self.onCSS, n, p, sib;
-
- // IE hack for style overrides that are not being applied
- if (this.insertBefore && Y.UA.ie) {
- n = Y.config.doc.getElementById(this.insertBefore);
- p = n.parentNode;
- sib = n.nextSibling;
- p.removeChild(n);
- if (sib) {
- p.insertBefore(n, sib);
- } else {
- p.appendChild(n);
- }
- }
-
- if (f) {
- f.call(self.context, Y);
- }
- self._internalCallback = null;
-
- self._insert(null, null, JS);
- };
-
- this._insert(null, null, CSS);
-
- return;
- }
-
- // set a flag to indicate the load has started
- this._loading = true;
-
- // flag to indicate we are done with the combo service
- // and any additional files will need to be loaded
- // individually
- this._combineComplete = {};
-
- // start the load
- this.loadNext();
- */
-
},
/**
* Once a loader operation is completely finished, process any additional queued items.
@@ -2213,278 +2160,14 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
* is possible to call this if using a method other than
* Y.register to determine when scripts are fully loaded
* @method loadNext
+ * @deprecated
* @param {string} mname optional the name of the module that has
* been loaded (which is usually why it is time to load the next
* one).
*/
loadNext: function(mname) {
- Y.log('loadNext was called..', 'warn', 'loader');
- // It is possible that this function is executed due to something
- // else on the page loading a YUI module. Only react when we
- // are actively loading something
- if (!this._loading) {
- return;
- }
-
- var s, len, i, m, url, fn, msg, attr, group, groupName, j, frag,
- comboSource, comboSources, mods, combining, urls, comboBase,
- self = this,
- type = self.loadType,
- handleSuccess = function(o) {
- self.loadNext(o.data);
- },
- handleCombo = function(o) {
- self._combineComplete[type] = true;
- var i, len = combining.length;
-
- for (i = 0; i < len; i++) {
- self.inserted[combining[i]] = true;
- }
-
- handleSuccess(o);
- };
-
- if (self.combine && (!self._combineComplete[type])) {
-
- combining = [];
-
- self._combining = combining;
- s = self.sorted;
- len = s.length;
-
- // the default combo base
- comboBase = self.comboBase;
-
- url = comboBase;
- urls = [];
-
- comboSources = {};
-
- for (i = 0; i < len; i++) {
- comboSource = comboBase;
- m = self.getModule(s[i]);
- groupName = m && m.group;
- if (groupName) {
-
- group = self.groups[groupName];
-
- if (!group.combine) {
- m.combine = false;
- continue;
- }
- m.combine = true;
- if (group.comboBase) {
- comboSource = group.comboBase;
- }
-
- if ("root" in group && L.isValue(group.root)) {
- m.root = group.root;
- }
-
- }
-
- comboSources[comboSource] = comboSources[comboSource] || [];
- comboSources[comboSource].push(m);
- }
-
- for (j in comboSources) {
- if (comboSources.hasOwnProperty(j)) {
- url = j;
- mods = comboSources[j];
- len = mods.length;
-
- for (i = 0; i < len; i++) {
- // m = self.getModule(s[i]);
- m = mods[i];
-
- // Do not try to combine non-yui JS unless combo def
- // is found
- if (m && (m.type === type) && (m.combine || !m.ext)) {
-
- frag = ((L.isValue(m.root)) ? m.root : self.root) + m.path;
- frag = self._filter(frag, m.name);
- if ((url !== j) && (i <= (len - 1)) &&
- ((frag.length + url.length) > self.maxURLLength)) {
- //Hack until this is rewritten to use an array and not string concat:
- if (url.substr(url.length - 1, 1) === self.comboSep) {
- url = url.substr(0, (url.length - 1));
- }
- urls.push(self._filter(url));
- url = j;
- }
-
- url += frag;
- if (i < (len - 1)) {
- url += self.comboSep;
- }
-
- combining.push(m.name);
- }
-
- }
-
- if (combining.length && (url != j)) {
- //Hack until this is rewritten to use an array and not string concat:
- if (url.substr(url.length - 1, 1) === self.comboSep) {
- url = url.substr(0, (url.length - 1));
- }
- urls.push(self._filter(url));
- }
- }
- }
-
- if (combining.length) {
-
-Y.log('Attempting to use combo: ' + combining, 'info', 'loader');
-
- // if (m.type === CSS) {
- if (type === CSS) {
- fn = Y.Get.css;
- attr = self.cssAttributes;
- } else {
- fn = Y.Get.script;
- attr = self.jsAttributes;
- }
-
- fn(urls, {
- data: self._loading,
- onSuccess: handleCombo,
- onFailure: self._onFailure,
- onTimeout: self._onTimeout,
- insertBefore: self.insertBefore,
- charset: self.charset,
- attributes: attr,
- timeout: self.timeout,
- autopurge: false,
- context: self
- });
-
- return;
-
- } else {
- self._combineComplete[type] = true;
- }
- }
-
- if (mname) {
-
- // if the module that was just loaded isn't what we were expecting,
- // continue to wait
- if (mname !== self._loading) {
- return;
- }
-
-// Y.log("loadNext executing, just loaded " + mname + ", " +
-// Y.id, "info", "loader");
-
- // The global handler that is called when each module is loaded
- // will pass that module name to this function. Storing this
- // data to avoid loading the same module multiple times
- // centralize this in the callback
- self.inserted[mname] = true;
- // self.loaded[mname] = true;
-
- // provided = self.getProvides(mname);
- // Y.mix(self.loaded, provided);
- // Y.mix(self.inserted, provided);
-
- if (self.onProgress) {
- self.onProgress.call(self.context, {
- name: mname,
- data: self.data
- });
- }
- }
-
- s = self.sorted;
- len = s.length;
-
- for (i = 0; i < len; i = i + 1) {
- // this.inserted keeps track of what the loader has loaded.
- // move on if this item is done.
- if (s[i] in self.inserted) {
- continue;
- }
-
- // Because rollups will cause multiple load notifications
- // from Y, loadNext may be called multiple times for
- // the same module when loading a rollup. We can safely
- // skip the subsequent requests
- if (s[i] === self._loading) {
- Y.log('still loading ' + s[i] + ', waiting', 'info', 'loader');
- return;
- }
-
- // log("inserting " + s[i]);
- m = self.getModule(s[i]);
-
- if (!m) {
- if (!self.skipped[s[i]]) {
- msg = 'Undefined module ' + s[i] + ' skipped';
- Y.log(msg, 'warn', 'loader');
- // self.inserted[s[i]] = true;
- self.skipped[s[i]] = true;
- }
- continue;
-
- }
-
- group = (m.group && self.groups[m.group]) || NOT_FOUND;
-
- // The load type is stored to offer the possibility to load
- // the css separately from the script.
- if (!type || type === m.type) {
- self._loading = s[i];
-Y.log('attempting to load ' + s[i] + ', ' + self.base, 'info', 'loader');
-
- if (m.type === CSS) {
- fn = Y.Get.css;
- attr = self.cssAttributes;
- if (m.cssAttributes) {
- attr = Y.mix(attr || {}, m.cssAttributes);
- }
- } else {
- fn = Y.Get.script;
- attr = self.jsAttributes;
- if (m.jsAttributes) {
- attr = Y.mix(attr || {}, m.jsAttributes);
- }
- }
-
- url = (m.fullpath) ? self._filter(m.fullpath, s[i]) :
- self._url(m.path, s[i], group.base || m.base);
-
- fn(url, {
- data: s[i],
- onSuccess: handleSuccess,
- insertBefore: self.insertBefore,
- charset: self.charset,
- attributes: attr,
- onFailure: self._onFailure,
- onTimeout: self._onTimeout,
- timeout: self.timeout,
- autopurge: false,
- context: self
- });
-
- return;
- }
- }
-
- // we are finished
- self._loading = null;
-
- fn = self._internalCallback;
-
- // internal callback for loading css first
- if (fn) {
- // Y.log('loader internal');
- self._internalCallback = null;
- fn.call(self);
- } else {
- // Y.log('loader complete');
- self._onSuccess();
- }
+ Y.log('loadNext was called..', 'error', 'loader');
+ return;
},
/**
View
3 build/loader-base/loader-base-min.js
@@ -1,4 +1,3 @@
YUI.add("loader-base",function(d){if(!YUI.Env[d.version]){(function(){var I=d.version,E="/build/",F=I+E,D=d.Env.base,A="gallery-2011.10.20-23-28",C="2in3",B="4",z="2.9.0",G=D+"combo?",H={version:I,root:F,base:d.Env.base,comboBase:G,skin:{defaultSkin:"sam",base:"assets/skins/",path:"skin.css",after:["cssreset","cssfonts","cssgrids","cssbase","cssreset-context","cssfonts-context"]},groups:{},patterns:{}},y=H.groups,x=function(K,L){var J=C+"."+(K||B)+"/"+(L||z)+E;y.yui2.base=D+J;y.yui2.root=J;},w=function(J){var K=(J||A)+E;y.gallery.base=D+K;y.gallery.root=K;};y[I]={};y.gallery={ext:false,combine:true,comboBase:G,update:w,patterns:{"gallery-":{},"lang/gallery-":{},"gallerycss-":{type:"css"}}};y.yui2={combine:true,ext:false,comboBase:G,update:x,patterns:{"yui2-":{configFn:function(J){if(/-skin|reset|fonts|grids|base/.test(J.name)){J.type="css";J.path=J.path.replace(/\.js/,".css");J.path=J.path.replace(/\/yui2-skin/,"/assets/skins/sam/yui2-skin");}}}}};w();x();YUI.Env[I]=H;}());}var f={},c=[],m=2048,a=YUI.Env,p=a._loaded,q="css",k="js",v="intl",s=d.version,u="",e=d.Object,r=e.each,j=d.Array,h=a._loaderQueue,t=a[s],b="skin-",i=d.Lang,n=a.mods,l,o,g=function(x,y,z,w){var A=x+"/"+y;if(!w){A+="-min";}A+="."+(z||q);return A;};d.Env.meta=t;d.Loader=function(A){var z=t.modules,x=this;l=t.md5;x.context=d;x.base=d.Env.meta.base+d.Env.meta.root;x.comboBase=d.Env.meta.comboBase;x.combine=A.base&&(A.base.indexOf(x.comboBase.substr(0,20))>-1);x.comboSep="&";x.maxURLLength=m;x.root=d.Env.meta.root;x.timeout=0;x.forceMap={};x.allowRollup=false;x.filters={};x.required={};x.patterns={};x.moduleInfo={};x.groups=d.merge(d.Env.meta.groups);x.skin=d.merge(d.Env.meta.skin);x.conditions={};x.config=A;x._internal=true;o=a._renderedMods;if(o){r(o,function y(C,B){x.moduleInfo[B]=C;});o=a._conditions;r(o,function w(C,B){x.conditions[B]=C;});}else{r(z,x.addModule,x);}if(!a._renderedMods){a._renderedMods=x.moduleInfo;a._conditions=x.conditions;}x._inspectPage();x._internal=false;x._config(A);x.forceMap=(x.force)?d.Array.hash(x.force):{};x.testresults=null;if(d.config.tests){x.testresults=d.config.tests;}x.sorted=[];x.loaded=p[s];x.dirty=true;x.inserted={};x.skipped={};x.tested={};};d.Loader.prototype={FILTER_DEFS:{RAW:{"searchExp":"-min\\.js","replaceStr":".js"},DEBUG:{"searchExp":"-min\\.js","replaceStr":"-debug.js"}},_inspectPage:function(){r(n,function(y,x){if(y.details){var w=this.moduleInfo[x],A=y.details.requires,z=w&&w.requires;if(w){if(!w._inspected&&A&&z.length!=A.length){delete w.expanded;}}else{w=this.addModule(y.details,x);}w._inspected=true;}},this);},_requires:function(C,B){var y,A,D,E,w=this.moduleInfo,x=w[C],z=w[B];if(!x||!z){return false;}A=x.expanded_map;D=x.after_map;if(D&&(B in D)){return true;}D=z.after_map;if(D&&(C in D)){return false;}E=w[B]&&w[B].supersedes;if(E){for(y=0;y<E.length;y++){if(this._requires(C,E[y])){return true;}}}E=w[C]&&w[C].supersedes;if(E){for(y=0;y<E.length;y++){if(this._requires(B,E[y])){return false;}}}if(A&&(B in A)){return true;}if(x.ext&&x.type==q&&!z.ext&&z.type==q){return true;}return false;},_config:function(C){var y,x,B,z,A,D,w=this;if(C){for(y in C){if(C.hasOwnProperty(y)){B=C[y];if(y=="require"){w.require(B);}else{if(y=="skin"){d.mix(w.skin,C[y],true);}else{if(y=="groups"){for(x in B){if(B.hasOwnProperty(x)){D=x;A=B[x];w.addGroup(A,D);}}}else{if(y=="modules"){r(B,w.addModule,w);}else{if(y=="gallery"){this.groups.gallery.update(B);}else{if(y=="yui2"||y=="2in3"){this.groups.yui2.update(C["2in3"],C.yui2);}else{if(y=="maxURLLength"){w[y]=Math.min(m,B);}else{w[y]=B;}}}}}}}}}}z=w.filter;if(i.isString(z)){z=z.toUpperCase();w.filterName=z;w.filter=w.FILTER_DEFS[z];if(z=="DEBUG"){w.require("yui-log","dump");}}if(w.lang){w.require("intl-base","intl");}},formatSkin:function(y,w){var x=b+y;if(w){x=x+"-"+w;}return x;},_addSkin:function(F,D,E){var C,B,x,w,A=this.moduleInfo,y=this.skin,z=A[D]&&A[D].ext;if(D){x=this.formatSkin(F,D);if(!A[x]){C=A[D];B=C.pkg||D;w={name:x,group:C.group,type:"css",after:y.after,path:(E||B)+"/"+y.base+F+"/"+D+".css",ext:z};if(C.base){w.base=C.base;}if(C.configFn){w.configFn=C.configFn;}this.addModule(w,x);}}return x;},addGroup:function(z,x){var y=z.modules,w=this;x=x||z.name;z.name=x;w.groups[x]=z;if(z.patterns){r(z.patterns,function(B,A){B.group=x;w.patterns[A]=B;});}if(y){r(y,function(B,A){B.group=x;w.addModule(B,A);},w);}},addModule:function(M,T){T=T||M.name;if(this.moduleInfo[T]&&this.moduleInfo[T].temp){M=d.merge(this.moduleInfo[T],M);}M.name=T;if(!M||!M.name){return null;}if(!M.type){M.type=k;}if(!M.path&&!M.fullpath){M.path=g(T,T,M.type);}M.supersedes=M.supersedes||M.use;M.ext=("ext" in M)?M.ext:(this._internal)?false:true;M.requires=this.filterRequires(M.requires)||[];var Q=M.submodules,P,N,H,w,I,y,L,x,O,J,F,C,A,z,S,R,G,B,D,E=this.conditions,K;this.moduleInfo[T]=M;if(!M.langPack&&M.lang){J=j(M.lang);for(O=0;O<J.length;O++){S=J[O];F=this.getLangPackName(S,T);y=this.moduleInfo[F];if(!y){y=this._addLangPack(S,M,F);}}}if(Q){w=M.supersedes||[];N=0;for(P in Q){if(Q.hasOwnProperty(P)){I=Q[P];I.path=I.path||g(T,P,M.type);I.pkg=T;I.group=M.group;if(I.supersedes){w=w.concat(I.supersedes);}y=this.addModule(I,P);w.push(P);if(y.skinnable){M.skinnable=true;G=this.skin.overrides;if(G&&G[P]){for(O=0;O<G[P].length;O++){B=this._addSkin(G[P][O],P,T);w.push(B);}}B=this._addSkin(this.skin.defaultSkin,P,T);w.push(B);}if(I.lang&&I.lang.length){J=j(I.lang);for(O=0;O<J.length;O++){S=J[O];F=this.getLangPackName(S,T);C=this.getLangPackName(S,P);y=this.moduleInfo[F];if(!y){y=this._addLangPack(S,M,F);}A=A||j.hash(y.supersedes);if(!(C in A)){y.supersedes.push(C);}M.lang=M.lang||[];z=z||j.hash(M.lang);if(!(S in z)){M.lang.push(S);}F=this.getLangPackName(u,T);C=this.getLangPackName(u,P);y=this.moduleInfo[F];if(!y){y=this._addLangPack(S,M,F);}if(!(C in A)){y.supersedes.push(C);}}}N++;}}M.supersedes=j.dedupe(w);if(this.allowRollup){M.rollup=(N<4)?N:Math.min(N-1,4);}}L=M.plugins;if(L){for(P in L){if(L.hasOwnProperty(P)){x=L[P];x.pkg=T;x.path=x.path||g(T,P,M.type);x.requires=x.requires||[];
x.group=M.group;this.addModule(x,P);if(M.skinnable){this._addSkin(this.skin.defaultSkin,P,T);}}}}if(M.condition){H=M.condition.trigger;if(YUI.Env.aliases[H]){H=YUI.Env.aliases[H];}if(!d.Lang.isArray(H)){H=[H];}for(P=0;P<H.length;P++){K=H[P];D=M.condition.when;E[K]=E[K]||{};E[K][T]=M.condition;if(D&&D!="after"){if(D=="instead"){M.supersedes=M.supersedes||[];M.supersedes.push(K);}else{}}else{M.after=M.after||[];M.after.push(K);}}}if(M.supersedes){M.supersedes=this.filterRequires(M.supersedes);}if(M.after){M.after=this.filterRequires(M.after);M.after_map=j.hash(M.after);}if(M.configFn){R=M.configFn(M);if(R===false){delete this.moduleInfo[T];M=null;}}return M;},require:function(x){var w=(typeof x==="string")?j(arguments):x;this.dirty=true;this.required=d.merge(this.required,j.hash(this.filterRequires(w)));this._explodeRollups();},_explodeRollups:function(){var x=this,w,y=x.required;if(!x.allowRollup){r(y,function(z,A){w=x.getModule(A);if(w&&w.use){j.each(w.use,function(B){w=x.getModule(B);if(w&&w.use){j.each(w.use,function(C){y[C]=true;});}else{y[B]=true;}});}});x.required=y;}},filterRequires:function(z){if(z){if(!d.Lang.isArray(z)){z=[z];}z=d.Array(z);var B=[],y,x,A,w;for(y=0;y<z.length;y++){x=this.getModule(z[y]);if(x&&x.use){for(A=0;A<x.use.length;A++){w=this.getModule(x.use[A]);if(w&&w.use){B=d.Array.dedupe([].concat(B,this.filterRequires(w.use)));}else{B.push(x.use[A]);}}}else{B.push(z[y]);}}z=B;}return z;},getRequires:function(R){if(!R){return c;}if(R._parsed){return R.expanded||c;}var L,H,K,D,C,T,A=this.testresults,U=R.name,B,S=n[U]&&n[U].details,N,I,w,E,O,F,z,P,Q,y,G=R.lang||R.intl,M=this.moduleInfo,J=d.Features&&d.Features.tests.load,x;if(R.temp&&S){O=R;R=this.addModule(S,U);R.group=O.group;R.pkg=O.pkg;delete R.expanded;}if(R.expanded&&(!this.lang||R.langCache===this.lang)){return R.expanded;}N=[];x={};E=this.filterRequires(R.requires);if(R.lang){N.unshift("intl");E.unshift("intl");G=true;}F=this.filterRequires(R.optional);R._parsed=true;R.langCache=this.lang;for(L=0;L<E.length;L++){if(!x[E[L]]){N.push(E[L]);x[E[L]]=true;H=this.getModule(E[L]);if(H){D=this.getRequires(H);G=G||(H.expanded_map&&(v in H.expanded_map));for(K=0;K<D.length;K++){N.push(D[K]);}}}}E=this.filterRequires(R.supersedes);if(E){for(L=0;L<E.length;L++){if(!x[E[L]]){if(R.submodules){N.push(E[L]);}x[E[L]]=true;H=this.getModule(E[L]);if(H){D=this.getRequires(H);G=G||(H.expanded_map&&(v in H.expanded_map));for(K=0;K<D.length;K++){N.push(D[K]);}}}}}if(F&&this.loadOptional){for(L=0;L<F.length;L++){if(!x[F[L]]){N.push(F[L]);x[F[L]]=true;H=M[F[L]];if(H){D=this.getRequires(H);G=G||(H.expanded_map&&(v in H.expanded_map));for(K=0;K<D.length;K++){N.push(D[K]);}}}}}B=this.conditions[U];if(B){R._parsed=false;if(A&&J){r(A,function(V,X){var W=J[X].name;if(!x[W]&&J[X].trigger==U){if(V&&J[X]){x[W]=true;N.push(W);}}});}else{r(B,function(X,W){if(!x[W]){var V=X&&((X.ua&&d.UA[X.ua])||(X.test&&X.test(d,E)));if(V){x[W]=true;N.push(W);H=this.getModule(W);if(H){D=this.getRequires(H);for(K=0;K<D.length;K++){N.push(D[K]);}}}}},this);}}if(R.skinnable){P=this.skin.overrides;r(YUI.Env.aliases,function(V,W){if(d.Array.indexOf(V,U)>-1){Q=W;}});if(P&&(P[U]||(Q&&P[Q]))){y=U;if(P[Q]){y=Q;}for(L=0;L<P[y].length;L++){z=this._addSkin(P[y][L],U);N.push(z);}}else{z=this._addSkin(this.skin.defaultSkin,U);N.push(z);}}R._parsed=false;if(G){if(R.lang&&!R.langPack&&d.Intl){T=d.Intl.lookupBestLang(this.lang||u,R.lang);C=this.getLangPackName(T,U);if(C){N.unshift(C);}}N.unshift(v);}R.expanded_map=j.hash(N);R.expanded=e.keys(R.expanded_map);return R.expanded;},getProvides:function(x){var w=this.getModule(x),z,y;if(!w){return f;}if(w&&!w.provides){z={};y=w.supersedes;if(y){j.each(y,function(A){d.mix(z,this.getProvides(A));},this);}z[x]=true;w.provides=z;}return w.provides;},calculate:function(x,w){if(x||w||this.dirty){if(x){this._config(x);}if(!this._init){this._setup();}this._explode();if(this.allowRollup){this._rollup();}else{this._explodeRollups();}this._reduce();this._sort();}},_addLangPack:function(B,w,A){var y=w.name,x,z=this.moduleInfo[A];if(!z){x=g((w.pkg||y),A,k,true);this.addModule({path:x,intl:true,langPack:true,ext:w.ext,group:w.group,supersedes:[]},A);if(B){d.Env.lang=d.Env.lang||{};d.Env.lang[B]=d.Env.lang[B]||{};d.Env.lang[B][y]=true;}}return this.moduleInfo[A];},_setup:function(){var C=this.moduleInfo,z,A,y,w,x,B;for(z in C){if(C.hasOwnProperty(z)){w=C[z];if(w){w.requires=j.dedupe(w.requires);if(w.lang&&w.lang.length){B=this.getLangPackName(u,z);this._addLangPack(null,w,B);}}}}x={};if(!this.ignoreRegistered){d.mix(x,a.mods);}if(this.ignore){d.mix(x,j.hash(this.ignore));}for(y in x){if(x.hasOwnProperty(y)){d.mix(x,this.getProvides(y));}}if(this.force){for(A=0;A<this.force.length;A++){if(this.force[A] in x){delete x[this.force[A]];}}}d.mix(this.loaded,x);this._init=true;},getLangPackName:function(x,w){return("lang/"+w+((x)?"_"+x:""));},_explode:function(){var A=this.required,w,z,x={},y=this;y.dirty=false;y._explodeRollups();A=y.required;r(A,function(B,C){if(!x[C]){x[C]=true;w=y.getModule(C);if(w){var D=w.expound;if(D){A[D]=y.getModule(D);z=y.getRequires(A[D]);d.mix(A,j.hash(z));}z=y.getRequires(w);d.mix(A,j.hash(z));}}});},getModule:function(B){if(!B){return null;}var A,z,x,w=this.moduleInfo[B],y=this.patterns;if(!w){for(x in y){if(y.hasOwnProperty(x)){A=y[x];if(!A.test){A.test=function(D,C){return(D.indexOf(C)>-1);};}if(A.test(B,x)){z=A;break;}}}if(z){if(A.action){A.action.call(this,B,x);}else{w=this.addModule(d.merge(z),B);w.temp=true;}}}return w;},_rollup:function(){},_reduce:function(B){B=B||this.required;var y,x,A,w,z=this.loadType,C=this.ignore?j.hash(this.ignore):false;for(y in B){if(B.hasOwnProperty(y)){w=this.getModule(y);if(((this.loaded[y]||n[y])&&!this.forceMap[y]&&!this.ignoreRegistered)||(z&&w&&w.type!=z)){delete B[y];}if(C&&C[y]){delete B[y];}A=w&&w.supersedes;if(A){for(x=0;x<A.length;x++){if(A[x] in B){delete B[A[x]];}}}}}return B;},_finish:function(y,x){h.running=false;var w=this.onEnd;if(w){w.call(this.context,{msg:y,data:this.data,success:x});
-}this._continue();},_onSuccess:function(){var y=this,x=d.merge(y.skipped),A,w=[],z=y.requireRegistration,C,B;r(x,function(D){delete y.inserted[D];});y.skipped={};r(y.inserted,function(E,D){var F=y.getModule(D);if(F&&z&&F.type==k&&!(D in YUI.Env.mods)){w.push(D);}else{d.mix(y.loaded,y.getProvides(D));}});A=y.onSuccess;B=(w.length)?"notregistered":"success";C=!(w.length);if(A){A.call(y.context,{msg:B,data:y.data,success:C,failed:w,skipped:x});}y._finish(B,C);},_onProgress:function(x){var w=this;if(w.onProgress){w.onProgress.call(w.context,{name:x.url,data:x.data});}},_onFailure:function(y){var w=this.onFailure,x="failure: "+y.msg;if(w){w.call(this.context,{msg:x,data:this.data,success:false});}this._finish(x,false);},_onTimeout:function(){var w=this.onTimeout;if(w){w.call(this.context,{msg:"timeout",data:this.data,success:false});}this._finish("timeout",false);},_sort:function(){var F=e.keys(this.required),B={},w=0,y,E,D,A,z,C,x;for(;;){y=F.length;C=false;for(A=w;A<y;A++){E=F[A];for(z=A+1;z<y;z++){x=E+F[z];if(!B[x]&&this._requires(E,F[z])){D=F.splice(z,1);F.splice(A,0,D[0]);B[x]=true;C=true;break;}}if(C){break;}else{w++;}}if(!C){break;}}this.sorted=F;},partial:function(w,y,x){this.sorted=w;this.insert(y,x,true);},_insert:function(w,z,E,y){if(w){this._config(w);}if(!y){this.calculate(z);}var B=this.resolve(),F=this,D=0,C=0;if(E){var A=B[E];B={};B[E]=A;D++;}else{if(B.js.length){D++;}if(B.css.length){D++;}}var x=function(H){C++;if(H&&H.data&&H.data.length){for(var G=0;G<H.data.length;G++){F.inserted[H.data[G].name]=true;}}if(C===D){F._loading=null;F._onSuccess();}};this._loading=true;if(!B.js.length&&!B.css.length){C=-1;x();return;}if(B.css.length){d.Get.css(B.css,{data:B.cssMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onFailure:F._onFailure,onTimeout:F._onTimeout,onProgress:function(G){F._onProgress.call(F,G);},onSuccess:x});}if(B.js.length){d.Get.script(B.js,{data:B.jsMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onProgress:function(G){F._onProgress.call(F,G);},onFailure:F._onFailure,onTimeout:F._onTimeout,onSuccess:x});}},_continue:function(){if(!(h.running)&&h.size()>0){h.running=true;h.next()();}},insert:function(z,x,y){var w=this,A=d.merge(this);delete A.require;delete A.dirty;h.add(function(){w._insert(A,z,x,y);});this._continue();},loadNext:function(A){if(!this._loading){return;}var H,P,O,M,z,E,B,L,D,G,N,w,C,K,y,F,Q,R,J=this,x=J.loadType,S=function(T){J.loadNext(T.data);},I=function(V){J._combineComplete[x]=true;var U,T=F.length;for(U=0;U<T;U++){J.inserted[F[U]]=true;}S(V);};if(J.combine&&(!J._combineComplete[x])){F=[];J._combining=F;H=J.sorted;P=H.length;R=J.comboBase;z=R;Q=[];K={};for(O=0;O<P;O++){C=R;M=J.getModule(H[O]);G=M&&M.group;if(G){D=J.groups[G];if(!D.combine){M.combine=false;continue;}M.combine=true;if(D.comboBase){C=D.comboBase;}if("root" in D&&i.isValue(D.root)){M.root=D.root;}}K[C]=K[C]||[];K[C].push(M);}for(N in K){if(K.hasOwnProperty(N)){z=N;y=K[N];P=y.length;for(O=0;O<P;O++){M=y[O];if(M&&(M.type===x)&&(M.combine||!M.ext)){w=((i.isValue(M.root))?M.root:J.root)+M.path;w=J._filter(w,M.name);if((z!==N)&&(O<=(P-1))&&((w.length+z.length)>J.maxURLLength)){if(z.substr(z.length-1,1)===J.comboSep){z=z.substr(0,(z.length-1));}Q.push(J._filter(z));z=N;}z+=w;if(O<(P-1)){z+=J.comboSep;}F.push(M.name);}}if(F.length&&(z!=N)){if(z.substr(z.length-1,1)===J.comboSep){z=z.substr(0,(z.length-1));}Q.push(J._filter(z));}}}if(F.length){if(x===q){E=d.Get.css;L=J.cssAttributes;}else{E=d.Get.script;L=J.jsAttributes;}E(Q,{data:J._loading,onSuccess:I,onFailure:J._onFailure,onTimeout:J._onTimeout,insertBefore:J.insertBefore,charset:J.charset,attributes:L,timeout:J.timeout,autopurge:false,context:J});return;}else{J._combineComplete[x]=true;}}if(A){if(A!==J._loading){return;}J.inserted[A]=true;if(J.onProgress){J.onProgress.call(J.context,{name:A,data:J.data});}}H=J.sorted;P=H.length;for(O=0;O<P;O=O+1){if(H[O] in J.inserted){continue;}if(H[O]===J._loading){return;}M=J.getModule(H[O]);if(!M){if(!J.skipped[H[O]]){B="Undefined module "+H[O]+" skipped";J.skipped[H[O]]=true;}continue;}D=(M.group&&J.groups[M.group])||f;if(!x||x===M.type){J._loading=H[O];if(M.type===q){E=d.Get.css;L=J.cssAttributes;if(M.cssAttributes){L=d.mix(L||{},M.cssAttributes);}}else{E=d.Get.script;L=J.jsAttributes;if(M.jsAttributes){L=d.mix(L||{},M.jsAttributes);}}z=(M.fullpath)?J._filter(M.fullpath,H[O]):J._url(M.path,H[O],D.base||M.base);E(z,{data:H[O],onSuccess:S,insertBefore:J.insertBefore,charset:J.charset,attributes:L,onFailure:J._onFailure,onTimeout:J._onTimeout,timeout:J.timeout,autopurge:false,context:J});return;}}J._loading=null;E=J._internalCallback;if(E){J._internalCallback=null;E.call(J);}else{J._onSuccess();}},_filter:function(y,x){var A=this.filter,w=x&&(x in this.filters),z=w&&this.filters[x],B=this.moduleInfo[x]?this.moduleInfo[x].group:null;if(B&&this.groups[B].filter){z=this.groups[B].filter;w=true;}if(y){if(w){A=(i.isString(z))?this.FILTER_DEFS[z.toUpperCase()]||null:z;}if(A){y=y.replace(new RegExp(A.searchExp,"g"),A.replaceStr);}}return y;},_url:function(y,w,x){return this._filter((x||this.base||"")+y,w);},resolve:function(w,K){var T,S,Q,B,G,D,P,F,J,R,x,E,N,A,V,C,U,I=[],H,M,y={},L=this,O={js:[],jsMods:[],css:[],cssMods:[]},z=L.loadType||"js";if(w){L.calculate();}K=K||L.sorted;if(L.combine){T=K.length;V=L.comboBase;B=V;N={};for(S=0;S<T;S++){E=V;Q=L.getModule(K[S]);J=Q&&Q.group;if(J){F=L.groups[J];if(!F.combine){Q.combine=false;continue;}Q.combine=true;if(F.comboBase){E=F.comboBase;}if("root" in F&&i.isValue(F.root)){Q.root=F.root;}}N[E]=N[E]||[];N[E].push(Q);}for(R in N){if(N.hasOwnProperty(R)){y[R]=y[R]||{js:[],jsMods:[],css:[],cssMods:[]};B=R;A=N[R];T=A.length;if(T){for(S=0;S<T;S++){Q=A[S];if(Q&&(Q.combine||!Q.ext)){x=((i.isValue(Q.root))?Q.root:L.root)+Q.path;x=L._filter(x,Q.name);y[R][Q.type].push(x);y[R][Q.type+"Mods"].push(Q);}}}}}for(R in y){C=R;for(z in y[C]){if(z===k||z===q){U=y[C][z];A=y[C][z+"Mods"];
-T=U.length;H=C+U.join(L.comboSep);M=H.length;if(T){if(M>L.maxURLLength){I=[];Q=[];for(K=0;K<T;K++){H=C+I.join(L.comboSep);if(H.length<L.maxURLLength){I.push(U[K]);Q.push(A[K]);}else{O[z].push(H);I=[];Q=[];}}}else{O[z].push(H);O[z+"Mods"]=A;}}}}}y=null;}else{K=L.sorted;T=K.length;for(S=0;S<T;S=S+1){Q=L.getModule(K[S]);if(!Q){if(!L.skipped[K[S]]){D="Undefined module "+K[S]+" skipped";}continue;}F=(Q.group&&L.groups[Q.group])||f;B=(Q.fullpath)?L._filter(Q.fullpath,K[S]):L._url(Q.path,K[S],F.base||Q.base);O[Q.type].push(B);O[Q.type+"Mods"].push(Q);}}return O;}};},"@VERSION@",{requires:["get"]});
+}this._continue();},_onSuccess:function(){var y=this,x=d.merge(y.skipped),A,w=[],z=y.requireRegistration,C,B;r(x,function(D){delete y.inserted[D];});y.skipped={};r(y.inserted,function(E,D){var F=y.getModule(D);if(F&&z&&F.type==k&&!(D in YUI.Env.mods)){w.push(D);}else{d.mix(y.loaded,y.getProvides(D));}});A=y.onSuccess;B=(w.length)?"notregistered":"success";C=!(w.length);if(A){A.call(y.context,{msg:B,data:y.data,success:C,failed:w,skipped:x});}y._finish(B,C);},_onProgress:function(x){var w=this;if(w.onProgress){w.onProgress.call(w.context,{name:x.url,data:x.data});}},_onFailure:function(y){var w=this.onFailure,x="failure: "+y.msg;if(w){w.call(this.context,{msg:x,data:this.data,success:false});}this._finish(x,false);},_onTimeout:function(){var w=this.onTimeout;if(w){w.call(this.context,{msg:"timeout",data:this.data,success:false});}this._finish("timeout",false);},_sort:function(){var F=e.keys(this.required),B={},w=0,y,E,D,A,z,C,x;for(;;){y=F.length;C=false;for(A=w;A<y;A++){E=F[A];for(z=A+1;z<y;z++){x=E+F[z];if(!B[x]&&this._requires(E,F[z])){D=F.splice(z,1);F.splice(A,0,D[0]);B[x]=true;C=true;break;}}if(C){break;}else{w++;}}if(!C){break;}}this.sorted=F;},partial:function(w,y,x){this.sorted=w;this.insert(y,x,true);},_insert:function(w,z,E,y){if(w){this._config(w);}if(!y){this.calculate(z);}var B=this.resolve(),F=this,D=0,C=0;if(E){var A=B[E];B={};B[E]=A;D++;}else{if(B.js.length){D++;}if(B.css.length){D++;}}var x=function(H){C++;if(H&&H.data&&H.data.length){for(var G=0;G<H.data.length;G++){F.inserted[H.data[G].name]=true;}}if(C===D){F._loading=null;F._onSuccess();}};this._loading=true;if(!B.js.length&&!B.css.length){C=-1;x();return;}if(B.css.length){d.Get.css(B.css,{data:B.cssMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onFailure:F._onFailure,onTimeout:F._onTimeout,onProgress:function(G){F._onProgress.call(F,G);},onSuccess:x});}if(B.js.length){d.Get.script(B.js,{data:B.jsMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onProgress:function(G){F._onProgress.call(F,G);},onFailure:F._onFailure,onTimeout:F._onTimeout,onSuccess:x});}},_continue:function(){if(!(h.running)&&h.size()>0){h.running=true;h.next()();}},insert:function(z,x,y){var w=this,A=d.merge(this);delete A.require;delete A.dirty;h.add(function(){w._insert(A,z,x,y);});this._continue();},loadNext:function(w){return;},_filter:function(y,x){var A=this.filter,w=x&&(x in this.filters),z=w&&this.filters[x],B=this.moduleInfo[x]?this.moduleInfo[x].group:null;if(B&&this.groups[B].filter){z=this.groups[B].filter;w=true;}if(y){if(w){A=(i.isString(z))?this.FILTER_DEFS[z.toUpperCase()]||null:z;}if(A){y=y.replace(new RegExp(A.searchExp,"g"),A.replaceStr);}}return y;},_url:function(y,w,x){return this._filter((x||this.base||"")+y,w);},resolve:function(w,K){var T,S,Q,B,G,D,P,F,J,R,x,E,N,A,V,C,U,I=[],H,M,y={},L=this,O={js:[],jsMods:[],css:[],cssMods:[]},z=L.loadType||"js";if(w){L.calculate();}K=K||L.sorted;if(L.combine){T=K.length;V=L.comboBase;B=V;N={};for(S=0;S<T;S++){E=V;Q=L.getModule(K[S]);J=Q&&Q.group;if(J){F=L.groups[J];if(!F.combine){Q.combine=false;continue;}Q.combine=true;if(F.comboBase){E=F.comboBase;}if("root" in F&&i.isValue(F.root)){Q.root=F.root;}}N[E]=N[E]||[];N[E].push(Q);}for(R in N){if(N.hasOwnProperty(R)){y[R]=y[R]||{js:[],jsMods:[],css:[],cssMods:[]};B=R;A=N[R];T=A.length;if(T){for(S=0;S<T;S++){Q=A[S];if(Q&&(Q.combine||!Q.ext)){x=((i.isValue(Q.root))?Q.root:L.root)+Q.path;x=L._filter(x,Q.name);y[R][Q.type].push(x);y[R][Q.type+"Mods"].push(Q);}}}}}for(R in y){C=R;for(z in y[C]){if(z===k||z===q){U=y[C][z];A=y[C][z+"Mods"];T=U.length;H=C+U.join(L.comboSep);M=H.length;if(T){if(M>L.maxURLLength){I=[];Q=[];for(K=0;K<T;K++){H=C+I.join(L.comboSep);if(H.length<L.maxURLLength){I.push(U[K]);Q.push(A[K]);}else{O[z].push(H);I=[];Q=[];}}}else{O[z].push(H);O[z+"Mods"]=A;}}}}}y=null;}else{K=L.sorted;T=K.length;for(S=0;S<T;S=S+1){Q=L.getModule(K[S]);if(!Q){if(!L.skipped[K[S]]){D="Undefined module "+K[S]+" skipped";}continue;}F=(Q.group&&L.groups[Q.group])||f;B=(Q.fullpath)?L._filter(Q.fullpath,K[S]):L._url(Q.path,K[S],F.base||Q.base);O[Q.type].push(B);O[Q.type+"Mods"].push(Q);}}return O;}};},"@VERSION@",{requires:["get"]});
View
312 build/loader-base/loader-base.js
@@ -2097,58 +2097,6 @@ Y.Loader.prototype = {
onSuccess: complete
});
}
-
-
- /*
-
- this.loadType = type;
-
- if (!type) {
-
- var self = this;
-
- this._internalCallback = function() {
-
- var f = self.onCSS, n, p, sib;
-
- // IE hack for style overrides that are not being applied
- if (this.insertBefore && Y.UA.ie) {
- n = Y.config.doc.getElementById(this.insertBefore);
- p = n.parentNode;
- sib = n.nextSibling;
- p.removeChild(n);
- if (sib) {
- p.insertBefore(n, sib);
- } else {
- p.appendChild(n);
- }
- }
-
- if (f) {
- f.call(self.context, Y);
- }
- self._internalCallback = null;
-
- self._insert(null, null, JS);
- };
-
- this._insert(null, null, CSS);
-
- return;
- }
-
- // set a flag to indicate the load has started
- this._loading = true;
-
- // flag to indicate we are done with the combo service
- // and any additional files will need to be loaded
- // individually
- this._combineComplete = {};
-
- // start the load
- this.loadNext();
- */
-
},
/**
* Once a loader operation is completely finished, process any additional queued items.
@@ -2186,269 +2134,13 @@ Y.Loader.prototype = {
* is possible to call this if using a method other than
* Y.register to determine when scripts are fully loaded
* @method loadNext
+ * @deprecated
* @param {string} mname optional the name of the module that has
* been loaded (which is usually why it is time to load the next
* one).
*/
loadNext: function(mname) {
- // It is possible that this function is executed due to something
- // else on the page loading a YUI module. Only react when we
- // are actively loading something
- if (!this._loading) {
- return;
- }
-
- var s, len, i, m, url, fn, msg, attr, group, groupName, j, frag,
- comboSource, comboSources, mods, combining, urls, comboBase,
- self = this,
- type = self.loadType,
- handleSuccess = function(o) {
- self.loadNext(o.data);
- },
- handleCombo = function(o) {
- self._combineComplete[type] = true;
- var i, len = combining.length;
-
- for (i = 0; i < len; i++) {
- self.inserted[combining[i]] = true;
- }
-
- handleSuccess(o);
- };
-
- if (self.combine && (!self._combineComplete[type])) {
-
- combining = [];
-
- self._combining = combining;
- s = self.sorted;
- len = s.length;
-
- // the default combo base
- comboBase = self.comboBase;
-
- url = comboBase;
- urls = [];
-
- comboSources = {};
-
- for (i = 0; i < len; i++) {
- comboSource = comboBase;
- m = self.getModule(s[i]);
- groupName = m && m.group;
- if (groupName) {
-
- group = self.groups[groupName];
-
- if (!group.combine) {
- m.combine = false;
- continue;
- }
- m.combine = true;
- if (group.comboBase) {
- comboSource = group.comboBase;
- }
-
- if ("root" in group && L.isValue(group.root)) {
- m.root = group.root;
- }
-
- }
-
- comboSources[comboSource] = comboSources[comboSource] || [];
- comboSources[comboSource].push(m);
- }
-
- for (j in comboSources) {
- if (comboSources.hasOwnProperty(j)) {
- url = j;
- mods = comboSources[j];
- len = mods.length;
-
- for (i = 0; i < len; i++) {
- // m = self.getModule(s[i]);
- m = mods[i];
-
- // Do not try to combine non-yui JS unless combo def
- // is found
- if (m && (m.type === type) && (m.combine || !m.ext)) {
-
- frag = ((L.isValue(m.root)) ? m.root : self.root) + m.path;
- frag = self._filter(frag, m.name);
- if ((url !== j) && (i <= (len - 1)) &&
- ((frag.length + url.length) > self.maxURLLength)) {
- //Hack until this is rewritten to use an array and not string concat:
- if (url.substr(url.length - 1, 1) === self.comboSep) {
- url = url.substr(0, (url.length - 1));
- }
- urls.push(self._filter(url));
- url = j;
- }
-
- url += frag;
- if (i < (len - 1)) {
- url += self.comboSep;
- }
-
- combining.push(m.name);
- }
-
- }
-
- if (combining.length && (url != j)) {
- //Hack until this is rewritten to use an array and not string concat:
- if (url.substr(url.length - 1, 1) === self.comboSep) {
- url = url.substr(0, (url.length - 1));
- }
- urls.push(self._filter(url));
- }
- }
- }
-
- if (combining.length) {
-
-
- // if (m.type === CSS) {
- if (type === CSS) {
- fn = Y.Get.css;
- attr = self.cssAttributes;
- } else {
- fn = Y.Get.script;
- attr = self.jsAttributes;
- }
-
- fn(urls, {
- data: self._loading,
- onSuccess: handleCombo,
- onFailure: self._onFailure,
- onTimeout: self._onTimeout,
- insertBefore: self.insertBefore,
- charset: self.charset,
- attributes: attr,
- timeout: self.timeout,
- autopurge: false,
- context: self
- });
-
- return;
-
- } else {
- self._combineComplete[type] = true;
- }
- }
-
- if (mname) {
-
- // if the module that was just loaded isn't what we were expecting,
- // continue to wait
- if (mname !== self._loading) {
- return;
- }
-
-
- // The global handler that is called when each module is loaded
- // will pass that module name to this function. Storing this
- // data to avoid loading the same module multiple times
- // centralize this in the callback
- self.inserted[mname] = true;
- // self.loaded[mname] = true;
-
- // provided = self.getProvides(mname);
- // Y.mix(self.loaded, provided);
- // Y.mix(self.inserted, provided);
-
- if (self.onProgress) {
- self.onProgress.call(self.context, {
- name: mname,
- data: self.data
- });
- }
- }
-
- s = self.sorted;
- len = s.length;
-
- for (i = 0; i < len; i = i + 1) {
- // this.inserted keeps track of what the loader has loaded.
- // move on if this item is done.
- if (s[i] in self.inserted) {
- continue;
- }
-
- // Because rollups will cause multiple load notifications
- // from Y, loadNext may be called multiple times for
- // the same module when loading a rollup. We can safely
- // skip the subsequent requests
- if (s[i] === self._loading) {
- return;
- }
-
- // log("inserting " + s[i]);
- m = self.getModule(s[i]);
-
- if (!m) {
- if (!self.skipped[s[i]]) {
- msg = 'Undefined module ' + s[i] + ' skipped';
- // self.inserted[s[i]] = true;
- self.skipped[s[i]] = true;
- }
- continue;
-
- }
-
- group = (m.group && self.groups[m.group]) || NOT_FOUND;
-
- // The load type is stored to offer the possibility to load
- // the css separately from the script.
- if (!type || type === m.type) {
- self._loading = s[i];
-
- if (m.type === CSS) {
- fn = Y.Get.css;
- attr = self.cssAttributes;
- if (m.cssAttributes) {
- attr = Y.mix(attr || {}, m.cssAttributes);
- }
- } else {
- fn = Y.Get.script;
- attr = self.jsAttributes;
- if (m.jsAttributes) {
- attr = Y.mix(attr || {}, m.jsAttributes);
- }
- }
-
- url = (m.fullpath) ? self._filter(m.fullpath, s[i]) :
- self._url(m.path, s[i], group.base || m.base);
-
- fn(url, {
- data: s[i],
- onSuccess: handleSuccess,
- insertBefore: self.insertBefore,
- charset: self.charset,
- attributes: attr,
- onFailure: self._onFailure,
- onTimeout: self._onTimeout,
- timeout: self.timeout,
- autopurge: false,
- context: self
- });
-
- return;
- }
- }
-
- // we are finished
- self._loading = null;
-
- fn = self._internalCallback;
-
- // internal callback for loading css first
- if (fn) {
- self._internalCallback = null;
- fn.call(self);
- } else {
- self._onSuccess();
- }
+ return;
},
/**
View
323 build/loader/loader-debug.js
@@ -2121,59 +2121,6 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
onSuccess: complete
});
}
-
-
- /*
-
- this.loadType = type;
-
- if (!type) {
-
- var self = this;
-
- // Y.log("trying to load css first");
- this._internalCallback = function() {
-
- var f = self.onCSS, n, p, sib;
-
- // IE hack for style overrides that are not being applied
- if (this.insertBefore && Y.UA.ie) {
- n = Y.config.doc.getElementById(this.insertBefore);
- p = n.parentNode;
- sib = n.nextSibling;
- p.removeChild(n);
- if (sib) {
- p.insertBefore(n, sib);
- } else {
- p.appendChild(n);
- }
- }
-
- if (f) {
- f.call(self.context, Y);
- }
- self._internalCallback = null;
-
- self._insert(null, null, JS);
- };
-
- this._insert(null, null, CSS);
-
- return;
- }
-
- // set a flag to indicate the load has started
- this._loading = true;
-
- // flag to indicate we are done with the combo service
- // and any additional files will need to be loaded
- // individually
- this._combineComplete = {};
-
- // start the load
- this.loadNext();
- */
-
},
/**
* Once a loader operation is completely finished, process any additional queued items.
@@ -2213,278 +2160,14 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
* is possible to call this if using a method other than
* Y.register to determine when scripts are fully loaded
* @method loadNext
+ * @deprecated
* @param {string} mname optional the name of the module that has
* been loaded (which is usually why it is time to load the next
* one).
*/
loadNext: function(mname) {
- Y.log('loadNext was called..', 'warn', 'loader');
- // It is possible that this function is executed due to something
- // else on the page loading a YUI module. Only react when we
- // are actively loading something
- if (!this._loading) {
- return;
- }
-
- var s, len, i, m, url, fn, msg, attr, group, groupName, j, frag,
- comboSource, comboSources, mods, combining, urls, comboBase,
- self = this,
- type = self.loadType,
- handleSuccess = function(o) {
- self.loadNext(o.data);
- },
- handleCombo = function(o) {
- self._combineComplete[type] = true;
- var i, len = combining.length;
-
- for (i = 0; i < len; i++) {
- self.inserted[combining[i]] = true;
- }
-
- handleSuccess(o);
- };
-
- if (self.combine && (!self._combineComplete[type])) {
-
- combining = [];
-
- self._combining = combining;
- s = self.sorted;
- len = s.length;
-
- // the default combo base
- comboBase = self.comboBase;
-
- url = comboBase;
- urls = [];
-
- comboSources = {};
-
- for (i = 0; i < len; i++) {
- comboSource = comboBase;
- m = self.getModule(s[i]);
- groupName = m && m.group;
- if (groupName) {
-
- group = self.groups[groupName];
-
- if (!group.combine) {
- m.combine = false;
- continue;
- }
- m.combine = true;
- if (group.comboBase) {
- comboSource = group.comboBase;
- }
-
- if ("root" in group && L.isValue(group.root)) {
- m.root = group.root;
- }
-
- }
-
- comboSources[comboSource] = comboSources[comboSource] || [];
- comboSources[comboSource].push(m);
- }
-
- for (j in comboSources) {
- if (comboSources.hasOwnProperty(j)) {
- url = j;
- mods = comboSources[j];
- len = mods.length;
-
- for (i = 0; i < len; i++) {
- // m = self.getModule(s[i]);
- m = mods[i];
-
- // Do not try to combine non-yui JS unless combo def
- // is found
- if (m && (m.type === type) && (m.combine || !m.ext)) {
-
- frag = ((L.isValue(m.root)) ? m.root : self.root) + m.path;
- frag = self._filter(frag, m.name);
- if ((url !== j) && (i <= (len - 1)) &&
- ((frag.length + url.length) > self.maxURLLength)) {
- //Hack until this is rewritten to use an array and not string concat:
- if (url.substr(url.length - 1, 1) === self.comboSep) {
- url = url.substr(0, (url.length - 1));
- }
- urls.push(self._filter(url));
- url = j;
- }
-
- url += frag;
- if (i < (len - 1)) {
- url += self.comboSep;
- }
-
- combining.push(m.name);
- }
-
- }
-
- if (combining.length && (url != j)) {
- //Hack until this is rewritten to use an array and not string concat:
- if (url.substr(url.length - 1, 1) === self.comboSep) {
- url = url.substr(0, (url.length - 1));
- }
- urls.push(self._filter(url));
- }
- }
- }
-
- if (combining.length) {
-
-Y.log('Attempting to use combo: ' + combining, 'info', 'loader');
-
- // if (m.type === CSS) {
- if (type === CSS) {
- fn = Y.Get.css;
- attr = self.cssAttributes;
- } else {
- fn = Y.Get.script;
- attr = self.jsAttributes;
- }
-
- fn(urls, {
- data: self._loading,
- onSuccess: handleCombo,
- onFailure: self._onFailure,
- onTimeout: self._onTimeout,
- insertBefore: self.insertBefore,
- charset: self.charset,
- attributes: attr,
- timeout: self.timeout,
- autopurge: false,
- context: self
- });
-
- return;
-
- } else {
- self._combineComplete[type] = true;
- }
- }
-
- if (mname) {
-
- // if the module that was just loaded isn't what we were expecting,
- // continue to wait
- if (mname !== self._loading) {
- return;
- }
-
-// Y.log("loadNext executing, just loaded " + mname + ", " +
-// Y.id, "info", "loader");
-
- // The global handler that is called when each module is loaded
- // will pass that module name to this function. Storing this
- // data to avoid loading the same module multiple times
- // centralize this in the callback
- self.inserted[mname] = true;
- // self.loaded[mname] = true;
-
- // provided = self.getProvides(mname);
- // Y.mix(self.loaded, provided);
- // Y.mix(self.inserted, provided);
-
- if (self.onProgress) {
- self.onProgress.call(self.context, {
- name: mname,
- data: self.data
- });
- }
- }
-
- s = self.sorted;
- len = s.length;
-
- for (i = 0; i < len; i = i + 1) {
- // this.inserted keeps track of what the loader has loaded.
- // move on if this item is done.
- if (s[i] in self.inserted) {
- continue;
- }
-
- // Because rollups will cause multiple load notifications
- // from Y, loadNext may be called multiple times for
- // the same module when loading a rollup. We can safely
- // skip the subsequent requests
- if (s[i] === self._loading) {
- Y.log('still loading ' + s[i] + ', waiting', 'info', 'loader');
- return;
- }
-
- // log("inserting " + s[i]);
- m = self.getModule(s[i]);
-
- if (!m) {
- if (!self.skipped[s[i]]) {
- msg = 'Undefined module ' + s[i] + ' skipped';
- Y.log(msg, 'warn', 'loader');
- // self.inserted[s[i]] = true;
- self.skipped[s[i]] = true;
- }
- continue;
-
- }
-
- group = (m.group && self.groups[m.group]) || NOT_FOUND;
-
- // The load type is stored to offer the possibility to load
- // the css separately from the script.
- if (!type || type === m.type) {
- self._loading = s[i];
-Y.log('attempting to load ' + s[i] + ', ' + self.base, 'info', 'loader');
-
- if (m.type === CSS) {
- fn = Y.Get.css;
- attr = self.cssAttributes;
- if (m.cssAttributes) {
- attr = Y.mix(attr || {}, m.cssAttributes);
- }
- } else {
- fn = Y.Get.script;
- attr = self.jsAttributes;
- if (m.jsAttributes) {
- attr = Y.mix(attr || {}, m.jsAttributes);
- }
- }
-
- url = (m.fullpath) ? self._filter(m.fullpath, s[i]) :
- self._url(m.path, s[i], group.base || m.base);
-
- fn(url, {
- data: s[i],
- onSuccess: handleSuccess,
- insertBefore: self.insertBefore,
- charset: self.charset,
- attributes: attr,
- onFailure: self._onFailure,
- onTimeout: self._onTimeout,
- timeout: self.timeout,
- autopurge: false,
- context: self
- });
-
- return;
- }
- }
-
- // we are finished
- self._loading = null;
-
- fn = self._internalCallback;
-
- // internal callback for loading css first
- if (fn) {
- // Y.log('loader internal');
- self._internalCallback = null;
- fn.call(self);
- } else {
- // Y.log('loader complete');
- self._onSuccess();
- }
+ Y.log('loadNext was called..', 'error', 'loader');
+ return;
},
/**
View
6 build/loader/loader-min.js
@@ -1,6 +1,6 @@
YUI.add("loader-base",function(d){if(!YUI.Env[d.version]){(function(){var I=d.version,E="/build/",F=I+E,D=d.Env.base,A="gallery-2011.10.20-23-28",C="2in3",B="4",z="2.9.0",G=D+"combo?",H={version:I,root:F,base:d.Env.base,comboBase:G,skin:{defaultSkin:"sam",base:"assets/skins/",path:"skin.css",after:["cssreset","cssfonts","cssgrids","cssbase","cssreset-context","cssfonts-context"]},groups:{},patterns:{}},y=H.groups,x=function(K,L){var J=C+"."+(K||B)+"/"+(L||z)+E;y.yui2.base=D+J;y.yui2.root=J;},w=function(J){var K=(J||A)+E;y.gallery.base=D+K;y.gallery.root=K;};y[I]={};y.gallery={ext:false,combine:true,comboBase:G,update:w,patterns:{"gallery-":{},"lang/gallery-":{},"gallerycss-":{type:"css"}}};y.yui2={combine:true,ext:false,comboBase:G,update:x,patterns:{"yui2-":{configFn:function(J){if(/-skin|reset|fonts|grids|base/.test(J.name)){J.type="css";J.path=J.path.replace(/\.js/,".css");J.path=J.path.replace(/\/yui2-skin/,"/assets/skins/sam/yui2-skin");}}}}};w();x();YUI.Env[I]=H;}());}var f={},c=[],m=2048,a=YUI.Env,p=a._loaded,q="css",k="js",v="intl",s=d.version,u="",e=d.Object,r=e.each,j=d.Array,h=a._loaderQueue,t=a[s],b="skin-",i=d.Lang,n=a.mods,l,o,g=function(x,y,z,w){var A=x+"/"+y;if(!w){A+="-min";}A+="."+(z||q);return A;};d.Env.meta=t;d.Loader=function(A){var z=t.modules,x=this;l=t.md5;x.context=d;x.base=d.Env.meta.base+d.Env.meta.root;x.comboBase=d.Env.meta.comboBase;x.combine=A.base&&(A.base.indexOf(x.comboBase.substr(0,20))>-1);x.comboSep="&";x.maxURLLength=m;x.root=d.Env.meta.root;x.timeout=0;x.forceMap={};x.allowRollup=false;x.filters={};x.required={};x.patterns={};x.moduleInfo={};x.groups=d.merge(d.Env.meta.groups);x.skin=d.merge(d.Env.meta.skin);x.conditions={};x.config=A;x._internal=true;o=a._renderedMods;if(o){r(o,function y(C,B){x.moduleInfo[B]=C;});o=a._conditions;r(o,function w(C,B){x.conditions[B]=C;});}else{r(z,x.addModule,x);}if(!a._renderedMods){a._renderedMods=x.moduleInfo;a._conditions=x.conditions;}x._inspectPage();x._internal=false;x._config(A);x.forceMap=(x.force)?d.Array.hash(x.force):{};x.testresults=null;if(d.config.tests){x.testresults=d.config.tests;}x.sorted=[];x.loaded=p[s];x.dirty=true;x.inserted={};x.skipped={};x.tested={};};d.Loader.prototype={FILTER_DEFS:{RAW:{"searchExp":"-min\\.js","replaceStr":".js"},DEBUG:{"searchExp":"-min\\.js","replaceStr":"-debug.js"}},_inspectPage:function(){r(n,function(y,x){if(y.details){var w=this.moduleInfo[x],A=y.details.requires,z=w&&w.requires;if(w){if(!w._inspected&&A&&z.length!=A.length){delete w.expanded;}}else{w=this.addModule(y.details,x);}w._inspected=true;}},this);},_requires:function(C,B){var y,A,D,E,w=this.moduleInfo,x=w[C],z=w[B];if(!x||!z){return false;}A=x.expanded_map;D=x.after_map;if(D&&(B in D)){return true;}D=z.after_map;if(D&&(C in D)){return false;}E=w[B]&&w[B].supersedes;if(E){for(y=0;y<E.length;y++){if(this._requires(C,E[y])){return true;}}}E=w[C]&&w[C].supersedes;if(E){for(y=0;y<E.length;y++){if(this._requires(B,E[y])){return false;}}}if(A&&(B in A)){return true;}if(x.ext&&x.type==q&&!z.ext&&z.type==q){return true;}return false;},_config:function(C){var y,x,B,z,A,D,w=this;if(C){for(y in C){if(C.hasOwnProperty(y)){B=C[y];if(y=="require"){w.require(B);}else{if(y=="skin"){d.mix(w.skin,C[y],true);}else{if(y=="groups"){for(x in B){if(B.hasOwnProperty(x)){D=x;A=B[x];w.addGroup(A,D);}}}else{if(y=="modules"){r(B,w.addModule,w);}else{if(y=="gallery"){this.groups.gallery.update(B);}else{if(y=="yui2"||y=="2in3"){this.groups.yui2.update(C["2in3"],C.yui2);}else{if(y=="maxURLLength"){w[y]=Math.min(m,B);}else{w[y]=B;}}}}}}}}}}z=w.filter;if(i.isString(z)){z=z.toUpperCase();w.filterName=z;w.filter=w.FILTER_DEFS[z];if(z=="DEBUG"){w.require("yui-log","dump");}}if(w.lang){w.require("intl-base","intl");}},formatSkin:function(y,w){var x=b+y;if(w){x=x+"-"+w;}return x;},_addSkin:function(F,D,E){var C,B,x,w,A=this.moduleInfo,y=this.skin,z=A[D]&&A[D].ext;if(D){x=this.formatSkin(F,D);if(!A[x]){C=A[D];B=C.pkg||D;w={name:x,group:C.group,type:"css",after:y.after,path:(E||B)+"/"+y.base+F+"/"+D+".css",ext:z};if(C.base){w.base=C.base;}if(C.configFn){w.configFn=C.configFn;}this.addModule(w,x);}}return x;},addGroup:function(z,x){var y=z.modules,w=this;x=x||z.name;z.name=x;w.groups[x]=z;if(z.patterns){r(z.patterns,function(B,A){B.group=x;w.patterns[A]=B;});}if(y){r(y,function(B,A){B.group=x;w.addModule(B,A);},w);}},addModule:function(M,T){T=T||M.name;if(this.moduleInfo[T]&&this.moduleInfo[T].temp){M=d.merge(this.moduleInfo[T],M);}M.name=T;if(!M||!M.name){return null;}if(!M.type){M.type=k;}if(!M.path&&!M.fullpath){M.path=g(T,T,M.type);}M.supersedes=M.supersedes||M.use;M.ext=("ext" in M)?M.ext:(this._internal)?false:true;M.requires=this.filterRequires(M.requires)||[];var Q=M.submodules,P,N,H,w,I,y,L,x,O,J,F,C,A,z,S,R,G,B,D,E=this.conditions,K;this.moduleInfo[T]=M;if(!M.langPack&&M.lang){J=j(M.lang);for(O=0;O<J.length;O++){S=J[O];F=this.getLangPackName(S,T);y=this.moduleInfo[F];if(!y){y=this._addLangPack(S,M,F);}}}if(Q){w=M.supersedes||[];N=0;for(P in Q){if(Q.hasOwnProperty(P)){I=Q[P];I.path=I.path||g(T,P,M.type);I.pkg=T;I.group=M.group;if(I.supersedes){w=w.concat(I.supersedes);}y=this.addModule(I,P);w.push(P);if(y.skinnable){M.skinnable=true;G=this.skin.overrides;if(G&&G[P]){for(O=0;O<G[P].length;O++){B=this._addSkin(G[P][O],P,T);w.push(B);}}B=this._addSkin(this.skin.defaultSkin,P,T);w.push(B);}if(I.lang&&I.lang.length){J=j(I.lang);for(O=0;O<J.length;O++){S=J[O];F=this.getLangPackName(S,T);C=this.getLangPackName(S,P);y=this.moduleInfo[F];if(!y){y=this._addLangPack(S,M,F);}A=A||j.hash(y.supersedes);if(!(C in A)){y.supersedes.push(C);}M.lang=M.lang||[];z=z||j.hash(M.lang);if(!(S in z)){M.lang.push(S);}F=this.getLangPackName(u,T);C=this.getLangPackName(u,P);y=this.moduleInfo[F];if(!y){y=this._addLangPack(S,M,F);}if(!(C in A)){y.supersedes.push(C);}}}N++;}}M.supersedes=j.dedupe(w);if(this.allowRollup){M.rollup=(N<4)?N:Math.min(N-1,4);}}L=M.plugins;if(L){for(P in L){if(L.hasOwnProperty(P)){x=L[P];x.pkg=T;x.path=x.path||g(T,P,M.type);x.requires=x.requires||[];
x.group=M.group;this.addModule(x,P);if(M.skinnable){this._addSkin(this.skin.defaultSkin,P,T);}}}}if(M.condition){H=M.condition.trigger;if(YUI.Env.aliases[H]){H=YUI.Env.aliases[H];}if(!d.Lang.isArray(H)){H=[H];}for(P=0;P<H.length;P++){K=H[P];D=M.condition.when;E[K]=E[K]||{};E[K][T]=M.condition;if(D&&D!="after"){if(D=="instead"){M.supersedes=M.supersedes||[];M.supersedes.push(K);}else{}}else{M.after=M.after||[];M.after.push(K);}}}if(M.supersedes){M.supersedes=this.filterRequires(M.supersedes);}if(M.after){M.after=this.filterRequires(M.after);M.after_map=j.hash(M.after);}if(M.configFn){R=M.configFn(M);if(R===false){delete this.moduleInfo[T];M=null;}}return M;},require:function(x){var w=(typeof x==="string")?j(arguments):x;this.dirty=true;this.required=d.merge(this.required,j.hash(this.filterRequires(w)));this._explodeRollups();},_explodeRollups:function(){var x=this,w,y=x.required;if(!x.allowRollup){r(y,function(z,A){w=x.getModule(A);if(w&&w.use){j.each(w.use,function(B){w=x.getModule(B);if(w&&w.use){j.each(w.use,function(C){y[C]=true;});}else{y[B]=true;}});}});x.required=y;}},filterRequires:function(z){if(z){if(!d.Lang.isArray(z)){z=[z];}z=d.Array(z);var B=[],y,x,A,w;for(y=0;y<z.length;y++){x=this.getModule(z[y]);if(x&&x.use){for(A=0;A<x.use.length;A++){w=this.getModule(x.use[A]);if(w&&w.use){B=d.Array.dedupe([].concat(B,this.filterRequires(w.use)));}else{B.push(x.use[A]);}}}else{B.push(z[y]);}}z=B;}return z;},getRequires:function(R){if(!R){return c;}if(R._parsed){return R.expanded||c;}var L,H,K,D,C,T,A=this.testresults,U=R.name,B,S=n[U]&&n[U].details,N,I,w,E,O,F,z,P,Q,y,G=R.lang||R.intl,M=this.moduleInfo,J=d.Features&&d.Features.tests.load,x;if(R.temp&&S){O=R;R=this.addModule(S,U);R.group=O.group;R.pkg=O.pkg;delete R.expanded;}if(R.expanded&&(!this.lang||R.langCache===this.lang)){return R.expanded;}N=[];x={};E=this.filterRequires(R.requires);if(R.lang){N.unshift("intl");E.unshift("intl");G=true;}F=this.filterRequires(R.optional);R._parsed=true;R.langCache=this.lang;for(L=0;L<E.length;L++){if(!x[E[L]]){N.push(E[L]);x[E[L]]=true;H=this.getModule(E[L]);if(H){D=this.getRequires(H);G=G||(H.expanded_map&&(v in H.expanded_map));for(K=0;K<D.length;K++){N.push(D[K]);}}}}E=this.filterRequires(R.supersedes);if(E){for(L=0;L<E.length;L++){if(!x[E[L]]){if(R.submodules){N.push(E[L]);}x[E[L]]=true;H=this.getModule(E[L]);if(H){D=this.getRequires(H);G=G||(H.expanded_map&&(v in H.expanded_map));for(K=0;K<D.length;K++){N.push(D[K]);}}}}}if(F&&this.loadOptional){for(L=0;L<F.length;L++){if(!x[F[L]]){N.push(F[L]);x[F[L]]=true;H=M[F[L]];if(H){D=this.getRequires(H);G=G||(H.expanded_map&&(v in H.expanded_map));for(K=0;K<D.length;K++){N.push(D[K]);}}}}}B=this.conditions[U];if(B){R._parsed=false;if(A&&J){r(A,function(V,X){var W=J[X].name;if(!x[W]&&J[X].trigger==U){if(V&&J[X]){x[W]=true;N.push(W);}}});}else{r(B,function(X,W){if(!x[W]){var V=X&&((X.ua&&d.UA[X.ua])||(X.test&&X.test(d,E)));if(V){x[W]=true;N.push(W);H=this.getModule(W);if(H){D=this.getRequires(H);for(K=0;K<D.length;K++){N.push(D[K]);}}}}},this);}}if(R.skinnable){P=this.skin.overrides;r(YUI.Env.aliases,function(V,W){if(d.Array.indexOf(V,U)>-1){Q=W;}});if(P&&(P[U]||(Q&&P[Q]))){y=U;if(P[Q]){y=Q;}for(L=0;L<P[y].length;L++){z=this._addSkin(P[y][L],U);N.push(z);}}else{z=this._addSkin(this.skin.defaultSkin,U);N.push(z);}}R._parsed=false;if(G){if(R.lang&&!R.langPack&&d.Intl){T=d.Intl.lookupBestLang(this.lang||u,R.lang);C=this.getLangPackName(T,U);if(C){N.unshift(C);}}N.unshift(v);}R.expanded_map=j.hash(N);R.expanded=e.keys(R.expanded_map);return R.expanded;},getProvides:function(x){var w=this.getModule(x),z,y;if(!w){return f;}if(w&&!w.provides){z={};y=w.supersedes;if(y){j.each(y,function(A){d.mix(z,this.getProvides(A));},this);}z[x]=true;w.provides=z;}return w.provides;},calculate:function(x,w){if(x||w||this.dirty){if(x){this._config(x);}if(!this._init){this._setup();}this._explode();if(this.allowRollup){this._rollup();}else{this._explodeRollups();}this._reduce();this._sort();}},_addLangPack:function(B,w,A){var y=w.name,x,z=this.moduleInfo[A];if(!z){x=g((w.pkg||y),A,k,true);this.addModule({path:x,intl:true,langPack:true,ext:w.ext,group:w.group,supersedes:[]},A);if(B){d.Env.lang=d.Env.lang||{};d.Env.lang[B]=d.Env.lang[B]||{};d.Env.lang[B][y]=true;}}return this.moduleInfo[A];},_setup:function(){var C=this.moduleInfo,z,A,y,w,x,B;for(z in C){if(C.hasOwnProperty(z)){w=C[z];if(w){w.requires=j.dedupe(w.requires);if(w.lang&&w.lang.length){B=this.getLangPackName(u,z);this._addLangPack(null,w,B);}}}}x={};if(!this.ignoreRegistered){d.mix(x,a.mods);}if(this.ignore){d.mix(x,j.hash(this.ignore));}for(y in x){if(x.hasOwnProperty(y)){d.mix(x,this.getProvides(y));}}if(this.force){for(A=0;A<this.force.length;A++){if(this.force[A] in x){delete x[this.force[A]];}}}d.mix(this.loaded,x);this._init=true;},getLangPackName:function(x,w){return("lang/"+w+((x)?"_"+x:""));},_explode:function(){var A=this.required,w,z,x={},y=this;y.dirty=false;y._explodeRollups();A=y.required;r(A,function(B,C){if(!x[C]){x[C]=true;w=y.getModule(C);if(w){var D=w.expound;if(D){A[D]=y.getModule(D);z=y.getRequires(A[D]);d.mix(A,j.hash(z));}z=y.getRequires(w);d.mix(A,j.hash(z));}}});},getModule:function(B){if(!B){return null;}var A,z,x,w=this.moduleInfo[B],y=this.patterns;if(!w){for(x in y){if(y.hasOwnProperty(x)){A=y[x];if(!A.test){A.test=function(D,C){return(D.indexOf(C)>-1);};}if(A.test(B,x)){z=A;break;}}}if(z){if(A.action){A.action.call(this,B,x);}else{w=this.addModule(d.merge(z),B);w.temp=true;}}}return w;},_rollup:function(){},_reduce:function(B){B=B||this.required;var y,x,A,w,z=this.loadType,C=this.ignore?j.hash(this.ignore):false;for(y in B){if(B.hasOwnProperty(y)){w=this.getModule(y);if(((this.loaded[y]||n[y])&&!this.forceMap[y]&&!this.ignoreRegistered)||(z&&w&&w.type!=z)){delete B[y];}if(C&&C[y]){delete B[y];}A=w&&w.supersedes;if(A){for(x=0;x<A.length;x++){if(A[x] in B){delete B[A[x]];}}}}}return B;},_finish:function(y,x){h.running=false;var w=this.onEnd;if(w){w.call(this.context,{msg:y,data:this.data,success:x});
-}this._continue();},_onSuccess:function(){var y=this,x=d.merge(y.skipped),A,w=[],z=y.requireRegistration,C,B;r(x,function(D){delete y.inserted[D];});y.skipped={};r(y.inserted,function(E,D){var F=y.getModule(D);if(F&&z&&F.type==k&&!(D in YUI.Env.mods)){w.push(D);}else{d.mix(y.loaded,y.getProvides(D));}});A=y.onSuccess;B=(w.length)?"notregistered":"success";C=!(w.length);if(A){A.call(y.context,{msg:B,data:y.data,success:C,failed:w,skipped:x});}y._finish(B,C);},_onProgress:function(x){var w=this;if(w.onProgress){w.onProgress.call(w.context,{name:x.url,data:x.data});}},_onFailure:function(y){var w=this.onFailure,x="failure: "+y.msg;if(w){w.call(this.context,{msg:x,data:this.data,success:false});}this._finish(x,false);},_onTimeout:function(){var w=this.onTimeout;if(w){w.call(this.context,{msg:"timeout",data:this.data,success:false});}this._finish("timeout",false);},_sort:function(){var F=e.keys(this.required),B={},w=0,y,E,D,A,z,C,x;for(;;){y=F.length;C=false;for(A=w;A<y;A++){E=F[A];for(z=A+1;z<y;z++){x=E+F[z];if(!B[x]&&this._requires(E,F[z])){D=F.splice(z,1);F.splice(A,0,D[0]);B[x]=true;C=true;break;}}if(C){break;}else{w++;}}if(!C){break;}}this.sorted=F;},partial:function(w,y,x){this.sorted=w;this.insert(y,x,true);},_insert:function(w,z,E,y){if(w){this._config(w);}if(!y){this.calculate(z);}var B=this.resolve(),F=this,D=0,C=0;if(E){var A=B[E];B={};B[E]=A;D++;}else{if(B.js.length){D++;}if(B.css.length){D++;}}var x=function(H){C++;if(H&&H.data&&H.data.length){for(var G=0;G<H.data.length;G++){F.inserted[H.data[G].name]=true;}}if(C===D){F._loading=null;F._onSuccess();}};this._loading=true;if(!B.js.length&&!B.css.length){C=-1;x();return;}if(B.css.length){d.Get.css(B.css,{data:B.cssMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onFailure:F._onFailure,onTimeout:F._onTimeout,onProgress:function(G){F._onProgress.call(F,G);},onSuccess:x});}if(B.js.length){d.Get.script(B.js,{data:B.jsMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onProgress:function(G){F._onProgress.call(F,G);},onFailure:F._onFailure,onTimeout:F._onTimeout,onSuccess:x});}},_continue:function(){if(!(h.running)&&h.size()>0){h.running=true;h.next()();}},insert:function(z,x,y){var w=this,A=d.merge(this);delete A.require;delete A.dirty;h.add(function(){w._insert(A,z,x,y);});this._continue();},loadNext:function(A){if(!this._loading){return;}var H,P,O,M,z,E,B,L,D,G,N,w,C,K,y,F,Q,R,J=this,x=J.loadType,S=function(T){J.loadNext(T.data);},I=function(V){J._combineComplete[x]=true;var U,T=F.length;for(U=0;U<T;U++){J.inserted[F[U]]=true;}S(V);};if(J.combine&&(!J._combineComplete[x])){F=[];J._combining=F;H=J.sorted;P=H.length;R=J.comboBase;z=R;Q=[];K={};for(O=0;O<P;O++){C=R;M=J.getModule(H[O]);G=M&&M.group;if(G){D=J.groups[G];if(!D.combine){M.combine=false;continue;}M.combine=true;if(D.comboBase){C=D.comboBase;}if("root" in D&&i.isValue(D.root)){M.root=D.root;}}K[C]=K[C]||[];K[C].push(M);}for(N in K){if(K.hasOwnProperty(N)){z=N;y=K[N];P=y.length;for(O=0;O<P;O++){M=y[O];if(M&&(M.type===x)&&(M.combine||!M.ext)){w=((i.isValue(M.root))?M.root:J.root)+M.path;w=J._filter(w,M.name);if((z!==N)&&(O<=(P-1))&&((w.length+z.length)>J.maxURLLength)){if(z.substr(z.length-1,1)===J.comboSep){z=z.substr(0,(z.length-1));}Q.push(J._filter(z));z=N;}z+=w;if(O<(P-1)){z+=J.comboSep;}F.push(M.name);}}if(F.length&&(z!=N)){if(z.substr(z.length-1,1)===J.comboSep){z=z.substr(0,(z.length-1));}Q.push(J._filter(z));}}}if(F.length){if(x===q){E=d.Get.css;L=J.cssAttributes;}else{E=d.Get.script;L=J.jsAttributes;}E(Q,{data:J._loading,onSuccess:I,onFailure:J._onFailure,onTimeout:J._onTimeout,insertBefore:J.insertBefore,charset:J.charset,attributes:L,timeout:J.timeout,autopurge:false,context:J});return;}else{J._combineComplete[x]=true;}}if(A){if(A!==J._loading){return;}J.inserted[A]=true;if(J.onProgress){J.onProgress.call(J.context,{name:A,data:J.data});}}H=J.sorted;P=H.length;for(O=0;O<P;O=O+1){if(H[O] in J.inserted){continue;}if(H[O]===J._loading){return;}M=J.getModule(H[O]);if(!M){if(!J.skipped[H[O]]){B="Undefined module "+H[O]+" skipped";J.skipped[H[O]]=true;}continue;}D=(M.group&&J.groups[M.group])||f;if(!x||x===M.type){J._loading=H[O];if(M.type===q){E=d.Get.css;L=J.cssAttributes;if(M.cssAttributes){L=d.mix(L||{},M.cssAttributes);}}else{E=d.Get.script;L=J.jsAttributes;if(M.jsAttributes){L=d.mix(L||{},M.jsAttributes);}}z=(M.fullpath)?J._filter(M.fullpath,H[O]):J._url(M.path,H[O],D.base||M.base);E(z,{data:H[O],onSuccess:S,insertBefore:J.insertBefore,charset:J.charset,attributes:L,onFailure:J._onFailure,onTimeout:J._onTimeout,timeout:J.timeout,autopurge:false,context:J});return;}}J._loading=null;E=J._internalCallback;if(E){J._internalCallback=null;E.call(J);}else{J._onSuccess();}},_filter:function(y,x){var A=this.filter,w=x&&(x in this.filters),z=w&&this.filters[x],B=this.moduleInfo[x]?this.moduleInfo[x].group:null;if(B&&this.groups[B].filter){z=this.groups[B].filter;w=true;}if(y){if(w){A=(i.isString(z))?this.FILTER_DEFS[z.toUpperCase()]||null:z;}if(A){y=y.replace(new RegExp(A.searchExp,"g"),A.replaceStr);}}return y;},_url:function(y,w,x){return this._filter((x||this.base||"")+y,w);},resolve:function(w,K){var T,S,Q,B,G,D,P,F,J,R,x,E,N,A,V,C,U,I=[],H,M,y={},L=this,O={js:[],jsMods:[],css:[],cssMods:[]},z=L.loadType||"js";if(w){L.calculate();}K=K||L.sorted;if(L.combine){T=K.length;V=L.comboBase;B=V;N={};for(S=0;S<T;S++){E=V;Q=L.getModule(K[S]);J=Q&&Q.group;if(J){F=L.groups[J];if(!F.combine){Q.combine=false;continue;}Q.combine=true;if(F.comboBase){E=F.comboBase;}if("root" in F&&i.isValue(F.root)){Q.root=F.root;}}N[E]=N[E]||[];N[E].push(Q);}for(R in N){if(N.hasOwnProperty(R)){y[R]=y[R]||{js:[],jsMods:[],css:[],cssMods:[]};B=R;A=N[R];T=A.length;if(T){for(S=0;S<T;S++){Q=A[S];if(Q&&(Q.combine||!Q.ext)){x=((i.isValue(Q.root))?Q.root:L.root)+Q.path;x=L._filter(x,Q.name);y[R][Q.type].push(x);y[R][Q.type+"Mods"].push(Q);}}}}}for(R in y){C=R;for(z in y[C]){if(z===k||z===q){U=y[C][z];A=y[C][z+"Mods"];
-T=U.length;H=C+U.join(L.comboSep);M=H.length;if(T){if(M>L.maxURLLength){I=[];Q=[];for(K=0;K<T;K++){H=C+I.join(L.comboSep);if(H.length<L.maxURLLength){I.push(U[K]);Q.push(A[K]);}else{O[z].push(H);I=[];Q=[];}}}else{O[z].push(H);O[z+"Mods"]=A;}}}}}y=null;}else{K=L.sorted;T=K.length;for(S=0;S<T;S=S+1){Q=L.getModule(K[S]);if(!Q){if(!L.skipped[K[S]]){D="Undefined module "+K[S]+" skipped";}continue;}F=(Q.group&&L.groups[Q.group])||f;B=(Q.fullpath)?L._filter(Q.fullpath,K[S]):L._url(Q.path,K[S],F.base||Q.base);O[Q.type].push(B);O[Q.type+"Mods"].push(Q);}}return O;}};},"@VERSION@",{requires:["get"]});YUI.add("loader-rollup",function(a){a.Loader.prototype._rollup=function(){var k,h,g,o,b=this.required,e,f=this.moduleInfo,d,l,n;if(this.dirty||!this.rollups){this.rollups={};for(k in f){if(f.hasOwnProperty(k)){g=this.getModule(k);if(g&&g.rollup){this.rollups[k]=g;}}}}for(;;){d=false;for(k in this.rollups){if(this.rollups.hasOwnProperty(k)){if(!b[k]&&((!this.loaded[k])||this.forceMap[k])){g=this.getModule(k);o=g.supersedes||[];e=false;if(!g.rollup){continue;}l=0;for(h=0;h<o.length;h++){n=f[o[h]];if(this.loaded[o[h]]&&!this.forceMap[o[h]]){e=false;break;}else{if(b[o[h]]&&g.type==n.type){l++;e=(l>=g.rollup);if(e){break;}}}}if(e){b[k]=true;d=true;this.getRequires(g);}}}}if(!d){break;}}};},"@VERSION@",{requires:["loader-base"]});YUI.add("loader-yui3",function(a){YUI.Env[a.version].modules=YUI.Env[a.version].modules||{"align-plugin":{"requires":["node-screen","node-pluginhost"]},"anim":{"use":["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"]},"anim-base":{"requires":["base-base","node-style"]},"anim-color":{"requires":["anim-base"]},"anim-curve":{"requires":["anim-xy"]},"anim-easing":{"requires":["anim-base"]},"anim-node-plugin":{"requires":["node-pluginhost","anim-base"]},"anim-scroll":{"requires":["anim-base"]},"anim-xy":{"requires":["anim-base","node-screen"]},"app":{"use":["model","model-list","router","view"]},"array-extras":{"requires":["yui-base"]},"array-invoke":{"requires":["yui-base"]},"arraylist":{"requires":["yui-base"]},"arraylist-add":{"requires":["arraylist"]},"arraylist-filter":{"requires":["arraylist"]},"arraysort":{"requires":["yui-base"]},"async-queue":{"requires":["event-custom"]},"attribute":{"use":["attribute-base","attribute-complex"]},"attribute-base":{"requires":["event-custom"]},"attribute-complex":{"requires":["attribute-base"]},"autocomplete":{"use":["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"]},"autocomplete-base":{"optional":["autocomplete-sources"],"requires":["array-extras","base-build","escape","event-valuechange","node-base"]},"autocomplete-filters":{"requires":["array-extras","text-wordbreak"]},"autocomplete-filters-accentfold":{"requires":["array-extras","text-accentfold","text-wordbreak"]},"autocomplete-highlighters":{"requires":["array-extras","highlight-base"]},"autocomplete-highlighters-accentfold":{"requires":["array-extras","highlight-accentfold"]},"autocomplete-list":{"after":["autocomplete-sources"],"lang":["en"],"requires":["autocomplete-base","event-resize","node-screen","selector-css3","shim-plugin","widget","widget-position","widget-position-align"],"skinnable":true},"autocomplete-list-keys":{"condition":{"name":"autocomplete-list-keys","test":function(b){return !(b.UA.ios||b.UA.android);},"trigger":"autocomplete-list"},"requires":["autocomplete-list","base-build"]},"autocomplete-plugin":{"requires":["autocomplete-list","node-pluginhost"]},"autocomplete-sources":{"optional":["io-base","json-parse","jsonp","yql"],"requires":["autocomplete-base"]},"base":{"use":["base-base","base-pluginhost","base-build"]},"base-base":{"after":["attribute-complex"],"requires":["attribute-base"]},"base-build":{"requires":["base-base"]},"base-pluginhost":{"requires":["base-base","pluginhost"]},"cache":{"use":["cache-base","cache-offline","cache-plugin"]},"cache-base":{"requires":["base"]},"cache-offline":{"requires":["cache-base","json"]},"cache-plugin":{"requires":["plugin","cache-base"]},"calendar":{"lang":["en","ja","ru"],"requires":["calendar-base","calendarnavigator"],"skinnable":true},"calendar-base":{"lang":["en","ja","ru"],"requires":["widget","substitute","datatype-date","datatype-date-math","cssgrids"],"skinnable":true},"calendarnavigator":{"requires":["plugin","classnamemanager","datatype-date","node","substitute"],"skinnable":true},"charts":{"requires":["dom","datatype-number","datatype-date","event-custom","event-mouseenter","widget","widget-position","widget-stack","graphics"]},"classnamemanager":{"requires":["yui-base"]},"clickable-rail":{"requires":["slider-base"]},"collection":{"use":["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"]},"console":{"lang":["en","es","ja"],"requires":["yui-log","widget","substitute"],"skinnable":true},"console-filters":{"requires":["plugin","console"],"skinnable":true},"controller":{"use":["router"]},"cookie":{"requires":["yui-base"]},"createlink-base":{"requires":["editor-base"]},"cssbase":{"after":["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],"type":"css"},"cssbase-context":{"after":["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],"type":"css"},"cssfonts":{"type":"css"},"cssfonts-context":{"type":"css"},"cssgrids":{"optional":["cssreset","cssfonts"],"type":"css"},"cssreset":{"type":"css"},"cssreset-context":{"type":"css"},"dataschema":{"use":["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"]},"dataschema-array":{"requires":["dataschema-base"]},"dataschema-base":{"requires":["base"]},"dataschema-json":{"requires":["dataschema-base","json"]},"dataschema-text":{"requires":["dataschema-base"]},"dataschema-xml":{"requires":["dataschema-base"]},"datasource":{"use":["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"]},"datasource-arrayschema":{"requires":["datasource-local","plugin","dataschema-array"]},"datasource-cache":{"requires":["datasource-local","plugin","cache-base"]},"datasource-function":{"requires":["datasource-local"]},"datasource-get":{"requires":["datasource-local","get"]},"datasource-io":{"requires":["datasource-local","io-base"]},"datasource-jsonschema":{"requires":["datasource-local","plugin","dataschema-json"]},"datasource-local":{"requires":["base"]},"datasource-polling":{"requires":["datasource-local"]},"datasource-textschema":{"requires":["datasource-local","plugin","dataschema-text"]},"datasource-xmlschema":{"requires":["datasource-local","plugin","dataschema-xml"]},"datatable":{"use":["datatable-base","datatable-datasource","datatable-sort","datatable-scroll"]},"datatable-base":{"requires":["recordset-base","widget","substitute","event-mouseenter"],"skinnable":true},"datatable-datasource":{"requires":["datatable-base","plugin","datasource-local"]},"datatable-scroll":{"requires":["datatable-base","plugin"]},"datatable-sort":{"lang":["en"],"requires":["datatable-base","plugin","recordset-sort"]},"datatype":{"use":["datatype-number","datatype-date","datatype-xml"]},"datatype-date":{"supersedes":["datatype-date-format"],"use":["datatype-date-parse","datatype-date-format"]},"datatype-date-format":{"lang":["ar","ar-JO","ca","ca-ES","da","da-DK","de","de-AT","de-DE","el","el-GR","en","en-AU","en-CA","en-GB","en-IE","en-IN","en-JO","en-MY","en-NZ","en-PH","en-SG","en-US","es","es-AR","es-BO","es-CL","es-CO","es-EC","es-ES","es-MX","es-PE","es-PY","es-US","es-UY","es-VE","fi","fi-FI","fr","fr-BE","fr-CA","fr-FR","hi","hi-IN","id","id-ID","it","it-IT","ja","ja-JP","ko","ko-KR","ms","ms-MY","nb","nb-NO","nl","nl-BE","nl-NL","pl","pl-PL","pt","pt-BR","ro","ro-RO","ru","ru-RU","sv","sv-SE","th","th-TH","tr","tr-TR","vi","vi-VN","zh-Hans","zh-Hans-CN","zh-Hant","zh-Hant-HK","zh-Hant-TW"]},"datatype-date-math":{"requires":["yui-base"]},"datatype-date-parse":{},"datatype-number":{"use":["datatype-number-parse","datatype-number-format"]},"datatype-number-format":{},"datatype-number-parse":{},"datatype-xml":{"use":["datatype-xml-parse","datatype-xml-format"]},"datatype-xml-format":{},"datatype-xml-parse":{},"dd":{"use":["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"]},"dd-constrain":{"requires":["dd-drag"]},"dd-ddm":{"requires":["dd-ddm-base","event-resize"]},"dd-ddm-base":{"requires":["node","base","yui-throttle","classnamemanager"]},"dd-ddm-drop":{"requires":["dd-ddm"]},"dd-delegate":{"requires":["dd-drag","dd-drop-plugin","event-mouseenter"]},"dd-drag":{"requires":["dd-ddm-base"]},"dd-drop":{"requires":["dd-drag","dd-ddm-drop"]},"dd-drop-plugin":{"requires":["dd-drop"]},"dd-gestures":{"condition":{"name":"dd-gestures","test":function(b){return(b.config.win&&("ontouchstart" in b.config.win&&!b.UA.chrome));
-},"trigger":"dd-drag"},"requires":["dd-drag","event-synthetic","event-gestures"]},"dd-plugin":{"optional":["dd-constrain","dd-proxy"],"requires":["dd-drag"]},"dd-proxy":{"requires":["dd-drag"]},"dd-scroll":{"requires":["dd-drag"]},"dial":{"lang":["en","es"],"requires":["widget","dd-drag","substitute","event-mouseenter","event-move","event-key","transition","intl"],"skinnable":true},"dom":{"use":["dom-base","dom-screen","dom-style","selector-native","selector"]},"dom-base":{"requires":["dom-core"]},"dom-core":{"requires":["oop","features"]},"dom-deprecated":{"requires":["dom-base"]},"dom-screen":{"requires":["dom-base","dom-style"]},"dom-style":{"requires":["dom-base"]},"dom-style-ie":{"condition":{"name":"dom-style-ie","test":function(h){var f=h.Features.test,g=h.Features.add,d=h.config.win,e=h.config.doc,b="documentElement",c=false;g("style","computedStyle",{test:function(){return d&&"getComputedStyle" in d;}});g("style","opacity",{test:function(){return e&&"opacity" in e[b].style;}});c=(!f("style","opacity")&&!f("style","computedStyle"));return c;},"trigger":"dom-style"},"requires":["dom-style"]},"dump":{"requires":["yui-base"]},"editor":{"use":["frame","selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"]},"editor-base":{"requires":["base","frame","node","exec-command","selection"]},"editor-bidi":{"requires":["editor-base"]},"editor-br":{"requires":["editor-base"]},"editor-lists":{"requires":["editor-base"]},"editor-para":{"requires":["editor-base"]},"editor-tab":{"requires":["editor-base"]},"escape":{"requires":["yui-base"]},"event":{"after":["node-base"],"use":["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside"]},"event-base":{"after":["node-base"],"requires":["event-custom-base"]},"event-base-ie":{"after":["event-base"],"condition":{"name":"event-base-ie","test":function(c){var b=c.config.doc&&c.config.doc.implementation;return(b&&(!b.hasFeature("Events","2.0")));},"trigger":"node-base"},"requires":["node-base"]},"event-custom":{"use":["event-custom-base","event-custom-complex"]},"event-custom-base":{"requires":["oop"]},"event-custom-complex":{"requires":["event-custom-base"]},"event-delegate":{"requires":["node-base"]},"event-flick":{"requires":["node-base","event-touch","event-synthetic"]},"event-focus":{"requires":["event-synthetic"]},"event-gestures":{"use":["event-flick","event-move"]},"event-hover":{"requires":["event-mouseenter"]},"event-key":{"requires":["event-synthetic"]},"event-mouseenter":{"requires":["event-synthetic"]},"event-mousewheel":{"requires":["node-base"]},"event-move":{"requires":["node-base","event-touch","event-synthetic"]},"event-outside":{"requires":["event-synthetic"]},"event-resize":{"requires":["node-base","event-synthetic"]},"event-simulate":{"requires":["event-base"]},"event-synthetic":{"requires":["node-base","event-custom-complex"]},"event-touch":{"requires":["node-base"]},"event-valuechange":{"requires":["event-focus","event-synthetic"]},"exec-command":{"requires":["frame"]},"features":{"requires":["yui-base"]},"frame":{"requires":["base","node","selector-css3","substitute","yui-throttle"]},"get":{"requires":["yui-base"]},"graphics":{"requires":["node","event-custom","pluginhost"]},"graphics-canvas":{"condition":{"name":"graphics-canvas","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(b&&b.getContext&&b.getContext("2d")));},"trigger":"graphics"},"requires":["graphics"]},"graphics-canvas-default":{"condition":{"name":"graphics-canvas-default","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(b&&b.getContext&&b.getContext("2d")));},"trigger":"graphics"}},"graphics-svg":{"condition":{"name":"graphics-svg","test":function(c){var b=c.config.doc;return(b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));},"trigger":"graphics"},"requires":["graphics"]},"graphics-svg-default":{"condition":{"name":"graphics-svg-default","test":function(c){var b=c.config.doc;return(b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));},"trigger":"graphics"}},"graphics-vml":{"condition":{"name":"graphics-vml","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!b||!b.getContext||!b.getContext("2d")));},"trigger":"graphics"},"requires":["graphics"]},"graphics-vml-default":{"condition":{"name":"graphics-vml-default","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!b||!b.getContext||!b.getContext("2d")));},"trigger":"graphics"}},"handlebars":{"use":["handlebars-compiler"]},"handlebars-base":{"requires":["escape"]},"handlebars-compiler":{"requires":["handlebars-base"]},"highlight":{"use":["highlight-base","highlight-accentfold"]},"highlight-accentfold":{"requires":["highlight-base","text-accentfold"]},"highlight-base":{"requires":["array-extras","classnamemanager","escape","text-wordbreak"]},"history":{"use":["history-base","history-hash","history-hash-ie","history-html5"]},"history-base":{"requires":["event-custom-complex"]},"history-hash":{"after":["history-html5"],"requires":["event-synthetic","history-base","yui-later"]},"history-hash-ie":{"condition":{"name":"history-hash-ie","test":function(c){var b=c.config.doc&&c.config.doc.documentMode;return c.UA.ie&&(!("onhashchange" in c.config.win)||!b||b<8);},"trigger":"history-hash"},"requires":["history-hash","node-base"]},"history-html5":{"optional":["json"],"requires":["event-base","history-base","node-base"]},"imageloader":{"requires":["base-base","node-style","node-screen"]},"intl":{"requires":["intl-base","event-custom"]},"intl-base":{"requires":["yui-base"]},"io":{"use":["io-base","io-xdr","io-form","io-upload-iframe","io-queue"]},"io-base":{"requires":["event-custom-base","querystring-stringify-simple"]},"io-form":{"requires":["io-base","node-base"]},"io-queue":{"requires":["io-base","queue-promote"]},"io-upload-iframe":{"requires":["io-base","node-base"]},"io-xdr":{"requires":["io-base","datatype-xml-parse"]},"json":{"use":["json-parse","json-stringify"]},"json-parse":{"requires":["yui-base"]},"json-stringify":{"requires":["yui-base"]},"jsonp":{"requires":["get","oop"]},"jsonp-url":{"requires":["jsonp"]},"loader":{"use":["loader-base","loader-rollup","loader-yui3"]},"loader-base":{"requires":["get"]},"loader-rollup":{"requires":["loader-base"]},"loader-yui3":{"requires":["loader-base"]},"model":{"requires":["base-build","escape","json-parse"]},"model-list":{"requires":["array-extras","array-invoke","arraylist","base-build","escape","json-parse","model"]},"node":{"use":["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"]},"node-base":{"requires":["event-base","node-core","dom-base"]},"node-core":{"requires":["dom-core","selector"]},"node-deprecated":{"requires":["node-base"]},"node-event-delegate":{"requires":["node-base","event-delegate"]},"node-event-html5":{"requires":["node-base"]},"node-event-simulate":{"requires":["node-base","event-simulate"]},"node-flick":{"requires":["classnamemanager","transition","event-flick","plugin"],"skinnable":true},"node-focusmanager":{"requires":["attribute","node","plugin","node-event-simulate","event-key","event-focus"]},"node-load":{"requires":["node-base","io-base"]},"node-menunav":{"requires":["node","classnamemanager","plugin","node-focusmanager"],"skinnable":true},"node-pluginhost":{"requires":["node-base","pluginhost"]},"node-screen":{"requires":["dom-screen","node-base"]},"node-style":{"requires":["dom-style","node-base"]},"oop":{"requires":["yui-base"]},"overlay":{"requires":["widget","widget-stdmod","widget-position","widget-position-align","widget-stack","widget-position-constrain"],"skinnable":true},"panel":{"requires":["widget","widget-stdmod","widget-position","widget-position-align","widget-stack","widget-position-constrain","widget-modality","widget-autohide","widget-buttons"],"skinnable":true},"parallel":{"requires":["yui-base"]},"pjax":{"requires":["pjax-base","io-base"]},"pjax-base":{"requires":["classnamemanager","node-event-delegate","router"]},"pjax-plugin":{"requires":["node-pluginhost","pjax","plugin"]},"plugin":{"requires":["base-base"]},"pluginhost":{"use":["pluginhost-base","pluginhost-config"]},"pluginhost-base":{"requires":["yui-base"]},"pluginhost-config":{"requires":["pluginhost-base"]},"profiler":{"requires":["yui-base"]},"querystring":{"use":["querystring-parse","querystring-stringify"]},"querystring-parse":{"requires":["yui-base","array-extras"]},"querystring-parse-simple":{"requires":["yui-base"]},"querystring-stringify":{"requires":["yui-base"]},"querystring-stringify-simple":{"requires":["yui-base"]},"queue-promote":{"requires":["yui-base"]},"range-slider":{"requires":["slider-base","slider-value-range","clickable-rail"]},"recordset":{"use":["recordset-base","recordset-sort","recordset-filter","recordset-indexer"]},"recordset-base":{"requires":["base","arraylist"]},"recordset-filter":{"requires":["recordset-base","array-extras","plugin"]},"recordset-indexer":{"requires":["recordset-base","plugin"]},"recordset-sort":{"requires":["arraysort","recordset-base","plugin"]},"resize":{"use":["resize-base","resize-proxy","resize-constrain"]},"resize-base":{"requires":["base","widget","substitute","event","oop","dd-drag","dd-delegate","dd-drop"],"skinnable":true},"resize-constrain":{"requires":["plugin","resize-base"]},"resize-plugin":{"optional":["resize-constrain"],"requires":["resize-base","plugin"]},"resize-proxy":{"requires":["plugin","resize-base"]},"rls":{"requires":["get","features"]},"router":{"optional":["querystring-parse"],"requires":["array-extras","base-build","history"]},"scrollview":{"requires":["scrollview-base","scrollview-scrollbars"]},"scrollview-base":{"requires":["widget","event-gestures","transition"],"skinnable":true},"scrollview-base-ie":{"condition":{"name":"scrollview-base-ie","trigger":"scrollview-base","ua":"ie"},"requires":["scrollview-base"]},"scrollview-list":{"requires":["plugin","classnamemanager"],"skinnable":true},"scrollview-paginator":{"requires":["plugin"]},"scrollview-scrollbars":{"requires":["classnamemanager","transition","plugin"],"skinnable":true},"selection":{"requires":["node"]},"selector":{"requires":["selector-native"]},"selector-css2":{"condition":{"name":"selector-css2","test":function(d){var c=d.config.doc,b=c&&!("querySelectorAll" in c);
+}this._continue();},_onSuccess:function(){var y=this,x=d.merge(y.skipped),A,w=[],z=y.requireRegistration,C,B;r(x,function(D){delete y.inserted[D];});y.skipped={};r(y.inserted,function(E,D){var F=y.getModule(D);if(F&&z&&F.type==k&&!(D in YUI.Env.mods)){w.push(D);}else{d.mix(y.loaded,y.getProvides(D));}});A=y.onSuccess;B=(w.length)?"notregistered":"success";C=!(w.length);if(A){A.call(y.context,{msg:B,data:y.data,success:C,failed:w,skipped:x});}y._finish(B,C);},_onProgress:function(x){var w=this;if(w.onProgress){w.onProgress.call(w.context,{name:x.url,data:x.data});}},_onFailure:function(y){var w=this.onFailure,x="failure: "+y.msg;if(w){w.call(this.context,{msg:x,data:this.data,success:false});}this._finish(x,false);},_onTimeout:function(){var w=this.onTimeout;if(w){w.call(this.context,{msg:"timeout",data:this.data,success:false});}this._finish("timeout",false);},_sort:function(){var F=e.keys(this.required),B={},w=0,y,E,D,A,z,C,x;for(;;){y=F.length;C=false;for(A=w;A<y;A++){E=F[A];for(z=A+1;z<y;z++){x=E+F[z];if(!B[x]&&this._requires(E,F[z])){D=F.splice(z,1);F.splice(A,0,D[0]);B[x]=true;C=true;break;}}if(C){break;}else{w++;}}if(!C){break;}}this.sorted=F;},partial:function(w,y,x){this.sorted=w;this.insert(y,x,true);},_insert:function(w,z,E,y){if(w){this._config(w);}if(!y){this.calculate(z);}var B=this.resolve(),F=this,D=0,C=0;if(E){var A=B[E];B={};B[E]=A;D++;}else{if(B.js.length){D++;}if(B.css.length){D++;}}var x=function(H){C++;if(H&&H.data&&H.data.length){for(var G=0;G<H.data.length;G++){F.inserted[H.data[G].name]=true;}}if(C===D){F._loading=null;F._onSuccess();}};this._loading=true;if(!B.js.length&&!B.css.length){C=-1;x();return;}if(B.css.length){d.Get.css(B.css,{data:B.cssMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onFailure:F._onFailure,onTimeout:F._onTimeout,onProgress:function(G){F._onProgress.call(F,G);},onSuccess:x});}if(B.js.length){d.Get.script(B.js,{data:B.jsMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onProgress:function(G){F._onProgress.call(F,G);},onFailure:F._onFailure,onTimeout:F._onTimeout,onSuccess:x});}},_continue:function(){if(!(h.running)&&h.size()>0){h.running=true;h.next()();}},insert:function(z,x,y){var w=this,A=d.merge(this);delete A.require;delete A.dirty;h.add(function(){w._insert(A,z,x,y);});this._continue();},loadNext:function(w){return;},_filter:function(y,x){var A=this.filter,w=x&&(x in this.filters),z=w&&this.filters[x],B=this.moduleInfo[x]?this.moduleInfo[x].group:null;if(B&&this.groups[B].filter){z=this.groups[B].filter;w=true;}if(y){if(w){A=(i.isString(z))?this.FILTER_DEFS[z.toUpperCase()]||null:z;}if(A){y=y.replace(new RegExp(A.searchExp,"g"),A.replaceStr);}}return y;},_url:function(y,w,x){return this._filter((x||this.base||"")+y,w);},resolve:function(w,K){var T,S,Q,B,G,D,P,F,J,R,x,E,N,A,V,C,U,I=[],H,M,y={},L=this,O={js:[],jsMods:[],css:[],cssMods:[]},z=L.loadType||"js";if(w){L.calculate();}K=K||L.sorted;if(L.combine){T=K.length;V=L.comboBase;B=V;N={};for(S=0;S<T;S++){E=V;Q=L.getModule(K[S]);J=Q&&Q.group;if(J){F=L.groups[J];if(!F.combine){Q.combine=false;continue;}Q.combine=true;if(F.comboBase){E=F.comboBase;}if("root" in F&&i.isValue(F.root)){Q.root=F.root;}}N[E]=N[E]||[];N[E].push(Q);}for(R in N){if(N.hasOwnProperty(R)){y[R]=y[R]||{js:[],jsMods:[],css:[],cssMods:[]};B=R;A=N[R];T=A.length;if(T){for(S=0;S<T;S++){Q=A[S];if(Q&&(Q.combine||!Q.ext)){x=((i.isValue(Q.root))?Q.root:L.root)+Q.path;x=L._filter(x,Q.name);y[R][Q.type].push(x);y[R][Q.type+"Mods"].push(Q);}}}}}for(R in y){C=R;for(z in y[C]){if(z===k||z===q){U=y[C][z];A=y[C][z+"Mods"];T=U.length;H=C+U.join(L.comboSep);M=H.length;if(T){if(M>L.maxURLLength){I=[];Q=[];for(K=0;K<T;K++){H=C+I.join(L.comboSep);if(H.length<L.maxURLLength){I.push(U[K]);Q.push(A[K]);}else{O[z].push(H);I=[];Q=[];}}}else{O[z].push(H);O[z+"Mods"]=A;}}}}}y=null;}else{K=L.sorted;T=K.length;for(S=0;S<T;S=S+1){Q=L.getModule(K[S]);if(!Q){if(!L.skipped[K[S]]){D="Undefined module "+K[S]+" skipped";}continue;}F=(Q.group&&L.groups[Q.group])||f;B=(Q.fullpath)?L._filter(Q.fullpath,K[S]):L._url(Q.path,K[S],F.base||Q.base);O[Q.type].push(B);O[Q.type+"Mods"].push(Q);}}return O;}};},"@VERSION@",{requires:["get"]});YUI.add("loader-rollup",function(a){a.Loader.prototype._rollup=function(){var k,h,g,o,b=this.required,e,f=this.moduleInfo,d,l,n;if(this.dirty||!this.rollups){this.rollups={};for(k in f){if(f.hasOwnProperty(k)){g=this.getModule(k);if(g&&g.rollup){this.rollups[k]=g;}}}}for(;;){d=false;for(k in this.rollups){if(this.rollups.hasOwnProperty(k)){if(!b[k]&&((!this.loaded[k])||this.forceMap[k])){g=this.getModule(k);o=g.supersedes||[];e=false;if(!g.rollup){continue;}l=0;for(h=0;h<o.length;h++){n=f[o[h]];if(this.loaded[o[h]]&&!this.forceMap[o[h]]){e=false;break;}else{if(b[o[h]]&&g.type==n.type){l++;e=(l>=g.rollup);if(e){break;}}}}if(e){b[k]=true;d=true;this.getRequires(g);}}}}if(!d){break;}}};},"@VERSION@",{requires:["loader-base"]});YUI.add("loader-yui3",function(a){YUI.Env[a.version].modules=YUI.Env[a.version].modules||{"align-plugin":{"requires":["node-screen","node-pluginhost"]},"anim":{"use":["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"]},"anim-base":{"requires":["base-base","node-style"]},"anim-color":{"requires":["anim-base"]},"anim-curve":{"requires":["anim-xy"]},"anim-easing":{"requires":["anim-base"]},"anim-node-plugin":{"requires":["node-pluginhost","anim-base"]},"anim-scroll":{"requires":["anim-base"]},"anim-xy":{"requires":["anim-base","node-screen"]},"app":{"use":["model","model-list","router","view"]},"array-extras":{"requires":["yui-base"]},"array-invoke":{"requires":["yui-base"]},"arraylist":{"requires":["yui-base"]},"arraylist-add":{"requires":["arraylist"]},"arraylist-filter":{"requires":["arraylist"]},"arraysort":{"requires":["yui-base"]},"async-queue":{"requires":["event-custom"]},"attribute":{"use":["attribute-base","attribute-complex"]},"attribute-base":{"requires":["event-custom"]},"attribute-complex":{"requires":["attribute-base"]},"autocomplete":{"use":["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"]},"autocomplete-base":{"optional":["autocomplete-sources"],"requires":["array-extras","base-build","escape","event-valuechange","node-base"]},"autocomplete-filters":{"requires":["array-extras","text-wordbreak"]},"autocomplete-filters-accentfold":{"requires":["array-extras","text-accentfold","text-wordbreak"]},"autocomplete-highlighters":{"requires":["array-extras","highlight-base"]},"autocomplete-highlighters-accentfold":{"requires":["array-extras","highlight-accentfold"]},"autocomplete-list":{"after":["autocomplete-sources"],"lang":["en"],"requires":["autocomplete-base","event-resize","node-screen","selector-css3","shim-plugin","widget","widget-position","widget-position-align"],"skinnable":true},"autocomplete-list-keys":{"condition":{"name":"autocomplete-list-keys","test":function(b){return !(b.UA.ios||b.UA.android);
+},"trigger":"autocomplete-list"},"requires":["autocomplete-list","base-build"]},"autocomplete-plugin":{"requires":["autocomplete-list","node-pluginhost"]},"autocomplete-sources":{"optional":["io-base","json-parse","jsonp","yql"],"requires":["autocomplete-base"]},"base":{"use":["base-base","base-pluginhost","base-build"]},"base-base":{"after":["attribute-complex"],"requires":["attribute-base"]},"base-build":{"requires":["base-base"]},"base-pluginhost":{"requires":["base-base","pluginhost"]},"cache":{"use":["cache-base","cache-offline","cache-plugin"]},"cache-base":{"requires":["base"]},"cache-offline":{"requires":["cache-base","json"]},"cache-plugin":{"requires":["plugin","cache-base"]},"calendar":{"lang":["en","ja","ru"],"requires":["calendar-base","calendarnavigator"],"skinnable":true},"calendar-base":{"lang":["en","ja","ru"],"requires":["widget","substitute","datatype-date","datatype-date-math","cssgrids"],"skinnable":true},"calendarnavigator":{"requires":["plugin","classnamemanager","datatype-date","node","substitute"],"skinnable":true},"charts":{"requires":["dom","datatype-number","datatype-date","event-custom","event-mouseenter","widget","widget-position","widget-stack","graphics"]},"classnamemanager":{"requires":["yui-base"]},"clickable-rail":{"requires":["slider-base"]},"collection":{"use":["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"]},"console":{"lang":["en","es","ja"],"requires":["yui-log","widget","substitute"],"skinnable":true},"console-filters":{"requires":["plugin","console"],"skinnable":true},"controller":{"use":["router"]},"cookie":{"requires":["yui-base"]},"createlink-base":{"requires":["editor-base"]},"cssbase":{"after":["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],"type":"css"},"cssbase-context":{"after":["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],"type":"css"},"cssfonts":{"type":"css"},"cssfonts-context":{"type":"css"},"cssgrids":{"optional":["cssreset","cssfonts"],"type":"css"},"cssreset":{"type":"css"},"cssreset-context":{"type":"css"},"dataschema":{"use":["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"]},"dataschema-array":{"requires":["dataschema-base"]},"dataschema-base":{"requires":["base"]},"dataschema-json":{"requires":["dataschema-base","json"]},"dataschema-text":{"requires":["dataschema-base"]},"dataschema-xml":{"requires":["dataschema-base"]},"datasource":{"use":["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"]},"datasource-arrayschema":{"requires":["datasource-local","plugin","dataschema-array"]},"datasource-cache":{"requires":["datasource-local","plugin","cache-base"]},"datasource-function":{"requires":["datasource-local"]},"datasource-get":{"requires":["datasource-local","get"]},"datasource-io":{"requires":["datasource-local","io-base"]},"datasource-jsonschema":{"requires":["datasource-local","plugin","dataschema-json"]},"datasource-local":{"requires":["base"]},"datasource-polling":{"requires":["datasource-local"]},"datasource-textschema":{"requires":["datasource-local","plugin","dataschema-text"]},"datasource-xmlschema":{"requires":["datasource-local","plugin","dataschema-xml"]},"datatable":{"use":["datatable-base","datatable-datasource","datatable-sort","datatable-scroll"]},"datatable-base":{"requires":["recordset-base","widget","substitute","event-mouseenter"],"skinnable":true},"datatable-datasource":{"requires":["datatable-base","plugin","datasource-local"]},"datatable-scroll":{"requires":["datatable-base","plugin"]},"datatable-sort":{"lang":["en"],"requires":["datatable-base","plugin","recordset-sort"]},"datatype":{"use":["datatype-number","datatype-date","datatype-xml"]},"datatype-date":{"supersedes":["datatype-date-format"],"use":["datatype-date-parse","datatype-date-format"]},"datatype-date-format":{"lang":["ar","ar-JO","ca","ca-ES","da","da-DK","de","de-AT","de-DE","el","el-GR","en","en-AU","en-CA","en-GB","en-IE","en-IN","en-JO","en-MY","en-NZ","en-PH","en-SG","en-US","es","es-AR","es-BO","es-CL","es-CO","es-EC","es-ES","es-MX","es-PE","es-PY","es-US","es-UY","es-VE","fi","fi-FI","fr","fr-BE","fr-CA","fr-FR","hi","hi-IN","id","id-ID","it","it-IT","ja","ja-JP","ko","ko-KR","ms","ms-MY","nb","nb-NO","nl","nl-BE","nl-NL","pl","pl-PL","pt","pt-BR","ro","ro-RO","ru","ru-RU","sv","sv-SE","th","th-TH","tr","tr-TR","vi","vi-VN","zh-Hans","zh-Hans-CN","zh-Hant","zh-Hant-HK","zh-Hant-TW"]},"datatype-date-math":{"requires":["yui-base"]},"datatype-date-parse":{},"datatype-number":{"use":["datatype-number-parse","datatype-number-format"]},"datatype-number-format":{},"datatype-number-parse":{},"datatype-xml":{"use":["datatype-xml-parse","datatype-xml-format"]},"datatype-xml-format":{},"datatype-xml-parse":{},"dd":{"use":["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"]},"dd-constrain":{"requires":["dd-drag"]},"dd-ddm":{"requires":["dd-ddm-base","event-resize"]},"dd-ddm-base":{"requires":["node","base","yui-throttle","classnamemanager"]},"dd-ddm-drop":{"requires":["dd-ddm"]},"dd-delegate":{"requires":["dd-drag","dd-drop-plugin","event-mouseenter"]},"dd-drag":{"requires":["dd-ddm-base"]},"dd-drop":{"requires":["dd-drag","dd-ddm-drop"]},"dd-drop-plugin":{"requires":["dd-drop"]},"dd-gestures":{"condition":{"name":"dd-gestures","test":function(b){return(b.config.win&&("ontouchstart" in b.config.win&&!b.UA.chrome));},"trigger":"dd-drag"},"requires":["dd-drag","event-synthetic","event-gestures"]},"dd-plugin":{"optional":["dd-constrain","dd-proxy"],"requires":["dd-drag"]},"dd-proxy":{"requires":["dd-drag"]},"dd-scroll":{"requires":["dd-drag"]},"dial":{"lang":["en","es"],"requires":["widget","dd-drag","substitute","event-mouseenter","event-move","event-key","transition","intl"],"skinnable":true},"dom":{"use":["dom-base","dom-screen","dom-style","selector-native","selector"]},"dom-base":{"requires":["dom-core"]},"dom-core":{"requires":["oop","features"]},"dom-deprecated":{"requires":["dom-base"]},"dom-screen":{"requires":["dom-base","dom-style"]},"dom-style":{"requires":["dom-base"]},"dom-style-ie":{"condition":{"name":"dom-style-ie","test":function(h){var f=h.Features.test,g=h.Features.add,d=h.config.win,e=h.config.doc,b="documentElement",c=false;
+g("style","computedStyle",{test:function(){return d&&"getComputedStyle" in d;}});g("style","opacity",{test:function(){return e&&"opacity" in e[b].style;}});c=(!f("style","opacity")&&!f("style","computedStyle"));return c;},"trigger":"dom-style"},"requires":["dom-style"]},"dump":{"requires":["yui-base"]},"editor":{"use":["frame","selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"]},"editor-base":{"requires":["base","frame","node","exec-command","selection"]},"editor-bidi":{"requires":["editor-base"]},"editor-br":{"requires":["editor-base"]},"editor-lists":{"requires":["editor-base"]},"editor-para":{"requires":["editor-base"]},"editor-tab":{"requires":["editor-base"]},"escape":{"requires":["yui-base"]},"event":{"after":["node-base"],"use":["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside"]},"event-base":{"after":["node-base"],"requires":["event-custom-base"]},"event-base-ie":{"after":["event-base"],"condition":{"name":"event-base-ie","test":function(c){var b=c.config.doc&&c.config.doc.implementation;return(b&&(!b.hasFeature("Events","2.0")));},"trigger":"node-base"},"requires":["node-base"]},"event-custom":{"use":["event-custom-base","event-custom-complex"]},"event-custom-base":{"requires":["oop"]},"event-custom-complex":{"requires":["event-custom-base"]},"event-delegate":{"requires":["node-base"]},"event-flick":{"requires":["node-base","event-touch","event-synthetic"]},"event-focus":{"requires":["event-synthetic"]},"event-gestures":{"use":["event-flick","event-move"]},"event-hover":{"requires":["event-mouseenter"]},"event-key":{"requires":["event-synthetic"]},"event-mouseenter":{"requires":["event-synthetic"]},"event-mousewheel":{"requires":["node-base"]},"event-move":{"requires":["node-base","event-touch","event-synthetic"]},"event-outside":{"requires":["event-synthetic"]},"event-resize":{"requires":["node-base","event-synthetic"]},"event-simulate":{"requires":["event-base"]},"event-synthetic":{"requires":["node-base","event-custom-complex"]},"event-touch":{"requires":["node-base"]},"event-valuechange":{"requires":["event-focus","event-synthetic"]},"exec-command":{"requires":["frame"]},"features":{"requires":["yui-base"]},"frame":{"requires":["base","node","selector-css3","substitute","yui-throttle"]},"get":{"requires":["yui-base"]},"graphics":{"requires":["node","event-custom","pluginhost"]},"graphics-canvas":{"condition":{"name":"graphics-canvas","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(b&&b.getContext&&b.getContext("2d")));},"trigger":"graphics"},"requires":["graphics"]},"graphics-canvas-default":{"condition":{"name":"graphics-canvas-default","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(b&&b.getContext&&b.getContext("2d")));},"trigger":"graphics"}},"graphics-svg":{"condition":{"name":"graphics-svg","test":function(c){var b=c.config.doc;return(b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));},"trigger":"graphics"},"requires":["graphics"]},"graphics-svg-default":{"condition":{"name":"graphics-svg-default","test":function(c){var b=c.config.doc;return(b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));},"trigger":"graphics"}},"graphics-vml":{"condition":{"name":"graphics-vml","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!b||!b.getContext||!b.getContext("2d")));},"trigger":"graphics"},"requires":["graphics"]},"graphics-vml-default":{"condition":{"name":"graphics-vml-default","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!b||!b.getContext||!b.getContext("2d")));},"trigger":"graphics"}},"handlebars":{"use":["handlebars-compiler"]},"handlebars-base":{"requires":["escape"]},"handlebars-compiler":{"requires":["handlebars-base"]},"highlight":{"use":["highlight-base","highlight-accentfold"]},"highlight-accentfold":{"requires":["highlight-base","text-accentfold"]},"highlight-base":{"requires":["array-extras","classnamemanager","escape","text-wordbreak"]},"history":{"use":["history-base","history-hash","history-hash-ie","history-html5"]},"history-base":{"requires":["event-custom-complex"]},"history-hash":{"after":["history-html5"],"requires":["event-synthetic","history-base","yui-later"]},"history-hash-ie":{"condition":{"name":"history-hash-ie","test":function(c){var b=c.config.doc&&c.config.doc.documentMode;return c.UA.ie&&(!("onhashchange" in c.config.win)||!b||b<8);},"trigger":"history-hash"},"requires":["history-hash","node-base"]},"history-html5":{"optional":["json"],"requires":["event-base","history-base","node-base"]},"imageloader":{"requires":["base-base","node-style","node-screen"]},"intl":{"requires":["intl-base","event-custom"]},"intl-base":{"requires":["yui-base"]},"io":{"use":["io-base","io-xdr","io-form","io-upload-iframe","io-queue"]},"io-base":{"requires":["event-custom-base","querystring-stringify-simple"]},"io-form":{"requires":["io-base","node-base"]},"io-queue":{"requires":["io-base","queue-promote"]},"io-upload-iframe":{"requires":["io-base","node-base"]},"io-xdr":{"requires":["io-base","datatype-xml-parse"]},"json":{"use":["json-parse","json-stringify"]},"json-parse":{"requires":["yui-base"]},"json-stringify":{"requires":["yui-base"]},"jsonp":{"requires":["get","oop"]},"jsonp-url":{"requires":["jsonp"]},"loader":{"use":["loader-base","loader-rollup","loader-yui3"]},"loader-base":{"requires":["get"]},"loader-rollup":{"requires":["loader-base"]},"loader-yui3":{"requires":["loader-base"]},"model":{"requires":["base-build","escape","json-parse"]},"model-list":{"requires":["array-extras","array-invoke","arraylist","base-build","escape","json-parse","model"]},"node":{"use":["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"]},"node-base":{"requires":["event-base","node-core","dom-base"]},"node-core":{"requires":["dom-core","selector"]},"node-deprecated":{"requires":["node-base"]},"node-event-delegate":{"requires":["node-base","event-delegate"]},"node-event-html5":{"requires":["node-base"]},"node-event-simulate":{"requires":["node-base","event-simulate"]},"node-flick":{"requires":["classnamemanager","transition","event-flick","plugin"],"skinnable":true},"node-focusmanager":{"requires":["attribute","node","plugin","node-event-simulate","event-key","event-focus"]},"node-load":{"requires":["node-base","io-base"]},"node-menunav":{"requires":["node","classnamemanager","plugin","node-focusmanager"],"skinnable":true},"node-pluginhost":{"requires":["node-base","pluginhost"]},"node-screen":{"requires":["dom-screen","node-base"]},"node-style":{"requires":["dom-style","node-base"]},"oop":{"requires":["yui-base"]},"overlay":{"requires":["widget","widget-stdmod","widget-position","widget-position-align","widget-stack","widget-position-constrain"],"skinnable":true},"panel":{"requires":["widget","widget-stdmod","widget-position","widget-position-align","widget-stack","widget-position-constrain","widget-modality","widget-autohide","widget-buttons"],"skinnable":true},"parallel":{"requires":["yui-base"]},"pjax":{"requires":["pjax-base","io-base"]},"pjax-base":{"requires":["classnamemanager","node-event-delegate","router"]},"pjax-plugin":{"requires":["node-pluginhost","pjax","plugin"]},"plugin":{"requires":["base-base"]},"pluginhost":{"use":["pluginhost-base","pluginhost-config"]},"pluginhost-base":{"requires":["yui-base"]},"pluginhost-config":{"requires":["pluginhost-base"]},"profiler":{"requires":["yui-base"]},"querystring":{"use":["querystring-parse","querystring-stringify"]},"querystring-parse":{"requires":["yui-base","array-extras"]},"querystring-parse-simple":{"requires":["yui-base"]},"querystring-stringify":{"requires":["yui-base"]},"querystring-stringify-simple":{"requires":["yui-base"]},"queue-promote":{"requires":["yui-base"]},"range-slider":{"requires":["slider-base","slider-value-range","clickable-rail"]},"recordset":{"use":["recordset-base","recordset-sort","recordset-filter","recordset-indexer"]},"recordset-base":{"requires":["base","arraylist"]},"recordset-filter":{"requires":["recordset-base","array-extras","plugin"]},"recordset-indexer":{"requires":["recordset-base","plugin"]},"recordset-sort":{"requires":["arraysort","recordset-base","plugin"]},"resize":{"use":["resize-base","resize-proxy","resize-constrain"]},"resize-base":{"requires":["base","widget","substitute","event","oop","dd-drag","dd-delegate","dd-drop"],"skinnable":true},"resize-constrain":{"requires":["plugin","resize-base"]},"resize-plugin":{"optional":["resize-constrain"],"requires":["resize-base","plugin"]},"resize-proxy":{"requires":["plugin","resize-base"]},"rls":{"requires":["get","features"]},"router":{"optional":["querystring-parse"],"requires":["array-extras","base-build","history"]},"scrollview":{"requires":["scrollview-base","scrollview-scrollbars"]},"scrollview-base":{"requires":["widget","event-gestures","transition"],"skinnable":true},"scrollview-base-ie":{"condition":{"name":"scrollview-base-ie","trigger":"scrollview-base","ua":"ie"},"requires":["scrollview-base"]},"scrollview-list":{"requires":["plugin","classnamemanager"],"skinnable":true},"scrollview-paginator":{"requires":["plugin"]},"scrollview-scrollbars":{"requires":["classnamemanager","transition","plugin"],"skinnable":true},"selection":{"requires":["node"]},"selector":{"requires":["selector-native"]},"selector-css2":{"condition":{"name":"selector-css2","test":function(d){var c=d.config.doc,b=c&&!("querySelectorAll" in c);
return b;},"trigger":"selector"},"requires":["selector-native"]},"selector-css3":{"requires":["selector-native","selector-css2"]},"selector-native":{"requires":["dom-base"]},"shim-plugin":{"requires":["node-style","node-pluginhost"]},"slider":{"use":["slider-base","slider-value-range","clickable-rail","range-slider"]},"slider-base":{"requires":["widget","dd-constrain","substitute"],"skinnable":true},"slider-value-range":{"requires":["slider-base"]},"sortable":{"requires":["dd-delegate","dd-drop-plugin","dd-proxy"]},"sortable-scroll":{"requires":["dd-scroll","sortable"]},"stylesheet":{"requires":["yui-base"]},"substitute":{"optional":["dump"],"requires":["yui-base"]},"swf":{"requires":["event-custom","node","swfdetect","escape"]},"swfdetect":{"requires":["yui-base"]},"tabview":{"requires":["widget","widget-parent","widget-child","tabview-base","node-pluginhost","node-focusmanager"],"skinnable":true},"tabview-base":{"requires":["node-event-delegate","classnamemanager","skin-sam-tabview"]},"tabview-plugin":{"requires":["tabview-base"]},"test":{"requires":["event-simulate","event-custom","substitute","json-stringify"],"skinnable":true},"test-console":{"requires":["console-filters","test"],"skinnable":true},"text":{"use":["text-accentfold","text-wordbreak"]},"text-accentfold":{"requires":["array-extras","text-data-accentfold"]},"text-data-accentfold":{"requires":["yui-base"]},"text-data-wordbreak":{"requires":["yui-base"]},"text-wordbreak":{"requires":["array-extras","text-data-wordbreak"]},"transition":{"requires":["node-style"]},"transition-timer":{"condition":{"name":"transition-timer","test":function(e){var d=e.config.doc,c=(d)?d.documentElement:null,b=true;if(c&&c.style){b=!("MozTransition" in c.style||"WebkitTransition" in c.style);}return b;},"trigger":"transition"},"requires":["transition"]},"uploader":{"requires":["event-custom","node","base","swf"]},"view":{"requires":["base-build","node-event-delegate"]},"widget":{"use":["widget-base","widget-htmlparser","widget-uievents","widget-skin"]},"widget-anim":{"requires":["plugin","anim-base","widget"]},"widget-autohide":{"requires":["widget","event-outside","base-build","event-key"],"skinnable":false},"widget-base":{"requires":["attribute","event-focus","base-base","base-pluginhost","node-base","node-style","classnamemanager"],"skinnable":true},"widget-base-ie":{"condition":{"name":"widget-base-ie","trigger":"widget-base","ua":"ie"},"requires":["widget-base"]},"widget-buttons":{"requires":["widget","base-build","widget-stdmod"],"skinnable":true},"widget-child":{"requires":["base-build","widget"]},"widget-htmlparser":{"requires":["widget-base"]},"widget-locale":{"requires":["widget-base"]},"widget-modality":{"requires":["widget","event-outside","base-build"],"skinnable":false},"widget-parent":{"requires":["base-build","arraylist","widget"]},"widget-position":{"requires":["base-build","node-screen","widget"]},"widget-position-align":{"requires":["widget-position"]},"widget-position-constrain":{"requires":["widget-position"]},"widget-skin":{"requires":["widget-base"]},"widget-stack":{"requires":["base-build","widget"],"skinnable":true},"widget-stdmod":{"requires":["base-build","widget"]},"widget-uievents":{"requires":["widget-base","node-event-delegate"]},"yql":{"requires":["jsonp","jsonp-url"]},"yui":{},"yui-base":{},"yui-later":{"requires":["yui-base"]},"yui-log":{"requires":["yui-base"]},"yui-rls":{},"yui-throttle":{"requires":["yui-base"]}};YUI.Env[a.version].md5="7f3e2a182ac855f60af5ab295f71fefe";},"@VERSION@",{requires:["loader-base"]});YUI.add("loader",function(a){},"@VERSION@",{use:["loader-base","loader-rollup","loader-yui3"]});
View
312 build/loader/loader.js
@@ -2097,58 +2097,6 @@ Y.Loader.prototype = {
onSuccess: complete
});
}
-
-
- /*
-
- this.loadType = type;
-
- if (!type) {
-
- var self = this;
-
- this._internalCallback = function() {
-
- var f = self.onCSS, n, p, sib;
-
- // IE hack for style overrides that are not being applied
- if (this.insertBefore && Y.UA.ie) {
- n = Y.config.doc.getElementById(this.insertBefore);
- p = n.parentNode;
- sib = n.nextSibling;
- p.removeChild(n);
- if (sib) {
- p.insertBefore(n, sib);
- } else {
- p.appendChild(n);
- }
- }
-
- if (f) {
- f.call(self.context, Y);
- }
- self._internalCallback = null;
-
- self._insert(null, null, JS);
- };
-
- this._insert(null, null, CSS);
-
- return;
- }
-
- // set a flag to indicate the load has started
- this._loading = true;
-
- // flag to indicate we are done with the combo service
- // and any additional files will need to be loaded
- // individually
- this._combineComplete = {};
-
- // start the load
- this.loadNext();
- */
-
},
/**
* Once a loader operation is completely finished, process any additional queued items.
@@ -2186,269 +2134,13 @@ Y.Loader.prototype = {
* is possible to call this if using a method other than
* Y.register to determine when scripts are fully loaded
* @method loadNext
+ * @deprecated
* @param {string} mname optional the name of the module that has
* been loaded (which is usually why it is time to load the next
* one).
*/
loadNext: function(mname) {
- // It is possible that this function is executed due to something
- // else on the page loading a YUI module. Only react when we
- // are actively loading something
- if (!this._loading) {
- return;
- }
-
- var s, len, i, m, url, fn, msg, attr, group, groupName, j, frag,
- comboSource, comboSources, mods, combining, urls, comboBase,
- self = this,
- type = self.loadType,
- handleSuccess = function(o) {
- self.loadNext(o.data);
- },
- handleCombo = function(o) {
- self._combineComplete[type] = true;
- var i, len = combining.length;
-
- for (i = 0; i < len; i++) {
- self.inserted[combining[i]] = true;
- }
-
- handleSuccess(o);
- };
-
- if (self.combine && (!self._combineComplete[type])) {
-
- combining = [];
-
- self._combining = combining;
- s = self.sorted;
- len = s.length;
-
- // the default combo base
- comboBase = self.comboBase;
-
- url = comboBase;
- urls = [];
-
- comboSources = {};
-
- for (i = 0; i < len; i++) {
- comboSource = comboBase;
- m = self.getModule(s[i]);
- groupName = m && m.group;
- if (groupName) {
-
- group = self.groups[groupName];
-
- if (!group.combine) {
- m.combine = false;
- continue;
- }
- m.combine = true;
- if (group.comboBase) {
- comboSource = group.comboBase;
- }
-
- if ("root" in group && L.isValue(group.root)) {
- m.root = group.root;
- }
-
- }
-
- comboSources[comboSource] = comboSources[comboSource] || [];
- comboSources[comboSource].push(m);
- }
-
- for (j in comboSources) {
- if (comboSources.hasOwnProperty(j)) {
- url = j;
- mods = comboSources[j];
- len = mods.length;
-
- for (i = 0; i < len; i++) {
- // m = self.getModule(s[i]);
- m = mods[i];
-
- // Do not try to combine non-yui JS unless combo def
- // is found
- if (m && (m.type === type) && (m.combine || !m.ext)) {
-
- frag = ((L.isValue(m.root)) ? m.root : self.root) + m.path;
- frag = self._filter(frag, m.name);
- if ((url !== j) && (i <= (len - 1)) &&
- ((frag.length + url.length) > self.maxURLLength)) {
- //Hack until this is rewritten to use an array and not string concat:
- if (url.substr(url.length - 1, 1) === self.comboSep) {
- url = url.substr(0, (url.length - 1));
- }
- urls.push(self._filter(url));
- url = j;
- }
-
- url += frag;
- if (i < (len - 1)) {
- url += self.comboSep;
- }
-
- combining.push(m.name);
- }
-
- }
-
- if (combining.length && (url != j)) {
- //Hack until this is rewritten to use an array and not string concat:
- if (url.substr(url.length - 1, 1) === self.comboSep) {
- url = url.substr(0, (url.length - 1));
- }
- urls.push(self._filter(url));
- }
- }
- }
-
- if (combining.length) {
-
-
- // if (m.type === CSS) {
- if (type === CSS) {
- fn = Y.Get.css;
- attr = self.cssAttributes;
- } else {
- fn = Y.Get.script;
- attr = self.jsAttributes;
- }
-
- fn(urls, {
- data: self._loading,
- onSuccess: handleCombo,
- onFailure: self._onFailure,
- onTimeout: self._onTimeout,
- insertBefore: self.insertBefore,
- charset: self.charset,
- attributes: attr,
- timeout: self.timeout,
- autopurge: false,
- context: self
- });
-
- return;
-
- } else {
- self._combineComplete[type] = true;
- }
- }
-
- if (mname) {
-
- // if the module that was just loaded isn't what we were expecting,
- // continue to wait
- if (mname !== self._loading) {
- return;
- }
-
-
- // The global handler that is called when each module is loaded
- // will pass that module name to this function. Storing this
- // data to avoid loading the same module multiple times
- // centralize this in the callback
- self.inserted[mname] = true;
- // self.loaded[mname] = true;
-
- // provided = self.getProvides(mname);
- // Y.mix(self.loaded, provided);
- // Y.mix(self.inserted, provided);
-
- if (self.onProgress) {
- self.onProgress.call(self.context, {
- name: mname,
- data: self.data
- });
- }
- }
-
- s = self.sorted;
- len = s.length;
-
- for (i = 0; i < len; i = i + 1) {
- // this.inserted keeps track of what the loader has loaded.
- // move on if this item is done.
- if (s[i] in self.inserted) {
- continue;
- }
-
- // Because rollups will cause multiple load notifications
- // from Y, loadNext may be called multiple times for
- // the same module when loading a rollup. We can safely
- // skip the subsequent requests
- if (s[i] === self._loading) {
- return;
- }
-
- // log("inserting " + s[i]);
- m = self.getModule(s[i]);
-
- if (!m) {
- if (!self.skipped[s[i]]) {
- msg = 'Undefined module ' + s[i] + ' skipped';
- // self.inserted[s[i]] = true;
- self.skipped[s[i]] = true;
- }
- continue;
-
- }
-
- group = (m.group && self.groups[m.group]) || NOT_FOUND;
-
- // The load type is stored to offer the possibility to load
- // the css separately from the script.
- if (!type || type === m.type) {
- self._loading = s[i];
-
- if (m.type === CSS) {
- fn = Y.Get.css;
- attr = self.cssAttributes;
- if (m.cssAttributes) {
- attr = Y.mix(attr || {}, m.cssAttributes);
- }
- } else {
- fn = Y.Get.script;
- attr = self.jsAttributes;
- if (m.jsAttributes) {
- attr = Y.mix(attr || {}, m.jsAttributes);
- }
- }
-
- url = (m.fullpath) ? self._filter(m.fullpath, s[i]) :
- self._url(m.path, s[i], group.base || m.base);
-
- fn(url, {
- data: s[i],
- onSuccess: handleSuccess,
- insertBefore: self.insertBefore,
- charset: self.charset,
- attributes: attr,
- onFailure: self._onFailure,
- onTimeout: self._onTimeout,
- timeout: self.timeout,
- autopurge: false,
- context: self
- });
-
- return;
- }
- }
-
- // we are finished
- self._loading = null;
-
- fn = self._internalCallback;
-
- // internal callback for loading css first
- if (fn) {
- self._internalCallback = null;
- fn.call(self);
- } else {
- self._onSuccess();
- }
+ return;
},
/**
View
325 build/yui-nodejs/yui-nodejs-debug.js
@@ -6283,59 +6283,6 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
onSuccess: complete
});
}
-
-
- /*
-
- this.loadType = type;
-
- if (!type) {
-
- var self = this;
-
- // Y.log("trying to load css first");
- this._internalCallback = function() {
-
- var f = self.onCSS, n, p, sib;
-
- // IE hack for style overrides that are not being applied
- if (this.insertBefore && Y.UA.ie) {
- n = Y.config.doc.getElementById(this.insertBefore);
- p = n.parentNode;
- sib = n.nextSibling;
- p.removeChild(n);
- if (sib) {
- p.insertBefore(n, sib);
- } else {
- p.appendChild(n);
- }
- }
-
- if (f) {
- f.call(self.context, Y);
- }
- self._internalCallback = null;
-
- self._insert(null, null, JS);
- };
-
- this._insert(null, null, CSS);
-
- return;
- }
-
- // set a flag to indicate the load has started
- this._loading = true;
-
- // flag to indicate we are done with the combo service
- // and any additional files will need to be loaded
- // individually
- this._combineComplete = {};
-
- // start the load
- this.loadNext();
- */
-
},
/**
* Once a loader operation is completely finished, process any additional queued items.
@@ -6375,278 +6322,14 @@ Y.log('Undefined module: ' + mname + ', matched a pattern: ' +
* is possible to call this if using a method other than
* Y.register to determine when scripts are fully loaded
* @method loadNext
+ * @deprecated
* @param {string} mname optional the name of the module that has
* been loaded (which is usually why it is time to load the next
* one).
*/
loadNext: function(mname) {
- Y.log('loadNext was called..', 'warn', 'loader');
- // It is possible that this function is executed due to something
- // else on the page loading a YUI module. Only react when we
- // are actively loading something
- if (!this._loading) {
- return;
- }
-
- var s, len, i, m, url, fn, msg, attr, group, groupName, j, frag,
- comboSource, comboSources, mods, combining, urls, comboBase,
- self = this,
- type = self.loadType,
- handleSuccess = function(o) {
- self.loadNext(o.data);
- },
- handleCombo = function(o) {
- self._combineComplete[type] = true;
- var i, len = combining.length;
-
- for (i = 0; i < len; i++) {
- self.inserted[combining[i]] = true;
- }
-
- handleSuccess(o);
- };
-
- if (self.combine && (!self._combineComplete[type])) {
-
- combining = [];
-
- self._combining = combining;
- s = self.sorted;
- len = s.length;
-
- // the default combo base
- comboBase = self.comboBase;
-
- url = comboBase;
- urls = [];
-
- comboSources = {};
-
- for (i = 0; i < len; i++) {
- comboSource = comboBase;
- m = self.getModule(s[i]);
- groupName = m && m.group;
- if (groupName) {
-
- group = self.groups[groupName];
-
- if (!group.combine) {
- m.combine = false;
- continue;
- }
- m.combine = true;
- if (group.comboBase) {
- comboSource = group.comboBase;
- }
-
- if ("root" in group && L.isValue(group.root)) {
- m.root = group.root;
- }
-
- }
-
- comboSources[comboSource] = comboSources[comboSource] || [];
- comboSources[comboSource].push(m);
- }
-
- for (j in comboSources) {
- if (comboSources.hasOwnProperty(j)) {
- url = j;
- mods = comboSources[j];
- len = mods.length;
-
- for (i = 0; i < len; i++) {
- // m = self.getModule(s[i]);
- m = mods[i];
-
- // Do not try to combine non-yui JS unless combo def
- // is found
- if (m && (m.type === type) && (m.combine || !m.ext)) {
-
- frag = ((L.isValue(m.root)) ? m.root : self.root) + m.path;
- frag = self._filter(frag, m.name);
- if ((url !== j) && (i <= (len - 1)) &&
- ((frag.length + url.length) > self.maxURLLength)) {
- //Hack until this is rewritten to use an array and not string concat:
- if (url.substr(url.length - 1, 1) === self.comboSep) {
- url = url.substr(0, (url.length - 1));
- }
- urls.push(self._filter(url));
- url = j;
- }
-
- url += frag;
- if (i < (len - 1)) {
- url += self.comboSep;
- }
-
- combining.push(m.name);
- }
-
- }
-
- if (combining.length && (url != j)) {
- //Hack until this is rewritten to use an array and not string concat:
- if (url.substr(url.length - 1, 1) === self.comboSep) {
- url = url.substr(0, (url.length - 1));
- }
- urls.push(self._filter(url));
- }
- }
- }
-
- if (combining.length) {
-
-Y.log('Attempting to use combo: ' + combining, 'info', 'loader');
-
- // if (m.type === CSS) {
- if (type === CSS) {
- fn = Y.Get.css;
- attr = self.cssAttributes;
- } else {
- fn = Y.Get.script;
- attr = self.jsAttributes;
- }
-
- fn(urls, {
- data: self._loading,
- onSuccess: handleCombo,
- onFailure: self._onFailure,
- onTimeout: self._onTimeout,
- insertBefore: self.insertBefore,
- charset: self.charset,
- attributes: attr,
- timeout: self.timeout,
- autopurge: false,
- context: self
- });
-
- return;
-
- } else {
- self._combineComplete[type] = true;
- }
- }
-
- if (mname) {
-
- // if the module that was just loaded isn't what we were expecting,
- // continue to wait
- if (mname !== self._loading) {
- return;
- }
-
-// Y.log("loadNext executing, just loaded " + mname + ", " +
-// Y.id, "info", "loader");
-
- // The global handler that is called when each module is loaded
- // will pass that module name to this function. Storing this
- // data to avoid loading the same module multiple times
- // centralize this in the callback
- self.inserted[mname] = true;
- // self.loaded[mname] = true;
-
- // provided = self.getProvides(mname);
- // Y.mix(self.loaded, provided);
- // Y.mix(self.inserted, provided);
-
- if (self.onProgress) {
- self.onProgress.call(self.context, {
- name: mname,
- data: self.data
- });
- }
- }
-
- s = self.sorted;
- len = s.length;
-
- for (i = 0; i < len; i = i + 1) {
- // this.inserted keeps track of what the loader has loaded.
- // move on if this item is done.
- if (s[i] in self.inserted) {
- continue;
- }
-
- // Because rollups will cause multiple load notifications
- // from Y, loadNext may be called multiple times for
- // the same module when loading a rollup. We can safely
- // skip the subsequent requests
- if (s[i] === self._loading) {
- Y.log('still loading ' + s[i] + ', waiting', 'info', 'loader');
- return;
- }
-
- // log("inserting " + s[i]);
- m = self.getModule(s[i]);
-
- if (!m) {
- if (!self.skipped[s[i]]) {
- msg = 'Undefined module ' + s[i] + ' skipped';
- Y.log(msg, 'warn', 'loader');
- // self.inserted[s[i]] = true;
- self.skipped[s[i]] = true;
- }
- continue;
-
- }
-
- group = (m.group && self.groups[m.group]) || NOT_FOUND;
-
- // The load type is stored to offer the possibility to load
- // the css separately from the script.
- if (!type || type === m.type) {
- self._loading = s[i];
-Y.log('attempting to load ' + s[i] + ', ' + self.base, 'info', 'loader');
-
- if (m.type === CSS) {
- fn = Y.Get.css;
- attr = self.cssAttributes;
- if (m.cssAttributes) {
- attr = Y.mix(attr || {}, m.cssAttributes);
- }
- } else {
- fn = Y.Get.script;
- attr = self.jsAttributes;
- if (m.jsAttributes) {
- attr = Y.mix(attr || {}, m.jsAttributes);
- }
- }
-
- url = (m.fullpath) ? self._filter(m.fullpath, s[i]) :
- self._url(m.path, s[i], group.base || m.base);
-
- fn(url, {
- data: s[i],
- onSuccess: handleSuccess,
- insertBefore: self.insertBefore,
- charset: self.charset,
- attributes: attr,
- onFailure: self._onFailure,
- onTimeout: self._onTimeout,
- timeout: self.timeout,
- autopurge: false,
- context: self
- });
-
- return;
- }
- }
-
- // we are finished
- self._loading = null;
-
- fn = self._internalCallback;
-
- // internal callback for loading css first
- if (fn) {
- // Y.log('loader internal');
- self._internalCallback = null;
- fn.call(self);
- } else {
- // Y.log('loader complete');
- self._onSuccess();
- }
+ Y.log('loadNext was called..', 'error', 'loader');
+ return;
},
/**
@@ -9067,5 +8750,5 @@ YUI.Env[Y.version].md5 = '7f3e2a182ac855f60af5ab295f71fefe';
}, '@VERSION@' ,{requires:['loader-base']});
-YUI.add('yui', function(Y){}, '@VERSION@' ,{use:['yui-base','get','features','intl-base','yui-log','yui-log-nodejs','yui-later','loader-base', 'loader-rollup', 'loader-yui3' ]});
+YUI.add('yui', function(Y){}, '@VERSION@' ,{use:['yui-base','get','features','intl-base','yui-log','yui-log-nodejs','yui-later','loader-base', 'loader-rollup', 'loader-yui3']});
View
4 build/yui-nodejs/yui-nodejs-min.js
@@ -4,7 +4,7 @@ if(!W.length){return;}if(M){for(U=0;U<W.length;U++){if(M[W[U]]){T=[].concat(T,M[
},"@VERSION@");YUI.add("get",function(a){var j=require("path"),b=require("vm"),e=require("fs"),f=require("url"),h=require("http"),i=require("https");a.Get=function(){};a.config.base=j.join(__dirname,"../");a.Get.urlInfoPort=function(k){return k.port?parseInt(k.port,10):k.protocol==="http:"?80:443;};a.Get._exec=function(p,m,k){var n="(function(YUI) { "+p+";return YUI; })";var l=b.createScript(n,m);var o=l.runInThisContext(n);YUI=o(YUI);k(null);};a.Get._include=function(n,k){if(n.match(/^https?:\/\//)){var m=f.parse(n,parseQueryString=false),r=a.Get.urlInfoPort(m),l=m.pathname;if(m.search){l+=m.search;}var q=h;if(r===443||m.protocol==="https:"){q=i;}q.get({host:m.hostname,port:r,path:l},function(s){var p="";s.setEncoding("utf8");s.on("data",function(t){p+=t;});s.on("end",function(){a.Get._exec(p,n,k);});});}else{if(a.config.useSync){var o=e.readFileSync(n,"utf8");a.Get._exec(o,n,k);}else{e.readFile(n,"utf8",function(s,p){a.Get._exec(p,n,k);});}}};var d=function(l,m,k){if(a.Lang.isFunction(l.onEnd)){l.onEnd.call(a,m,k);}},g=function(k){if(a.Lang.isFunction(k.onSuccess)){k.onSuccess.call(a,k);}d(k,"success","success");},c=function(k,l){if(a.Lang.isFunction(k.onFailure)){k.onFailure.call(a,l,k);}d(k,l,"fail");};a.Get.script=function(q,m){var k=a.Array,r=k(q),o,p,n=r.length;for(p=0;p<n;p++){o=r[p];o=o.replace(/'/g,"%27");a.Get._include(o,function(l){if(!a.config){a.config={debug:true};}if(l){if(l.stack){k.each(l.stack.split("\n"),function(s){});}else{console.log(l);}}else{g(m);}});}};},"@VERSION@",{requires:["yui-base"]});YUI.add("features",function(b){var c={};b.mix(b.namespace("Features"),{tests:c,add:function(d,e,f){c[d]=c[d]||{};c[d][e]=f;},all:function(e,f){var g=c[e],d=[];if(g){b.Object.each(g,function(i,h){d.push(h+":"+(b.Features.test(e,h,f)?1:0));});}return(d.length)?d.join(";"):"";},test:function(e,g,f){f=f||[];var d,i,k,j=c[e],h=j&&j[g];if(!h){}else{d=h.result;if(b.Lang.isUndefined(d)){i=h.ua;if(i){d=(b.UA[i]);}k=h.test;if(k&&((!i)||d)){d=k.apply(b,f);}h.result=d;}}return d;}});var a=b.Features.add;a("load","0",{"name":"graphics-canvas-default","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(d&&d.getContext&&d.getContext("2d")));},"trigger":"graphics"});a("load","1",{"name":"autocomplete-list-keys","test":function(d){return !(d.UA.ios||d.UA.android);},"trigger":"autocomplete-list"});a("load","2",{"name":"graphics-svg","test":function(e){var d=e.config.doc;return(d&&d.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));},"trigger":"graphics"});a("load","3",{"name":"history-hash-ie","test":function(e){var d=e.config.doc&&e.config.doc.documentMode;return e.UA.ie&&(!("onhashchange" in e.config.win)||!d||d<8);},"trigger":"history-hash"});a("load","4",{"name":"graphics-vml-default","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!d||!d.getContext||!d.getContext("2d")));},"trigger":"graphics"});a("load","5",{"name":"graphics-svg-default","test":function(e){var d=e.config.doc;return(d&&d.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));},"trigger":"graphics"});a("load","6",{"name":"widget-base-ie","trigger":"widget-base","ua":"ie"});a("load","7",{"name":"transition-timer","test":function(g){var f=g.config.doc,e=(f)?f.documentElement:null,d=true;if(e&&e.style){d=!("MozTransition" in e.style||"WebkitTransition" in e.style);}return d;},"trigger":"transition"});a("load","8",{"name":"dom-style-ie","test":function(j){var h=j.Features.test,i=j.Features.add,f=j.config.win,g=j.config.doc,d="documentElement",e=false;i("style","computedStyle",{test:function(){return f&&"getComputedStyle" in f;}});i("style","opacity",{test:function(){return g&&"opacity" in g[d].style;}});e=(!h("style","opacity")&&!h("style","computedStyle"));return e;},"trigger":"dom-style"});a("load","9",{"name":"selector-css2","test":function(f){var e=f.config.doc,d=e&&!("querySelectorAll" in e);return d;},"trigger":"selector"});a("load","10",{"name":"event-base-ie","test":function(e){var d=e.config.doc&&e.config.doc.implementation;return(d&&(!d.hasFeature("Events","2.0")));},"trigger":"node-base"});a("load","11",{"name":"dd-gestures","test":function(d){return(d.config.win&&("ontouchstart" in d.config.win&&!d.UA.chrome));},"trigger":"dd-drag"});a("load","12",{"name":"scrollview-base-ie","trigger":"scrollview-base","ua":"ie"});a("load","13",{"name":"graphics-canvas","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(d&&d.getContext&&d.getContext("2d")));},"trigger":"graphics"});a("load","14",{"name":"graphics-vml","test":function(f){var e=f.config.doc,d=e&&e.createElement("canvas");return(e&&!e.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!d||!d.getContext||!d.getContext("2d")));},"trigger":"graphics"});},"@VERSION@",{requires:["yui-base"]});YUI.add("intl-base",function(b){var a=/[, ]/;b.mix(b.namespace("Intl"),{lookupBestLang:function(g,h){var f,j,c,e;function d(l){var k;for(k=0;k<h.length;k+=1){if(l.toLowerCase()===h[k].toLowerCase()){return h[k];}}}if(b.Lang.isString(g)){g=g.split(a);}for(f=0;f<g.length;f+=1){j=g[f];if(!j||j==="*"){continue;}while(j.length>0){c=d(j);if(c){return c;}else{e=j.lastIndexOf("-");if(e>=0){j=j.substring(0,e);if(e>=2&&j.charAt(e-2)==="-"){j=j.substring(0,e-2);}}else{break;}}}}return"";}});},"@VERSION@",{requires:["yui-base"]});YUI.add("yui-log",function(d){var c=d,e="yui:log",a="undefined",b={debug:1,info:1,warn:1,error:1};c.log=function(j,s,g,q){var l,p,n,k,o,i=c,r=i.config,h=(i.fire)?i:YUI.Env.globalEvents;if(r.debug){if(g){p=r.logExclude;n=r.logInclude;if(n&&!(g in n)){l=1;}else{if(n&&(g in n)){l=!n[g];}else{if(p&&(g in p)){l=p[g];}}}}if(!l){if(r.useBrowserConsole){k=(g)?g+": "+j:j;
if(i.Lang.isFunction(r.logFn)){r.logFn.call(i,j,s,g);}else{if(typeof console!=a&&console.log){o=(s&&console[s]&&(s in b))?s:"log";console[o](k);}else{if(typeof opera!=a){opera.postError(k);}}}}if(h&&!q){if(h==i&&(!h.getEvent(e))){h.publish(e,{broadcast:2});}h.fire(e,{msg:j,cat:s,src:g});}}}return i;};c.message=function(){return c.log.apply(c,arguments);};},"@VERSION@",{requires:["yui-base"]});YUI.add("yui-log-nodejs",function(e){var c=require(process.binding("natives").util?"util":"sys"),f=false;try{var b=require("stdio");f=b.isStderrATTY();}catch(a){f=true;}e.config.useColor=f;e.consoleColor=function(h,g){if(!this.config.useColor){return h;}if(!g){g="32";}return"\033["+g+"m"+h+"\033[0m";};var d=function(l,j,g){var n="";if(this.id){n="["+this.id+"]:";}j=j||"info";g=(g)?this.consoleColor(" ("+g.toLowerCase()+"):",35):"";if(l===null){l="null";}if((typeof l==="object")||l instanceof Array){try{if(l.tagName||l._yuid||l._query){l=l.toString();}else{l=c.inspect(l);}}catch(k){}}var i="37;40",h=((l)?"":31);j=j+"";switch(j.toLowerCase()){case"error":i=h=31;break;case"warn":i=33;break;case"debug":i=34;break;}if(typeof l==="string"){if(l&&l.indexOf("\n")!==-1){l="\n"+l;}}c.error(this.consoleColor(j.toLowerCase()+":",i)+g+" "+this.consoleColor(l,h));};if(!e.config.logFn){e.config.logFn=d;}},"@VERSION@",{requires:["yui-log"]});YUI.add("yui-later",function(b){var a=[];b.later=function(j,f,k,g,h){j=j||0;g=(!b.Lang.isUndefined(g))?b.Array(g):a;f=f||b.config.win||b;var i=false,c=(f&&b.Lang.isString(k))?f[k]:k,d=function(){if(!i){if(!c.apply){c(g[0],g[1],g[2],g[3]);}else{c.apply(f,g||a);}}},e=(h)?setInterval(d,j):setTimeout(d,j);return{id:e,interval:h,cancel:function(){i=true;if(this.interval){clearInterval(e);}else{clearTimeout(e);}}};};b.Lang.later=b.later;},"@VERSION@",{requires:["yui-base"]});YUI.add("loader-base",function(d){if(!YUI.Env[d.version]){(function(){var I=d.version,E="/build/",F=I+E,D=d.Env.base,A="${loader.gallery}",C="2in3",B="${loader.tnt}",z="${loader.yui2}",G=D+"combo?",H={version:I,root:F,base:d.Env.base,comboBase:G,skin:{defaultSkin:"sam",base:"assets/skins/",path:"skin.css",after:["cssreset","cssfonts","cssgrids","cssbase","cssreset-context","cssfonts-context"]},groups:{},patterns:{}},y=H.groups,x=function(K,L){var J=C+"."+(K||B)+"/"+(L||z)+E;y.yui2.base=D+J;y.yui2.root=J;},w=function(J){var K=(J||A)+E;y.gallery.base=D+K;y.gallery.root=K;};y[I]={};y.gallery={ext:false,combine:true,comboBase:G,update:w,patterns:{"gallery-":{},"lang/gallery-":{},"gallerycss-":{type:"css"}}};y.yui2={combine:true,ext:false,comboBase:G,update:x,patterns:{"yui2-":{configFn:function(J){if(/-skin|reset|fonts|grids|base/.test(J.name)){J.type="css";J.path=J.path.replace(/\.js/,".css");J.path=J.path.replace(/\/yui2-skin/,"/assets/skins/sam/yui2-skin");}}}}};w();x();YUI.Env[I]=H;}());}var f={},c=[],m=2048,a=YUI.Env,p=a._loaded,q="css",k="js",v="intl",s=d.version,u="",e=d.Object,r=e.each,j=d.Array,h=a._loaderQueue,t=a[s],b="skin-",i=d.Lang,n=a.mods,l,o,g=function(x,y,z,w){var A=x+"/"+y;if(!w){A+="-min";}A+="."+(z||q);return A;};d.Env.meta=t;d.Loader=function(A){var z=t.modules,x=this;l=t.md5;x.context=d;x.base=d.Env.meta.base+d.Env.meta.root;x.comboBase=d.Env.meta.comboBase;x.combine=A.base&&(A.base.indexOf(x.comboBase.substr(0,20))>-1);x.comboSep="&";x.maxURLLength=m;x.root=d.Env.meta.root;x.timeout=0;x.forceMap={};x.allowRollup=false;x.filters={};x.required={};x.patterns={};x.moduleInfo={};x.groups=d.merge(d.Env.meta.groups);x.skin=d.merge(d.Env.meta.skin);x.conditions={};x.config=A;x._internal=true;o=a._renderedMods;if(o){r(o,function y(C,B){x.moduleInfo[B]=C;});o=a._conditions;r(o,function w(C,B){x.conditions[B]=C;});}else{r(z,x.addModule,x);}if(!a._renderedMods){a._renderedMods=x.moduleInfo;a._conditions=x.conditions;}x._inspectPage();x._internal=false;x._config(A);x.forceMap=(x.force)?d.Array.hash(x.force):{};x.testresults=null;if(d.config.tests){x.testresults=d.config.tests;}x.sorted=[];x.loaded=p[s];x.dirty=true;x.inserted={};x.skipped={};x.tested={};};d.Loader.prototype={FILTER_DEFS:{RAW:{"searchExp":"-min\\.js","replaceStr":".js"},DEBUG:{"searchExp":"-min\\.js","replaceStr":"-debug.js"}},_inspectPage:function(){r(n,function(y,x){if(y.details){var w=this.moduleInfo[x],A=y.details.requires,z=w&&w.requires;if(w){if(!w._inspected&&A&&z.length!=A.length){delete w.expanded;}}else{w=this.addModule(y.details,x);}w._inspected=true;}},this);},_requires:function(C,B){var y,A,D,E,w=this.moduleInfo,x=w[C],z=w[B];if(!x||!z){return false;}A=x.expanded_map;D=x.after_map;if(D&&(B in D)){return true;}D=z.after_map;if(D&&(C in D)){return false;}E=w[B]&&w[B].supersedes;if(E){for(y=0;y<E.length;y++){if(this._requires(C,E[y])){return true;}}}E=w[C]&&w[C].supersedes;if(E){for(y=0;y<E.length;y++){if(this._requires(B,E[y])){return false;}}}if(A&&(B in A)){return true;}if(x.ext&&x.type==q&&!z.ext&&z.type==q){return true;}return false;},_config:function(C){var y,x,B,z,A,D,w=this;if(C){for(y in C){if(C.hasOwnProperty(y)){B=C[y];if(y=="require"){w.require(B);}else{if(y=="skin"){d.mix(w.skin,C[y],true);}else{if(y=="groups"){for(x in B){if(B.hasOwnProperty(x)){D=x;A=B[x];w.addGroup(A,D);}}}else{if(y=="modules"){r(B,w.addModule,w);}else{if(y=="gallery"){this.groups.gallery.update(B);}else{if(y=="yui2"||y=="2in3"){this.groups.yui2.update(C["2in3"],C.yui2);}else{if(y=="maxURLLength"){w[y]=Math.min(m,B);}else{w[y]=B;}}}}}}}}}}z=w.filter;if(i.isString(z)){z=z.toUpperCase();w.filterName=z;w.filter=w.FILTER_DEFS[z];if(z=="DEBUG"){w.require("yui-log","dump");}}if(w.lang){w.require("intl-base","intl");}},formatSkin:function(y,w){var x=b+y;if(w){x=x+"-"+w;}return x;},_addSkin:function(F,D,E){var C,B,x,w,A=this.moduleInfo,y=this.skin,z=A[D]&&A[D].ext;if(D){x=this.formatSkin(F,D);if(!A[x]){C=A[D];B=C.pkg||D;w={name:x,group:C.group,type:"css",after:y.after,path:(E||B)+"/"+y.base+F+"/"+D+".css",ext:z};if(C.base){w.base=C.base;}if(C.configFn){w.configFn=C.configFn;}this.addModule(w,x);}}return x;},addGroup:function(z,x){var y=z.modules,w=this;x=x||z.name;
z.name=x;w.groups[x]=z;if(z.patterns){r(z.patterns,function(B,A){B.group=x;w.patterns[A]=B;});}if(y){r(y,function(B,A){B.group=x;w.addModule(B,A);},w);}},addModule:function(M,T){T=T||M.name;if(this.moduleInfo[T]&&this.moduleInfo[T].temp){M=d.merge(this.moduleInfo[T],M);}M.name=T;if(!M||!M.name){return null;}if(!M.type){M.type=k;}if(!M.path&&!M.fullpath){M.path=g(T,T,M.type);}M.supersedes=M.supersedes||M.use;M.ext=("ext" in M)?M.ext:(this._internal)?false:true;M.requires=this.filterRequires(M.requires)||[];var Q=M.submodules,P,N,H,w,I,y,L,x,O,J,F,C,A,z,S,R,G,B,D,E=this.conditions,K;this.moduleInfo[T]=M;if(!M.langPack&&M.lang){J=j(M.lang);for(O=0;O<J.length;O++){S=J[O];F=this.getLangPackName(S,T);y=this.moduleInfo[F];if(!y){y=this._addLangPack(S,M,F);}}}if(Q){w=M.supersedes||[];N=0;for(P in Q){if(Q.hasOwnProperty(P)){I=Q[P];I.path=I.path||g(T,P,M.type);I.pkg=T;I.group=M.group;if(I.supersedes){w=w.concat(I.supersedes);}y=this.addModule(I,P);w.push(P);if(y.skinnable){M.skinnable=true;G=this.skin.overrides;if(G&&G[P]){for(O=0;O<G[P].length;O++){B=this._addSkin(G[P][O],P,T);w.push(B);}}B=this._addSkin(this.skin.defaultSkin,P,T);w.push(B);}if(I.lang&&I.lang.length){J=j(I.lang);for(O=0;O<J.length;O++){S=J[O];F=this.getLangPackName(S,T);C=this.getLangPackName(S,P);y=this.moduleInfo[F];if(!y){y=this._addLangPack(S,M,F);}A=A||j.hash(y.supersedes);if(!(C in A)){y.supersedes.push(C);}M.lang=M.lang||[];z=z||j.hash(M.lang);if(!(S in z)){M.lang.push(S);}F=this.getLangPackName(u,T);C=this.getLangPackName(u,P);y=this.moduleInfo[F];if(!y){y=this._addLangPack(S,M,F);}if(!(C in A)){y.supersedes.push(C);}}}N++;}}M.supersedes=j.dedupe(w);if(this.allowRollup){M.rollup=(N<4)?N:Math.min(N-1,4);}}L=M.plugins;if(L){for(P in L){if(L.hasOwnProperty(P)){x=L[P];x.pkg=T;x.path=x.path||g(T,P,M.type);x.requires=x.requires||[];x.group=M.group;this.addModule(x,P);if(M.skinnable){this._addSkin(this.skin.defaultSkin,P,T);}}}}if(M.condition){H=M.condition.trigger;if(YUI.Env.aliases[H]){H=YUI.Env.aliases[H];}if(!d.Lang.isArray(H)){H=[H];}for(P=0;P<H.length;P++){K=H[P];D=M.condition.when;E[K]=E[K]||{};E[K][T]=M.condition;if(D&&D!="after"){if(D=="instead"){M.supersedes=M.supersedes||[];M.supersedes.push(K);}else{}}else{M.after=M.after||[];M.after.push(K);}}}if(M.supersedes){M.supersedes=this.filterRequires(M.supersedes);}if(M.after){M.after=this.filterRequires(M.after);M.after_map=j.hash(M.after);}if(M.configFn){R=M.configFn(M);if(R===false){delete this.moduleInfo[T];M=null;}}return M;},require:function(x){var w=(typeof x==="string")?j(arguments):x;this.dirty=true;this.required=d.merge(this.required,j.hash(this.filterRequires(w)));this._explodeRollups();},_explodeRollups:function(){var x=this,w,y=x.required;if(!x.allowRollup){r(y,function(z,A){w=x.getModule(A);if(w&&w.use){j.each(w.use,function(B){w=x.getModule(B);if(w&&w.use){j.each(w.use,function(C){y[C]=true;});}else{y[B]=true;}});}});x.required=y;}},filterRequires:function(z){if(z){if(!d.Lang.isArray(z)){z=[z];}z=d.Array(z);var B=[],y,x,A,w;for(y=0;y<z.length;y++){x=this.getModule(z[y]);if(x&&x.use){for(A=0;A<x.use.length;A++){w=this.getModule(x.use[A]);if(w&&w.use){B=d.Array.dedupe([].concat(B,this.filterRequires(w.use)));}else{B.push(x.use[A]);}}}else{B.push(z[y]);}}z=B;}return z;},getRequires:function(R){if(!R){return c;}if(R._parsed){return R.expanded||c;}var L,H,K,D,C,T,A=this.testresults,U=R.name,B,S=n[U]&&n[U].details,N,I,w,E,O,F,z,P,Q,y,G=R.lang||R.intl,M=this.moduleInfo,J=d.Features&&d.Features.tests.load,x;if(R.temp&&S){O=R;R=this.addModule(S,U);R.group=O.group;R.pkg=O.pkg;delete R.expanded;}if(R.expanded&&(!this.lang||R.langCache===this.lang)){return R.expanded;}N=[];x={};E=this.filterRequires(R.requires);if(R.lang){N.unshift("intl");E.unshift("intl");G=true;}F=this.filterRequires(R.optional);R._parsed=true;R.langCache=this.lang;for(L=0;L<E.length;L++){if(!x[E[L]]){N.push(E[L]);x[E[L]]=true;H=this.getModule(E[L]);if(H){D=this.getRequires(H);G=G||(H.expanded_map&&(v in H.expanded_map));for(K=0;K<D.length;K++){N.push(D[K]);}}}}E=this.filterRequires(R.supersedes);if(E){for(L=0;L<E.length;L++){if(!x[E[L]]){if(R.submodules){N.push(E[L]);}x[E[L]]=true;H=this.getModule(E[L]);if(H){D=this.getRequires(H);G=G||(H.expanded_map&&(v in H.expanded_map));for(K=0;K<D.length;K++){N.push(D[K]);}}}}}if(F&&this.loadOptional){for(L=0;L<F.length;L++){if(!x[F[L]]){N.push(F[L]);x[F[L]]=true;H=M[F[L]];if(H){D=this.getRequires(H);G=G||(H.expanded_map&&(v in H.expanded_map));for(K=0;K<D.length;K++){N.push(D[K]);}}}}}B=this.conditions[U];if(B){R._parsed=false;if(A&&J){r(A,function(V,X){var W=J[X].name;if(!x[W]&&J[X].trigger==U){if(V&&J[X]){x[W]=true;N.push(W);}}});}else{r(B,function(X,W){if(!x[W]){var V=X&&((X.ua&&d.UA[X.ua])||(X.test&&X.test(d,E)));if(V){x[W]=true;N.push(W);H=this.getModule(W);if(H){D=this.getRequires(H);for(K=0;K<D.length;K++){N.push(D[K]);}}}}},this);}}if(R.skinnable){P=this.skin.overrides;r(YUI.Env.aliases,function(V,W){if(d.Array.indexOf(V,U)>-1){Q=W;}});if(P&&(P[U]||(Q&&P[Q]))){y=U;if(P[Q]){y=Q;}for(L=0;L<P[y].length;L++){z=this._addSkin(P[y][L],U);N.push(z);}}else{z=this._addSkin(this.skin.defaultSkin,U);N.push(z);}}R._parsed=false;if(G){if(R.lang&&!R.langPack&&d.Intl){T=d.Intl.lookupBestLang(this.lang||u,R.lang);C=this.getLangPackName(T,U);if(C){N.unshift(C);}}N.unshift(v);}R.expanded_map=j.hash(N);R.expanded=e.keys(R.expanded_map);return R.expanded;},getProvides:function(x){var w=this.getModule(x),z,y;if(!w){return f;}if(w&&!w.provides){z={};y=w.supersedes;if(y){j.each(y,function(A){d.mix(z,this.getProvides(A));},this);}z[x]=true;w.provides=z;}return w.provides;},calculate:function(x,w){if(x||w||this.dirty){if(x){this._config(x);}if(!this._init){this._setup();}this._explode();if(this.allowRollup){this._rollup();}else{this._explodeRollups();}this._reduce();this._sort();}},_addLangPack:function(B,w,A){var y=w.name,x,z=this.moduleInfo[A];if(!z){x=g((w.pkg||y),A,k,true);this.addModule({path:x,intl:true,langPack:true,ext:w.ext,group:w.group,supersedes:[]},A);if(B){d.Env.lang=d.Env.lang||{};
-d.Env.lang[B]=d.Env.lang[B]||{};d.Env.lang[B][y]=true;}}return this.moduleInfo[A];},_setup:function(){var C=this.moduleInfo,z,A,y,w,x,B;for(z in C){if(C.hasOwnProperty(z)){w=C[z];if(w){w.requires=j.dedupe(w.requires);if(w.lang&&w.lang.length){B=this.getLangPackName(u,z);this._addLangPack(null,w,B);}}}}x={};if(!this.ignoreRegistered){d.mix(x,a.mods);}if(this.ignore){d.mix(x,j.hash(this.ignore));}for(y in x){if(x.hasOwnProperty(y)){d.mix(x,this.getProvides(y));}}if(this.force){for(A=0;A<this.force.length;A++){if(this.force[A] in x){delete x[this.force[A]];}}}d.mix(this.loaded,x);this._init=true;},getLangPackName:function(x,w){return("lang/"+w+((x)?"_"+x:""));},_explode:function(){var A=this.required,w,z,x={},y=this;y.dirty=false;y._explodeRollups();A=y.required;r(A,function(B,C){if(!x[C]){x[C]=true;w=y.getModule(C);if(w){var D=w.expound;if(D){A[D]=y.getModule(D);z=y.getRequires(A[D]);d.mix(A,j.hash(z));}z=y.getRequires(w);d.mix(A,j.hash(z));}}});},getModule:function(B){if(!B){return null;}var A,z,x,w=this.moduleInfo[B],y=this.patterns;if(!w){for(x in y){if(y.hasOwnProperty(x)){A=y[x];if(!A.test){A.test=function(D,C){return(D.indexOf(C)>-1);};}if(A.test(B,x)){z=A;break;}}}if(z){if(A.action){A.action.call(this,B,x);}else{w=this.addModule(d.merge(z),B);w.temp=true;}}}return w;},_rollup:function(){},_reduce:function(B){B=B||this.required;var y,x,A,w,z=this.loadType,C=this.ignore?j.hash(this.ignore):false;for(y in B){if(B.hasOwnProperty(y)){w=this.getModule(y);if(((this.loaded[y]||n[y])&&!this.forceMap[y]&&!this.ignoreRegistered)||(z&&w&&w.type!=z)){delete B[y];}if(C&&C[y]){delete B[y];}A=w&&w.supersedes;if(A){for(x=0;x<A.length;x++){if(A[x] in B){delete B[A[x]];}}}}}return B;},_finish:function(y,x){h.running=false;var w=this.onEnd;if(w){w.call(this.context,{msg:y,data:this.data,success:x});}this._continue();},_onSuccess:function(){var y=this,x=d.merge(y.skipped),A,w=[],z=y.requireRegistration,C,B;r(x,function(D){delete y.inserted[D];});y.skipped={};r(y.inserted,function(E,D){var F=y.getModule(D);if(F&&z&&F.type==k&&!(D in YUI.Env.mods)){w.push(D);}else{d.mix(y.loaded,y.getProvides(D));}});A=y.onSuccess;B=(w.length)?"notregistered":"success";C=!(w.length);if(A){A.call(y.context,{msg:B,data:y.data,success:C,failed:w,skipped:x});}y._finish(B,C);},_onProgress:function(x){var w=this;if(w.onProgress){w.onProgress.call(w.context,{name:x.url,data:x.data});}},_onFailure:function(y){var w=this.onFailure,x="failure: "+y.msg;if(w){w.call(this.context,{msg:x,data:this.data,success:false});}this._finish(x,false);},_onTimeout:function(){var w=this.onTimeout;if(w){w.call(this.context,{msg:"timeout",data:this.data,success:false});}this._finish("timeout",false);},_sort:function(){var F=e.keys(this.required),B={},w=0,y,E,D,A,z,C,x;for(;;){y=F.length;C=false;for(A=w;A<y;A++){E=F[A];for(z=A+1;z<y;z++){x=E+F[z];if(!B[x]&&this._requires(E,F[z])){D=F.splice(z,1);F.splice(A,0,D[0]);B[x]=true;C=true;break;}}if(C){break;}else{w++;}}if(!C){break;}}this.sorted=F;},partial:function(w,y,x){this.sorted=w;this.insert(y,x,true);},_insert:function(w,z,E,y){if(w){this._config(w);}if(!y){this.calculate(z);}var B=this.resolve(),F=this,D=0,C=0;if(E){var A=B[E];B={};B[E]=A;D++;}else{if(B.js.length){D++;}if(B.css.length){D++;}}var x=function(H){C++;if(H&&H.data&&H.data.length){for(var G=0;G<H.data.length;G++){F.inserted[H.data[G].name]=true;}}if(C===D){F._loading=null;F._onSuccess();}};this._loading=true;if(!B.js.length&&!B.css.length){C=-1;x();return;}if(B.css.length){d.Get.css(B.css,{data:B.cssMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onFailure:F._onFailure,onTimeout:F._onTimeout,onProgress:function(G){F._onProgress.call(F,G);},onSuccess:x});}if(B.js.length){d.Get.script(B.js,{data:B.jsMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onProgress:function(G){F._onProgress.call(F,G);},onFailure:F._onFailure,onTimeout:F._onTimeout,onSuccess:x});}},_continue:function(){if(!(h.running)&&h.size()>0){h.running=true;h.next()();}},insert:function(z,x,y){var w=this,A=d.merge(this);delete A.require;delete A.dirty;h.add(function(){w._insert(A,z,x,y);});this._continue();},loadNext:function(A){if(!this._loading){return;}var H,P,O,M,z,E,B,L,D,G,N,w,C,K,y,F,Q,R,J=this,x=J.loadType,S=function(T){J.loadNext(T.data);},I=function(V){J._combineComplete[x]=true;var U,T=F.length;for(U=0;U<T;U++){J.inserted[F[U]]=true;}S(V);};if(J.combine&&(!J._combineComplete[x])){F=[];J._combining=F;H=J.sorted;P=H.length;R=J.comboBase;z=R;Q=[];K={};for(O=0;O<P;O++){C=R;M=J.getModule(H[O]);G=M&&M.group;if(G){D=J.groups[G];if(!D.combine){M.combine=false;continue;}M.combine=true;if(D.comboBase){C=D.comboBase;}if("root" in D&&i.isValue(D.root)){M.root=D.root;}}K[C]=K[C]||[];K[C].push(M);}for(N in K){if(K.hasOwnProperty(N)){z=N;y=K[N];P=y.length;for(O=0;O<P;O++){M=y[O];if(M&&(M.type===x)&&(M.combine||!M.ext)){w=((i.isValue(M.root))?M.root:J.root)+M.path;w=J._filter(w,M.name);if((z!==N)&&(O<=(P-1))&&((w.length+z.length)>J.maxURLLength)){if(z.substr(z.length-1,1)===J.comboSep){z=z.substr(0,(z.length-1));}Q.push(J._filter(z));z=N;}z+=w;if(O<(P-1)){z+=J.comboSep;}F.push(M.name);}}if(F.length&&(z!=N)){if(z.substr(z.length-1,1)===J.comboSep){z=z.substr(0,(z.length-1));}Q.push(J._filter(z));}}}if(F.length){if(x===q){E=d.Get.css;L=J.cssAttributes;}else{E=d.Get.script;L=J.jsAttributes;}E(Q,{data:J._loading,onSuccess:I,onFailure:J._onFailure,onTimeout:J._onTimeout,insertBefore:J.insertBefore,charset:J.charset,attributes:L,timeout:J.timeout,autopurge:false,context:J});return;}else{J._combineComplete[x]=true;}}if(A){if(A!==J._loading){return;}J.inserted[A]=true;if(J.onProgress){J.onProgress.call(J.context,{name:A,data:J.data});}}H=J.sorted;P=H.length;for(O=0;O<P;O=O+1){if(H[O] in J.inserted){continue;}if(H[O]===J._loading){return;}M=J.getModule(H[O]);if(!M){if(!J.skipped[H[O]]){B="Undefined module "+H[O]+" skipped";J.skipped[H[O]]=true;}continue;}D=(M.group&&J.groups[M.group])||f;
-if(!x||x===M.type){J._loading=H[O];if(M.type===q){E=d.Get.css;L=J.cssAttributes;if(M.cssAttributes){L=d.mix(L||{},M.cssAttributes);}}else{E=d.Get.script;L=J.jsAttributes;if(M.jsAttributes){L=d.mix(L||{},M.jsAttributes);}}z=(M.fullpath)?J._filter(M.fullpath,H[O]):J._url(M.path,H[O],D.base||M.base);E(z,{data:H[O],onSuccess:S,insertBefore:J.insertBefore,charset:J.charset,attributes:L,onFailure:J._onFailure,onTimeout:J._onTimeout,timeout:J.timeout,autopurge:false,context:J});return;}}J._loading=null;E=J._internalCallback;if(E){J._internalCallback=null;E.call(J);}else{J._onSuccess();}},_filter:function(y,x){var A=this.filter,w=x&&(x in this.filters),z=w&&this.filters[x],B=this.moduleInfo[x]?this.moduleInfo[x].group:null;if(B&&this.groups[B].filter){z=this.groups[B].filter;w=true;}if(y){if(w){A=(i.isString(z))?this.FILTER_DEFS[z.toUpperCase()]||null:z;}if(A){y=y.replace(new RegExp(A.searchExp,"g"),A.replaceStr);}}return y;},_url:function(y,w,x){return this._filter((x||this.base||"")+y,w);},resolve:function(w,K){var T,S,Q,B,G,D,P,F,J,R,x,E,N,A,V,C,U,I=[],H,M,y={},L=this,O={js:[],jsMods:[],css:[],cssMods:[]},z=L.loadType||"js";if(w){L.calculate();}K=K||L.sorted;if(L.combine){T=K.length;V=L.comboBase;B=V;N={};for(S=0;S<T;S++){E=V;Q=L.getModule(K[S]);J=Q&&Q.group;if(J){F=L.groups[J];if(!F.combine){Q.combine=false;continue;}Q.combine=true;if(F.comboBase){E=F.comboBase;}if("root" in F&&i.isValue(F.root)){Q.root=F.root;}}N[E]=N[E]||[];N[E].push(Q);}for(R in N){if(N.hasOwnProperty(R)){y[R]=y[R]||{js:[],jsMods:[],css:[],cssMods:[]};B=R;A=N[R];T=A.length;if(T){for(S=0;S<T;S++){Q=A[S];if(Q&&(Q.combine||!Q.ext)){x=((i.isValue(Q.root))?Q.root:L.root)+Q.path;x=L._filter(x,Q.name);y[R][Q.type].push(x);y[R][Q.type+"Mods"].push(Q);}}}}}for(R in y){C=R;for(z in y[C]){if(z===k||z===q){U=y[C][z];A=y[C][z+"Mods"];T=U.length;H=C+U.join(L.comboSep);M=H.length;if(T){if(M>L.maxURLLength){I=[];Q=[];for(K=0;K<T;K++){H=C+I.join(L.comboSep);if(H.length<L.maxURLLength){I.push(U[K]);Q.push(A[K]);}else{O[z].push(H);I=[];Q=[];}}}else{O[z].push(H);O[z+"Mods"]=A;}}}}}y=null;}else{K=L.sorted;T=K.length;for(S=0;S<T;S=S+1){Q=L.getModule(K[S]);if(!Q){if(!L.skipped[K[S]]){D="Undefined module "+K[S]+" skipped";}continue;}F=(Q.group&&L.groups[Q.group])||f;B=(Q.fullpath)?L._filter(Q.fullpath,K[S]):L._url(Q.path,K[S],F.base||Q.base);O[Q.type].push(B);O[Q.type+"Mods"].push(Q);}}return O;}};},"@VERSION@",{requires:["get"]});YUI.add("loader-rollup",function(a){a.Loader.prototype._rollup=function(){var k,h,g,o,b=this.required,e,f=this.moduleInfo,d,l,n;if(this.dirty||!this.rollups){this.rollups={};for(k in f){if(f.hasOwnProperty(k)){g=this.getModule(k);if(g&&g.rollup){this.rollups[k]=g;}}}}for(;;){d=false;for(k in this.rollups){if(this.rollups.hasOwnProperty(k)){if(!b[k]&&((!this.loaded[k])||this.forceMap[k])){g=this.getModule(k);o=g.supersedes||[];e=false;if(!g.rollup){continue;}l=0;for(h=0;h<o.length;h++){n=f[o[h]];if(this.loaded[o[h]]&&!this.forceMap[o[h]]){e=false;break;}else{if(b[o[h]]&&g.type==n.type){l++;e=(l>=g.rollup);if(e){break;}}}}if(e){b[k]=true;d=true;this.getRequires(g);}}}}if(!d){break;}}};},"@VERSION@",{requires:["loader-base"]});YUI.add("loader-yui3",function(a){YUI.Env[a.version].modules=YUI.Env[a.version].modules||{"align-plugin":{"requires":["node-screen","node-pluginhost"]},"anim":{"use":["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"]},"anim-base":{"requires":["base-base","node-style"]},"anim-color":{"requires":["anim-base"]},"anim-curve":{"requires":["anim-xy"]},"anim-easing":{"requires":["anim-base"]},"anim-node-plugin":{"requires":["node-pluginhost","anim-base"]},"anim-scroll":{"requires":["anim-base"]},"anim-xy":{"requires":["anim-base","node-screen"]},"app":{"use":["model","model-list","router","view"]},"array-extras":{"requires":["yui-base"]},"array-invoke":{"requires":["yui-base"]},"arraylist":{"requires":["yui-base"]},"arraylist-add":{"requires":["arraylist"]},"arraylist-filter":{"requires":["arraylist"]},"arraysort":{"requires":["yui-base"]},"async-queue":{"requires":["event-custom"]},"attribute":{"use":["attribute-base","attribute-complex"]},"attribute-base":{"requires":["event-custom"]},"attribute-complex":{"requires":["attribute-base"]},"autocomplete":{"use":["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"]},"autocomplete-base":{"optional":["autocomplete-sources"],"requires":["array-extras","base-build","escape","event-valuechange","node-base"]},"autocomplete-filters":{"requires":["array-extras","text-wordbreak"]},"autocomplete-filters-accentfold":{"requires":["array-extras","text-accentfold","text-wordbreak"]},"autocomplete-highlighters":{"requires":["array-extras","highlight-base"]},"autocomplete-highlighters-accentfold":{"requires":["array-extras","highlight-accentfold"]},"autocomplete-list":{"after":["autocomplete-sources"],"lang":["en"],"requires":["autocomplete-base","event-resize","node-screen","selector-css3","shim-plugin","widget","widget-position","widget-position-align"],"skinnable":true},"autocomplete-list-keys":{"condition":{"name":"autocomplete-list-keys","test":function(b){return !(b.UA.ios||b.UA.android);},"trigger":"autocomplete-list"},"requires":["autocomplete-list","base-build"]},"autocomplete-plugin":{"requires":["autocomplete-list","node-pluginhost"]},"autocomplete-sources":{"optional":["io-base","json-parse","jsonp","yql"],"requires":["autocomplete-base"]},"base":{"use":["base-base","base-pluginhost","base-build"]},"base-base":{"after":["attribute-complex"],"requires":["attribute-base"]},"base-build":{"requires":["base-base"]},"base-pluginhost":{"requires":["base-base","pluginhost"]},"cache":{"use":["cache-base","cache-offline","cache-plugin"]},"cache-base":{"requires":["base"]},"cache-offline":{"requires":["cache-base","json"]},"cache-plugin":{"requires":["plugin","cache-base"]},"calendar":{"lang":["en","ja","ru"],"requires":["calendar-base","calendarnavigator"],"skinnable":true},"calendar-base":{"lang":["en","ja","ru"],"requires":["widget","substitute","datatype-date","datatype-date-math","cssgrids"],"skinnable":true},"calendarnavigator":{"requires":["plugin","classnamemanager","datatype-date","node","substitute"],"skinnable":true},"charts":{"requires":["dom","datatype-number","datatype-date","event-custom","event-mouseenter","widget","widget-position","widget-stack","graphics"]},"classnamemanager":{"requires":["yui-base"]},"clickable-rail":{"requires":["slider-base"]},"collection":{"use":["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"]},"console":{"lang":["en","es","ja"],"requires":["yui-log","widget","substitute"],"skinnable":true},"console-filters":{"requires":["plugin","console"],"skinnable":true},"controller":{"use":["router"]},"cookie":{"requires":["yui-base"]},"createlink-base":{"requires":["editor-base"]},"cssbase":{"after":["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],"type":"css"},"cssbase-context":{"after":["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],"type":"css"},"cssfonts":{"type":"css"},"cssfonts-context":{"type":"css"},"cssgrids":{"optional":["cssreset","cssfonts"],"type":"css"},"cssreset":{"type":"css"},"cssreset-context":{"type":"css"},"dataschema":{"use":["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"]},"dataschema-array":{"requires":["dataschema-base"]},"dataschema-base":{"requires":["base"]},"dataschema-json":{"requires":["dataschema-base","json"]},"dataschema-text":{"requires":["dataschema-base"]},"dataschema-xml":{"requires":["dataschema-base"]},"datasource":{"use":["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"]},"datasource-arrayschema":{"requires":["datasource-local","plugin","dataschema-array"]},"datasource-cache":{"requires":["datasource-local","plugin","cache-base"]},"datasource-function":{"requires":["datasource-local"]},"datasource-get":{"requires":["datasource-local","get"]},"datasource-io":{"requires":["datasource-local","io-base"]},"datasource-jsonschema":{"requires":["datasource-local","plugin","dataschema-json"]},"datasource-local":{"requires":["base"]},"datasource-polling":{"requires":["datasource-local"]},"datasource-textschema":{"requires":["datasource-local","plugin","dataschema-text"]},"datasource-xmlschema":{"requires":["datasource-local","plugin","dataschema-xml"]},"datatable":{"use":["datatable-base","datatable-datasource","datatable-sort","datatable-scroll"]},"datatable-base":{"requires":["recordset-base","widget","substitute","event-mouseenter"],"skinnable":true},"datatable-datasource":{"requires":["datatable-base","plugin","datasource-local"]},"datatable-scroll":{"requires":["datatable-base","plugin"]},"datatable-sort":{"lang":["en"],"requires":["datatable-base","plugin","recordset-sort"]},"datatype":{"use":["datatype-number","datatype-date","datatype-xml"]},"datatype-date":{"supersedes":["datatype-date-format"],"use":["datatype-date-parse","datatype-date-format"]},"datatype-date-format":{"lang":["ar","ar-JO","ca","ca-ES","da","da-DK","de","de-AT","de-DE","el","el-GR","en","en-AU","en-CA","en-GB","en-IE","en-IN","en-JO","en-MY","en-NZ","en-PH","en-SG","en-US","es","es-AR","es-BO","es-CL","es-CO","es-EC","es-ES","es-MX","es-PE","es-PY","es-US","es-UY","es-VE","fi","fi-FI","fr","fr-BE","fr-CA","fr-FR","hi","hi-IN","id","id-ID","it","it-IT","ja","ja-JP","ko","ko-KR","ms","ms-MY","nb","nb-NO","nl","nl-BE","nl-NL","pl","pl-PL","pt","pt-BR","ro","ro-RO","ru","ru-RU","sv","sv-SE","th","th-TH","tr","tr-TR","vi","vi-VN","zh-Hans","zh-Hans-CN","zh-Hant","zh-Hant-HK","zh-Hant-TW"]},"datatype-date-math":{"requires":["yui-base"]},"datatype-date-parse":{},"datatype-number":{"use":["datatype-number-parse","datatype-number-format"]},"datatype-number-format":{},"datatype-number-parse":{},"datatype-xml":{"use":["datatype-xml-parse","datatype-xml-format"]},"datatype-xml-format":{},"datatype-xml-parse":{},"dd":{"use":["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"]},"dd-constrain":{"requires":["dd-drag"]},"dd-ddm":{"requires":["dd-ddm-base","event-resize"]},"dd-ddm-base":{"requires":["node","base","yui-throttle","classnamemanager"]},"dd-ddm-drop":{"requires":["dd-ddm"]},"dd-delegate":{"requires":["dd-drag","dd-drop-plugin","event-mouseenter"]},"dd-drag":{"requires":["dd-ddm-base"]},"dd-drop":{"requires":["dd-drag","dd-ddm-drop"]},"dd-drop-plugin":{"requires":["dd-drop"]},"dd-gestures":{"condition":{"name":"dd-gestures","test":function(b){return(b.config.win&&("ontouchstart" in b.config.win&&!b.UA.chrome));
+d.Env.lang[B]=d.Env.lang[B]||{};d.Env.lang[B][y]=true;}}return this.moduleInfo[A];},_setup:function(){var C=this.moduleInfo,z,A,y,w,x,B;for(z in C){if(C.hasOwnProperty(z)){w=C[z];if(w){w.requires=j.dedupe(w.requires);if(w.lang&&w.lang.length){B=this.getLangPackName(u,z);this._addLangPack(null,w,B);}}}}x={};if(!this.ignoreRegistered){d.mix(x,a.mods);}if(this.ignore){d.mix(x,j.hash(this.ignore));}for(y in x){if(x.hasOwnProperty(y)){d.mix(x,this.getProvides(y));}}if(this.force){for(A=0;A<this.force.length;A++){if(this.force[A] in x){delete x[this.force[A]];}}}d.mix(this.loaded,x);this._init=true;},getLangPackName:function(x,w){return("lang/"+w+((x)?"_"+x:""));},_explode:function(){var A=this.required,w,z,x={},y=this;y.dirty=false;y._explodeRollups();A=y.required;r(A,function(B,C){if(!x[C]){x[C]=true;w=y.getModule(C);if(w){var D=w.expound;if(D){A[D]=y.getModule(D);z=y.getRequires(A[D]);d.mix(A,j.hash(z));}z=y.getRequires(w);d.mix(A,j.hash(z));}}});},getModule:function(B){if(!B){return null;}var A,z,x,w=this.moduleInfo[B],y=this.patterns;if(!w){for(x in y){if(y.hasOwnProperty(x)){A=y[x];if(!A.test){A.test=function(D,C){return(D.indexOf(C)>-1);};}if(A.test(B,x)){z=A;break;}}}if(z){if(A.action){A.action.call(this,B,x);}else{w=this.addModule(d.merge(z),B);w.temp=true;}}}return w;},_rollup:function(){},_reduce:function(B){B=B||this.required;var y,x,A,w,z=this.loadType,C=this.ignore?j.hash(this.ignore):false;for(y in B){if(B.hasOwnProperty(y)){w=this.getModule(y);if(((this.loaded[y]||n[y])&&!this.forceMap[y]&&!this.ignoreRegistered)||(z&&w&&w.type!=z)){delete B[y];}if(C&&C[y]){delete B[y];}A=w&&w.supersedes;if(A){for(x=0;x<A.length;x++){if(A[x] in B){delete B[A[x]];}}}}}return B;},_finish:function(y,x){h.running=false;var w=this.onEnd;if(w){w.call(this.context,{msg:y,data:this.data,success:x});}this._continue();},_onSuccess:function(){var y=this,x=d.merge(y.skipped),A,w=[],z=y.requireRegistration,C,B;r(x,function(D){delete y.inserted[D];});y.skipped={};r(y.inserted,function(E,D){var F=y.getModule(D);if(F&&z&&F.type==k&&!(D in YUI.Env.mods)){w.push(D);}else{d.mix(y.loaded,y.getProvides(D));}});A=y.onSuccess;B=(w.length)?"notregistered":"success";C=!(w.length);if(A){A.call(y.context,{msg:B,data:y.data,success:C,failed:w,skipped:x});}y._finish(B,C);},_onProgress:function(x){var w=this;if(w.onProgress){w.onProgress.call(w.context,{name:x.url,data:x.data});}},_onFailure:function(y){var w=this.onFailure,x="failure: "+y.msg;if(w){w.call(this.context,{msg:x,data:this.data,success:false});}this._finish(x,false);},_onTimeout:function(){var w=this.onTimeout;if(w){w.call(this.context,{msg:"timeout",data:this.data,success:false});}this._finish("timeout",false);},_sort:function(){var F=e.keys(this.required),B={},w=0,y,E,D,A,z,C,x;for(;;){y=F.length;C=false;for(A=w;A<y;A++){E=F[A];for(z=A+1;z<y;z++){x=E+F[z];if(!B[x]&&this._requires(E,F[z])){D=F.splice(z,1);F.splice(A,0,D[0]);B[x]=true;C=true;break;}}if(C){break;}else{w++;}}if(!C){break;}}this.sorted=F;},partial:function(w,y,x){this.sorted=w;this.insert(y,x,true);},_insert:function(w,z,E,y){if(w){this._config(w);}if(!y){this.calculate(z);}var B=this.resolve(),F=this,D=0,C=0;if(E){var A=B[E];B={};B[E]=A;D++;}else{if(B.js.length){D++;}if(B.css.length){D++;}}var x=function(H){C++;if(H&&H.data&&H.data.length){for(var G=0;G<H.data.length;G++){F.inserted[H.data[G].name]=true;}}if(C===D){F._loading=null;F._onSuccess();}};this._loading=true;if(!B.js.length&&!B.css.length){C=-1;x();return;}if(B.css.length){d.Get.css(B.css,{data:B.cssMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onFailure:F._onFailure,onTimeout:F._onTimeout,onProgress:function(G){F._onProgress.call(F,G);},onSuccess:x});}if(B.js.length){d.Get.script(B.js,{data:B.jsMods,insertBefore:F.insertBefore,charset:F.charset,timeout:F.timeout,autopurge:false,context:F,async:true,onProgress:function(G){F._onProgress.call(F,G);},onFailure:F._onFailure,onTimeout:F._onTimeout,onSuccess:x});}},_continue:function(){if(!(h.running)&&h.size()>0){h.running=true;h.next()();}},insert:function(z,x,y){var w=this,A=d.merge(this);delete A.require;delete A.dirty;h.add(function(){w._insert(A,z,x,y);});this._continue();},loadNext:function(w){return;},_filter:function(y,x){var A=this.filter,w=x&&(x in this.filters),z=w&&this.filters[x],B=this.moduleInfo[x]?this.moduleInfo[x].group:null;if(B&&this.groups[B].filter){z=this.groups[B].filter;w=true;}if(y){if(w){A=(i.isString(z))?this.FILTER_DEFS[z.toUpperCase()]||null:z;}if(A){y=y.replace(new RegExp(A.searchExp,"g"),A.replaceStr);}}return y;},_url:function(y,w,x){return this._filter((x||this.base||"")+y,w);},resolve:function(w,K){var T,S,Q,B,G,D,P,F,J,R,x,E,N,A,V,C,U,I=[],H,M,y={},L=this,O={js:[],jsMods:[],css:[],cssMods:[]},z=L.loadType||"js";if(w){L.calculate();}K=K||L.sorted;if(L.combine){T=K.length;V=L.comboBase;B=V;N={};for(S=0;S<T;S++){E=V;Q=L.getModule(K[S]);J=Q&&Q.group;if(J){F=L.groups[J];if(!F.combine){Q.combine=false;continue;}Q.combine=true;if(F.comboBase){E=F.comboBase;}if("root" in F&&i.isValue(F.root)){Q.root=F.root;}}N[E]=N[E]||[];N[E].push(Q);}for(R in N){if(N.hasOwnProperty(R)){y[R]=y[R]||{js:[],jsMods:[],css:[],cssMods:[]};B=R;A=N[R];T=A.length;if(T){for(S=0;S<T;S++){Q=A[S];if(Q&&(Q.combine||!Q.ext)){x=((i.isValue(Q.root))?Q.root:L.root)+Q.path;x=L._filter(x,Q.name);y[R][Q.type].push(x);y[R][Q.type+"Mods"].push(Q);}}}}}for(R in y){C=R;for(z in y[C]){if(z===k||z===q){U=y[C][z];A=y[C][z+"Mods"];T=U.length;H=C+U.join(L.comboSep);M=H.length;if(T){if(M>L.maxURLLength){I=[];Q=[];for(K=0;K<T;K++){H=C+I.join(L.comboSep);if(H.length<L.maxURLLength){I.push(U[K]);Q.push(A[K]);}else{O[z].push(H);I=[];Q=[];}}}else{O[z].push(H);O[z+"Mods"]=A;}}}}}y=null;}else{K=L.sorted;T=K.length;for(S=0;S<T;S=S+1){Q=L.getModule(K[S]);if(!Q){if(!L.skipped[K[S]]){D="Undefined module "+K[S]+" skipped";}continue;}F=(Q.group&&L.groups[Q.group])||f;B=(Q.fullpath)?L._filter(Q.fullpath,K[S]):L._url(Q.path,K[S],F.base||Q.base);O[Q.type].push(B);O[Q.type+"Mods"].push(Q);
+}}return O;}};},"@VERSION@",{requires:["get"]});YUI.add("loader-rollup",function(a){a.Loader.prototype._rollup=function(){var k,h,g,o,b=this.required,e,f=this.moduleInfo,d,l,n;if(this.dirty||!this.rollups){this.rollups={};for(k in f){if(f.hasOwnProperty(k)){g=this.getModule(k);if(g&&g.rollup){this.rollups[k]=g;}}}}for(;;){d=false;for(k in this.rollups){if(this.rollups.hasOwnProperty(k)){if(!b[k]&&((!this.loaded[k])||this.forceMap[k])){g=this.getModule(k);o=g.supersedes||[];e=false;if(!g.rollup){continue;}l=0;for(h=0;h<o.length;h++){n=f[o[h]];if(this.loaded[o[h]]&&!this.forceMap[o[h]]){e=false;break;}else{if(b[o[h]]&&g.type==n.type){l++;e=(l>=g.rollup);if(e){break;}}}}if(e){b[k]=true;d=true;this.getRequires(g);}}}}if(!d){break;}}};},"@VERSION@",{requires:["loader-base"]});YUI.add("loader-yui3",function(a){YUI.Env[a.version].modules=YUI.Env[a.version].modules||{"align-plugin":{"requires":["node-screen","node-pluginhost"]},"anim":{"use":["anim-base","anim-color","anim-curve","anim-easing","anim-node-plugin","anim-scroll","anim-xy"]},"anim-base":{"requires":["base-base","node-style"]},"anim-color":{"requires":["anim-base"]},"anim-curve":{"requires":["anim-xy"]},"anim-easing":{"requires":["anim-base"]},"anim-node-plugin":{"requires":["node-pluginhost","anim-base"]},"anim-scroll":{"requires":["anim-base"]},"anim-xy":{"requires":["anim-base","node-screen"]},"app":{"use":["model","model-list","router","view"]},"array-extras":{"requires":["yui-base"]},"array-invoke":{"requires":["yui-base"]},"arraylist":{"requires":["yui-base"]},"arraylist-add":{"requires":["arraylist"]},"arraylist-filter":{"requires":["arraylist"]},"arraysort":{"requires":["yui-base"]},"async-queue":{"requires":["event-custom"]},"attribute":{"use":["attribute-base","attribute-complex"]},"attribute-base":{"requires":["event-custom"]},"attribute-complex":{"requires":["attribute-base"]},"autocomplete":{"use":["autocomplete-base","autocomplete-sources","autocomplete-list","autocomplete-plugin"]},"autocomplete-base":{"optional":["autocomplete-sources"],"requires":["array-extras","base-build","escape","event-valuechange","node-base"]},"autocomplete-filters":{"requires":["array-extras","text-wordbreak"]},"autocomplete-filters-accentfold":{"requires":["array-extras","text-accentfold","text-wordbreak"]},"autocomplete-highlighters":{"requires":["array-extras","highlight-base"]},"autocomplete-highlighters-accentfold":{"requires":["array-extras","highlight-accentfold"]},"autocomplete-list":{"after":["autocomplete-sources"],"lang":["en"],"requires":["autocomplete-base","event-resize","node-screen","selector-css3","shim-plugin","widget","widget-position","widget-position-align"],"skinnable":true},"autocomplete-list-keys":{"condition":{"name":"autocomplete-list-keys","test":function(b){return !(b.UA.ios||b.UA.android);},"trigger":"autocomplete-list"},"requires":["autocomplete-list","base-build"]},"autocomplete-plugin":{"requires":["autocomplete-list","node-pluginhost"]},"autocomplete-sources":{"optional":["io-base","json-parse","jsonp","yql"],"requires":["autocomplete-base"]},"base":{"use":["base-base","base-pluginhost","base-build"]},"base-base":{"after":["attribute-complex"],"requires":["attribute-base"]},"base-build":{"requires":["base-base"]},"base-pluginhost":{"requires":["base-base","pluginhost"]},"cache":{"use":["cache-base","cache-offline","cache-plugin"]},"cache-base":{"requires":["base"]},"cache-offline":{"requires":["cache-base","json"]},"cache-plugin":{"requires":["plugin","cache-base"]},"calendar":{"lang":["en","ja","ru"],"requires":["calendar-base","calendarnavigator"],"skinnable":true},"calendar-base":{"lang":["en","ja","ru"],"requires":["widget","substitute","datatype-date","datatype-date-math","cssgrids"],"skinnable":true},"calendarnavigator":{"requires":["plugin","classnamemanager","datatype-date","node","substitute"],"skinnable":true},"charts":{"requires":["dom","datatype-number","datatype-date","event-custom","event-mouseenter","widget","widget-position","widget-stack","graphics"]},"classnamemanager":{"requires":["yui-base"]},"clickable-rail":{"requires":["slider-base"]},"collection":{"use":["array-extras","arraylist","arraylist-add","arraylist-filter","array-invoke"]},"console":{"lang":["en","es","ja"],"requires":["yui-log","widget","substitute"],"skinnable":true},"console-filters":{"requires":["plugin","console"],"skinnable":true},"controller":{"use":["router"]},"cookie":{"requires":["yui-base"]},"createlink-base":{"requires":["editor-base"]},"cssbase":{"after":["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],"type":"css"},"cssbase-context":{"after":["cssreset","cssfonts","cssgrids","cssreset-context","cssfonts-context","cssgrids-context"],"type":"css"},"cssfonts":{"type":"css"},"cssfonts-context":{"type":"css"},"cssgrids":{"optional":["cssreset","cssfonts"],"type":"css"},"cssreset":{"type":"css"},"cssreset-context":{"type":"css"},"dataschema":{"use":["dataschema-base","dataschema-json","dataschema-xml","dataschema-array","dataschema-text"]},"dataschema-array":{"requires":["dataschema-base"]},"dataschema-base":{"requires":["base"]},"dataschema-json":{"requires":["dataschema-base","json"]},"dataschema-text":{"requires":["dataschema-base"]},"dataschema-xml":{"requires":["dataschema-base"]},"datasource":{"use":["datasource-local","datasource-io","datasource-get","datasource-function","datasource-cache","datasource-jsonschema","datasource-xmlschema","datasource-arrayschema","datasource-textschema","datasource-polling"]},"datasource-arrayschema":{"requires":["datasource-local","plugin","dataschema-array"]},"datasource-cache":{"requires":["datasource-local","plugin","cache-base"]},"datasource-function":{"requires":["datasource-local"]},"datasource-get":{"requires":["datasource-local","get"]},"datasource-io":{"requires":["datasource-local","io-base"]},"datasource-jsonschema":{"requires":["datasource-local","plugin","dataschema-json"]},"datasource-local":{"requires":["base"]},"datasource-polling":{"requires":["datasource-local"]},"datasource-textschema":{"requires":["datasource-local","plugin","dataschema-text"]},"datasource-xmlschema":{"requires":["datasource-local","plugin","dataschema-xml"]},"datatable":{"use":["datatable-base","datatable-datasource","datatable-sort","datatable-scroll"]},"datatable-base":{"requires":["recordset-base","widget","substitute","event-mouseenter"],"skinnable":true},"datatable-datasource":{"requires":["datatable-base","plugin","datasource-local"]},"datatable-scroll":{"requires":["datatable-base","plugin"]},"datatable-sort":{"lang":["en"],"requires":["datatable-base","plugin","recordset-sort"]},"datatype":{"use":["datatype-number","datatype-date","datatype-xml"]},"datatype-date":{"supersedes":["datatype-date-format"],"use":["datatype-date-parse","datatype-date-format"]},"datatype-date-format":{"lang":["ar","ar-JO","ca","ca-ES","da","da-DK","de","de-AT","de-DE","el","el-GR","en","en-AU","en-CA","en-GB","en-IE","en-IN","en-JO","en-MY","en-NZ","en-PH","en-SG","en-US","es","es-AR","es-BO","es-CL","es-CO","es-EC","es-ES","es-MX","es-PE","es-PY","es-US","es-UY","es-VE","fi","fi-FI","fr","fr-BE","fr-CA","fr-FR","hi","hi-IN","id","id-ID","it","it-IT","ja","ja-JP","ko","ko-KR","ms","ms-MY","nb","nb-NO","nl","nl-BE","nl-NL","pl","pl-PL","pt","pt-BR","ro","ro-RO","ru","ru-RU","sv","sv-SE","th","th-TH","tr","tr-TR","vi","vi-VN","zh-Hans","zh-Hans-CN","zh-Hant","zh-Hant-HK","zh-Hant-TW"]},"datatype-date-math":{"requires":["yui-base"]},"datatype-date-parse":{},"datatype-number":{"use":["datatype-number-parse","datatype-number-format"]},"datatype-number-format":{},"datatype-number-parse":{},"datatype-xml":{"use":["datatype-xml-parse","datatype-xml-format"]},"datatype-xml-format":{},"datatype-xml-parse":{},"dd":{"use":["dd-ddm-base","dd-ddm","dd-ddm-drop","dd-drag","dd-proxy","dd-constrain","dd-drop","dd-scroll","dd-delegate"]},"dd-constrain":{"requires":["dd-drag"]},"dd-ddm":{"requires":["dd-ddm-base","event-resize"]},"dd-ddm-base":{"requires":["node","base","yui-throttle","classnamemanager"]},"dd-ddm-drop":{"requires":["dd-ddm"]},"dd-delegate":{"requires":["dd-drag","dd-drop-plugin","event-mouseenter"]},"dd-drag":{"requires":["dd-ddm-base"]},"dd-drop":{"requires":["dd-drag","dd-ddm-drop"]},"dd-drop-plugin":{"requires":["dd-drop"]},"dd-gestures":{"condition":{"name":"dd-gestures","test":function(b){return(b.config.win&&("ontouchstart" in b.config.win&&!b.UA.chrome));
},"trigger":"dd-drag"},"requires":["dd-drag","event-synthetic","event-gestures"]},"dd-plugin":{"optional":["dd-constrain","dd-proxy"],"requires":["dd-drag"]},"dd-proxy":{"requires":["dd-drag"]},"dd-scroll":{"requires":["dd-drag"]},"dial":{"lang":["en","es"],"requires":["widget","dd-drag","substitute","event-mouseenter","event-move","event-key","transition","intl"],"skinnable":true},"dom":{"use":["dom-base","dom-screen","dom-style","selector-native","selector"]},"dom-base":{"requires":["dom-core"]},"dom-core":{"requires":["oop","features"]},"dom-deprecated":{"requires":["dom-base"]},"dom-screen":{"requires":["dom-base","dom-style"]},"dom-style":{"requires":["dom-base"]},"dom-style-ie":{"condition":{"name":"dom-style-ie","test":function(h){var f=h.Features.test,g=h.Features.add,d=h.config.win,e=h.config.doc,b="documentElement",c=false;g("style","computedStyle",{test:function(){return d&&"getComputedStyle" in d;}});g("style","opacity",{test:function(){return e&&"opacity" in e[b].style;}});c=(!f("style","opacity")&&!f("style","computedStyle"));return c;},"trigger":"dom-style"},"requires":["dom-style"]},"dump":{"requires":["yui-base"]},"editor":{"use":["frame","selection","exec-command","editor-base","editor-para","editor-br","editor-bidi","editor-tab","createlink-base"]},"editor-base":{"requires":["base","frame","node","exec-command","selection"]},"editor-bidi":{"requires":["editor-base"]},"editor-br":{"requires":["editor-base"]},"editor-lists":{"requires":["editor-base"]},"editor-para":{"requires":["editor-base"]},"editor-tab":{"requires":["editor-base"]},"escape":{"requires":["yui-base"]},"event":{"after":["node-base"],"use":["event-base","event-delegate","event-synthetic","event-mousewheel","event-mouseenter","event-key","event-focus","event-resize","event-hover","event-outside"]},"event-base":{"after":["node-base"],"requires":["event-custom-base"]},"event-base-ie":{"after":["event-base"],"condition":{"name":"event-base-ie","test":function(c){var b=c.config.doc&&c.config.doc.implementation;return(b&&(!b.hasFeature("Events","2.0")));},"trigger":"node-base"},"requires":["node-base"]},"event-custom":{"use":["event-custom-base","event-custom-complex"]},"event-custom-base":{"requires":["oop"]},"event-custom-complex":{"requires":["event-custom-base"]},"event-delegate":{"requires":["node-base"]},"event-flick":{"requires":["node-base","event-touch","event-synthetic"]},"event-focus":{"requires":["event-synthetic"]},"event-gestures":{"use":["event-flick","event-move"]},"event-hover":{"requires":["event-mouseenter"]},"event-key":{"requires":["event-synthetic"]},"event-mouseenter":{"requires":["event-synthetic"]},"event-mousewheel":{"requires":["node-base"]},"event-move":{"requires":["node-base","event-touch","event-synthetic"]},"event-outside":{"requires":["event-synthetic"]},"event-resize":{"requires":["node-base","event-synthetic"]},"event-simulate":{"requires":["event-base"]},"event-synthetic":{"requires":["node-base","event-custom-complex"]},"event-touch":{"requires":["node-base"]},"event-valuechange":{"requires":["event-focus","event-synthetic"]},"exec-command":{"requires":["frame"]},"features":{"requires":["yui-base"]},"frame":{"requires":["base","node","selector-css3","substitute","yui-throttle"]},"get":{"requires":["yui-base"]},"graphics":{"requires":["node","event-custom","pluginhost"]},"graphics-canvas":{"condition":{"name":"graphics-canvas","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(b&&b.getContext&&b.getContext("2d")));},"trigger":"graphics"},"requires":["graphics"]},"graphics-canvas-default":{"condition":{"name":"graphics-canvas-default","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(b&&b.getContext&&b.getContext("2d")));},"trigger":"graphics"}},"graphics-svg":{"condition":{"name":"graphics-svg","test":function(c){var b=c.config.doc;return(b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));},"trigger":"graphics"},"requires":["graphics"]},"graphics-svg-default":{"condition":{"name":"graphics-svg-default","test":function(c){var b=c.config.doc;return(b&&b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"));},"trigger":"graphics"}},"graphics-vml":{"condition":{"name":"graphics-vml","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!b||!b.getContext||!b.getContext("2d")));},"trigger":"graphics"},"requires":["graphics"]},"graphics-vml-default":{"condition":{"name":"graphics-vml-default","test":function(d){var c=d.config.doc,b=c&&c.createElement("canvas");return(c&&!c.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(!b||!b.getContext||!b.getContext("2d")));},"trigger":"graphics"}},"handlebars":{"use":["handlebars-compiler"]},"handlebars-base":{"requires":["escape"]},"handlebars-compiler":{"requires":["handlebars-base"]},"highlight":{"use":["highlight-base","highlight-accentfold"]},"highlight-accentfold":{"requires":["highlight-base","text-accentfold"]},"highlight-base":{"requires":["array-extras","classnamemanager","escape","text-wordbreak"]},"history":{"use":["history-base","history-hash","history-hash-ie","history-html5"]},"history-base":{"requires":["event-custom-complex"]},"history-hash":{"after":["history-html5"],"requires":["event-synthetic","history-base","yui-later"]},"history-hash-ie":{"condition":{"name":"history-hash-ie","test":function(c){var b=c.config.doc&&c.config.doc.documentMode;return c.UA.ie&&(!("onhashchange" in c.config.win)||!b||b<8);},"trigger":"history-hash"},"requires":["history-hash","node-base"]},"history-html5":{"optional":["json"],"requires":["event-base","history-base","node-base"]},"imageloader":{"requires":["base-base","node-style","node-screen"]},"intl":{"requires":["intl-base","event-custom"]},"intl-base":{"requires":["yui-base"]},"io":{"use":["io-base","io-xdr","io-form","io-upload-iframe","io-queue"]},"io-base":{"requires":["event-custom-base","querystring-stringify-simple"]},"io-form":{"requires":["io-base","node-base"]},"io-queue":{"requires":["io-base","queue-promote"]},"io-upload-iframe":{"requires":["io-base","node-base"]},"io-xdr":{"requires":["io-base","datatype-xml-parse"]},"json":{"use":["json-parse","json-stringify"]},"json-parse":{"requires":["yui-base"]},"json-stringify":{"requires":["yui-base"]},"jsonp":{"requires":["get","oop"]},"jsonp-url":{"requires":["jsonp"]},"loader":{"use":["loader-base","loader-rollup","loader-yui3"]},"loader-base":{"requires":["get"]},"loader-rollup":{"requires":["loader-base"]},"loader-yui3":{"requires":["loader-base"]},"model":{"requires":["base-build","escape","json-parse"]},"model-list":{"requires":["array-extras","array-invoke","arraylist","base-build","escape","json-parse","model"]},"node":{"use":["node-base","node-event-delegate","node-pluginhost","node-screen","node-style"]},"node-base":{"requires":["event-base","node-core","dom-base"]},"node-core":{"requires":["dom-core","selector"]},"node-deprecated":{"requires":["node-base"]},"node-event-delegate":{"requires":["node-base","event-delegate"]},"node-event-html5":{"requires":["node-base"]},"node-event-simulate":{"requires":["node-base","event-simulate"]},"node-flick":{"requires":["classnamemanager","transition","event-flick","plugin"],"skinnable":true},"node-focusmanager":{"requires":["attribute","node","plugin","node-event-simulate","event-key","event-focus"]},"node-load":{"requires":["node-base","io-base"]},"node-menunav":{"requires":["node","classnamemanager","plugin","node-focusmanager"],"skinnable":true},"node-pluginhost":{"requires":["node-base","pluginhost"]},"node-screen":{"requires":["dom-screen","node-base"]},"node-style":{"requires":["dom-style","node-base"]},"oop":{"requires":["yui-base"]},"overlay":{"requires":["widget","widget-stdmod","widget-position","widget-position-align","widget-stack","widget-position-constrain"],"skinnable":true},"panel":{"requires":["widget","widget-stdmod","widget-position","widget-position-align","widget-stack","widget-position-constrain","widget-modality","widget-autohide","widget-buttons"],"skinnable":true},"parallel":{"requires":["yui-base"]},"pjax":{"requires":["pjax-base","io-base"]},"pjax-base":{"requires":["classnamemanager","node-event-delegate","router"]},"pjax-plugin":{"requires":["node-pluginhost","pjax","plugin"]},"plugin":{"requires":["base-base"]},"pluginhost":{"use":["pluginhost-base","pluginhost-config"]},"pluginhost-base":{"requires":["yui-base"]},"pluginhost-config":{"requires":["pluginhost-base"]},"profiler":{"requires":["yui-base"]},"querystring":{"use":["querystring-parse","querystring-stringify"]},"querystring-parse":{"requires":["yui-base","array-extras"]},"querystring-parse-simple":{"requires":["yui-base"]},"querystring-stringify":{"requires":["yui-base"]},"querystring-stringify-simple":{"requires":["yui-base"]},"queue-promote":{"requires":["yui-base"]},"range-slider":{"requires":["slider-base","slider-value-range","clickable-rail"]},"recordset":{"use":["recordset-base","recordset-sort","recordset-filter","recordset-indexer"]},"recordset-base":{"requires":["base","arraylist"]},"recordset-filter":{"requires":["recordset-base","array-extras","plugin"]},"recordset-indexer":{"requires":["recordset-base","plugin"]},"recordset-sort":{"requires":["arraysort","recordset-base","plugin"]},"resize":{"use":["resize-base","resize-proxy","resize-constrain"]},"resize-base":{"requires":["base","widget","substitute","event","oop","dd-drag","dd-delegate","dd-drop"],"skinnable":true},"resize-constrain":{"requires":["plugin","resize-base"]},"resize-plugin":{"optional":["resize-constrain"],"requires":["resize-base","plugin"]},"resize-proxy":{"requires":["plugin","resize-base"]},"rls":{"requires":["get","features"]},"router":{"optional":["querystring-parse"],"requires":["array-extras","base-build","history"]},"scrollview":{"requires":["scrollview-base","scrollview-scrollbars"]},"scrollview-base":{"requires":["widget","event-gestures","transition"],"skinnable":true},"scrollview-base-ie":{"condition":{"name":"scrollview-base-ie","trigger":"scrollview-base","ua":"ie"},"requires":["scrollview-base"]},"scrollview-list":{"requires":["plugin","classnamemanager"],"skinnable":true},"scrollview-paginator":{"requires":["plugin"]},"scrollview-scrollbars":{"requires":["classnamemanager","transition","plugin"],"skinnable":true},"selection":{"requires":["node"]},"selector":{"requires":["selector-native"]},"selector-css2":{"condition":{"name":"selector-css2","test":function(d){var c=d.config.doc,b=c&&!("querySelectorAll" in c);
return b;},"trigger":"selector"},"requires":["selector-native"]},"selector-css3":{"requires":["selector-native","selector-css2"]},"selector-native":{"requires":["dom-base"]},"shim-plugin":{"requires":["node-style","node-pluginhost"]},"slider":{"use":["slider-base","slider-value-range","clickable-rail","range-slider"]},"slider-base":{"requires":["widget","dd-constrain","substitute"],"skinnable":true},"slider-value-range":{"requires":["slider-base"]},"sortable":{"requires":["dd-delegate","dd-drop-plugin","dd-proxy"]},"sortable-scroll":{"requires":["dd-scroll","sortable"]},"stylesheet":{"requires":["yui-base"]},"substitute":{"optional":["dump"],"requires":["yui-base"]},"swf":{"requires":["event-custom","node","swfdetect","escape"]},"swfdetect":{"requires":["yui-base"]},"tabview":{"requires":["widget","widget-parent","widget-child","tabview-base","node-pluginhost","node-focusmanager"],"skinnable":true},"tabview-base":{"requires":["node-event-delegate","classnamemanager","skin-sam-tabview"]},"tabview-plugin":{"requires":["tabview-base"]},"test":{"requires":["event-simulate","event-custom","substitute","json-stringify"],"skinnable":true},"test-console":{"requires":["console-filters","test"],"skinnable":true},"text":{"use":["text-accentfold","text-wordbreak"]},"text-accentfold":{"requires":["array-extras","text-data-accentfold"]},"text-data-accentfold":{"requires":["yui-base"]},"text-data-wordbreak":{"requires":["yui-base"]},"text-wordbreak":{"requires":["array-extras","text-data-wordbreak"]},"transition":{"requires":["node-style"]},"transition-timer":{"condition":{"name":"transition-timer","test":function(e){var d=e.config.doc,c=(d)?d.documentElement:null,b=true;if(c&&c.style){b=!("MozTransition" in c.style||"WebkitTransition" in c.style);}return b;},"trigger":"transition"},"requires":["transition"]},"uploader":{"requires":["event-custom","node","base","swf"]},"view":{"requires":["base-build","node-event-delegate"]},"widget":{"use":["widget-base","widget-htmlparser","widget-uievents","widget-skin"]},"widget-anim":{"requires":["plugin","anim-base","widget"]},"widget-autohide":{"requires":["widget","event-outside","base-build","event-key"],"skinnable":false},"widget-base":{"requires":["attribute","event-focus","base-base","base-pluginhost","node-base","node-style","classnamemanager"],"skinnable":true},"widget-base-ie":{"condition":{"name":"widget-base-ie","trigger":"widget-base","ua":"ie"},"requires":["widget-base"]},"widget-buttons":{"requires":["widget","base-build","widget-stdmod"],"skinnable":true},"widget-child":{"requires":["base-build","widget"]},"widget-htmlparser":{"requires":["widget-base"]},"widget-locale":{"requires":["widget-base"]},"widget-modality":{"requires":["widget","event-outside","base-build"],"skinnable":false},"widget-parent":{"requires":["base-build","arraylist","widget"]},"widget-position":{"requires":["base-build","node-screen","widget"]},"widget-position-align":{"requires":["widget-position"]},"widget-position-constrain":{"requires":["widget-position"]},"widget-skin":{"requires":["widget-base"]},"widget-stack":{"requires":["base-build","widget"],"skinnable":true},"widget-stdmod":{"requires":["base-build","widget"]},"widget-uievents":{"requires":["widget-base","node-event-delegate"]},"yql":{"requires":["jsonp","jsonp-url"]},"yui":{},"yui-base":{},"yui-later":{"requires":["yui-base"]},"yui-log":{"requires":["yui-base"]},"yui-rls":{},"yui-throttle":{"requires":["yui-base"]}};YUI.Env[a.version].md5="7f3e2a182ac855f60af5ab295f71fefe";},"@VERSION@",{requires:["loader-base"]});YUI.add("yui",function(a){},"@VERSION@",{use:["yui-base","get","features","intl-base","yui-log","yui-log-nodejs","yui-later","loader-base","loader-rollup","loader-yui3"]});
View
314 build/yui-nodejs/yui-nodejs.js
@@ -6237,58 +6237,6 @@ Y.Loader.prototype = {
onSuccess: complete
});
}
-
-
- /*
-
- this.loadType = type;
-
- if (!type) {
-
- var self = this;
-
- this._internalCallback = function() {
-
- var f = self.onCSS, n, p, sib;
-
- // IE hack for style overrides that are not being applied
- if (this.insertBefore && Y.UA.ie) {
- n = Y.config.doc.getElementById(this.insertBefore);
- p = n.parentNode;
- sib = n.nextSibling;
- p.removeChild(n);
- if (sib) {
- p.insertBefore(n, sib);
- } else {
- p.appendChild(n);
- }
- }
-
- if (f) {
- f.call(self.context, Y);
- }
- self._internalCallback = null;
-
- self._insert(null, null, JS);
- };
-
- this._insert(null, null, CSS);
-
- return;
- }
-
- // set a flag to indicate the load has started
- this._loading = true;
-
- // flag to indicate we are done with the combo service
- // and any additional files will need to be loaded
- // individually
- this._combineComplete = {};
-
- // start the load
- this.loadNext();
- */
-
},
/**
* Once a loader operation is completely finished, process any additional queued items.
@@ -6326,269 +6274,13 @@ Y.Loader.prototype = {
* is possible to call this if using a method other than
* Y.register to determine when scripts are fully loaded
* @method loadNext
+ * @deprecated
* @param {string} mname optional the name of the module that has
* been loaded (which is usually why it is time to load the next
* one).
*/
loadNext: function(mname) {
- // It is possible that this function is executed due to something
- // else on the page loading a YUI module. Only react when we
- // are actively loading something
- if (!this._loading) {
- return;
- }
-
- var s, len, i, m, url, fn, msg, attr, group, groupName, j, frag,
- comboSource, comboSources, mods, combining, urls, comboBase,
- self = this,
- type = self.loadType,
- handleSuccess = function(o) {
- self.loadNext(o.data);
- },
- handleCombo = function(o) {
- self._combineComplete[type] = true;
- var i, len = combining.length;
-
- for (i = 0; i < len; i++) {
- self.inserted[combining[i]] = true;
- }
-
- handleSuccess(o);
- };
-
- if (self.combine && (!self._combineComplete[type])) {
-
- combining = [];
-
- self._combining = combining;
- s = self.sorted;
- len = s.length;
-
- // the default combo base
- comboBase = self.comboBase;
-
- url = comboBase;
- urls = [];
-
- comboSources = {};
-
- for (i = 0; i < len; i++) {
- comboSource = comboBase;
- m = self.getModule(s[i]);
- groupName = m && m.group;
- if (groupName) {
-
- group = self.groups[groupName];
-
- if (!group.combine) {
- m.combine = false;
- continue;
- }
- m.combine = true;
- if (group.comboBase) {
- comboSource = group.comboBase;
- }
-
- if ("root" in group && L.isValue(group.root)) {
- m.root = group.root;
- }
-
- }