"use strict";(self.webpackChunkvertx_web_graphiql=self.webpackChunkvertx_web_graphiql||[]).push([[147],{6147:function(e,n,t){t.r(n),t.d(n,{c:function(){return c}});var i=t(1003),l=Object.defineProperty,r=function(e,n){return l(e,"name",{value:n,configurable:!0})};function o(e,n){return n.forEach((function(n){n&&"string"!==typeof n&&!Array.isArray(n)&&Object.keys(n).forEach((function(t){if("default"!==t&&!(t in e)){var i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:function(){return n[t]}})}}))})),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}r(o,"_mergeNamespaces");var a={exports:{}};!function(e){var n={},t=/[^\s\u00a0]/,i=e.Pos,l=e.cmpPos;function o(e){var n=e.search(t);return-1==n?0:n}function a(e,n,t){return/\bstring\b/.test(e.getTokenTypeAt(i(n.line,0)))&&!/^[\'\"\`]/.test(t)}function c(e,n){var t=e.getMode();return!1!==t.useInnerComments&&t.innerMode?e.getModeAt(n):t}r(o,"firstNonWS"),e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=n);for(var t=this,l=1/0,r=this.listSelections(),o=null,a=r.length-1;a>=0;a--){var c=r[a].from(),m=r[a].to();c.line>=l||(m.line>=l&&(m=i(l,0)),l=c.line,null==o?t.uncomment(c,m,e)?o="un":(t.lineComment(c,m,e),o="line"):"un"==o?t.uncomment(c,m,e):t.lineComment(c,m,e))}})),r(a,"probablyInsideString"),r(c,"getMode"),e.defineExtension("lineComment",(function(e,l,r){r||(r=n);var m=this,f=c(m,e),g=m.getLine(e.line);if(null!=g&&!a(m,e,g)){var s=r.lineComment||f.lineComment;if(s){var u=Math.min(0!=l.ch||l.line==e.line?l.line+1:l.line,m.lastLine()+1),d=null==r.padding?" ":r.padding,h=r.commentBlankLines||e.line==l.line;m.operation((function(){if(r.indent){for(var n=null,l=e.line;l<u;++l){var a=(c=m.getLine(l)).slice(0,o(c));(null==n||n.length>a.length)&&(n=a)}for(l=e.line;l<u;++l){var c=m.getLine(l),f=n.length;(h||t.test(c))&&(c.slice(0,f)!=n&&(f=o(c)),m.replaceRange(n+s+d,i(l,0),i(l,f)))}}else for(l=e.line;l<u;++l)(h||t.test(m.getLine(l)))&&m.replaceRange(s+d,i(l,0))}))}else(r.blockCommentStart||f.blockCommentStart)&&(r.fullLines=!0,m.blockComment(e,l,r))}})),e.defineExtension("blockComment",(function(e,r,o){o||(o=n);var a=this,m=c(a,e),f=o.blockCommentStart||m.blockCommentStart,g=o.blockCommentEnd||m.blockCommentEnd;if(f&&g){if(!/\bcomment\b/.test(a.getTokenTypeAt(i(e.line,0)))){var s=Math.min(r.line,a.lastLine());s!=e.line&&0==r.ch&&t.test(a.getLine(s))&&--s;var u=null==o.padding?" ":o.padding;e.line>s||a.operation((function(){if(0!=o.fullLines){var n=t.test(a.getLine(s));a.replaceRange(u+g,i(s)),a.replaceRange(f+u,i(e.line,0));var c=o.blockCommentLead||m.blockCommentLead;if(null!=c)for(var d=e.line+1;d<=s;++d)(d!=s||n)&&a.replaceRange(c+u,i(d,0))}else{var h=0==l(a.getCursor("to"),r),p=!a.somethingSelected();a.replaceRange(g,r),h&&a.setSelection(p?r:a.getCursor("from"),r),a.replaceRange(f,e)}}))}}else(o.lineComment||m.lineComment)&&0!=o.fullLines&&a.lineComment(e,r,o)})),e.defineExtension("uncomment",(function(e,l,r){r||(r=n);var o,a=this,m=c(a,e),f=Math.min(0!=l.ch||l.line==e.line?l.line:l.line-1,a.lastLine()),g=Math.min(e.line,f),s=r.lineComment||m.lineComment,u=[],d=null==r.padding?" ":r.padding;e:if(s){for(var h=g;h<=f;++h){var p=a.getLine(h),v=p.indexOf(s);if(v>-1&&!/comment/.test(a.getTokenTypeAt(i(h,v+1)))&&(v=-1),-1==v&&t.test(p))break e;if(v>-1&&t.test(p.slice(0,v)))break e;u.push(p)}if(a.operation((function(){for(var e=g;e<=f;++e){var n=u[e-g],t=n.indexOf(s),l=t+s.length;t<0||(n.slice(l,l+d.length)==d&&(l+=d.length),o=!0,a.replaceRange("",i(e,t),i(e,l)))}})),o)return!0}var b=r.blockCommentStart||m.blockCommentStart,C=r.blockCommentEnd||m.blockCommentEnd;if(!b||!C)return!1;var k=r.blockCommentLead||m.blockCommentLead,L=a.getLine(g),x=L.indexOf(b);if(-1==x)return!1;var O=f==g?L:a.getLine(f),y=O.indexOf(C,f==g?x+b.length:0),S=i(g,x+1),R=i(f,y+1);if(-1==y||!/comment/.test(a.getTokenTypeAt(S))||!/comment/.test(a.getTokenTypeAt(R))||a.getRange(S,R,"\n").indexOf(C)>-1)return!1;var T=L.lastIndexOf(b,e.ch),E=-1==T?-1:L.slice(0,e.ch).indexOf(C,T+b.length);if(-1!=T&&-1!=E&&E+C.length!=e.ch)return!1;E=O.indexOf(C,l.ch);var M=O.slice(l.ch).lastIndexOf(b,E-l.ch);return T=-1==E||-1==M?-1:l.ch+M,(-1==E||-1==T||T==l.ch)&&(a.operation((function(){a.replaceRange("",i(f,y-(d&&O.slice(y-d.length,y)==d?d.length:0)),i(f,y+C.length));var e=x+b.length;if(d&&L.slice(e,e+d.length)==d&&(e+=d.length),a.replaceRange("",i(g,x),i(g,e)),k)for(var n=g+1;n<=f;++n){var l=a.getLine(n),r=l.indexOf(k);if(-1!=r&&!t.test(l.slice(0,r))){var o=r+k.length;d&&l.slice(o,o+d.length)==d&&(o+=d.length),a.replaceRange("",i(n,r),i(n,o))}}})),!0)}))}(i.a.exports);var c=o({__proto__:null,default:a.exports},[a.exports])}}]);