"use strict";(self.webpackChunkbit_workspace=self.webpackChunkbit_workspace||[]).push([["2508"],{546925(e,n,t){var a=t(156090),r=t(208446);function o(e){e.register(a),e.register(r),e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",function(n){e.languages["markup-templating"].buildPlaceholders(n,"etlua",/<%[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}e.exports=o,o.displayName="etlua",o.aliases=[]},156090(e){function n(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}e.exports=n,n.displayName="lua",n.aliases=[]},208446(e){function n(e){function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,r,o){if(t.language===a){var i=t.tokenStack=[];t.code=t.code.replace(r,function(e){if("function"==typeof o&&!o(e))return e;for(var r,l=i.length;-1!==t.code.indexOf(r=n(a,l));)++l;return i[l]=e,r}),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var r=0,o=Object.keys(t.tokenStack);!function i(l){for(var s=0;s<l.length&&!(r>=o.length);s++){var u=l[s];if("string"==typeof u||u.content&&"string"==typeof u.content){var p=o[r],g=t.tokenStack[p],c="string"==typeof u?u:u.content,f=n(a,p),d=c.indexOf(f);if(d>-1){++r;var k=c.substring(0,d),m=new e.Token(a,e.tokenize(g,t.grammar),"language-"+a,g),b=c.substring(d+f.length),h=[];k&&h.push.apply(h,i([k])),h.push(m),b&&h.push.apply(h,i([b])),"string"==typeof u?l.splice.apply(l,[s,1].concat(h)):u.content=h}}else u.content&&i(u.content)}return l}(t.tokens)}}}})}e.exports=n,n.displayName="markupTemplating",n.aliases=[]}}]);