loader-base-min.js revision 7e22450dcad311ea17670bd19d78d849abc718f1
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-2012.01.25-21-14",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=1024,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;A=A||{};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]=d.merge(C);});o=a._conditions;r(o,function w(C,B){x.conditions[B]=d.merge(C);});}else{r(z,x.addModule,x);}x.loaded=p[s];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.dirty=true;x.inserted={};x.skipped={};x.tested={};};d.Loader.prototype={REGEX_CSS:/\.css(?:[?;].*)?$/i,FILTER_DEFS:{RAW:{"searchExp":"-min\\.js","replaceStr":".js"},DEBUG:{"searchExp":"-min\\.js","replaceStr":"-debug.js"}},_inspectPage:function(){r(this.moduleInfo,function(x,w){if(x.type&&x.type===q){if(this.isCSSLoaded(x.name)){this.loaded[w]=true;}}},this);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"){if(typeof B==="string"){w.skin.defaultSkin=C.skin;B={defaultSkin:B};}d.mix(w.skin,B,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{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){if(typeof B==="string"){B={name:A,fullpath:B};}B.group=x;w.addModule(B,A);},w);}},addModule:function(N,U){U=U||N.name;if(typeof N==="string"){N={name:U,fullpath:N};}if(this.moduleInfo[U]&&this.moduleInfo[U].temp){N=d.merge(this.moduleInfo[U],N);}N.name=U;if(!N||!N.name){return null;}if(!N.type){N.type=k;var L=N.path||N.fullpath;if(L&&this.REGEX_CSS.test(L)){N.type=q;}}if(!N.path&&!N.fullpath){N.path=g(U,U,N.type);}N.supersedes=N.supersedes||N.use;N.ext=("ext" in N)?N.ext:(this._internal)?false:true;N.requires=this.filterRequires(N.requires)||[];var R=N.submodules,Q,O,H,w,I,y,M,x,P,J,F,C,A,z,T,S,G,B,D,E=this.conditions,K;this.moduleInfo[U]=N;if(!N.langPack&&N.lang){J=j(N.lang);for(P=0;P<J.length;P++){T=J[P];F=this.getLangPackName(T,U);y=this.moduleInfo[F];if(!y){y=this._addLangPack(T,N,F);}}}if(R){w=N.supersedes||[];O=0;for(Q in R){if(R.hasOwnProperty(Q)){I=R[Q];I.path=I.path||g(U,Q,N.type);I.pkg=U;I.group=N.group;if(I.supersedes){w=w.concat(I.supersedes);}y=this.addModule(I,Q);w.push(Q);if(y.skinnable){N.skinnable=true;G=this.skin.overrides;if(G&&G[Q]){for(P=0;P<G[Q].length;P++){B=this._addSkin(G[Q][P],Q,U);w.push(B);}}B=this._addSkin(this.skin.defaultSkin,Q,U);w.push(B);}if(I.lang&&I.lang.length){J=j(I.lang);for(P=0;P<J.length;P++){T=J[P];F=this.getLangPackName(T,U);C=this.getLangPackName(T,Q);y=this.moduleInfo[F];if(!y){y=this._addLangPack(T,N,F);}A=A||j.hash(y.supersedes);if(!(C in A)){y.supersedes.push(C);}N.lang=N.lang||[];z=z||j.hash(N.lang);if(!(T in z)){N.lang.push(T);}F=this.getLangPackName(u,U);C=this.getLangPackName(u,Q);y=this.moduleInfo[F];if(!y){y=this._addLangPack(T,N,F);
}if(!(C in A)){y.supersedes.push(C);}}}O++;}}N.supersedes=j.dedupe(w);if(this.allowRollup){N.rollup=(O<4)?O:Math.min(O-1,4);}}M=N.plugins;if(M){for(Q in M){if(M.hasOwnProperty(Q)){x=M[Q];x.pkg=U;x.path=x.path||g(U,Q,N.type);x.requires=x.requires||[];x.group=N.group;this.addModule(x,Q);if(N.skinnable){this._addSkin(this.skin.defaultSkin,Q,U);}}}}if(N.condition){H=N.condition.trigger;if(YUI.Env.aliases[H]){H=YUI.Env.aliases[H];}if(!d.Lang.isArray(H)){H=[H];}for(Q=0;Q<H.length;Q++){K=H[Q];D=N.condition.when;E[K]=E[K]||{};E[K][U]=N.condition;if(D&&D!="after"){if(D=="instead"){N.supersedes=N.supersedes||[];N.supersedes.push(K);}else{}}else{N.after=N.after||[];N.after.push(K);}}}if(N.supersedes){N.supersedes=this.filterRequires(N.supersedes);}if(N.after){N.after=this.filterRequires(N.after);N.after_map=j.hash(N.after);}if(N.configFn){S=N.configFn(N);if(S===false){delete this.moduleInfo[U];delete a._renderedMods[U];N=null;}}if(N){if(!a._renderedMods){a._renderedMods={};}a._renderedMods[U]=d.merge(N);a._conditions=E;}return N;},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&&!X.test)||(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);if(!this.isCSSLoaded(z,this._boot)){N.push(z);}}}else{z=this._addSkin(this.skin.defaultSkin,U);if(!this.isCSSLoaded(z,this._boot)){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;},isCSSLoaded:function(x,A){if(!x||!YUI.Env.cssStampEl||(!A&&this.ignoreRegistered)){return false;}var z=YUI.Env.cssStampEl,w=false,y=z.currentStyle;z.className=x;if(!y){y=d.config.doc.defaultView.getComputedStyle(z,null);}if(y["display"]==="none"){w=true;}z.className="";return w;},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(C,w,B){var z=w.name,x,y,A=this.moduleInfo[B];if(!A){x=g((w.pkg||z),B,k,true);y={path:x,intl:true,langPack:true,ext:w.ext,group:w.group,supersedes:[]};if(w.configFn){y.configFn=w.configFn;}this.addModule(y,B);if(C){d.Env.lang=d.Env.lang||{};d.Env.lang[C]=d.Env.lang[C]||{};d.Env.lang[C][z]=true;}}return this.moduleInfo[B];},_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(A){var y=this.onFailure,z=[],x=0,w=A.errors.length;for(x;x<w;x++){z.push(A.errors[x].error);}z=z.join(",");if(y){y.call(this.context,{msg:z,data:this.data,success:false});}this._finish(z,false);},_onTimeout:function(){var w=this.onTimeout;if(w){w.call(this.context,{msg:"timeout",data:this.data,success: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;},_insert:function(w,z,D,y){if(w){this._config(w);}if(!y){this.calculate(z);}var A=this.resolve(),E=this,C=0,B=0;if(D){A[((D===k)?q:k)]=[];}if(A.js.length){C++;}if(A.css.length){C++;}var x=function(J){B++;var F={},H=0,G="",I;if(J&&J.errors){for(H=0;H<J.errors.length;H++){if(J.errors[H].request){G=J.errors[H].request.url;}else{G=J.errors[H];}F[G]=G;}}if(J&&J.data&&J.data.length&&(J.type==="success")){for(H=0;H<J.data.length;H++){E.inserted[J.data[H].name]=true;}}if(B===C){E._loading=null;if(J&&J.fn){I=J.fn;delete J.fn;I.call(E,J);}}};this._loading=true;if(!A.js.length&&!A.css.length){B=-1;x({fn:E._onSuccess});return;}if(A.css.length){d.Get.css(A.css,{data:A.cssMods,attributes:E.cssAttributes,insertBefore:E.insertBefore,charset:E.charset,timeout:E.timeout,context:E,onProgress:function(F){E._onProgress.call(E,F);},onTimeout:function(F){E._onTimeout.call(E,F);},onSuccess:function(F){F.type="success";F.fn=E._onSuccess;x.call(E,F);},onFailure:function(F){F.type="failure";F.fn=E._onFailure;x.call(E,F);}});}if(A.js.length){d.Get.js(A.js,{data:A.jsMods,insertBefore:E.insertBefore,attributes:E.jsAttributes,charset:E.charset,timeout:E.timeout,autopurge:false,context:E,async:true,onProgress:function(F){E._onProgress.call(E,F);},onTimeout:function(F){E._onTimeout.call(E,F);},onSuccess:function(F){F.type="success";F.fn=E._onSuccess;x.call(E,F);},onFailure:function(F){F.type="failure";F.fn=E._onFailure;x.call(E,F);}});}},_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,B){var A=this.filter,w=x&&(x in this.filters),z=w&&this.filters[x],C=B||(this.moduleInfo[x]?this.moduleInfo[x].group:null);if(C&&this.groups[C]&&this.groups[C].filter){z=this.groups[C].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(x,O){var X,W,U,E,J,G,T,I,N,V,y,H,R,D,aa,F,Y,M=[],K,Q,A={},P=this,w,z,Z=[],B=(P.ignoreRegistered)?{}:P.inserted,S={js:[],jsMods:[],css:[],cssMods:[]},C=P.loadType||"js";if(x){P.calculate();}O=O||P.sorted;var L=function(ab){if(ab){I=(ab.group&&P.groups[ab.group])||f;E=(ab.fullpath)?P._filter(ab.fullpath,O[W]):P._url(ab.path,O[W],I.base||ab.base);if(ab.attributes){E={url:E,attributes:ab.attributes};}S[ab.type].push(E);S[ab.type+"Mods"].push(ab);}else{}};X=O.length;aa=P.comboBase;E=aa;R={};for(W=0;W<X;W++){H=aa;U=P.getModule(O[W]);N=U&&U.group;I=P.groups[N];if(N&&I){if(!I.combine||U.fullpath){L(U);continue;}U.combine=true;if(I.comboBase){H=I.comboBase;}if("root" in I&&i.isValue(I.root)){U.root=I.root;}U.comboSep=I.comboSep||P.comboSep;U.maxURLLength=I.maxURLLength||P.maxURLLength;}else{if(!P.combine){L(U);continue;}}R[H]=R[H]||[];R[H].push(U);}for(V in R){if(R.hasOwnProperty(V)){A[V]=A[V]||{js:[],jsMods:[],css:[],cssMods:[]};E=V;D=R[V];X=D.length;if(X){for(W=0;W<X;W++){if(B[D[W]]){continue;}U=D[W];if(U&&(U.combine||!U.ext)){A[V].comboSep=U.comboSep;A[V].group=U.group;A[V].maxURLLength=U.maxURLLength;y=((i.isValue(U.root))?U.root:P.root)+(U.path||U.fullpath);y=P._filter(y,U.name);A[V][U.type].push(y);A[V][U.type+"Mods"].push(U);}else{if(D[W]){L(D[W]);}}}}}}for(V in A){F=V;w=A[F].comboSep||P.comboSep;z=A[F].maxURLLength||P.maxURLLength;for(C in A[F]){if(C===k||C===q){Y=A[F][C];D=A[F][C+"Mods"];X=Y.length;K=F+Y.join(w);Q=K.length;if(z<=F.length){z=m;}if(X){if(Q>z){M=[];for(O=0;O<X;O++){M.push(Y[O]);K=F+M.join(w);if(K.length>z){U=M.pop();K=F+M.join(w);S[C].push(P._filter(K,null,A[F].group));M=[];if(U){M.push(U);}}}if(M.length){K=F+M.join(w);S[C].push(P._filter(K,null,A[F].group));}}else{S[C].push(P._filter(K,null,A[F].group));}}S[C+"Mods"]=S[C+"Mods"].concat(D);}}}A=null;return S;}};},"@VERSION@",{requires:["get","features"]});