{"version":3,"sources":["../../node_modules/codemirror/mode/handlebars/handlebars.js"],"names":["mod","exports","module","require","define","amd","CodeMirror","defineSimpleMode","start","regex","push","token","handlebars_raw","pop","handlebars","dash_comment","comment","meta","blockCommentStart","blockCommentEnd","defineMode","config","parserConfig","getMode","base","multiplexingMode","open","close","mode","parseDelimiters","defineMIME"],"mappings":"CAGA,SAAUA,GACR,SAAWC,UAAW,gBAAmBC,SAAU,SACjDF,EAAIG,QAAQ,wBAAyBA,QAAQ,2BAA4BA,QAAQ,mCAC9E,UAAWC,SAAU,YAAcA,OAAOC,IAC7CD,QAAQ,uBAAwB,0BAA2B,8BAA+BJ,OAE1FA,GAAIM,cACL,SAASA,GACV,YAEAA,GAAWC,iBAAiB,mBAC1BC,QACIC,MAAO,SAAUC,KAAM,iBAAkBC,MAAO,QAChDF,MAAO,UAAWC,KAAM,eAAgBC,MAAO,YAC/CF,MAAO,QAAWC,KAAM,UAAWC,MAAO,YAC1CF,MAAO,OAAWC,KAAM,aAAcC,MAAO,QAEjDC,iBACIH,MAAO,SAAUI,IAAK,KAAMF,MAAO,QAEvCG,aACIL,MAAO,OAAQI,IAAK,KAAMF,MAAO,QAGjCF,MAAO,qBAAsBE,MAAO,WACpCF,MAAO,qBAAsBE,MAAO,WAGpCF,MAAO,wBAAyBE,MAAO,YACvCF,MAAO,kBAAmBE,MAAO,YAGjCF,MAAO,OAAQE,MAAO,WAGtBF,MAAO,mBAAoBE,MAAO,SAGlCF,MAAO,mCAAoCE,MAAO,eAEtDI,eACIN,MAAO,SAAUI,IAAK,KAAMF,MAAO,YAGnCF,MAAO,IAAKE,MAAO,YAEvBK,UACIP,MAAO,OAAQI,IAAK,KAAMF,MAAO,YACjCF,MAAO,IAAKE,MAAO,YAEvBM,MACEC,kBAAmB,OACnBC,gBAAiB,SAIrBb,GAAWc,WAAW,aAAc,SAASC,EAAQC,GACnD,GAAIR,GAAaR,EAAWiB,QAAQF,EAAQ,kBAC5C,KAAKC,IAAiBA,EAAaE,KAAM,MAAOV,EAChD,OAAOR,GAAWmB,iBAChBnB,EAAWiB,QAAQF,EAAQC,EAAaE,OACvCE,KAAM,KAAMC,MAAO,UAAWC,KAAMd,EAAYe,gBAAiB,QAItEvB,GAAWwB,WAAW,6BAA8B","file":"handlebars.min.js","sourcesContent":["// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/LICENSE\n\n(function(mod) {\n if (typeof exports == \"object\" && typeof module == \"object\") // CommonJS\n mod(require(\"../../lib/codemirror\"), require(\"../../addon/mode/simple\"), require(\"../../addon/mode/multiplex\"));\n else if (typeof define == \"function\" && define.amd) // AMD\n define([\"../../lib/codemirror\", \"../../addon/mode/simple\", \"../../addon/mode/multiplex\"], mod);\n else // Plain browser env\n mod(CodeMirror);\n})(function(CodeMirror) {\n \"use strict\";\n\n CodeMirror.defineSimpleMode(\"handlebars-tags\", {\n start: [\n { regex: /\\{\\{\\{/, push: \"handlebars_raw\", token: \"tag\" },\n { regex: /\\{\\{!--/, push: \"dash_comment\", token: \"comment\" },\n { regex: /\\{\\{!/, push: \"comment\", token: \"comment\" },\n { regex: /\\{\\{/, push: \"handlebars\", token: \"tag\" }\n ],\n handlebars_raw: [\n { regex: /\\}\\}\\}/, pop: true, token: \"tag\" },\n ],\n handlebars: [\n { regex: /\\}\\}/, pop: true, token: \"tag\" },\n\n // Double and single quotes\n { regex: /\"(?:[^\\\\\"]|\\\\.)*\"?/, token: \"string\" },\n { regex: /'(?:[^\\\\']|\\\\.)*'?/, token: \"string\" },\n\n // Handlebars keywords\n { regex: />|[#\\/]([A-Za-z_]\\w*)/, token: \"keyword\" },\n { regex: /(?:else|this)\\b/, token: \"keyword\" },\n\n // Numeral\n { regex: /\\d+/i, token: \"number\" },\n\n // Atoms like = and .\n { regex: /=|~|@|true|false/, token: \"atom\" },\n\n // Paths\n { regex: /(?:\\.\\.\\/)*(?:[A-Za-z_][\\w\\.]*)+/, token: \"variable-2\" }\n ],\n dash_comment: [\n { regex: /--\\}\\}/, pop: true, token: \"comment\" },\n\n // Commented code\n { regex: /./, token: \"comment\"}\n ],\n comment: [\n { regex: /\\}\\}/, pop: true, token: \"comment\" },\n { regex: /./, token: \"comment\" }\n ],\n meta: {\n blockCommentStart: \"{{--\",\n blockCommentEnd: \"--}}\"\n }\n });\n\n CodeMirror.defineMode(\"handlebars\", function(config, parserConfig) {\n var handlebars = CodeMirror.getMode(config, \"handlebars-tags\");\n if (!parserConfig || !parserConfig.base) return handlebars;\n return CodeMirror.multiplexingMode(\n CodeMirror.getMode(config, parserConfig.base),\n {open: \"{{\", close: /\\}\\}\\}?/, mode: handlebars, parseDelimiters: true}\n );\n });\n\n CodeMirror.defineMIME(\"text/x-handlebars-template\", \"handlebars\");\n});\n"]}