define("gallery/handlebars/1.0.0/runtime",[],function(t,e,s){this.Handlebars={},function(t){t.VERSION="1.0.0-rc.3",t.COMPILER_REVISION=2,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:">= 1.0.0-rc.3"},t.helpers={},t.partials={},t.registerHelper=function(t,e,s){s&&(e.not=s),this.helpers[t]=e},t.registerPartial=function(t,e){this.partials[t]=e},t.registerHelper("helperMissing",function(t){if(2===arguments.length)return void 0;throw Error("Could not find property '"+t+"'")});var e=Object.prototype.toString,s="[object Function]";t.registerHelper("blockHelperMissing",function(i,n){var r=n.inverse||function(){},a=n.fn,o=e.call(i);return o===s&&(i=i.call(this)),i===!0?a(this):i===!1||null==i?r(this):"[object Array]"===o?i.length>0?t.helpers.each(i,n):r(this):a(i)}),t.K=function(){},t.createFrame=Object.create||function(e){t.K.prototype=e;var s=new t.K;return t.K.prototype=null,s},t.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,methodMap:{0:"debug",1:"info",2:"warn",3:"error"},log:function(e,s){if(e>=t.logger.level){var i=t.logger.methodMap[e];"undefined"!=typeof console&&console[i]&&console[i].call(console,s)}}},t.log=function(e,s){t.logger.log(e,s)},t.registerHelper("each",function(e,s){var i,n=s.fn,r=s.inverse,a=0,o="";if(s.data&&(i=t.createFrame(s.data)),e&&"object"==typeof e)if(e instanceof Array)for(var h=e.length;h>a;a++)i&&(i.index=a),o+=n(e[a],{data:i});else for(var l in e)e.hasOwnProperty(l)&&(i&&(i.key=l),o+=n(e[l],{data:i}),a++);return 0===a&&(o=r(this)),o}),t.registerHelper("if",function(i,n){var r=e.call(i);return r===s&&(i=i.call(this)),!i||t.Utils.isEmpty(i)?n.inverse(this):n.fn(this)}),t.registerHelper("unless",function(e,s){var i=s.fn,n=s.inverse;return s.fn=n,s.inverse=i,t.helpers["if"].call(this,e,s)}),t.registerHelper("with",function(t,e){return e.fn(t)}),t.registerHelper("log",function(e,s){var i=s.data&&null!=s.data.level?parseInt(s.data.level,10):1;t.log(i,e)})}(this.Handlebars);var i=["description","fileName","lineNumber","message","name","number","stack"];Handlebars.Exception=function(){for(var t=Error.prototype.constructor.apply(this,arguments),e=0;i.length>e;e++)this[i[e]]=t[i[e]]},Handlebars.Exception.prototype=Error(),Handlebars.SafeString=function(t){this.string=t},Handlebars.SafeString.prototype.toString=function(){return""+this.string},function(){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},e=/[&<>"'`]/g,s=/[&<>"'`]/,i=function(e){return t[e]||"&amp;"};Handlebars.Utils={escapeExpression:function(t){return t instanceof Handlebars.SafeString?""+t:null==t||t===!1?"":s.test(t)?t.replace(e,i):t},isEmpty:function(t){return t||0===t?"[object Array]"===Object.prototype.toString.call(t)&&0===t.length?!0:!1:!0}}}(),Handlebars.VM={template:function(t){var e={escapeExpression:Handlebars.Utils.escapeExpression,invokePartial:Handlebars.VM.invokePartial,programs:[],program:function(t,e,s){var i=this.programs[t];return s?Handlebars.VM.program(e,s):i?i:i=this.programs[t]=Handlebars.VM.program(e)},programWithDepth:Handlebars.VM.programWithDepth,noop:Handlebars.VM.noop,compilerInfo:null};return function(s,i){i=i||{};var n=t.call(e,Handlebars,s,i.helpers,i.partials,i.data),r=e.compilerInfo||[],a=r[0]||1,o=Handlebars.COMPILER_REVISION;if(a!==o){if(o>a){var h=Handlebars.REVISION_CHANGES[o],l=Handlebars.REVISION_CHANGES[a];throw"Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+h+") or downgrade your runtime to an older version ("+l+")."}throw"Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+r[1]+")."}return n}},programWithDepth:function(t,e){var s=Array.prototype.slice.call(arguments,2);return function(i,n){return n=n||{},t.apply(this,[i,n.data||e].concat(s))}},program:function(t,e){return function(s,i){return i=i||{},t(s,i.data||e)}},noop:function(){return""},invokePartial:function(t,e,s,i,n,r){var a={helpers:i,partials:n,data:r};if(void 0===t)throw new Handlebars.Exception("The partial "+e+" could not be found");if(t instanceof Function)return t(s,a);if(Handlebars.compile)return n[e]=Handlebars.compile(t,{data:void 0!==r}),n[e](s,a);throw new Handlebars.Exception("The partial "+e+" could not be compiled when running in runtime-only mode")}},Handlebars.template=Handlebars.VM.template,s.exports=Handlebars});
