YUI.add("template-base",function(s,e){function u(e,t){this.defaults=t,this.engine=e||s.Template.Micro,this.engine||s.error("No template engine loaded.")}u._registry={},u.register=function(e,t){return u._registry[e]=t},u.get=function(e){return u._registry[e]},u.render=function(e,t,i){var r=u._registry[e],n="";return r?n=r(t,i):s.error('Unregistered template: "'+e+'"'),n},u.prototype={compile:function(e,t){return t=t?s.merge(this.defaults,t):this.defaults,this.engine.compile(e,t)},precompile:function(e,t){return t=t?s.merge(this.defaults,t):this.defaults,this.engine.precompile(e,t)},render:function(e,t,i){return i=i?s.merge(this.defaults,i):this.defaults,this.engine.render?this.engine.render(e,t,i):this.engine.compile(e,i)(t,i)},revive:function(e,t){return t=t?s.merge(this.defaults,t):this.defaults,this.engine.revive?this.engine.revive(e,t):e}},s.Template=s.Template?s.mix(u,s.Template):u},"patched-v3.18.7",{requires:["yui-base"]});