text: /**
   * skylark-handlebars - A version of handlebars.js that ported to running on skylarkjs
   * @author Hudaokeji, Inc.
   * @version v0.9.0
   * @link https://github.com/skylark-integration/skylark-handlebars/
   * @license MIT
   */
  define(["../utils"],function(t){"use strict";let e;try{if("function"!=typeof define||!define.amd){let t=require("source-map");e=t.SourceNode}}catch(t){}function r(e,r,n){if(t.isArray(e)){let t=[];for(let i=0,s=e.length;i<s;i++)t.push(r.wrap(e[i],n));return t}return"boolean"==typeof e||"number"==typeof e?e+"":e}function n(t){this.srcFile=t,this.source=[]}return e||((e=function(t,e,r,n){this.src="",n&&this.add(n)}).prototype={add:function(e){t.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){t.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),n.prototype={isEmpty(){return!this.source.length},prepend:function(t,e){this.source.unshift(this.wrap(t,e))},push:function(t,e){this.source.push(this.wrap(t,e))},merge:function(){let t=this.empty();return this.each(function(e){t.add(["  ",e,"\n"])}),t},each:function(t){for(let e=0,r=this.source.length;e<r;e++)t(this.source[e])},empty:function(){let t=this.currentLocation||{start:{}};return new e(t.start.line,t.start.column,this.srcFile)},wrap:function(t,n=this.currentLocation||{start:{}}){return t instanceof e?t:(t=r(t,this,n),new e(n.start.line,n.start.column,this.srcFile,t))},functionCall:function(t,e,r){return r=this.generateList(r),this.wrap([t,e?"."+e+"(":"(",r,")"])},quotedString:function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(t){let e=[];Object.keys(t).forEach(n=>{let i=r(t[n],this);"undefined"!==i&&e.push([this.quotedString(n),":",i])});let n=this.generateList(e);return n.prepend("{"),n.add("}"),n},generateList:function(t){let e=this.empty();for(let n=0,i=t.length;n<i;n++)n&&e.add(","),e.add(r(t[n],this));return e},generateArray:function(t){let e=this.generateList(t);return e.prepend("["),e.add("]"),e}},n});
  //# sourceMappingURL=../sourcemaps/compiler/code-gen.js.map
  