Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

haml-coffee

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haml-coffee - npm Package Compare versions

Comparing version 1.13.4 to 1.13.5

7

CHANGELOG.md
# Haml Coffee Changelog
## Version 1.13.5, November 26, 2013
* [#85](https://github.com/netzpirat/haml-coffee/pull/85): fix boolean handling with data-\* attributes. ([@bastjan](https:://github.com/bastjan)
* [#83](https://github.com/netzpirat/haml-coffee/pull/83): Maintain context through includes. ([@rharriso](https:://github.com/hrriso)
## Version 1.13.4, October 28, 2013
* [#82](https://github.com/netzpirat/haml-coffee/pull/82): Fix include directive in standalone mode. ([@dn](https:://github/com/dn))
* [#82](https://github.com/netzpirat/haml-coffee/pull/82): Fix include directive in standalone mode. ([@dn](https:://github.com/dn))

@@ -7,0 +12,0 @@ ## Version 1.13.3, October 22, 2013

4

dist/compiler/hamlcoffee.min.js

@@ -1,2 +0,2 @@

var require=function(a,b){var c=require.resolve(a,b||"/"),d=require.modules[c];if(!d)throw new Error("Failed to resolve module "+a+", tried "+c);var e=require.cache[c],f=e?e.exports:d();return f};require.paths=[],require.modules={},require.cache={},require.extensions=[".js",".coffee",".json"],require._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},require.resolve=function(){return function(a,b){function c(a){if(a=g.normalize(a),require.modules[a])return a;for(var b=0;b<require.extensions.length;b++){var c=require.extensions[b];if(require.modules[a+c])return a+c}}function d(a){a=a.replace(/\/+$/,"");var b=g.normalize(a+"/package.json");if(require.modules[b]){var d=require.modules[b](),e=d.browserify;if("object"==typeof e&&e.main){var f=c(g.resolve(a,e.main));if(f)return f}else if("string"==typeof e){var f=c(g.resolve(a,e));if(f)return f}else if(d.main){var f=c(g.resolve(a,d.main));if(f)return f}}return c(a+"/index")}function e(a,b){for(var e=f(b),g=0;g<e.length;g++){var h=e[g],i=c(h+"/"+a);if(i)return i;var j=d(h+"/"+a);if(j)return j}var i=c(a);return i?i:void 0}function f(a){var b;b="/"===a?[""]:g.normalize(a).split("/");for(var c=[],d=b.length-1;d>=0;d--)if("node_modules"!==b[d]){var e=b.slice(0,d+1).join("/")+"/node_modules";c.push(e)}return c}if(b||(b="/"),require._core[a])return a;var g=require.modules.path();b=g.resolve("/",b);var h=b||"/";if(a.match(/^(?:\.\.?\/|\/)/)){var i=c(g.resolve(h,a))||d(g.resolve(h,a));if(i)return i}var j=e(a,h);if(j)return j;throw new Error("Cannot find module '"+a+"'")}}(),require.alias=function(a,b){var c=require.modules.path(),d=null;try{d=require.resolve(a+"/package.json","/")}catch(e){d=require.resolve(a,"/")}for(var f=c.dirname(d),g=(Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b})(require.modules),h=0;h<g.length;h++){var i=g[h];if(i.slice(0,f.length+1)===f+"/"){var j=i.slice(f.length);require.modules[b+j]=require.modules[f+j]}else i===f&&(require.modules[b]=require.modules[f])}},function(){var a={},b="undefined"!=typeof window?window:{},c=!1;require.define=function(d,e){!c&&require.modules.__browserify_process&&(a=require.modules.__browserify_process(),c=!0);var f=require._core[d]?"":require.modules.path().dirname(d),g=function(a){var b=require(a,f),c=require.cache[require.resolve(a,f)];return c&&null===c.parent&&(c.parent=h),b};g.resolve=function(a){return require.resolve(a,f)},g.modules=require.modules,g.define=require.define,g.cache=require.cache;var h={id:d,filename:d,exports:{},loaded:!1,parent:null};require.modules[d]=function(){return require.cache[d]=h,e.call(h.exports,g,h,h.exports,f,d,a,b),h.loaded=!0,h.exports}}}(),require.define("path",function(a,b,c,d,e,f){function g(a,b){for(var c=[],d=0;d<a.length;d++)b(a[d],d,a)&&c.push(a[d]);return c}function h(a,b){for(var c=0,d=a.length;d>=0;d--){var e=a[d];"."==e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}var i=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;c.resolve=function(){for(var a="",b=!1,c=arguments.length;c>=-1&&!b;c--){var d=c>=0?arguments[c]:f.cwd();"string"==typeof d&&d&&(a=d+"/"+a,b="/"===d.charAt(0))}return a=h(g(a.split("/"),function(a){return!!a}),!b).join("/"),(b?"/":"")+a||"."},c.normalize=function(a){var b="/"===a.charAt(0),c="/"===a.slice(-1);return a=h(g(a.split("/"),function(a){return!!a}),!b).join("/"),a||b||(a="."),a&&c&&(a+="/"),(b?"/":"")+a},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(g(a,function(a){return a&&"string"==typeof a}).join("/"))},c.dirname=function(a){var b=i.exec(a)[1]||"",c=!1;return b?1===b.length||c&&b.length<=3&&":"===b.charAt(1)?b:b.substring(0,b.length-1):"."},c.basename=function(a,b){var c=i.exec(a)[2]||"";return b&&c.substr(-1*b.length)===b&&(c=c.substr(0,c.length-b.length)),c},c.extname=function(a){return i.exec(a)[3]||""},c.relative=function(a,b){function d(a){for(var b=0;b<a.length&&""===a[b];b++);for(var c=a.length-1;c>=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;g>i;i++)if(e[i]!==f[i]){h=i;break}for(var j=[],i=h;i<e.length;i++)j.push("..");return j=j.concat(f.slice(h)),j.join("/")}}),require.define("__browserify_process",function(a,b,c,d,e,f){var f=b.exports={};f.nextTick=function(){var a="undefined"!=typeof window&&window.setImmediate,b="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(a)return function(a){return window.setImmediate(a)};if(b){var c=[];return window.addEventListener("message",function(a){if(a.source===window&&"browserify-tick"===a.data&&(a.stopPropagation(),c.length>0)){var b=c.shift();b()}},!0),function(a){c.push(a),window.postMessage("browserify-tick","*")}}return function(a){setTimeout(a,0)}}(),f.title="browser",f.browser=!0,f.env={},f.argv=[],f.binding=function(b){if("evals"===b)return a("vm");throw new Error("No such module. (Possibly not yet loaded)")},function(){var b,c="/";f.cwd=function(){return c},f.chdir=function(d){b||(b=a("path")),c=b.resolve(d,c)}}()}),require.define("/haml-coffee.coffee",function(a,b){!function(){var c,d,e,f,g,h,i,j,k,l;i=a("./nodes/node"),j=a("./nodes/text"),g=a("./nodes/haml"),c=a("./nodes/code"),d=a("./nodes/comment"),f=a("./nodes/filter"),e=a("./nodes/directive"),l=a("./util/text").whitespace,k=a("./util/text").indent,b.exports=h=function(){function a(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;if(this.options=null!=a?a:{},null==(d=this.options).placement&&(d.placement="global"),null==(e=this.options).dependencies&&(e.dependencies={hc:"hamlcoffee"}),null==(j=this.options).escapeHtml&&(j.escapeHtml=!0),null==(k=this.options).escapeAttributes&&(k.escapeAttributes=!0),null==(l=this.options).cleanValue&&(l.cleanValue=!0),null==(m=this.options).uglify&&(m.uglify=!1),null==(n=this.options).basename&&(n.basename=!1),null==(o=this.options).extendScope&&(o.extendScope=!1),null==(p=this.options).format&&(p.format="html5"),null==(q=this.options).hyphenateDataAttrs&&(q.hyphenateDataAttrs=!0),null==(f=this.options).preserveTags&&(f.preserveTags="pre,textarea"),null==(g=this.options).selfCloseTags&&(g.selfCloseTags="meta,img,link,br,hr,input,area,param,col,base"),"global"===this.options.placement)if(null==(h=this.options).name&&(h.name="test"),null==(i=this.options).namespace&&(i.namespace="window.HAML"),c=(""+this.options.namespace+"."+this.options.name).replace(/(\s|-)+/g,"_").split(/\./),this.options.name=this.options.basename?c.pop().split(/\/|\\/).pop():c.pop(),this.options.namespace=c.shift(),this.intro="",0!==c.length)for(r=0,s=c.length;s>r;r++)b=c[r],this.options.namespace+="."+b,this.intro+=""+this.options.namespace+" ?= {}\n";else this.intro+=""+this.options.namespace+" ?= {}\n"}return a.VERSION="1.13.4",a.prototype.indentChanged=function(){return this.currentIndent!==this.previousIndent},a.prototype.isIndent=function(){return this.currentIndent>this.previousIndent},a.prototype.updateTabSize=function(){return 0===this.tabSize?this.tabSize=this.currentIndent-this.previousIndent:void 0},a.prototype.updateBlockLevel=function(){if(this.currentBlockLevel=this.currentIndent/this.tabSize,!this.node.isCommented()){if(this.currentBlockLevel-Math.floor(this.currentBlockLevel)>0)throw"Indentation error in line "+this.lineNumber;if((this.currentIndent-this.previousIndent)/this.tabSize>1)throw"Block level too deep in line "+this.lineNumber}return this.delta=this.previousBlockLevel-this.currentBlockLevel},a.prototype.updateCodeBlockLevel=function(a){return this.currentCodeBlockLevel=a instanceof c?a.codeBlockLevel+1:a.codeBlockLevel},a.prototype.updateParent=function(){return this.isIndent()?this.pushParent():this.popParent()},a.prototype.pushParent=function(){return this.stack.push(this.parentNode),this.parentNode=this.node},a.prototype.popParent=function(){var a,b,c,d;for(d=[],a=b=0,c=this.delta-1;c>=0?c>=b:b>=c;a=c>=0?++b:--b)d.push(this.parentNode=this.stack.pop());return d},a.prototype.getNodeOptions=function(a){return null==a&&(a={}),{parentNode:a.parentNode||this.parentNode,blockLevel:a.blockLevel||this.currentBlockLevel,codeBlockLevel:a.codeBlockLevel||this.currentCodeBlockLevel,escapeHtml:a.escapeHtml||this.options.escapeHtml,escapeAttributes:a.escapeAttributes||this.options.escapeAttributes,cleanValue:a.cleanValue||this.options.cleanValue,format:a.format||this.options.format,hyphenateDataAttrs:a.hyphenateDataAttrs||this.options.format,preserveTags:a.preserveTags||this.options.preserveTags,selfCloseTags:a.selfCloseTags||this.options.selfCloseTags,uglify:a.uglify||this.options.uglify,placement:a.placement||this.options.placement,namespace:a.namespace||this.options.namespace,name:a.name||this.options.name}},a.prototype.nodeFactory=function(a){var b,h,i;return null==a&&(a=""),h=this.getNodeOptions(),b=a.match(/^:(escaped|preserve|css|javascript|plain|cdata|coffeescript)/)?new f(a,h):a.match(/^(\/|-#)(.*)/)?new d(a,h):a.match(/^(-#|-|=|!=|\&=|~)\s*(.*)/)?new c(a,h):a.match(/^(%|#[^{]|\.|\!)(.*)/)?new g(a,h):a.match(/^\+(.*)/)?new e(a,h):new j(a,h),null!=(i=h.parentNode)&&i.addChild(b),b},a.prototype.parse=function(a){var b,c,d,e,g,h,k,l,m,n,o,p,q,r;for(null==a&&(a=""),this.lineNumber=this.previousIndent=this.tabSize=this.currentBlockLevel=this.previousBlockLevel=0,this.currentCodeBlockLevel=this.previousCodeBlockLevel=0,this.node=null,this.stack=[],this.root=this.parentNode=new i("",this.getNodeOptions()),e=a.replace(/\r/g,"").split("\n");void 0!==(d=e.shift());){if(this.node instanceof f&&!this.exitFilter)if(/^(\s)*$/.test(d))this.node.addChild(new j("",this.getNodeOptions({parentNode:this.node})));else{if(h=d.match(/^(\s*)(.*)/),m=h[1],c=h[2],this.node.blockLevel>=m.length/2){this.exitFilter=!0,e.unshift(d);continue}for(g=this.tabSize>2?function(){r=[];for(var a=p=this.tabSize;1>=p?1>=a:a>=1;1>=p?a++:a--)r.push(a);return r}.apply(this):[2,1],n=0,o=g.length;o>n;n++)if(k=g[n],l=d.match(RegExp("^\\s{"+(this.node.blockLevel*k+k)+"}(.*)"))){this.node.addChild(new j(l[1],this.getNodeOptions({parentNode:this.node})));break}}else{if(this.exitFilter=!1,h=d.match(/^(\s*)(.*)/),m=h[1],c=h[2],/^\s*$/.test(d))continue;for(;/^[%.#].*[{(]/.test(c)&&RegExp("^\\s{"+(this.previousIndent+(this.tabSize||2))+"}").test(e[0])&&!/^(\s*)[-=&!~.%#</]/.test(e[0])&&/([-\w]+[\w:-]*\w?)\s*=|('\w+[\w:-]*\w?')\s*=|("\w+[\w:-]*\w?")\s*=|(\w+[\w:-]*\w?):|('[-\w]+[\w:-]*\w?'):|("[-\w]+[\w:-]*\w?"):|:(\w+[\w:-]*\w?)\s*=>|:?'([-\w]+[\w:-]*\w?)'\s*=>|:?"([-\w]+[\w:-]*\w?)"\s*=>/.test(e[0])&&!/;\s*$/.test(e[0]);)b=e.shift(),c=c.replace(/(\s)+\|\s*$/,""),c+=" "+b.match(/^\s*(.*?)(\s+\|\s*)?$/)[1],this.lineNumber++;for(;/^-#/.test(c)&&RegExp("^\\s{"+(this.previousIndent+(this.tabSize||2))+"}").test(e[0])&&e.length>0;)e.shift(),this.lineNumber++;if(c.match(/(\s)+\|\s*$/))for(c=c.replace(/(\s)+\|\s*$/," ");null!=(q=e[0])?q.match(/(\s)+\|$/):void 0;)c+=e.shift().match(/^(\s*)(.*)/)[2].replace(/(\s)+\|\s*$/,""),this.lineNumber++;this.currentIndent=m.length,this.indentChanged()&&(this.updateTabSize(),this.updateBlockLevel(),this.updateParent(),this.updateCodeBlockLevel(this.parentNode)),this.node=this.nodeFactory(c),this.previousBlockLevel=this.currentBlockLevel,this.previousIndent=this.currentIndent}this.lineNumber++}return this.evaluate(this.root)},a.prototype.evaluate=function(a){var b,c,d,e;for(e=a.children,c=0,d=e.length;d>c;c++)b=e[c],this.evaluate(b);return a.evaluate()},a.prototype.render=function(){switch(this.options.placement){case"amd":return this.renderAmd();case"standalone":return this.renderStandalone();default:return this.renderGlobal()}},a.prototype.renderStandalone=function(){var a;return a="return (context) ->\n (->\n"+k(this.precompile(),2)+"\n ).call(context)"},a.prototype.renderAmd=function(){var a,b,c,d,e,f,g,h;/^hamlcoffee/.test(this.options.dependencies.hc)&&(this.options.customHtmlEscape="hc.escape",this.options.customCleanValue="hc.cleanValue",this.options.customPreserve="hc.preserve",this.options.customFindAndPreserve="hc.findAndPreserve",this.options.customSurround="hc.surround",this.options.customSucceed="hc.succeed",this.options.customPrecede="hc.precede",this.options.customReference="hc.reference"),c=[],e=[],g=this.options.dependencies;for(d in g)b=g[d],c.push(b),e.push(d);f=k(this.precompile(),4),h=this.findDependencies(f);for(d in h)b=h[d],c.push(b),e.push(d);return 0!==c.length?(c=function(){var b,d,e;for(e=[],b=0,d=c.length;d>b;b++)a=c[b],e.push("'"+a+"'");return e}(),c="["+c+"], ("+e.join(", ")+")"):c="","define "+c+" ->\n (context) ->\n render = ->\n \n"+f+"\n render.call(context)"},a.prototype.renderGlobal=function(){var a;return a=this.intro,this.options.extendScope?(a+=""+this.options.namespace+"['"+this.options.name+"'] = (context) -> ( ->\n",a+=" `with (context || {}) {`\n",a+=""+k(this.precompile(),1),a+="`}`\n",a+=").call(context)"):(a+=""+this.options.namespace+"['"+this.options.name+"'] = (context) -> ( ->\n",a+=""+k(this.precompile(),1),a+=").call(context)"),a},a.prototype.precompile=function(){var a,b;return b="",a=this.createCode(),-1!==a.indexOf("$e")&&(b+=this.options.customHtmlEscape?"$e = "+this.options.customHtmlEscape+"\n":"$e = (text, escape) ->\n \"#{ text }\"\n .replace(/&/g, '&amp;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;')\n .replace(/'/g, '&#39;')\n .replace(/\\//g, '&#47;')\n .replace(/\"/g, '&quot;')\n"),-1!==a.indexOf("$c")&&(this.options.customCleanValue?b+="$c = "+this.options.customCleanValue+"\n":(b+="$c = (text) ->\n",b+=" switch text\n",b+=" when null, undefined then ''\n",b+=" when true, false then '“' + text\n",b+=" else text\n")),(-1!==a.indexOf("$p")||-1!==a.indexOf("$fp"))&&(b+=this.options.customPreserve?"$p = "+this.options.customPreserve+"\n":"$p = (text) -> text.replace /\\n/g, '&#x000A;'\n"),-1!==a.indexOf("$fp")&&(b+=this.options.customFindAndPreserve?"$fp = "+this.options.customFindAndPreserve+"\n":"$fp = (text) ->\n text.replace /<("+this.options.preserveTags.split(",").join("|")+')>([^]*?)<\\/\\1>/g, (str, tag, content) ->\n "<#{ tag }>#{ $p content }</#{ tag }>"\n'),-1!==a.indexOf("surround")&&(b+=this.options.customSurround?"surround = (start, end, fn) => "+this.options.customSurround+".call(@, start, end, fn)\n":"surround = (start, end, fn) => start + fn.call(@)?.replace(/^\\s+|\\s+$/g, '') + end\n"),-1!==a.indexOf("succeed")&&(b+=this.options.customSucceed?"succeed = (start, end, fn) => "+this.options.customSucceed+".call(@, start, end, fn)\n":"succeed = (end, fn) => fn.call(@)?.replace(/s+$/g, '') + end\n"),-1!==a.indexOf("precede")&&(b+=this.options.customPrecede?"precede = (start, end, fn) => "+this.options.customPrecede+".call(@, start, end, fn)\n":"precede = (start, fn) => start + fn.call(@)?.replace(/^s+/g, '')\n"),-1!==a.indexOf("$r")&&(b+=this.options.customReference?"$r = "+this.options.customReference+"\n":"$r = (object, prefix) ->\n name = if prefix then prefix + '_' else ''\n\n if typeof(object.hamlObjectRef) is 'function'\n name += object.hamlObjectRef()\n else\n name += (object.constructor?.name || 'object').replace(/W+/g, '_').replace(/([a-zd])([A-Z])/g, '$1_$2').toLowerCase()\n\n id = if typeof(object.to_key) is 'function'\n object.to_key()\n else if typeof(object.id) is 'function'\n object.id()\n else if object.id\n object.id\n else\n object\n\n result = \"class='#{ name }'\"\n result += \" id='#{ name }_#{ id }'\" if id\n"),b+="$o = []\n",b+=""+a+"\n",b+='return $o.join("\\n")'+this.convertBooleans(a)+this.removeEmptyIDAndClass(a)+this.cleanupWhitespace(a)+"\n"},a.prototype.createCode=function(){var a,b,c,d,e,f,g,h,i,j;for(b=[],this.lines=[],i=this.root.children,e=0,g=i.length;g>e;e++)a=i[e],this.lines=this.lines.concat(a.render());for(this.lines=this.combineText(this.lines),this.blockLevel=0,j=this.lines,f=0,h=j.length;h>f;f++)if(c=j[f],null!==c)switch(c.type){case"text":b.push(""+l(c.cw)+this.getBuffer(this.blockLevel)+'.push "'+l(c.hw)+c.text+'"');break;case"run":"end"!==c.block?b.push(""+l(c.cw)+c.code):(b.push(""+l(c.cw)+c.code.replace("$buffer",this.getBuffer(this.blockLevel))),this.blockLevel-=1);break;case"insert":d="",c.findAndPreserve&&(d+="$fp "),c.preserve&&(d+="$p "),c.escape&&(d+="$e "),this.options.cleanValue&&(d+="$c "),b.push(""+l(c.cw)+this.getBuffer(this.blockLevel)+'.push "'+l(c.hw)+'" + '+d+c.code),"start"===c.block&&(this.blockLevel+=1,b.push(""+l(c.cw+1)+this.getBuffer(this.blockLevel)+" = []"))}return b.join("\n")},a.prototype.getBuffer=function(a){return a>0?"$o"+a:"$o"},a.prototype.combineText=function(a){var b,c,d;for(b=[];void 0!==(c=a.shift());){if("text"===c.type)for(;a[0]&&"text"===a[0].type&&c.cw===a[0].cw;)d=a.shift(),c.text+="\\n"+l(d.hw)+d.text;b.push(c)}return b},a.prototype.convertBooleans=function(a){return-1!==a.indexOf("$c")?"xhtml"===this.options.format?".replace(/\\s(\\w+)='“true'/mg, \" $1='$1'\").replace(/\\s(\\w+)='“false'/mg, '')":".replace(/\\s(\\w+)='“true'/mg, ' $1').replace(/\\s(\\w+)='“false'/mg, '')":""},a.prototype.removeEmptyIDAndClass=function(a){return-1!==a.indexOf("id=")||-1!==a.indexOf("class=")?'.replace(/\\s(?:id|class)=([\'"])(\\1)/mg, "")':""},a.prototype.cleanupWhitespace=function(a){return/\u0091|\u0092/.test(a)?".replace(/[\\s\\n]*\\u0091/mg, '').replace(/\\u0092[\\s\\n]*/mg, '')":""},a.prototype.findDependencies=function(a){var b,c,d,e,f;for(f=/require(?:\s+|\()(['"])(.+?)(\1)\)?/gm,b={};c=f.exec(a);)d=c[2],e=d.split("/").pop(),b[e]=d;return b},a}()}.call(this)}),require.define("/nodes/node.coffee",function(a,b){!function(){var c,d;d=a("../util/text").escapeHTML,b.exports=c=function(){function a(a,b){this.expression=null!=a?a:"",null==b&&(b={}),this.parentNode=b.parentNode,this.children=[],this.opener=this.closer=null,this.silent=!1,this.preserveTags=b.preserveTags.split(","),this.preserve=!1,this.wsRemoval={around:!1,inside:!1},this.escapeHtml=b.escapeHtml,this.escapeAttributes=b.escapeAttributes,this.cleanValue=b.cleanValue,this.format=b.format,this.hyphenateDataAttrs=b.hyphenateDataAttrs,this.selfCloseTags=b.selfCloseTags.split(","),this.uglify=b.uglify,this.codeBlockLevel=b.codeBlockLevel,this.blockLevel=b.blockLevel,this.placement=b.placement,this.namespace=b.namespace,this.name=b.name}return a.CLEAR_WHITESPACE_LEFT="‘",a.CLEAR_WHITESPACE_RIGHT="’",a.prototype.addChild=function(a){return this.children.push(a),this},a.prototype.getOpener=function(){return this.wsRemoval.around&&this.opener.text&&(this.opener.text=a.CLEAR_WHITESPACE_LEFT+this.opener.text),this.wsRemoval.inside&&this.opener.text&&(this.opener.text+=a.CLEAR_WHITESPACE_RIGHT),this.opener},a.prototype.getCloser=function(){return this.wsRemoval.inside&&this.closer.text&&(this.closer.text=a.CLEAR_WHITESPACE_LEFT+this.closer.text),this.wsRemoval.around&&this.closer.text&&(this.closer.text+=a.CLEAR_WHITESPACE_RIGHT),this.closer},a.prototype.isPreserved=function(){return this.preserve?!0:this.parentNode?this.parentNode.isPreserved():!1},a.prototype.isCommented=function(){return"Comment"===this.constructor.name?!0:this.parentNode?this.parentNode.isCommented():!1},a.prototype.markText=function(a,b){return null==b&&(b=!1),{type:"text",cw:this.codeBlockLevel,hw:this.uglify?0:this.blockLevel-this.codeBlockLevel,text:b?d(a):a}},a.prototype.markRunningCode=function(a){return{type:"run",cw:this.codeBlockLevel,code:a}},a.prototype.markInsertingCode=function(a,b,c,d){return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=!1),{type:"insert",cw:this.codeBlockLevel,hw:this.uglify?0:this.blockLevel-this.codeBlockLevel,escape:b,preserve:c,findAndPreserve:d,code:a}},a.prototype.evaluate=function(){},a.prototype.render=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;if(b=[],this.silent)return b;if(0===this.children.length)this.opener&&this.closer?(d=this.getOpener(),d.text+=this.getCloser().text,b.push(d)):!this.preserve&&this.isPreserved()?b.push(this.getOpener()):b.push(this.getOpener());else if(this.opener&&this.closer)if(this.preserve){for(this.wsRemoval.inside=!0,b.push(this.getOpener()),o=this.children,e=0,i=o.length;i>e;e++)for(a=o[e],p=a.render(),f=0,j=p.length;j>f;f++)c=p[f],c.hw=this.blockLevel,b.push(c);b.push(this.getCloser())}else{for(b.push(this.getOpener()),q=this.children,g=0,k=q.length;k>g;g++)a=q[g],b=b.concat(a.render());b.push(this.getCloser())}else if(this.opener)for(b.push(this.getOpener()),r=this.children,h=0,l=r.length;l>h;h++)a=r[h],b=b.concat(a.render());else for(s=this.children,n=0,m=s.length;m>n;n++)a=s[n],b.push(this.markText(a.render().text));return b},a}()}.call(this)}),require.define("/util/text.coffee",function(a,b){!function(){b.exports={whitespace:function(a){var b;for(a=2*a,b=[];b.length<a;)b.push(" ");return b.join("")},escapeQuotes:function(a){return a?a.replace(/"/g,'\\"').replace(/\\\\\"/g,'\\"'):""},unescapeQuotes:function(a){return a?a.replace(/\\"/g,'"'):""},escapeHTML:function(a){return a?a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;"):""},preserve:function(a){return a?(a.replace(/\r/g,""),a.replace(/<(pre|textarea)>(.*?)<\/\1>/g,function(a){return a.replace("\\n","&#x000A;")})):void 0},indent:function(a,c){return a.replace(/^(.*)$/gm,b.exports.whitespace(c)+"$1")}}}.call(this)}),require.define("/nodes/text.coffee",function(a,b){!function(){var c,d,e,f,g={}.hasOwnProperty,h=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};c=a("./node"),e=a("../util/text").escapeQuotes,b.exports=d=function(a){function b(){return f=b.__super__.constructor.apply(this,arguments)}return h(b,a),b.prototype.evaluate=function(){return this.opener=this.markText(e(this.expression))},b}(c)}.call(this)}),require.define("/nodes/haml.coffee",function(a,b){!function(){var c,d,e,f,g={}.hasOwnProperty,h=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};d=a("./node"),e=a("../util/text").escapeQuotes,b.exports=c=function(a){function b(){return f=b.__super__.constructor.apply(this,arguments)}return h(b,a),b.prototype.evaluate=function(){var a,b,c,d,f,g;return g=this.parseExpression(this.expression),g.doctype?this.opener=this.markText(""+e(this.buildDocType(g.doctype))):this.isNotSelfClosing(g.tag)?(f=this.buildHtmlTagPrefix(g),g.assignment?(d=g.assignment.match(/^(=|!=|&=|~)\s*(.*)$/),c=d[1],a=d[2],"~"===c?b="#{$fp "+a+" }":"&="===c||"="===c&&this.escapeHtml?b=this.preserve?this.cleanValue?"#{ $p($e($c("+a+"))) }":"#{ $p($e("+a+")) }":this.cleanValue?"#{ $e($c("+a+")) }":"#{ $e("+a+") }":("!="===c||"="===c&&!this.escapeHtml)&&(b=this.preserve?this.cleanValue?"#{ $p($c("+a+")) }":"#{ $p("+a+") }":this.cleanValue?"#{ $c("+a+") }":"#{ "+a+" }"),this.opener=this.markText(""+f+">"+b),this.closer=this.markText("</"+g.tag+">")):g.text?(this.opener=this.markText(""+f+">"+g.text),this.closer=this.markText("</"+g.tag+">")):(this.opener=this.markText(f+">"),this.closer=this.markText("</"+g.tag+">"))):(g.tag=g.tag.replace(/\/$/,""),f=this.buildHtmlTagPrefix(g),g.text?(this.opener=this.markText(""+f+">"+g.text),this.closer=this.markText("</"+g.tag+">")):this.opener=this.markText(""+f+("xhtml"===this.format?" /":"")+">"+g.text))},b.prototype.parseExpression=function(a){var b,c,d,f,g,h,i,j;if(g=this.parseTag(a),-1!==this.preserveTags.indexOf(g.tag)&&(this.preserve=!0),d=this.interpolateCodeAttribute(null!=(i=g.ids)?i.pop():void 0,!0),c=g.classes,b={},g.attributes){j=g.attributes;for(f in j)h=j[f],"id"===f?d?d+="_"+this.interpolateCodeAttribute(h,!0):d=this.interpolateCodeAttribute(h,!0):"class"===f?(c||(c=[]),c.push(h)):b[f]=h}return{doctype:g.doctype,tag:g.tag,id:d,classes:c,text:e(g.text),attributes:b,assignment:g.assignment,reference:g.reference}},b.prototype.parseTag=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I;try{if(g=null!=(E=a.match(/^(\!{3}.*)/))?E[1]:void 0)return{doctype:g};if(j=a.match(/^((?:[#%\.][a-z0-9_:\-]*[\/]?)+)/i)[0],s=a.substring(j.length),s.match(/^[{([]/)){for(r="",k="",t="",F=["[","{","(","[","{","("],z=0,C=F.length;C>z;z++)if(u=F[z],u===s[0]){for(h=function(){switch(u){case"{":return"}";case"(":return")";case"[":return"]"}}(),p=0,q=A=0,G=s.length;G>=0?G>=A:A>=G;q=G>=0?++A:--A)if(e=s[q],e===u&&(p+=1),e===h){if(1===p)break;p-=1}switch(u){case"{":t+=s.substring(0,q+1),s=s.substring(q+1);break;case"(":k+=s.substring(0,q+1),s=s.substring(q+1);break;case"[":r=s.substring(1,q),s=s.substring(q+1)}}b=s||""}else r="",k="",t="",b=s;for(d={},H=[this.parseAttributes(k),this.parseAttributes(t)],B=0,D=H.length;D>B;B++){c=H[B];for(n in c)x=c[n],d[n]=x}return(y=null!=(I=b.match(/^[<>]{0,2}/))?I[0]:void 0)&&(b=b.substring(y.length))," "===b[0]&&(b=b.substring(1)),b&&!b.match(/^(=|!=|&=|~)/)&&(w=b.replace(/^ /,""),b=void 0),y&&(-1!==y.indexOf(">")&&(this.wsRemoval.around=!0),-1!==y.indexOf("<")&&(this.wsRemoval.inside=!0,this.preserve=!0)),v=j.match(/\%([a-z_\-][a-z0-9_:\-]*[\/]?)/i),m=j.match(/\#([a-z_\-][a-z0-9_\-]*)/gi),f=j.match(/\.([a-z0-9_\-]*)/gi),{tag:v?v[1]:"div",ids:m?function(){var a,b,c;for(c=[],a=0,b=m.length;b>a;a++)l=m[a],c.push("'"+l.substr(1)+"'");return c}():void 0,classes:f?function(){var a,b,c;for(c=[],a=0,b=f.length;b>a;a++)o=f[a],c.push("'"+o.substr(1)+"'");return c}():void 0,attributes:d,assignment:b,reference:r,text:w}}catch(J){throw i=J,new Error("Unable to parse tag from "+a+": "+i)}},b.prototype.parseAttributes=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E;if(c={},void 0===a)return c;for(t=a.substring(0,1),a=a.replace(/(=|:|=>)\s*('([^\\']|\\\\|\\')*'|"([^\\"]|\\\\|\\")*")/g,function(a,b,c){return b+(null!=c?c.replace(/(:|=|=>)/g,"$1"):void 0)}),k=0,r=0,m=[],"("===t?(s=1,e=a.length-1):(s=0,e=a.length),o=v=s;e>=s?e>v:v>e;o=e>=s?++v:--v)d=a[o],"("===d&&(k+=1,1===k&&(r=o)),")"===d&&(1===k?0!==r&&1!==o-r&&m.push({start:r,end:o}):k-=1);for(A=m.reverse(),w=0,y=A.length;y>w;w++)l=A[w],a=a.substring(0,l.start)+a.substring(l.start,l.end).replace(/(:|=|=>)/g,"$1")+a.substring(l.end);switch(t){case"(":j=/\(\s*([-\w]+[\w:-]*\w?)\s*=|\s+([-\w]+[\w:-]*\w?)\s*=|\(\s*('\w+[\w:-]*\w?')\s*=|\s+('\w+[\w:-]*\w?')\s*=|\(\s*("\w+[\w:-]*\w?")\s*=|\s+("\w+[\w:-]*\w?")\s*=/g;break;case"{":j=/[{,]\s*(\w+[\w:-]*\w?)\s*:|[{,]\s*('[-\w]+[\w:-]*\w?')\s*:|[{,]\s*("[-\w]+[\w:-]*\w?")\s*:|[{,]\s*:(\w+[\w:-]*\w?)\s*=>|[{,]\s*:?'([-\w]+[\w:-]*\w?)'\s*=>|[{,]\s*:?"([-\w]+[\w:-]*\w?)"\s*=>/g}for(n=a.split(j).filter(Boolean),g=!1,f=!1;n.length;)if(i=n.splice(0,2),1===i.length)b=i[0].replace(/^[\s({]+|[\s)}]+$/g,""),c[b]="true";else switch(h=null!=(B=i[0])?B.replace(/^\s+|\s+$/g,"").replace(/^:/,""):void 0,(q=h.match(/^("|')(.*)\1$/))&&(h=q[2]),u=null!=(C=i[1])?C.replace(/^\s+|[\s,]+$/g,"").replace(/\u0090/g,""):void 0,"data"!==h||u?h&&u&&g&&(h=this.hyphenateDataAttrs?"data-"+h.replace("_","-"):"data-"+h,/}\s*$/.test(u)&&(g=!1)):(g=!0,f=!0),t){case"(":if(u=u.replace(/^\s+|[\s)]+$/g,""),p=null!=(D=/^(['"])/.exec(u))?D[1]:void 0,o=u.lastIndexOf(p),o>1){for(E=u.substring(o+1).split(" "),x=0,z=E.length;z>x;x++)b=E[x],b&&(c[b]="true");u=u.substring(0,o+1)}c[h]=u;break;case"{":c[h]=u.replace(/^\s+|[\s}]+$/g,"")}return f&&delete c.data,c},b.prototype.buildHtmlTagPrefix=function(a){var b,c,d,e,f,g,h,i,j,k,l;if(h=["<"+a.tag],a.classes){if(d=!1,b=function(){var b,c,e,f;for(e=a.classes,f=[],b=0,c=e.length;c>b;b++)g=e[b],g=this.interpolateCodeAttribute(g,!0),-1!==g.indexOf("#{")&&(d=!0),f.push(g);return f}.call(this),d&&b.length>1){for(c="#{ [",j=0,k=b.length;k>j;j++)f=b[j],c+=""+this.quoteAndEscapeAttributeValue(f,!0)+",";c=c.substring(0,c.length-1)+"].sort().join(' ').replace(/^\\s+|\\s+$/g, '') }"}else c=b.sort().join(" ");h.push("class='"+c+"'")}if(a.id&&h.push("id='"+a.id+"'"),a.reference&&(a.attributes&&(delete a.attributes["class"],delete a.attributes.id),h.push("#{$r("+a.reference+")}")),a.attributes){l=a.attributes;for(e in l)i=l[e],"true"===i||"false"===i?"true"===i&&("html5"===this.format?h.push(""+e):h.push(""+e+"="+this.quoteAndEscapeAttributeValue(e))):h.push(""+e+"="+this.quoteAndEscapeAttributeValue(this.interpolateCodeAttribute(i)))}return h.join(" ")},b.prototype.interpolateCodeAttribute=function(a,b){var c;return null==b&&(b=!1),a?(a.match(/^("|').*\1$/)||(a=this.escapeAttributes?this.cleanValue?"#{ $e($c("+a+")) }":"#{ $e("+a+") }":this.cleanValue?"#{ $c("+a+") }":"#{ ("+a+") }"),b&&(c=a.match(/^("|')(.*)\1$/))&&(a=c[2]),a):void 0},b.prototype.quoteAndEscapeAttributeValue=function(a,b){var c,d,f,g,h,i,j,k;return null==b&&(b=!1),a?((h=a.match(/^("|')(.*)\1$/))&&(a=h[2]),k=this.splitInterpolations(a),g=!1,d=!1,f=!1,k=function(){var a,b,c;for(c=[],a=0,b=k.length;b>a;a++)j=k[a],"#{"===j.slice(0,2)?(-1===j.indexOf("$e")&&-1===j.indexOf("$c")&&(this.escapeAttributes?j=this.cleanValue?"#{ $e($c("+j.slice(2,-1)+")) }":"#{ $e("+j.slice(2,-1)+") }":this.cleanValue&&(j="#{ $c("+j.slice(2,-1)+") }")),f=!0):(g||(g=-1!==j.indexOf("'")),d||(d=-1!==j.indexOf('"'))),c.push(j);return c}.call(this),b?i=f?'"'+k.join("")+'"':"'"+k.join("")+"'":(d||g||(i="'"+k.join("")+"'"),g&&!d&&(i='\\"'+k.join("")+'\\"'),d&&!g&&(c=function(){var a,b,c;for(c=[],a=0,b=k.length;b>a;a++)j=k[a],c.push(e(j));return c}(),i="'"+c.join("")+"'"),g&&d&&(c=function(){var a,b,c;for(c=[],a=0,b=k.length;b>a;a++)j=k[a],c.push(e(j).replace(/'/g,"&#39;"));return c}(),i="'"+c.join("")+"'")),i):void 0},b.prototype.splitInterpolations=function(a){var b,c,d,e,f,g,h,i;for(d=0,f=0,g=[],e=h=0,i=a.length;i>=0?i>h:h>i;e=i>=0?++h:--h)b=a[e],c=a.slice(e,+(e+1)+1||9e9),"{"===b&&(d+=1),"#{"===c&&0===d&&(g.push(a.slice(f,e)),f=e),"}"===b&&(d-=1,0===d&&(g.push(a.slice(f,+e+1||9e9)),f=e+1));return g.push(a.slice(f,a.length)),g.filter(Boolean)},b.prototype.buildDocType=function(a){switch(""+this.format+" "+a){case"xhtml !!! XML":return"<?xml version='1.0' encoding='utf-8' ?>";case"xhtml !!!":return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';case"xhtml !!! 1.1":return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';case"xhtml !!! mobile":return'<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">';case"xhtml !!! basic":return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">';case"xhtml !!! frameset":return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">';case"xhtml !!! 5":case"html5 !!!":return"<!DOCTYPE html>";case"html5 !!! XML":case"html4 !!! XML":return"";case"html4 !!!":return'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';case"html4 !!! frameset":return'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">';case"html4 !!! strict":return'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'}},b.prototype.isNotSelfClosing=function(a){return-1===this.selfCloseTags.indexOf(a)&&!a.match(/\/$/)},b}(d)}.call(this)}),require.define("/nodes/code.coffee",function(a,b){!function(){var c,d,e,f={}.hasOwnProperty,g=function(a,b){function c(){this.constructor=a}for(var d in b)f.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};d=a("./node"),b.exports=c=function(a){function b(){return e=b.__super__.constructor.apply(this,arguments)}return g(b,a),b.prototype.evaluate=function(){var a,b,c,d;return b=this.expression.match(/(-|!=|\&=|=|~)\s?(.*)?/),d=b[1],a=b[2],"-"!==d?"~"===d?this.opener=this.escapeHtml?this.markInsertingCode(a,!0,!1,!0):this.markInsertingCode(a,!1,!1,!0):(c="&="===d||"="===d&&this.escapeHtml,0!==this.children.length&&a.match(/(->|=>)$/)?(this.opener=this.markInsertingCode(a,c,!1,!1),this.opener.block="start",this.closer=this.markRunningCode(' $buffer.join "\\n"'),this.closer.block="end"):this.opener=this.markInsertingCode(a,c)):(this.opener=this.markRunningCode(a),0!==this.children.length&&this.opener.code.match(/(->|=>)/)?this.closer=this.markRunningCode(" ''"):void 0)
},b}(d)}.call(this)}),require.define("/nodes/comment.coffee",function(a,b){!function(){var c,d,e,f,g={}.hasOwnProperty,h=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};d=a("./node"),e=a("../util/text").escapeQuotes,b.exports=c=function(a){function b(){return f=b.__super__.constructor.apply(this,arguments)}return h(b,a),b.prototype.evaluate=function(){var a,b,c,d;switch(d=this.expression.match(/(-#|\/\[|\/)\s?(.*)?/),b=d[0],c=d[1],a=d[2],c){case"-#":return this.silent=!0,this.opener=this.markText("");case"/[":return this.opener=this.markText("<!--["+a+">"),this.closer=this.markText("<![endif]-->");case"/":return a?(this.opener=this.markText("<!-- "+e(a)),this.closer=this.markText(" -->")):(this.opener=this.markText("<!--"),this.closer=this.markText("-->"))}},b}(d)}.call(this)}),require.define("/nodes/filter.coffee",function(a,b){!function(){var c,d,e,f,g,h={}.hasOwnProperty,i=function(a,b){function c(){this.constructor=a}for(var d in b)h.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};d=a("./node"),f=a("../util/text").whitespace,e=a("../util/text").unescapeQuotes,b.exports=c=function(a){function b(){return g=b.__super__.constructor.apply(this,arguments)}return i(b,a),b.prototype.evaluate=function(){var a;return this.filter=null!=(a=this.expression.match(/:(escaped|preserve|css|javascript|coffeescript|plain|cdata|coffeescript)(.*)?/))?a[1]:void 0},b.prototype.render=function(){var a,b,c,d,e,f,g,h,i,j;switch(c=[],this.filter){case"escaped":for(i=this.children,e=0,g=i.length;g>e;e++)a=i[e],c.push(this.markText(a.render()[0].text,!0));break;case"preserve":for(d="",j=this.children,f=0,h=j.length;h>f;f++)a=j[f],d+=""+a.render()[0].text+"&#x000A;";d=d.replace(/\&\#x000A;$/,""),c.push(this.markText(d));break;case"plain":this.renderFilterContent(0,c);break;case"css":"html5"===this.format?c.push(this.markText("<style>")):c.push(this.markText("<style type='text/css'>")),"xhtml"===this.format&&c.push(this.markText(" /*<![CDATA[*/")),b="xhtml"===this.format?2:1,this.renderFilterContent(b,c),"xhtml"===this.format&&c.push(this.markText(" /*]]>*/")),c.push(this.markText("</style>"));break;case"javascript":"html5"===this.format?c.push(this.markText("<script>")):c.push(this.markText("<script type='text/javascript'>")),"xhtml"===this.format&&c.push(this.markText(" //<![CDATA[")),b="xhtml"===this.format?2:1,this.renderFilterContent(b,c),"xhtml"===this.format&&c.push(this.markText(" //]]>")),c.push(this.markText("</script>"));break;case"cdata":c.push(this.markText("<![CDATA[")),this.renderFilterContent(2,c),c.push(this.markText("]]>"));break;case"coffeescript":this.renderFilterContent(0,c,"run")}return c},b.prototype.renderFilterContent=function(a,b,c){var d,g,h,i,j,k,l,m,n,o,p,q;for(null==c&&(c="text"),g=[],i=0,p=this.children,k=0,n=p.length;n>k;k++)d=p[k],g.push(d.render()[0].text);for(q=[],l=0,o=g.length;o>l;l++)if(j=g[l],""===j)q.push(i+=1);else{switch(c){case"text":for(h=m=0;i>=0?i>m:m>i;h=i>=0?++m:--m)b.push(this.markText(""));b.push(this.markText(""+f(a)+j));break;case"run":b.push(this.markRunningCode(""+e(j)))}q.push(i=0)}return q},b}(d)}.call(this)}),require.define("/nodes/directive.coffee",function(a,b,c,d,e,f){!function(){var c,d,e,g,h,i,j={}.hasOwnProperty,k=function(a,b){function c(){this.constructor=a}for(var d in b)j.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};h=a("path"),e=a("./node"),f.browser||(g=a("fs"),c=a("coffee-script")),b.exports=d=function(b){function d(){return i=d.__super__.constructor.apply(this,arguments)}return k(d,b),d.prototype.directives={include:function(b){var d,e,f,h,i,j,k,l,m,n;try{n=b.match(/\s*['"](.*?)['"](?:,\s*(.*))?\s*/),n[0],k=n[1],h=n[2]}catch(o){throw i=o,new Error("Failed to parse the include directive from "+b)}return h||(h="this"),m=function(){switch(this.placement){case"global":return""+this.namespace+"['"+k+"'].apply("+h+")";case"amd":return"require('"+k+"').apply("+h+")";case"standalone":if("undefined"!=typeof browser&&null!==browser?browser.process:void 0)throw new Error("Include directive not available in the Browser when placement is standalone.");try{l=g.readFileSync(k).toString()}catch(b){j=b,console.error(" Error opening file: %s",j),console.error(j)}return d=a("../haml-coffee"),f=new d(this.options),f.parse(l),e=c.compile(f.precompile(),{bare:!0}),m="`(function(){"+e+"}).apply("+h+")`";default:throw new Error("Include directive not available when placement is "+this.placement)}}.call(this),this.opener=this.markInsertingCode(m,!1)}},d.prototype.evaluate=function(){var a,b,c,d,e;a=Object.keys(this.directives).join("|");try{e=this.expression.match(RegExp("\\+("+a+")(.*)")),e[0],c=e[1],d=e[2]}catch(f){throw b=f,new Error("Unable to recognize directive from "+this.expression)}return this.directives[c].call(this,d)},d}(e)}.call(this)}),require.define("fs",function(){}),require.define("/hamlc.coffee",function(a,b,c,d,e,f){!function(){var c,d,e,g;e=a("fs"),d=a("./haml-coffee"),c=f.browser?window.CoffeeScript:a("coffee-script"),g={},b.exports={render:function(a,b,e){var f,g;return null==b&&(b={}),null==e&&(e={}),e.placement="standalone",f=new d(e),f.parse(a),g=new Function(c.compile(f.precompile(),{bare:!0})),g.call(b)},compile:function(a,b){var e,f;return null==b&&(b={}),e=new d(b),e.parse(a),f=new Function(c.compile(e.precompile(),{bare:!0})),function(a){return f.call(a)}},template:function(a,b,e,f){var g;return null==f&&(f={}),f.namespace=e,f.name=b,g=new d(f),g.parse(a),c.compile(g.render())},__express:function(a,c,d){var f,h;c&&c.constructor&&c.call&&c.apply&&(d=c,c={});try{return c.cache&&g[a]?d(null,g[a](c)):(c.filename=a,h=e.readFileSync(a,"utf8"),c.cache?(g[a]=b.exports.compile(h,c),d(null,g[a](c))):d(null,b.exports.compile(h,c)(c)))}catch(i){return f=i,d(f)}}}}.call(this)});
var require=function(a,b){var c=require.resolve(a,b||"/"),d=require.modules[c];if(!d)throw new Error("Failed to resolve module "+a+", tried "+c);var e=require.cache[c],f=e?e.exports:d();return f};require.paths=[],require.modules={},require.cache={},require.extensions=[".js",".coffee",".json"],require._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},require.resolve=function(){return function(a,b){function c(a){if(a=g.normalize(a),require.modules[a])return a;for(var b=0;b<require.extensions.length;b++){var c=require.extensions[b];if(require.modules[a+c])return a+c}}function d(a){a=a.replace(/\/+$/,"");var b=g.normalize(a+"/package.json");if(require.modules[b]){var d=require.modules[b](),e=d.browserify;if("object"==typeof e&&e.main){var f=c(g.resolve(a,e.main));if(f)return f}else if("string"==typeof e){var f=c(g.resolve(a,e));if(f)return f}else if(d.main){var f=c(g.resolve(a,d.main));if(f)return f}}return c(a+"/index")}function e(a,b){for(var e=f(b),g=0;g<e.length;g++){var h=e[g],i=c(h+"/"+a);if(i)return i;var j=d(h+"/"+a);if(j)return j}var i=c(a);return i?i:void 0}function f(a){var b;b="/"===a?[""]:g.normalize(a).split("/");for(var c=[],d=b.length-1;d>=0;d--)if("node_modules"!==b[d]){var e=b.slice(0,d+1).join("/")+"/node_modules";c.push(e)}return c}if(b||(b="/"),require._core[a])return a;var g=require.modules.path();b=g.resolve("/",b);var h=b||"/";if(a.match(/^(?:\.\.?\/|\/)/)){var i=c(g.resolve(h,a))||d(g.resolve(h,a));if(i)return i}var j=e(a,h);if(j)return j;throw new Error("Cannot find module '"+a+"'")}}(),require.alias=function(a,b){var c=require.modules.path(),d=null;try{d=require.resolve(a+"/package.json","/")}catch(e){d=require.resolve(a,"/")}for(var f=c.dirname(d),g=(Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b})(require.modules),h=0;h<g.length;h++){var i=g[h];if(i.slice(0,f.length+1)===f+"/"){var j=i.slice(f.length);require.modules[b+j]=require.modules[f+j]}else i===f&&(require.modules[b]=require.modules[f])}},function(){var a={},b="undefined"!=typeof window?window:{},c=!1;require.define=function(d,e){!c&&require.modules.__browserify_process&&(a=require.modules.__browserify_process(),c=!0);var f=require._core[d]?"":require.modules.path().dirname(d),g=function(a){var b=require(a,f),c=require.cache[require.resolve(a,f)];return c&&null===c.parent&&(c.parent=h),b};g.resolve=function(a){return require.resolve(a,f)},g.modules=require.modules,g.define=require.define,g.cache=require.cache;var h={id:d,filename:d,exports:{},loaded:!1,parent:null};require.modules[d]=function(){return require.cache[d]=h,e.call(h.exports,g,h,h.exports,f,d,a,b),h.loaded=!0,h.exports}}}(),require.define("path",function(a,b,c,d,e,f){function g(a,b){for(var c=[],d=0;d<a.length;d++)b(a[d],d,a)&&c.push(a[d]);return c}function h(a,b){for(var c=0,d=a.length;d>=0;d--){var e=a[d];"."==e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}var i=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;c.resolve=function(){for(var a="",b=!1,c=arguments.length;c>=-1&&!b;c--){var d=c>=0?arguments[c]:f.cwd();"string"==typeof d&&d&&(a=d+"/"+a,b="/"===d.charAt(0))}return a=h(g(a.split("/"),function(a){return!!a}),!b).join("/"),(b?"/":"")+a||"."},c.normalize=function(a){var b="/"===a.charAt(0),c="/"===a.slice(-1);return a=h(g(a.split("/"),function(a){return!!a}),!b).join("/"),a||b||(a="."),a&&c&&(a+="/"),(b?"/":"")+a},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(g(a,function(a){return a&&"string"==typeof a}).join("/"))},c.dirname=function(a){var b=i.exec(a)[1]||"",c=!1;return b?1===b.length||c&&b.length<=3&&":"===b.charAt(1)?b:b.substring(0,b.length-1):"."},c.basename=function(a,b){var c=i.exec(a)[2]||"";return b&&c.substr(-1*b.length)===b&&(c=c.substr(0,c.length-b.length)),c},c.extname=function(a){return i.exec(a)[3]||""},c.relative=function(a,b){function d(a){for(var b=0;b<a.length&&""===a[b];b++);for(var c=a.length-1;c>=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=c.resolve(a).substr(1),b=c.resolve(b).substr(1);for(var e=d(a.split("/")),f=d(b.split("/")),g=Math.min(e.length,f.length),h=g,i=0;g>i;i++)if(e[i]!==f[i]){h=i;break}for(var j=[],i=h;i<e.length;i++)j.push("..");return j=j.concat(f.slice(h)),j.join("/")}}),require.define("__browserify_process",function(a,b,c,d,e,f){var f=b.exports={};f.nextTick=function(){var a="undefined"!=typeof window&&window.setImmediate,b="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(a)return function(a){return window.setImmediate(a)};if(b){var c=[];return window.addEventListener("message",function(a){if(a.source===window&&"browserify-tick"===a.data&&(a.stopPropagation(),c.length>0)){var b=c.shift();b()}},!0),function(a){c.push(a),window.postMessage("browserify-tick","*")}}return function(a){setTimeout(a,0)}}(),f.title="browser",f.browser=!0,f.env={},f.argv=[],f.binding=function(b){if("evals"===b)return a("vm");throw new Error("No such module. (Possibly not yet loaded)")},function(){var b,c="/";f.cwd=function(){return c},f.chdir=function(d){b||(b=a("path")),c=b.resolve(d,c)}}()}),require.define("/haml-coffee.coffee",function(a,b){!function(){var c,d,e,f,g,h,i,j,k,l;i=a("./nodes/node"),j=a("./nodes/text"),g=a("./nodes/haml"),c=a("./nodes/code"),d=a("./nodes/comment"),f=a("./nodes/filter"),e=a("./nodes/directive"),l=a("./util/text").whitespace,k=a("./util/text").indent,b.exports=h=function(){function a(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;if(this.options=null!=a?a:{},null==(d=this.options).placement&&(d.placement="global"),null==(e=this.options).dependencies&&(e.dependencies={hc:"hamlcoffee"}),null==(j=this.options).escapeHtml&&(j.escapeHtml=!0),null==(k=this.options).escapeAttributes&&(k.escapeAttributes=!0),null==(l=this.options).cleanValue&&(l.cleanValue=!0),null==(m=this.options).uglify&&(m.uglify=!1),null==(n=this.options).basename&&(n.basename=!1),null==(o=this.options).extendScope&&(o.extendScope=!1),null==(p=this.options).format&&(p.format="html5"),null==(q=this.options).hyphenateDataAttrs&&(q.hyphenateDataAttrs=!0),null==(f=this.options).preserveTags&&(f.preserveTags="pre,textarea"),null==(g=this.options).selfCloseTags&&(g.selfCloseTags="meta,img,link,br,hr,input,area,param,col,base"),"global"===this.options.placement)if(null==(h=this.options).name&&(h.name="test"),null==(i=this.options).namespace&&(i.namespace="window.HAML"),c=(""+this.options.namespace+"."+this.options.name).replace(/(\s|-)+/g,"_").split(/\./),this.options.name=this.options.basename?c.pop().split(/\/|\\/).pop():c.pop(),this.options.namespace=c.shift(),this.intro="",0!==c.length)for(r=0,s=c.length;s>r;r++)b=c[r],this.options.namespace+="."+b,this.intro+=""+this.options.namespace+" ?= {}\n";else this.intro+=""+this.options.namespace+" ?= {}\n"}return a.VERSION="1.13.5",a.prototype.indentChanged=function(){return this.currentIndent!==this.previousIndent},a.prototype.isIndent=function(){return this.currentIndent>this.previousIndent},a.prototype.updateTabSize=function(){return 0===this.tabSize?this.tabSize=this.currentIndent-this.previousIndent:void 0},a.prototype.updateBlockLevel=function(){if(this.currentBlockLevel=this.currentIndent/this.tabSize,!this.node.isCommented()){if(this.currentBlockLevel-Math.floor(this.currentBlockLevel)>0)throw"Indentation error in line "+this.lineNumber;if((this.currentIndent-this.previousIndent)/this.tabSize>1)throw"Block level too deep in line "+this.lineNumber}return this.delta=this.previousBlockLevel-this.currentBlockLevel},a.prototype.updateCodeBlockLevel=function(a){return this.currentCodeBlockLevel=a instanceof c?a.codeBlockLevel+1:a.codeBlockLevel},a.prototype.updateParent=function(){return this.isIndent()?this.pushParent():this.popParent()},a.prototype.pushParent=function(){return this.stack.push(this.parentNode),this.parentNode=this.node},a.prototype.popParent=function(){var a,b,c,d;for(d=[],a=b=0,c=this.delta-1;c>=0?c>=b:b>=c;a=c>=0?++b:--b)d.push(this.parentNode=this.stack.pop());return d},a.prototype.getNodeOptions=function(a){return null==a&&(a={}),{parentNode:a.parentNode||this.parentNode,blockLevel:a.blockLevel||this.currentBlockLevel,codeBlockLevel:a.codeBlockLevel||this.currentCodeBlockLevel,escapeHtml:a.escapeHtml||this.options.escapeHtml,escapeAttributes:a.escapeAttributes||this.options.escapeAttributes,cleanValue:a.cleanValue||this.options.cleanValue,format:a.format||this.options.format,hyphenateDataAttrs:a.hyphenateDataAttrs||this.options.format,preserveTags:a.preserveTags||this.options.preserveTags,selfCloseTags:a.selfCloseTags||this.options.selfCloseTags,uglify:a.uglify||this.options.uglify,placement:a.placement||this.options.placement,namespace:a.namespace||this.options.namespace,name:a.name||this.options.name}},a.prototype.nodeFactory=function(a){var b,h,i;return null==a&&(a=""),h=this.getNodeOptions(),b=a.match(/^:(escaped|preserve|css|javascript|plain|cdata|coffeescript)/)?new f(a,h):a.match(/^(\/|-#)(.*)/)?new d(a,h):a.match(/^(-#|-|=|!=|\&=|~)\s*(.*)/)?new c(a,h):a.match(/^(%|#[^{]|\.|\!)(.*)/)?new g(a,h):a.match(/^\+(.*)/)?new e(a,h):new j(a,h),null!=(i=h.parentNode)&&i.addChild(b),b},a.prototype.parse=function(a){var b,c,d,e,g,h,k,l,m,n,o,p,q,r;for(null==a&&(a=""),this.lineNumber=this.previousIndent=this.tabSize=this.currentBlockLevel=this.previousBlockLevel=0,this.currentCodeBlockLevel=this.previousCodeBlockLevel=0,this.node=null,this.stack=[],this.root=this.parentNode=new i("",this.getNodeOptions()),e=a.replace(/\r/g,"").split("\n");void 0!==(d=e.shift());){if(this.node instanceof f&&!this.exitFilter)if(/^(\s)*$/.test(d))this.node.addChild(new j("",this.getNodeOptions({parentNode:this.node})));else{if(h=d.match(/^(\s*)(.*)/),m=h[1],c=h[2],this.node.blockLevel>=m.length/2){this.exitFilter=!0,e.unshift(d);continue}for(g=this.tabSize>2?function(){r=[];for(var a=p=this.tabSize;1>=p?1>=a:a>=1;1>=p?a++:a--)r.push(a);return r}.apply(this):[2,1],n=0,o=g.length;o>n;n++)if(k=g[n],l=d.match(RegExp("^\\s{"+(this.node.blockLevel*k+k)+"}(.*)"))){this.node.addChild(new j(l[1],this.getNodeOptions({parentNode:this.node})));break}}else{if(this.exitFilter=!1,h=d.match(/^(\s*)(.*)/),m=h[1],c=h[2],/^\s*$/.test(d))continue;for(;/^[%.#].*[{(]/.test(c)&&RegExp("^\\s{"+(this.previousIndent+(this.tabSize||2))+"}").test(e[0])&&!/^(\s*)[-=&!~.%#</]/.test(e[0])&&/([-\w]+[\w:-]*\w?)\s*=|('\w+[\w:-]*\w?')\s*=|("\w+[\w:-]*\w?")\s*=|(\w+[\w:-]*\w?):|('[-\w]+[\w:-]*\w?'):|("[-\w]+[\w:-]*\w?"):|:(\w+[\w:-]*\w?)\s*=>|:?'([-\w]+[\w:-]*\w?)'\s*=>|:?"([-\w]+[\w:-]*\w?)"\s*=>/.test(e[0])&&!/;\s*$/.test(e[0]);)b=e.shift(),c=c.replace(/(\s)+\|\s*$/,""),c+=" "+b.match(/^\s*(.*?)(\s+\|\s*)?$/)[1],this.lineNumber++;for(;/^-#/.test(c)&&RegExp("^\\s{"+(this.previousIndent+(this.tabSize||2))+"}").test(e[0])&&e.length>0;)e.shift(),this.lineNumber++;if(c.match(/(\s)+\|\s*$/))for(c=c.replace(/(\s)+\|\s*$/," ");null!=(q=e[0])?q.match(/(\s)+\|$/):void 0;)c+=e.shift().match(/^(\s*)(.*)/)[2].replace(/(\s)+\|\s*$/,""),this.lineNumber++;this.currentIndent=m.length,this.indentChanged()&&(this.updateTabSize(),this.updateBlockLevel(),this.updateParent(),this.updateCodeBlockLevel(this.parentNode)),this.node=this.nodeFactory(c),this.previousBlockLevel=this.currentBlockLevel,this.previousIndent=this.currentIndent}this.lineNumber++}return this.evaluate(this.root)},a.prototype.evaluate=function(a){var b,c,d,e;for(e=a.children,c=0,d=e.length;d>c;c++)b=e[c],this.evaluate(b);return a.evaluate()},a.prototype.render=function(){switch(this.options.placement){case"amd":return this.renderAmd();case"standalone":return this.renderStandalone();default:return this.renderGlobal()}},a.prototype.renderStandalone=function(){var a;return a="return (context) ->\n (->\n"+k(this.precompile(),2)+"\n ).call(context)"},a.prototype.renderAmd=function(){var a,b,c,d,e,f,g,h;/^hamlcoffee/.test(this.options.dependencies.hc)&&(this.options.customHtmlEscape="hc.escape",this.options.customCleanValue="hc.cleanValue",this.options.customPreserve="hc.preserve",this.options.customFindAndPreserve="hc.findAndPreserve",this.options.customSurround="hc.surround",this.options.customSucceed="hc.succeed",this.options.customPrecede="hc.precede",this.options.customReference="hc.reference"),c=[],e=[],g=this.options.dependencies;for(d in g)b=g[d],c.push(b),e.push(d);f=k(this.precompile(),4),h=this.findDependencies(f);for(d in h)b=h[d],c.push(b),e.push(d);return 0!==c.length?(c=function(){var b,d,e;for(e=[],b=0,d=c.length;d>b;b++)a=c[b],e.push("'"+a+"'");return e}(),c="["+c+"], ("+e.join(", ")+")"):c="","define "+c+" ->\n (context) ->\n render = ->\n \n"+f+"\n render.call(context)"},a.prototype.renderGlobal=function(){var a;return a=this.intro,this.options.extendScope?(a+=""+this.options.namespace+"['"+this.options.name+"'] = (context) -> ( ->\n",a+=" `with (context || {}) {`\n",a+=""+k(this.precompile(),1),a+="`}`\n",a+=").call(context)"):(a+=""+this.options.namespace+"['"+this.options.name+"'] = (context) -> ( ->\n",a+=""+k(this.precompile(),1),a+=").call(context)"),a},a.prototype.precompile=function(){var a,b;return b="",a=this.createCode(),-1!==a.indexOf("$e")&&(b+=this.options.customHtmlEscape?"$e = "+this.options.customHtmlEscape+"\n":"$e = (text, escape) ->\n \"#{ text }\"\n .replace(/&/g, '&amp;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;')\n .replace(/'/g, '&#39;')\n .replace(/\\//g, '&#47;')\n .replace(/\"/g, '&quot;')\n"),-1!==a.indexOf("$c")&&(this.options.customCleanValue?b+="$c = "+this.options.customCleanValue+"\n":(b+="$c = (text) ->\n",b+=" switch text\n",b+=" when null, undefined then ''\n",b+=" when true, false then '“' + text\n",b+=" else text\n")),(-1!==a.indexOf("$p")||-1!==a.indexOf("$fp"))&&(b+=this.options.customPreserve?"$p = "+this.options.customPreserve+"\n":"$p = (text) -> text.replace /\\n/g, '&#x000A;'\n"),-1!==a.indexOf("$fp")&&(b+=this.options.customFindAndPreserve?"$fp = "+this.options.customFindAndPreserve+"\n":"$fp = (text) ->\n text.replace /<("+this.options.preserveTags.split(",").join("|")+')>([^]*?)<\\/\\1>/g, (str, tag, content) ->\n "<#{ tag }>#{ $p content }</#{ tag }>"\n'),-1!==a.indexOf("surround")&&(b+=this.options.customSurround?"surround = (start, end, fn) => "+this.options.customSurround+".call(@, start, end, fn)\n":"surround = (start, end, fn) => start + fn.call(@)?.replace(/^\\s+|\\s+$/g, '') + end\n"),-1!==a.indexOf("succeed")&&(b+=this.options.customSucceed?"succeed = (start, end, fn) => "+this.options.customSucceed+".call(@, start, end, fn)\n":"succeed = (end, fn) => fn.call(@)?.replace(/s+$/g, '') + end\n"),-1!==a.indexOf("precede")&&(b+=this.options.customPrecede?"precede = (start, end, fn) => "+this.options.customPrecede+".call(@, start, end, fn)\n":"precede = (start, fn) => start + fn.call(@)?.replace(/^s+/g, '')\n"),-1!==a.indexOf("$r")&&(b+=this.options.customReference?"$r = "+this.options.customReference+"\n":"$r = (object, prefix) ->\n name = if prefix then prefix + '_' else ''\n\n if typeof(object.hamlObjectRef) is 'function'\n name += object.hamlObjectRef()\n else\n name += (object.constructor?.name || 'object').replace(/W+/g, '_').replace(/([a-zd])([A-Z])/g, '$1_$2').toLowerCase()\n\n id = if typeof(object.to_key) is 'function'\n object.to_key()\n else if typeof(object.id) is 'function'\n object.id()\n else if object.id\n object.id\n else\n object\n\n result = \"class='#{ name }'\"\n result += \" id='#{ name }_#{ id }'\" if id\n"),b+="$o = []\n",b+=""+a+"\n",b+='return $o.join("\\n")'+this.convertBooleans(a)+this.removeEmptyIDAndClass(a)+this.cleanupWhitespace(a)+"\n"},a.prototype.createCode=function(){var a,b,c,d,e,f,g,h,i,j;for(b=[],this.lines=[],i=this.root.children,e=0,g=i.length;g>e;e++)a=i[e],this.lines=this.lines.concat(a.render());for(this.lines=this.combineText(this.lines),this.blockLevel=0,j=this.lines,f=0,h=j.length;h>f;f++)if(c=j[f],null!==c)switch(c.type){case"text":b.push(""+l(c.cw)+this.getBuffer(this.blockLevel)+'.push "'+l(c.hw)+c.text+'"');break;case"run":"end"!==c.block?b.push(""+l(c.cw)+c.code):(b.push(""+l(c.cw)+c.code.replace("$buffer",this.getBuffer(this.blockLevel))),this.blockLevel-=1);break;case"insert":d="",c.findAndPreserve&&(d+="$fp "),c.preserve&&(d+="$p "),c.escape&&(d+="$e "),this.options.cleanValue&&(d+="$c "),b.push(""+l(c.cw)+this.getBuffer(this.blockLevel)+'.push "'+l(c.hw)+'" + '+d+c.code),"start"===c.block&&(this.blockLevel+=1,b.push(""+l(c.cw+1)+this.getBuffer(this.blockLevel)+" = []"))}return b.join("\n")},a.prototype.getBuffer=function(a){return a>0?"$o"+a:"$o"},a.prototype.combineText=function(a){var b,c,d;for(b=[];void 0!==(c=a.shift());){if("text"===c.type)for(;a[0]&&"text"===a[0].type&&c.cw===a[0].cw;)d=a.shift(),c.text+="\\n"+l(d.hw)+d.text;b.push(c)}return b},a.prototype.convertBooleans=function(a){return-1!==a.indexOf("$c")?"xhtml"===this.options.format?".replace(/\\s([\\w-]+)='“true'/mg, \" $1='$1'\").replace(/\\s([\\w-]+)='“false'/mg, '')":".replace(/\\s([\\w-]+)='“true'/mg, ' $1').replace(/\\s([\\w-]+)='“false'/mg, '')":""},a.prototype.removeEmptyIDAndClass=function(a){return-1!==a.indexOf("id=")||-1!==a.indexOf("class=")?'.replace(/\\s(?:id|class)=([\'"])(\\1)/mg, "")':""},a.prototype.cleanupWhitespace=function(a){return/\u0091|\u0092/.test(a)?".replace(/[\\s\\n]*\\u0091/mg, '').replace(/\\u0092[\\s\\n]*/mg, '')":""},a.prototype.findDependencies=function(a){var b,c,d,e,f;for(f=/require(?:\s+|\()(['"])(.+?)(\1)\)?/gm,b={};c=f.exec(a);)d=c[2],e=d.split("/").pop(),b[e]=d;return b},a}()}.call(this)}),require.define("/nodes/node.coffee",function(a,b){!function(){var c,d;d=a("../util/text").escapeHTML,b.exports=c=function(){function a(a,b){this.expression=null!=a?a:"",null==b&&(b={}),this.parentNode=b.parentNode,this.children=[],this.opener=this.closer=null,this.silent=!1,this.preserveTags=b.preserveTags.split(","),this.preserve=!1,this.wsRemoval={around:!1,inside:!1},this.escapeHtml=b.escapeHtml,this.escapeAttributes=b.escapeAttributes,this.cleanValue=b.cleanValue,this.format=b.format,this.hyphenateDataAttrs=b.hyphenateDataAttrs,this.selfCloseTags=b.selfCloseTags.split(","),this.uglify=b.uglify,this.codeBlockLevel=b.codeBlockLevel,this.blockLevel=b.blockLevel,this.placement=b.placement,this.namespace=b.namespace,this.name=b.name}return a.CLEAR_WHITESPACE_LEFT="‘",a.CLEAR_WHITESPACE_RIGHT="’",a.prototype.addChild=function(a){return this.children.push(a),this},a.prototype.getOpener=function(){return this.wsRemoval.around&&this.opener.text&&(this.opener.text=a.CLEAR_WHITESPACE_LEFT+this.opener.text),this.wsRemoval.inside&&this.opener.text&&(this.opener.text+=a.CLEAR_WHITESPACE_RIGHT),this.opener},a.prototype.getCloser=function(){return this.wsRemoval.inside&&this.closer.text&&(this.closer.text=a.CLEAR_WHITESPACE_LEFT+this.closer.text),this.wsRemoval.around&&this.closer.text&&(this.closer.text+=a.CLEAR_WHITESPACE_RIGHT),this.closer},a.prototype.isPreserved=function(){return this.preserve?!0:this.parentNode?this.parentNode.isPreserved():!1},a.prototype.isCommented=function(){return"Comment"===this.constructor.name?!0:this.parentNode?this.parentNode.isCommented():!1},a.prototype.markText=function(a,b){return null==b&&(b=!1),{type:"text",cw:this.codeBlockLevel,hw:this.uglify?0:this.blockLevel-this.codeBlockLevel,text:b?d(a):a}},a.prototype.markRunningCode=function(a){return{type:"run",cw:this.codeBlockLevel,code:a}},a.prototype.markInsertingCode=function(a,b,c,d){return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=!1),{type:"insert",cw:this.codeBlockLevel,hw:this.uglify?0:this.blockLevel-this.codeBlockLevel,escape:b,preserve:c,findAndPreserve:d,code:a}},a.prototype.evaluate=function(){},a.prototype.render=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;if(b=[],this.silent)return b;if(0===this.children.length)this.opener&&this.closer?(d=this.getOpener(),d.text+=this.getCloser().text,b.push(d)):!this.preserve&&this.isPreserved()?b.push(this.getOpener()):b.push(this.getOpener());else if(this.opener&&this.closer)if(this.preserve){for(this.wsRemoval.inside=!0,b.push(this.getOpener()),o=this.children,e=0,i=o.length;i>e;e++)for(a=o[e],p=a.render(),f=0,j=p.length;j>f;f++)c=p[f],c.hw=this.blockLevel,b.push(c);b.push(this.getCloser())}else{for(b.push(this.getOpener()),q=this.children,g=0,k=q.length;k>g;g++)a=q[g],b=b.concat(a.render());b.push(this.getCloser())}else if(this.opener)for(b.push(this.getOpener()),r=this.children,h=0,l=r.length;l>h;h++)a=r[h],b=b.concat(a.render());else for(s=this.children,n=0,m=s.length;m>n;n++)a=s[n],b.push(this.markText(a.render().text));return b},a}()}.call(this)}),require.define("/util/text.coffee",function(a,b){!function(){b.exports={whitespace:function(a){var b;for(a=2*a,b=[];b.length<a;)b.push(" ");return b.join("")},escapeQuotes:function(a){return a?a.replace(/"/g,'\\"').replace(/\\\\\"/g,'\\"'):""},unescapeQuotes:function(a){return a?a.replace(/\\"/g,'"'):""},escapeHTML:function(a){return a?a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;"):""},preserve:function(a){return a?(a.replace(/\r/g,""),a.replace(/<(pre|textarea)>(.*?)<\/\1>/g,function(a){return a.replace("\\n","&#x000A;")})):void 0},indent:function(a,c){return a.replace(/^(.*)$/gm,b.exports.whitespace(c)+"$1")}}}.call(this)}),require.define("/nodes/text.coffee",function(a,b){!function(){var c,d,e,f,g={}.hasOwnProperty,h=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};c=a("./node"),e=a("../util/text").escapeQuotes,b.exports=d=function(a){function b(){return f=b.__super__.constructor.apply(this,arguments)}return h(b,a),b.prototype.evaluate=function(){return this.opener=this.markText(e(this.expression))},b}(c)}.call(this)}),require.define("/nodes/haml.coffee",function(a,b){!function(){var c,d,e,f,g={}.hasOwnProperty,h=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};d=a("./node"),e=a("../util/text").escapeQuotes,b.exports=c=function(a){function b(){return f=b.__super__.constructor.apply(this,arguments)}return h(b,a),b.prototype.evaluate=function(){var a,b,c,d,f,g;return g=this.parseExpression(this.expression),g.doctype?this.opener=this.markText(""+e(this.buildDocType(g.doctype))):this.isNotSelfClosing(g.tag)?(f=this.buildHtmlTagPrefix(g),g.assignment?(d=g.assignment.match(/^(=|!=|&=|~)\s*(.*)$/),c=d[1],a=d[2],"~"===c?b="#{$fp "+a+" }":"&="===c||"="===c&&this.escapeHtml?b=this.preserve?this.cleanValue?"#{ $p($e($c("+a+"))) }":"#{ $p($e("+a+")) }":this.cleanValue?"#{ $e($c("+a+")) }":"#{ $e("+a+") }":("!="===c||"="===c&&!this.escapeHtml)&&(b=this.preserve?this.cleanValue?"#{ $p($c("+a+")) }":"#{ $p("+a+") }":this.cleanValue?"#{ $c("+a+") }":"#{ "+a+" }"),this.opener=this.markText(""+f+">"+b),this.closer=this.markText("</"+g.tag+">")):g.text?(this.opener=this.markText(""+f+">"+g.text),this.closer=this.markText("</"+g.tag+">")):(this.opener=this.markText(f+">"),this.closer=this.markText("</"+g.tag+">"))):(g.tag=g.tag.replace(/\/$/,""),f=this.buildHtmlTagPrefix(g),g.text?(this.opener=this.markText(""+f+">"+g.text),this.closer=this.markText("</"+g.tag+">")):this.opener=this.markText(""+f+("xhtml"===this.format?" /":"")+">"+g.text))},b.prototype.parseExpression=function(a){var b,c,d,f,g,h,i,j;if(g=this.parseTag(a),-1!==this.preserveTags.indexOf(g.tag)&&(this.preserve=!0),d=this.interpolateCodeAttribute(null!=(i=g.ids)?i.pop():void 0,!0),c=g.classes,b={},g.attributes){j=g.attributes;for(f in j)h=j[f],"id"===f?d?d+="_"+this.interpolateCodeAttribute(h,!0):d=this.interpolateCodeAttribute(h,!0):"class"===f?(c||(c=[]),c.push(h)):b[f]=h}return{doctype:g.doctype,tag:g.tag,id:d,classes:c,text:e(g.text),attributes:b,assignment:g.assignment,reference:g.reference}},b.prototype.parseTag=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I;try{if(g=null!=(E=a.match(/^(\!{3}.*)/))?E[1]:void 0)return{doctype:g};if(j=a.match(/^((?:[#%\.][a-z0-9_:\-]*[\/]?)+)/i)[0],s=a.substring(j.length),s.match(/^[{([]/)){for(r="",k="",t="",F=["[","{","(","[","{","("],z=0,C=F.length;C>z;z++)if(u=F[z],u===s[0]){for(h=function(){switch(u){case"{":return"}";case"(":return")";case"[":return"]"}}(),p=0,q=A=0,G=s.length;G>=0?G>=A:A>=G;q=G>=0?++A:--A)if(e=s[q],e===u&&(p+=1),e===h){if(1===p)break;p-=1}switch(u){case"{":t+=s.substring(0,q+1),s=s.substring(q+1);break;case"(":k+=s.substring(0,q+1),s=s.substring(q+1);break;case"[":r=s.substring(1,q),s=s.substring(q+1)}}b=s||""}else r="",k="",t="",b=s;for(d={},H=[this.parseAttributes(k),this.parseAttributes(t)],B=0,D=H.length;D>B;B++){c=H[B];for(n in c)x=c[n],d[n]=x}return(y=null!=(I=b.match(/^[<>]{0,2}/))?I[0]:void 0)&&(b=b.substring(y.length))," "===b[0]&&(b=b.substring(1)),b&&!b.match(/^(=|!=|&=|~)/)&&(w=b.replace(/^ /,""),b=void 0),y&&(-1!==y.indexOf(">")&&(this.wsRemoval.around=!0),-1!==y.indexOf("<")&&(this.wsRemoval.inside=!0,this.preserve=!0)),v=j.match(/\%([a-z_\-][a-z0-9_:\-]*[\/]?)/i),m=j.match(/\#([a-z_\-][a-z0-9_\-]*)/gi),f=j.match(/\.([a-z0-9_\-]*)/gi),{tag:v?v[1]:"div",ids:m?function(){var a,b,c;for(c=[],a=0,b=m.length;b>a;a++)l=m[a],c.push("'"+l.substr(1)+"'");return c}():void 0,classes:f?function(){var a,b,c;for(c=[],a=0,b=f.length;b>a;a++)o=f[a],c.push("'"+o.substr(1)+"'");return c}():void 0,attributes:d,assignment:b,reference:r,text:w}}catch(J){throw i=J,new Error("Unable to parse tag from "+a+": "+i)}},b.prototype.parseAttributes=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E;if(c={},void 0===a)return c;for(t=a.substring(0,1),a=a.replace(/(=|:|=>)\s*('([^\\']|\\\\|\\')*'|"([^\\"]|\\\\|\\")*")/g,function(a,b,c){return b+(null!=c?c.replace(/(:|=|=>)/g,"$1"):void 0)}),k=0,r=0,m=[],"("===t?(s=1,e=a.length-1):(s=0,e=a.length),o=v=s;e>=s?e>v:v>e;o=e>=s?++v:--v)d=a[o],"("===d&&(k+=1,1===k&&(r=o)),")"===d&&(1===k?0!==r&&1!==o-r&&m.push({start:r,end:o}):k-=1);for(A=m.reverse(),w=0,y=A.length;y>w;w++)l=A[w],a=a.substring(0,l.start)+a.substring(l.start,l.end).replace(/(:|=|=>)/g,"$1")+a.substring(l.end);switch(t){case"(":j=/\(\s*([-\w]+[\w:-]*\w?)\s*=|\s+([-\w]+[\w:-]*\w?)\s*=|\(\s*('\w+[\w:-]*\w?')\s*=|\s+('\w+[\w:-]*\w?')\s*=|\(\s*("\w+[\w:-]*\w?")\s*=|\s+("\w+[\w:-]*\w?")\s*=/g;break;case"{":j=/[{,]\s*(\w+[\w:-]*\w?)\s*:|[{,]\s*('[-\w]+[\w:-]*\w?')\s*:|[{,]\s*("[-\w]+[\w:-]*\w?")\s*:|[{,]\s*:(\w+[\w:-]*\w?)\s*=>|[{,]\s*:?'([-\w]+[\w:-]*\w?)'\s*=>|[{,]\s*:?"([-\w]+[\w:-]*\w?)"\s*=>/g}for(n=a.split(j).filter(Boolean),g=!1,f=!1;n.length;)if(i=n.splice(0,2),1===i.length)b=i[0].replace(/^[\s({]+|[\s)}]+$/g,""),c[b]="true";else switch(h=null!=(B=i[0])?B.replace(/^\s+|\s+$/g,"").replace(/^:/,""):void 0,(q=h.match(/^("|')(.*)\1$/))&&(h=q[2]),u=null!=(C=i[1])?C.replace(/^\s+|[\s,]+$/g,"").replace(/\u0090/g,""):void 0,"data"!==h||u?h&&u&&g&&(h=this.hyphenateDataAttrs?"data-"+h.replace("_","-"):"data-"+h,/}\s*$/.test(u)&&(g=!1)):(g=!0,f=!0),t){case"(":if(u=u.replace(/^\s+|[\s)]+$/g,""),p=null!=(D=/^(['"])/.exec(u))?D[1]:void 0,o=u.lastIndexOf(p),o>1){for(E=u.substring(o+1).split(" "),x=0,z=E.length;z>x;x++)b=E[x],b&&(c[b]="true");u=u.substring(0,o+1)}c[h]=u;break;case"{":c[h]=u.replace(/^\s+|[\s}]+$/g,"")}return f&&delete c.data,c},b.prototype.buildHtmlTagPrefix=function(a){var b,c,d,e,f,g,h,i,j,k,l;if(h=["<"+a.tag],a.classes){if(d=!1,b=function(){var b,c,e,f;for(e=a.classes,f=[],b=0,c=e.length;c>b;b++)g=e[b],g=this.interpolateCodeAttribute(g,!0),-1!==g.indexOf("#{")&&(d=!0),f.push(g);return f}.call(this),d&&b.length>1){for(c="#{ [",j=0,k=b.length;k>j;j++)f=b[j],c+=""+this.quoteAndEscapeAttributeValue(f,!0)+",";c=c.substring(0,c.length-1)+"].sort().join(' ').replace(/^\\s+|\\s+$/g, '') }"}else c=b.sort().join(" ");h.push("class='"+c+"'")}if(a.id&&h.push("id='"+a.id+"'"),a.reference&&(a.attributes&&(delete a.attributes["class"],delete a.attributes.id),h.push("#{$r("+a.reference+")}")),a.attributes){l=a.attributes;for(e in l)i=l[e],"true"===i||"false"===i?"true"===i&&("html5"===this.format?h.push(""+e):h.push(""+e+"="+this.quoteAndEscapeAttributeValue(e))):h.push(""+e+"="+this.quoteAndEscapeAttributeValue(this.interpolateCodeAttribute(i)))}return h.join(" ")},b.prototype.interpolateCodeAttribute=function(a,b){var c;return null==b&&(b=!1),a?(a.match(/^("|').*\1$/)||(a=this.escapeAttributes?this.cleanValue?"#{ $e($c("+a+")) }":"#{ $e("+a+") }":this.cleanValue?"#{ $c("+a+") }":"#{ ("+a+") }"),b&&(c=a.match(/^("|')(.*)\1$/))&&(a=c[2]),a):void 0},b.prototype.quoteAndEscapeAttributeValue=function(a,b){var c,d,f,g,h,i,j,k;return null==b&&(b=!1),a?((h=a.match(/^("|')(.*)\1$/))&&(a=h[2]),k=this.splitInterpolations(a),g=!1,d=!1,f=!1,k=function(){var a,b,c;for(c=[],a=0,b=k.length;b>a;a++)j=k[a],"#{"===j.slice(0,2)?(-1===j.indexOf("$e")&&-1===j.indexOf("$c")&&(this.escapeAttributes?j=this.cleanValue?"#{ $e($c("+j.slice(2,-1)+")) }":"#{ $e("+j.slice(2,-1)+") }":this.cleanValue&&(j="#{ $c("+j.slice(2,-1)+") }")),f=!0):(g||(g=-1!==j.indexOf("'")),d||(d=-1!==j.indexOf('"'))),c.push(j);return c}.call(this),b?i=f?'"'+k.join("")+'"':"'"+k.join("")+"'":(d||g||(i="'"+k.join("")+"'"),g&&!d&&(i='\\"'+k.join("")+'\\"'),d&&!g&&(c=function(){var a,b,c;for(c=[],a=0,b=k.length;b>a;a++)j=k[a],c.push(e(j));return c}(),i="'"+c.join("")+"'"),g&&d&&(c=function(){var a,b,c;for(c=[],a=0,b=k.length;b>a;a++)j=k[a],c.push(e(j).replace(/'/g,"&#39;"));return c}(),i="'"+c.join("")+"'")),i):void 0},b.prototype.splitInterpolations=function(a){var b,c,d,e,f,g,h,i;for(d=0,f=0,g=[],e=h=0,i=a.length;i>=0?i>h:h>i;e=i>=0?++h:--h)b=a[e],c=a.slice(e,+(e+1)+1||9e9),"{"===b&&(d+=1),"#{"===c&&0===d&&(g.push(a.slice(f,e)),f=e),"}"===b&&(d-=1,0===d&&(g.push(a.slice(f,+e+1||9e9)),f=e+1));return g.push(a.slice(f,a.length)),g.filter(Boolean)},b.prototype.buildDocType=function(a){switch(""+this.format+" "+a){case"xhtml !!! XML":return"<?xml version='1.0' encoding='utf-8' ?>";case"xhtml !!!":return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';case"xhtml !!! 1.1":return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';case"xhtml !!! mobile":return'<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">';case"xhtml !!! basic":return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">';case"xhtml !!! frameset":return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">';case"xhtml !!! 5":case"html5 !!!":return"<!DOCTYPE html>";case"html5 !!! XML":case"html4 !!! XML":return"";case"html4 !!!":return'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';case"html4 !!! frameset":return'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">';case"html4 !!! strict":return'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'}},b.prototype.isNotSelfClosing=function(a){return-1===this.selfCloseTags.indexOf(a)&&!a.match(/\/$/)},b}(d)}.call(this)}),require.define("/nodes/code.coffee",function(a,b){!function(){var c,d,e,f={}.hasOwnProperty,g=function(a,b){function c(){this.constructor=a}for(var d in b)f.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};d=a("./node"),b.exports=c=function(a){function b(){return e=b.__super__.constructor.apply(this,arguments)}return g(b,a),b.prototype.evaluate=function(){var a,b,c,d;return b=this.expression.match(/(-|!=|\&=|=|~)\s?(.*)?/),d=b[1],a=b[2],"-"!==d?"~"===d?this.opener=this.escapeHtml?this.markInsertingCode(a,!0,!1,!0):this.markInsertingCode(a,!1,!1,!0):(c="&="===d||"="===d&&this.escapeHtml,0!==this.children.length&&a.match(/(->|=>)$/)?(this.opener=this.markInsertingCode(a,c,!1,!1),this.opener.block="start",this.closer=this.markRunningCode(' $buffer.join "\\n"'),this.closer.block="end"):this.opener=this.markInsertingCode(a,c)):(this.opener=this.markRunningCode(a),0!==this.children.length&&this.opener.code.match(/(->|=>)/)?this.closer=this.markRunningCode(" ''"):void 0)
},b}(d)}.call(this)}),require.define("/nodes/comment.coffee",function(a,b){!function(){var c,d,e,f,g={}.hasOwnProperty,h=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};d=a("./node"),e=a("../util/text").escapeQuotes,b.exports=c=function(a){function b(){return f=b.__super__.constructor.apply(this,arguments)}return h(b,a),b.prototype.evaluate=function(){var a,b,c,d;switch(d=this.expression.match(/(-#|\/\[|\/)\s?(.*)?/),b=d[0],c=d[1],a=d[2],c){case"-#":return this.silent=!0,this.opener=this.markText("");case"/[":return this.opener=this.markText("<!--["+a+">"),this.closer=this.markText("<![endif]-->");case"/":return a?(this.opener=this.markText("<!-- "+e(a)),this.closer=this.markText(" -->")):(this.opener=this.markText("<!--"),this.closer=this.markText("-->"))}},b}(d)}.call(this)}),require.define("/nodes/filter.coffee",function(a,b){!function(){var c,d,e,f,g,h={}.hasOwnProperty,i=function(a,b){function c(){this.constructor=a}for(var d in b)h.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};d=a("./node"),f=a("../util/text").whitespace,e=a("../util/text").unescapeQuotes,b.exports=c=function(a){function b(){return g=b.__super__.constructor.apply(this,arguments)}return i(b,a),b.prototype.evaluate=function(){var a;return this.filter=null!=(a=this.expression.match(/:(escaped|preserve|css|javascript|coffeescript|plain|cdata|coffeescript)(.*)?/))?a[1]:void 0},b.prototype.render=function(){var a,b,c,d,e,f,g,h,i,j;switch(c=[],this.filter){case"escaped":for(i=this.children,e=0,g=i.length;g>e;e++)a=i[e],c.push(this.markText(a.render()[0].text,!0));break;case"preserve":for(d="",j=this.children,f=0,h=j.length;h>f;f++)a=j[f],d+=""+a.render()[0].text+"&#x000A;";d=d.replace(/\&\#x000A;$/,""),c.push(this.markText(d));break;case"plain":this.renderFilterContent(0,c);break;case"css":"html5"===this.format?c.push(this.markText("<style>")):c.push(this.markText("<style type='text/css'>")),"xhtml"===this.format&&c.push(this.markText(" /*<![CDATA[*/")),b="xhtml"===this.format?2:1,this.renderFilterContent(b,c),"xhtml"===this.format&&c.push(this.markText(" /*]]>*/")),c.push(this.markText("</style>"));break;case"javascript":"html5"===this.format?c.push(this.markText("<script>")):c.push(this.markText("<script type='text/javascript'>")),"xhtml"===this.format&&c.push(this.markText(" //<![CDATA[")),b="xhtml"===this.format?2:1,this.renderFilterContent(b,c),"xhtml"===this.format&&c.push(this.markText(" //]]>")),c.push(this.markText("</script>"));break;case"cdata":c.push(this.markText("<![CDATA[")),this.renderFilterContent(2,c),c.push(this.markText("]]>"));break;case"coffeescript":this.renderFilterContent(0,c,"run")}return c},b.prototype.renderFilterContent=function(a,b,c){var d,g,h,i,j,k,l,m,n,o,p,q;for(null==c&&(c="text"),g=[],i=0,p=this.children,k=0,n=p.length;n>k;k++)d=p[k],g.push(d.render()[0].text);for(q=[],l=0,o=g.length;o>l;l++)if(j=g[l],""===j)q.push(i+=1);else{switch(c){case"text":for(h=m=0;i>=0?i>m:m>i;h=i>=0?++m:--m)b.push(this.markText(""));b.push(this.markText(""+f(a)+j));break;case"run":b.push(this.markRunningCode(""+e(j)))}q.push(i=0)}return q},b}(d)}.call(this)}),require.define("/nodes/directive.coffee",function(a,b,c,d,e,f){!function(){var c,d,e,g,h,i,j={}.hasOwnProperty,k=function(a,b){function c(){this.constructor=a}for(var d in b)j.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};h=a("path"),e=a("./node"),f.browser||(g=a("fs"),c=a("coffee-script")),b.exports=d=function(b){function d(){return i=d.__super__.constructor.apply(this,arguments)}return k(d,b),d.prototype.directives={include:function(b){var d,e,f,h,i,j,k,l,m,n;try{n=b.match(/\s*['"](.*?)['"](?:,\s*(.*))?\s*/),n[0],k=n[1],h=n[2]}catch(o){throw i=o,new Error("Failed to parse the include directive from "+b)}return h||(h="this"),m=function(){switch(this.placement){case"global":return""+this.namespace+"['"+k+"']("+h+")";case"amd":return"require('"+k+"').apply("+h+")";case"standalone":if("undefined"!=typeof browser&&null!==browser?browser.process:void 0)throw new Error("Include directive not available in the Browser when placement is standalone.");try{l=g.readFileSync(k).toString()}catch(b){j=b,console.error(" Error opening file: %s",j),console.error(j)}return d=a("../haml-coffee"),f=new d(this.options),f.parse(l),e=c.compile(f.precompile(),{bare:!0}),m="`(function(){"+e+"}).apply("+h+")`";default:throw new Error("Include directive not available when placement is "+this.placement)}}.call(this),this.opener=this.markInsertingCode(m,!1)}},d.prototype.evaluate=function(){var a,b,c,d,e;a=Object.keys(this.directives).join("|");try{e=this.expression.match(RegExp("\\+("+a+")(.*)")),e[0],c=e[1],d=e[2]}catch(f){throw b=f,new Error("Unable to recognize directive from "+this.expression)}return this.directives[c].call(this,d)},d}(e)}.call(this)}),require.define("fs",function(){}),require.define("/hamlc.coffee",function(a,b,c,d,e,f){!function(){var c,d,e,g;e=a("fs"),d=a("./haml-coffee"),c=f.browser?window.CoffeeScript:a("coffee-script"),g={},b.exports={render:function(a,b,e){var f,g;return null==b&&(b={}),null==e&&(e={}),e.placement="standalone",f=new d(e),f.parse(a),g=new Function(c.compile(f.precompile(),{bare:!0})),g.call(b)},compile:function(a,b){var e,f;return null==b&&(b={}),e=new d(b),e.parse(a),f=new Function(c.compile(e.precompile(),{bare:!0})),function(a){return f.call(a)}},template:function(a,b,e,f){var g;return null==f&&(f={}),f.namespace=e,f.name=b,g=new d(f),g.parse(a),c.compile(g.render())},__express:function(a,c,d){var f,h;c&&c.constructor&&c.call&&c.apply&&(d=c,c={});try{return c.cache&&g[a]?d(null,g[a](c)):(c.filename=a,h=e.readFileSync(a,"utf8"),c.cache?(g[a]=b.exports.compile(h,c),d(null,g[a](c))):d(null,b.exports.compile(h,c)(c)))}catch(i){return f=i,d(f)}}}}.call(this)});

@@ -19,3 +19,3 @@ {

],
"version": "1.13.4",
"version": "1.13.5",
"licenses": [

@@ -22,0 +22,0 @@ {

@@ -553,2 +553,5 @@ {

"partials/test" : "directives/partials/test"
},
"locals" : {
"title": "Title For the partial."
}

@@ -555,0 +558,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc