import{g as M}from"./index-91b358e1.js";function S(p,R){for(var i=0;in[c]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var k={exports:{}};(function(p,R){ace.define("ace/mode/graphqlschema_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(i,n,c){var s=i("../lib/oop"),f=i("./text_highlight_rules").TextHighlightRules,m=function(){var u="type|interface|union|enum|schema|input|implements|extends|scalar",e="Int|Float|String|ID|Boolean",t=this.createKeywordMapper({keyword:u,"storage.type":e},"identifier");this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:t,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};s.inherits(m,f),n.GraphQLSchemaHighlightRules=m}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(i,n,c){var s=i("../../lib/oop"),f=i("../../range").Range,m=i("./fold_mode").FoldMode,u=n.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};s.inherits(u,m),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,r){var l=e.getLine(r);if(this.singleLineBlockCommentRe.test(l)&&!this.startRegionRe.test(l)&&!this.tripleStarBlockCommentRe.test(l))return"";var o=this._getFoldWidgetBase(e,t,r);return!o&&this.startRegionRe.test(l)?"start":o},this.getFoldWidgetRange=function(e,t,r,l){var o=e.getLine(r);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,r);var a=o.match(this.foldingStartMarker);if(a){var g=a.index;if(a[1])return this.openingBracketBlock(e,a[1],r,g);var h=e.getCommentFoldRange(r,g+a[0].length,1);return h&&!h.isMultiLine()&&(l?h=this.getSectionRange(e,r):t!="all"&&(h=null)),h}if(t!=="markbegin"){var a=o.match(this.foldingStopMarker);if(a){var g=a.index+a[0].length;return a[1]?this.closingBracketBlock(e,a[1],r,g):e.getCommentFoldRange(r,g,-1)}}},this.getSectionRange=function(e,t){var r=e.getLine(t),l=r.search(/\S/),o=t,g=r.length;t=t+1;for(var h=t,a=e.getLength();++tv)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=o)break;if(d.isMultiLine())t=d.end.row;else if(l==v)break}h=t}}return new f(o,g,h,e.getLine(h).length)},this.getCommentRegionBlock=function(e,t,r){for(var l=t.search(/\s*$/),o=e.getLength(),g=r,h=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;++rg)return new f(g,l,d,t.length)}}.call(u.prototype)}),ace.define("ace/mode/graphqlschema",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/graphqlschema_highlight_rules","ace/mode/folding/cstyle"],function(i,n,c){var s=i("../lib/oop"),f=i("./text").Mode,m=i("./graphqlschema_highlight_rules").GraphQLSchemaHighlightRules,u=i("./folding/cstyle").FoldMode,e=function(){this.HighlightRules=m,this.foldingRules=new u};s.inherits(e,f),function(){this.lineCommentStart="#",this.$id="ace/mode/graphqlschema",this.snippetFileId="ace/snippets/graphqlschema"}.call(e.prototype),n.Mode=e}),function(){ace.require(["ace/mode/graphqlschema"],function(i){p&&(p.exports=i)})}()})(k);var x=k.exports;const _=M(x),b=S({__proto__:null,default:_},[x]);export{b as m}; //# sourceMappingURL=mode-graphqlschema-2f0a64fa.js.map