import{A as _}from"./index.f4d41e67.entry.js";function j(p,k){return k.forEach(function(o){o&&typeof o!="string"&&!Array.isArray(o)&&Object.keys(o).forEach(function(l){if(l!=="default"&&!(l in p)){var u=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(p,l,u.get?u:{enumerable:!0,get:function(){return o[l]}})}})}),Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(p,k){(function(o){o(_.exports)})(function(o){o.defineMode("groovy",function(l){function u(e){for(var n={},t=e.split(" "),r=0;r<t.length;++r)n[t[r]]=!0;return n}var E=u("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),O=u("catch class def do else enum finally for if interface switch trait try while"),T=u("return break continue"),B=u("null true false this"),i;function y(e,n){var t=e.next();if(t=='"'||t=="'")return b(t,e,n);if(/[\[\]{}\(\),;\:\.]/.test(t))return i=t,null;if(/\d/.test(t))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if(t=="/"){if(e.eat("*"))return n.tokenize.push(g),g(e,n);if(e.eat("/"))return e.skipToEnd(),"comment";if(h(n.lastToken,!1))return b(t,e,n)}if(t=="-"&&e.eat(">"))return i="->",null;if(/[+\-*&%=<>!?|\/~]/.test(t))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),t=="@")return e.eatWhile(/[\w\$_\.]/),"meta";if(n.lastToken==".")return"property";if(e.eat(":"))return i="proplabel","property";var r=e.current();return B.propertyIsEnumerable(r)?"atom":E.propertyIsEnumerable(r)?(O.propertyIsEnumerable(r)?i="newstatement":T.propertyIsEnumerable(r)&&(i="standalone"),"keyword"):"variable"}y.isBase=!0;function b(e,n,t){var r=!1;if(e!="/"&&n.eat(e))if(n.eat(e))r=!0;else return"string";function c(v,w){for(var d=!1,s,m=!r;(s=v.next())!=null;){if(s==e&&!d){if(!r)break;if(v.match(e+e)){m=!0;break}}if(e=='"'&&s=="$"&&!d&&v.eat("{"))return w.tokenize.push(C()),"string";d=!d&&s=="\\"}return m&&w.tokenize.pop(),"string"}return t.tokenize.push(c),c(n,t)}function C(){var e=1;function n(t,r){if(t.peek()=="}"){if(e--,e==0)return r.tokenize.pop(),r.tokenize[r.tokenize.length-1](t,r)}else t.peek()=="{"&&e++;return y(t,r)}return n.isBase=!0,n}function g(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize.pop();break}t=r=="*"}return"comment"}function h(e,n){return!e||e=="operator"||e=="->"||/[\.\[\{\(,;:]/.test(e)||e=="newstatement"||e=="keyword"||e=="proplabel"||e=="standalone"&&!n}function x(e,n,t,r,c){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=c}function a(e,n,t){return e.context=new x(e.indented,n,t,null,e.context)}function f(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:[y],context:new x((e||0)-l.indentUnit,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0,t.type=="statement"&&!h(n.lastToken,!0)&&(f(n),t=n.context)),e.eatSpace())return null;i=null;var r=n.tokenize[n.tokenize.length-1](e,n);if(r=="comment")return r;if(t.align==null&&(t.align=!0),(i==";"||i==":")&&t.type=="statement")f(n);else if(i=="->"&&t.type=="statement"&&t.prev.type=="}")f(n),n.context.align=!1;else if(i=="{")a(n,e.column(),"}");else if(i=="[")a(n,e.column(),"]");else if(i=="(")a(n,e.column(),")");else if(i=="}"){for(;t.type=="statement";)t=f(n);for(t.type=="}"&&(t=f(n));t.type=="statement";)t=f(n)}else i==t.type?f(n):(t.type=="}"||t.type=="top"||t.type=="statement"&&i=="newstatement")&&a(n,e.column(),"statement");return n.startOfLine=!1,n.lastToken=i||r,r},indent:function(e,n){if(!e.tokenize[e.tokenize.length-1].isBase)return o.Pass;var t=n&&n.charAt(0),r=e.context;r.type=="statement"&&!h(e.lastToken,!0)&&(r=r.prev);var c=t==r.type;return r.type=="statement"?r.indented+(t=="{"?0:l.indentUnit):r.align?r.column+(c?0:1):r.indented+(c?0:l.indentUnit)},electricChars:"{}",closeBrackets:{triples:`'"`},fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),o.defineMIME("text/x-groovy","groovy")})})();var S=z.exports,P=j({__proto__:null,default:S},[z.exports]);export{P as g};
