UNPKG

ruru

Version:

Grafast-flavoured GraphiQL distribution

2 lines 4.61 kB
export const __webpack_esm_id__=8882;export const __webpack_esm_ids__=[8882];export const __webpack_esm_modules__={19031(t,e,n){n.r(e),n.d(e,{VSBuffer:()=>o,readUInt16LE:()=>h,readUInt32BE:()=>a,readUInt8:()=>c,writeUInt16LE:()=>f,writeUInt32BE:()=>u,writeUInt8:()=>d});var r=n(55003);const i="undefined"!=typeof Buffer;let s;new r.Lazy(()=>new Uint8Array(256));class o{static wrap(t){return i&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new o(t)}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}toString(){return i?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function h(t,e){return(0|t[e+0])>>>0|t[e+1]<<8>>>0}function f(t,e,n){t[n+0]=255&e,e>>>=8,t[n+1]=255&e}function a(t,e){return t[e]*2**24+65536*t[e+1]+256*t[e+2]+t[e+3]}function u(t,e,n){t[n+3]=e,e>>>=8,t[n+2]=e,e>>>=8,t[n+1]=e,e>>>=8,t[n]=e}function c(t,e){return t[e]}function d(t,e,n){t[n]=e}},10492(t,e,n){n.r(e),n.d(e,{CursorColumns:()=>i});var r=n(60891);class i{static _nextVisibleColumn(t,e,n){return 9===t?i.nextRenderTabStop(e,n):r.isFullWidthCharacter(t)||r.isEmojiImprecise(t)?e+2:e+1}static visibleColumnFromColumn(t,e,n){const i=Math.min(e-1,t.length),s=t.substring(0,i),o=new r.GraphemeIterator(s);let h=0;for(;!o.eol();){const t=r.getNextCodePoint(s,i,o.offset);o.nextGraphemeLength(),h=this._nextVisibleColumn(t,h,n)}return h}static columnFromVisibleColumn(t,e,n){if(e<=0)return 1;const i=t.length,s=new r.GraphemeIterator(t);let o=0,h=1;for(;!s.eol();){const f=r.getNextCodePoint(t,i,s.offset);s.nextGraphemeLength();const a=this._nextVisibleColumn(f,o,n),u=s.offset+1;if(a>=e)return a-e<e-o?u:h;o=a,h=u}return i+1}static nextRenderTabStop(t,e){return t+e-t%e}static nextIndentTabStop(t,e){return t+e-t%e}static prevRenderTabStop(t,e){return Math.max(0,t-1-(t-1)%e)}static prevIndentTabStop(t,e){return Math.max(0,t-1-(t-1)%e)}}},15801(t,e,n){n.r(e),n.d(e,{StringBuilder:()=>d,decodeUTF16LE:()=>c,getPlatformTextDecoder:()=>u});var r=n(60891),i=n(69958),s=n(19031);let o,h,f;function a(){return o||(o=new TextDecoder("UTF-16LE")),o}function u(){return f||(f=i.isLittleEndian()?a():(h||(h=new TextDecoder("UTF-16BE")),h)),f}function c(t,e,n){const r=new Uint16Array(t.buffer,e,n);return n>0&&(65279===r[0]||65534===r[0])?function(t,e,n){const r=[];let i=0;for(let o=0;o<n;o++){const n=s.readUInt16LE(t,e);e+=2,r[i++]=String.fromCharCode(n)}return r.join("")}(t,e,n):a().decode(r)}class d{constructor(t){this._capacity=0|t,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const t=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return u().decode(t)}_flushBuffer(){const t=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[t]:this._completedStrings[this._completedStrings.length]=t}appendCharCode(t){const e=this._capacity-this._bufferLength;e<=1&&(0===e||r.isHighSurrogate(t))&&this._flushBuffer(),this._buffer[this._bufferLength++]=t}appendASCIICharCode(t){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=t}appendString(t){const e=t.length;if(this._bufferLength+e>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=t);for(let n=0;n<e;n++)this._buffer[this._bufferLength++]=t.charCodeAt(n)}}},33099(t,e,n){n.r(e),n.d(e,{EDITOR_MODEL_DEFAULTS:()=>r});const r={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},3361(t,e,n){n.r(e),n.d(e,{Extensions:()=>s});var r=n(22573),i=n(28976);const s={JSONContribution:"base.contributions.json"},o=new class{constructor(){this._onDidChangeSchema=new r.Emitter,this.schemasById={}}registerSchema(t,e){var n;this.schemasById[(n=t,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=e,this._onDidChangeSchema.fire(t)}notifySchemaChanged(t){this._onDidChangeSchema.fire(t)}};i.Registry.add(s.JSONContribution,o)},28976(t,e,n){n.r(e),n.d(e,{Registry:()=>s});var r=n(72667),i=n(69708);const s=new class{constructor(){this.data=new Map}add(t,e){r.ok(i.isString(t)),r.ok(i.isObject(e)),r.ok(!this.data.has(t),"There is already an extension with this id"),this.data.set(t,e)}as(t){return this.data.get(t)||null}}}}; //# sourceMappingURL=8882.js.map