YUI.add("loader-pathogen-combohandler",function(i,o){var g,h,c="+",u=/-(min|debug).js/,a=/\.(?:js|css)$/,l=/^(?:yui:)?gallery-([^\/]+)/,p={js:!0,css:!0};i.mix(i.Loader.prototype,{_pathogenEncodeComboSources:function(o){var e,t,r,n,s=this.combine;if(!s)for(r in this.groups)if(this.groups.hasOwnProperty(r)&&!s&&r.combine){s=r.combine;break}if((h=i.config.customComboBase?i.config.customComboBase:h)&&s)for(n in this.maxURLLength,p)p.hasOwnProperty(n)&&(t=(e=n)+"Mods",o[e]=o[e]||[],o[t]=e=o[t]||[],t=this._customResolve(e,n),o[n]=o[n].concat(t));return o},_customResolve:function(o,e){for(var o=this._aggregateGroups(o),t=this._sortAggregatedGroups(o),r=[],o=(o=u.exec(i.config.loaderPath))&&o[1]||"raw",n=(n="min"==(o="css"===e&&"debug"===o?"raw":"min")?"":"."+o)+"."+e,s=this._buildCombo(t,h,n);s;)r.push(s),s=this._buildCombo(t,h,n);return r},_aggregateGroups:function(o){for(var e,t,r,n,s,i={},h=0,u=o.length;h<u;h+=1){if(r=(n=o[h]).name,t=this.groups&&this.groups[n.group]){if(!t.combine||n.fullpath)continue}else if(!this.combine)continue;!n.combine&&n.ext||(i[s=n.group?"gallery"===n.group?(g||(e=l.exec(this.groups.gallery.root),g=e&&e[1]),r=r.split("gallery-").pop(),"g+"+g):0===n.path.indexOf(r+"/"+r)?"r+"+(s="/"===(s="/"===(s=t.root).charAt(0)?s.slice(1):s).charAt(s.length-1)?s.slice(0,-1):s):(r=n.path.split(a).shift(),"path+"+(r="/"===(r=t&&t.root?t.root+r:r).charAt(0)?r.slice(1):r)):"c+"+YUI.version]=i[s]||[],i[s].push(r))}return i},_buildCombo:function(o,e,t){for(var r,n,s,i,h,u=e,g=e.length+t.length,a=0,l=o.length;a<l;a+=1)for(r=u===e?"":";",n=(h=o[a]).key,s=h.modules;s.length;){if(i=(i=r+n)?i+c:",",!(g+(i=(i=0===h.key.indexOf("path")?r:i)+s[0]).length<this.maxURLLength))return u+t;u+=i,g+=i.length,s.shift(),r=n=""}return u=(u+=t).length===e.length+t.length?null:u},_sortAggregatedGroups:function(o){var e,t,r,n=[];for(e in o)o.hasOwnProperty(e)&&n.push({key:e,modules:o[e]});for(n.sort(function(o,e){return o.key<e.key?-1:o.key>e.key?1:0}),r=0,t=n.length;r<t;r+=1)n[r].modules.sort();return n}},!0)},"patched-v3.18.7");