(self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([[654],{9654:(e,r,n)=>{!function(e){"use strict";function r(r){return function(n,t){var i=t.line,o=n.getLine(i);function l(r){for(var l,f=t.ch,s=0;;){var a=f<=0?-1:o.lastIndexOf(r[0],f-1);if(-1!=a){if(1==s&&a<t.ch)break;if(l=n.getTokenTypeAt(e.Pos(i,a+1)),!/^(comment|string)/.test(l))return{ch:a+1,tokenType:l,pair:r};f=a-1}else{if(1==s)break;s=1,f=o.length}}}function f(r){var t,o,l=1,f=n.lastLine(),s=r.ch;e:for(var a=i;a<=f;++a)for(var u=n.getLine(a),c=a==i?s:0;;){var g=u.indexOf(r.pair[0],c),d=u.indexOf(r.pair[1],c);if(g<0&&(g=u.length),d<0&&(d=u.length),(c=Math.min(g,d))==u.length)break;if(n.getTokenTypeAt(e.Pos(a,c+1))==r.tokenType)if(c==g)++l;else if(! --l){t=a,o=c;break e}++c}return null==t||i==t?null:{from:e.Pos(i,s),to:e.Pos(t,o)}}for(var s=[],a=0;a<r.length;a++){var u=l(r[a]);u&&s.push(u)}for(s.sort((function(e,r){return e.ch-r.ch})),a=0;a<s.length;a++){var c=f(s[a]);if(c)return c}return null}}e.registerHelper("fold","brace",r([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",r([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",(function(r,n){function t(n){if(n<r.firstLine()||n>r.lastLine())return null;var t=r.getTokenAt(e.Pos(n,1));if(/\S/.test(t.string)||(t=r.getTokenAt(e.Pos(n,t.end+1))),"keyword"!=t.type||"import"!=t.string)return null;for(var i=n,o=Math.min(r.lastLine(),n+10);i<=o;++i){var l=r.getLine(i).indexOf(";");if(-1!=l)return{startCh:t.end,end:e.Pos(i,l)}}}var i,o=n.line,l=t(o);if(!l||t(o-1)||(i=t(o-2))&&i.end.line==o-1)return null;for(var f=l.end;;){var s=t(f.line+1);if(null==s)break;f=s.end}return{from:r.clipPos(e.Pos(o,l.startCh+1)),to:f}})),e.registerHelper("fold","include",(function(r,n){function t(n){if(n<r.firstLine()||n>r.lastLine())return null;var t=r.getTokenAt(e.Pos(n,1));return/\S/.test(t.string)||(t=r.getTokenAt(e.Pos(n,t.end+1))),"meta"==t.type&&"#include"==t.string.slice(0,8)?t.start+8:void 0}var i=n.line,o=t(i);if(null==o||null!=t(i-1))return null;for(var l=i;null!=t(l+1);)++l;return{from:e.Pos(i,o+1),to:r.clipPos(e.Pos(l))}}))}(n(6246))}}]);
//# sourceMappingURL=654.504b8830.chunk.js.map