@chillicream/nitro-embedded 32.0.0-insider.19 → 32.0.0-insider.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/assets/{context-providers.af776b64.BBmagZaV.js → context-providers.01173db7.tvHB1UUr.js} +766 -758
  2. package/assets/{editor.worker.af776b64.DV7tFr0l.js → editor.worker.01173db7.pPbCqEhB.js} +1 -1
  3. package/assets/{graphql-engine-scheduler.af776b64.Cz4NLysV.js → graphql-engine-scheduler.01173db7.IBkuF_ni.js} +39 -37
  4. package/assets/{graphql-indexer-scheduler.af776b64.7j-3X11r.js → graphql-indexer-scheduler.01173db7.DE4yFZ-w.js} +2 -2
  5. package/assets/{graphql.worker.af776b64.DJPjCGGE.js → graphql.worker.01173db7.C6CdP4uo.js} +1 -1
  6. package/assets/{index.af776b64.CaRIGbWk.js → index.01173db7.DT-jIZPe.js} +1 -1
  7. package/assets/{json.worker.af776b64.CSMJzPY7.js → json.worker.01173db7.B6x_DIDE.js} +1 -1
  8. package/assets/{jsonMode.af776b64.DjKlGwgl.js → jsonMode.01173db7.CKMZNzNg.js} +1 -1
  9. package/assets/{main.af776b64.Dmk4-xvl.js → main.01173db7.RJKmdTa5.js} +5 -5
  10. package/assets/{monaco.af776b64.CqI-ScCO.js → monaco.01173db7.C1k7-RUu.js} +2 -2
  11. package/assets/{monaco.af776b64.DJbVOynb.css → monaco.01173db7.C2SCtpue.css} +1 -1
  12. package/assets/{monaco.af776b64.CQsPbC6_.css → monaco.01173db7.DLQda4k1.css} +1 -1
  13. package/assets/{session-scheduler.af776b64.8wyrtWVA.js → session-scheduler.01173db7.CI3oVDA9.js} +1 -1
  14. package/assets/{yaml.af776b64.GdpR5nKn.js → yaml.01173db7.6dWXvhPR.js} +1 -1
  15. package/assets/{yaml.worker.af776b64.hi2VOg5Q.js → yaml.worker.01173db7.D4YVdK-2.js} +1 -1
  16. package/index.html +4 -4
  17. package/package.json +1 -1
  18. package/service-worker.js +1 -1
  19. /package/assets/{FiraCode-Medium.af776b64.-YTCSZkP.woff2 → FiraCode-Medium.01173db7.-YTCSZkP.woff2} +0 -0
  20. /package/assets/{codicon.af776b64.Hscy-R9e.ttf → codicon.01173db7.Hscy-R9e.ttf} +0 -0
  21. /package/assets/{context-providers.af776b64.3HkX5s82.css → context-providers.01173db7.3HkX5s82.css} +0 -0
  22. /package/assets/{main.af776b64.BdMtxJz7.css → main.01173db7.BdMtxJz7.css} +0 -0
  23. /package/assets/{monaco.af776b64.D_lpPPbq.js → monaco.01173db7.2njJeRh6.js} +0 -0
  24. /package/assets/{monaco.af776b64.CzdWU10X.js → monaco.01173db7.BMU2bmS0.js} +0 -0
  25. /package/assets/{monaco.af776b64.BCQ461Sb.js → monaco.01173db7.BbrrOr-C.js} +0 -0
  26. /package/assets/{monaco.af776b64.Bp-X6TVF.js → monaco.01173db7.C-bC2H3w.js} +0 -0
  27. /package/assets/{monaco.af776b64.DNDQScAz.js → monaco.01173db7.CerlODcv.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{p as process$1,B as Buffer}from"./monaco.af776b64.D_lpPPbq.js";getOsName();isMacLike();const IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0;function getOsName(){return navigator.userAgent.indexOf("Win")>=0?"Windows":navigator.userAgent.indexOf("Mac")>=0?"macOS":navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0?"Linux":"Unknown"}function isMacLike(){const r=navigator.userAgent.toLowerCase();return r.includes("mac os")||r.includes("ipad")}const APP_NAME="Nitro",APP_VERSION="32.0.0-insider.19",APP_GRAPHQL_CLIENT_ID="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",cloudUriPattern=new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i"),IS_RUNNING_IN_CLOUD=cloudUriPattern?.test(self.origin)??!1,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION} (${APP_TYPE})`,HEADER_CONTENT_TYPE="Content-Type",HTTP_SCHEME_PATTERN=/^https?:\/\//i,INTROSPECTION_PREFIX=/^_{2}(?!_)/i,ABORT_ERROR_NAME="AbortError",ABORT_ERROR=new DOMException("Action cancelled",ABORT_ERROR_NAME),TIMEOUT_ABORT_ERROR_MESSAGE="Action timed out",TIMEOUT_ABORT_ERROR=new DOMException(TIMEOUT_ABORT_ERROR_MESSAGE,ABORT_ERROR_NAME);class TimeoutAbortSignal{#e;#t;#r;constructor(t,n){this.#e=t,this.#t=n}get aborted(){return this.#e.aborted}get cancelled(){return this.#t()}get onabort(){return this.#e.onabort}get reason(){return this.#e.reason}dispatchEvent(t){return this.#e.dispatchEvent(t)}throwIfAborted(){this.#e.throwIfAborted()}toAbortSignal(){return this.#e}toPromise(){if(this.#r)return this.#r;const t=this;let n=!1;return this.#r=new Promise((i,s)=>{if(t.aborted){n=!0,s(TIMEOUT_ABORT_ERROR);return}if(t.cancelled){n=!0,i();return}function a(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",f),n||(n=!0,s(TIMEOUT_ABORT_ERROR))}function f(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",f),n||(n=!0,i())}t.addEventListener("abort",a),t.addEventListener("cancelled",f)}),this.#r}addEventListener(t,n,i){this.#e.addEventListener(t,n,i)}removeEventListener(t,n,i){this.#e.removeEventListener(t,n,i)}}class TimeoutAbortController{_controller=new AbortController;_signal=new TimeoutAbortSignal(this._controller.signal,()=>this._cancelled);_cancelled=!1;_timeoutHandle;constructor(t){this._timeoutHandle=self.setTimeout(()=>{this.abort(TIMEOUT_ABORT_ERROR_MESSAGE)},t)}get signal(){return this._signal}abort(t){this._controller.abort(t)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function isAbortError(r){return r instanceof DOMException&&r.name===ABORT_ERROR_NAME}function isTimeoutAbortError(r){return isAbortError(r)&&r.message===TIMEOUT_ABORT_ERROR_MESSAGE}function createAbortScope(r,t,n){return n?n.aborted?Promise.reject(ABORT_ERROR):(n.addEventListener("abort",r),t().finally(()=>{n.removeEventListener("abort",r)})):t()}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var n=function i(){var s=!1;try{s=this instanceof i}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var s=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return r[i]}})}),n}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(t,n){if(n){t.super_=n;var i=function(){};i.prototype=n.prototype,t.prototype=new i,t.prototype.constructor=t}}),inherits_browser.exports}var safeBuffer$1={exports:{}},dist={},hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},n={};n.byteLength=u,n.toByteArray=d,n.fromByteArray=m;for(var i=[],s=[],a=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=f.length;l<c;++l)i[l]=f[l],s[f.charCodeAt(l)]=l;s[45]=62,s[95]=63;function o(D){var C=D.length;if(C%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var q=D.indexOf("=");q===-1&&(q=C);var M=q===C?0:4-q%4;return[q,M]}function u(D){var C=o(D),q=C[0],M=C[1];return(q+M)*3/4-M}function p(D,C,q){return(C+q)*3/4-q}function d(D){var C,q=o(D),M=q[0],F=q[1],k=new a(p(D,M,F)),$=0,L=F>0?M-4:M,G;for(G=0;G<L;G+=4)C=s[D.charCodeAt(G)]<<18|s[D.charCodeAt(G+1)]<<12|s[D.charCodeAt(G+2)]<<6|s[D.charCodeAt(G+3)],k[$++]=C>>16&255,k[$++]=C>>8&255,k[$++]=C&255;return F===2&&(C=s[D.charCodeAt(G)]<<2|s[D.charCodeAt(G+1)]>>4,k[$++]=C&255),F===1&&(C=s[D.charCodeAt(G)]<<10|s[D.charCodeAt(G+1)]<<4|s[D.charCodeAt(G+2)]>>2,k[$++]=C>>8&255,k[$++]=C&255),k}function v(D){return i[D>>18&63]+i[D>>12&63]+i[D>>6&63]+i[D&63]}function y(D,C,q){for(var M,F=[],k=C;k<q;k+=3)M=(D[k]<<16&16711680)+(D[k+1]<<8&65280)+(D[k+2]&255),F.push(v(M));return F.join("")}function m(D){for(var C,q=D.length,M=q%3,F=[],k=16383,$=0,L=q-M;$<L;$+=k)F.push(y(D,$,$+k>L?L:$+k));return M===1?(C=D[q-1],F.push(i[C>>2]+i[C<<4&63]+"==")):M===2&&(C=(D[q-2]<<8)+D[q-1],F.push(i[C>>10]+i[C>>4&63]+i[C<<2&63]+"=")),F.join("")}var R={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */R.read=function(D,C,q,M,F){var k,$,L=F*8-M-1,G=(1<<L)-1,B=G>>1,S=-7,_=q?F-1:0,h=q?-1:1,g=D[C+_];for(_+=h,k=g&(1<<-S)-1,g>>=-S,S+=L;S>0;k=k*256+D[C+_],_+=h,S-=8);for($=k&(1<<-S)-1,k>>=-S,S+=M;S>0;$=$*256+D[C+_],_+=h,S-=8);if(k===0)k=1-B;else{if(k===G)return $?NaN:(g?-1:1)*(1/0);$=$+Math.pow(2,M),k=k-B}return(g?-1:1)*$*Math.pow(2,k-M)},R.write=function(D,C,q,M,F,k){var $,L,G,B=k*8-F-1,S=(1<<B)-1,_=S>>1,h=F===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=M?0:k-1,I=M?1:-1,w=C<0||C===0&&1/C<0?1:0;for(C=Math.abs(C),isNaN(C)||C===1/0?(L=isNaN(C)?1:0,$=S):($=Math.floor(Math.log(C)/Math.LN2),C*(G=Math.pow(2,-$))<1&&($--,G*=2),$+_>=1?C+=h/G:C+=h*Math.pow(2,1-_),C*G>=2&&($++,G/=2),$+_>=S?(L=0,$=S):$+_>=1?(L=(C*G-1)*Math.pow(2,F),$=$+_):(L=C*Math.pow(2,_-1)*Math.pow(2,F),$=0));F>=8;D[q+g]=L&255,g+=I,L/=256,F-=8);for($=$<<F|L,B+=F;B>0;D[q+g]=$&255,g+=I,$/=256,B-=8);D[q+g-I]|=w*128};/*!
1
+ import{p as process$1,B as Buffer}from"./monaco.01173db7.2njJeRh6.js";getOsName();isMacLike();const IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0;function getOsName(){return navigator.userAgent.indexOf("Win")>=0?"Windows":navigator.userAgent.indexOf("Mac")>=0?"macOS":navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0?"Linux":"Unknown"}function isMacLike(){const r=navigator.userAgent.toLowerCase();return r.includes("mac os")||r.includes("ipad")}const APP_NAME="Nitro",APP_VERSION="32.0.0-insider.21",APP_GRAPHQL_CLIENT_ID="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",cloudUriPattern=new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i"),IS_RUNNING_IN_CLOUD=cloudUriPattern?.test(self.origin)??!1,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION} (${APP_TYPE})`,HEADER_CONTENT_TYPE="Content-Type",HTTP_SCHEME_PATTERN=/^https?:\/\//i,INTROSPECTION_PREFIX=/^_{2}(?!_)/i,ABORT_ERROR_NAME="AbortError",ABORT_ERROR=new DOMException("Action cancelled",ABORT_ERROR_NAME),TIMEOUT_ABORT_ERROR_MESSAGE="Action timed out",TIMEOUT_ABORT_ERROR=new DOMException(TIMEOUT_ABORT_ERROR_MESSAGE,ABORT_ERROR_NAME);class TimeoutAbortSignal{#e;#t;#r;constructor(t,n){this.#e=t,this.#t=n}get aborted(){return this.#e.aborted}get cancelled(){return this.#t()}get onabort(){return this.#e.onabort}get reason(){return this.#e.reason}dispatchEvent(t){return this.#e.dispatchEvent(t)}throwIfAborted(){this.#e.throwIfAborted()}toAbortSignal(){return this.#e}toPromise(){if(this.#r)return this.#r;const t=this;let n=!1;return this.#r=new Promise((i,s)=>{if(t.aborted){n=!0,s(TIMEOUT_ABORT_ERROR);return}if(t.cancelled){n=!0,i();return}function a(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",f),n||(n=!0,s(TIMEOUT_ABORT_ERROR))}function f(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",f),n||(n=!0,i())}t.addEventListener("abort",a),t.addEventListener("cancelled",f)}),this.#r}addEventListener(t,n,i){this.#e.addEventListener(t,n,i)}removeEventListener(t,n,i){this.#e.removeEventListener(t,n,i)}}class TimeoutAbortController{_controller=new AbortController;_signal=new TimeoutAbortSignal(this._controller.signal,()=>this._cancelled);_cancelled=!1;_timeoutHandle;constructor(t){this._timeoutHandle=self.setTimeout(()=>{this.abort(TIMEOUT_ABORT_ERROR_MESSAGE)},t)}get signal(){return this._signal}abort(t){this._controller.abort(t)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function isAbortError(r){return r instanceof DOMException&&r.name===ABORT_ERROR_NAME}function isTimeoutAbortError(r){return isAbortError(r)&&r.message===TIMEOUT_ABORT_ERROR_MESSAGE}function createAbortScope(r,t,n){return n?n.aborted?Promise.reject(ABORT_ERROR):(n.addEventListener("abort",r),t().finally(()=>{n.removeEventListener("abort",r)})):t()}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var n=function i(){var s=!1;try{s=this instanceof i}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(i){var s=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return r[i]}})}),n}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(t,n){if(n){t.super_=n;var i=function(){};i.prototype=n.prototype,t.prototype=new i,t.prototype.constructor=t}}),inherits_browser.exports}var safeBuffer$1={exports:{}},dist={},hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},n={};n.byteLength=u,n.toByteArray=d,n.fromByteArray=m;for(var i=[],s=[],a=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=f.length;l<c;++l)i[l]=f[l],s[f.charCodeAt(l)]=l;s[45]=62,s[95]=63;function o(D){var C=D.length;if(C%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var q=D.indexOf("=");q===-1&&(q=C);var M=q===C?0:4-q%4;return[q,M]}function u(D){var C=o(D),q=C[0],M=C[1];return(q+M)*3/4-M}function p(D,C,q){return(C+q)*3/4-q}function d(D){var C,q=o(D),M=q[0],F=q[1],k=new a(p(D,M,F)),$=0,L=F>0?M-4:M,G;for(G=0;G<L;G+=4)C=s[D.charCodeAt(G)]<<18|s[D.charCodeAt(G+1)]<<12|s[D.charCodeAt(G+2)]<<6|s[D.charCodeAt(G+3)],k[$++]=C>>16&255,k[$++]=C>>8&255,k[$++]=C&255;return F===2&&(C=s[D.charCodeAt(G)]<<2|s[D.charCodeAt(G+1)]>>4,k[$++]=C&255),F===1&&(C=s[D.charCodeAt(G)]<<10|s[D.charCodeAt(G+1)]<<4|s[D.charCodeAt(G+2)]>>2,k[$++]=C>>8&255,k[$++]=C&255),k}function v(D){return i[D>>18&63]+i[D>>12&63]+i[D>>6&63]+i[D&63]}function y(D,C,q){for(var M,F=[],k=C;k<q;k+=3)M=(D[k]<<16&16711680)+(D[k+1]<<8&65280)+(D[k+2]&255),F.push(v(M));return F.join("")}function m(D){for(var C,q=D.length,M=q%3,F=[],k=16383,$=0,L=q-M;$<L;$+=k)F.push(y(D,$,$+k>L?L:$+k));return M===1?(C=D[q-1],F.push(i[C>>2]+i[C<<4&63]+"==")):M===2&&(C=(D[q-2]<<8)+D[q-1],F.push(i[C>>10]+i[C>>4&63]+i[C<<2&63]+"=")),F.join("")}var R={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */R.read=function(D,C,q,M,F){var k,$,L=F*8-M-1,G=(1<<L)-1,B=G>>1,S=-7,_=q?F-1:0,h=q?-1:1,g=D[C+_];for(_+=h,k=g&(1<<-S)-1,g>>=-S,S+=L;S>0;k=k*256+D[C+_],_+=h,S-=8);for($=k&(1<<-S)-1,k>>=-S,S+=M;S>0;$=$*256+D[C+_],_+=h,S-=8);if(k===0)k=1-B;else{if(k===G)return $?NaN:(g?-1:1)*(1/0);$=$+Math.pow(2,M),k=k-B}return(g?-1:1)*$*Math.pow(2,k-M)},R.write=function(D,C,q,M,F,k){var $,L,G,B=k*8-F-1,S=(1<<B)-1,_=S>>1,h=F===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=M?0:k-1,I=M?1:-1,w=C<0||C===0&&1/C<0?1:0;for(C=Math.abs(C),isNaN(C)||C===1/0?(L=isNaN(C)?1:0,$=S):($=Math.floor(Math.log(C)/Math.LN2),C*(G=Math.pow(2,-$))<1&&($--,G*=2),$+_>=1?C+=h/G:C+=h*Math.pow(2,1-_),C*G>=2&&($++,G/=2),$+_>=S?(L=0,$=S):$+_>=1?(L=(C*G-1)*Math.pow(2,F),$=$+_):(L=C*Math.pow(2,_-1)*Math.pow(2,F),$=0));F>=8;D[q+g]=L&255,g+=I,L/=256,F-=8);for($=$<<F|L,B+=F;B>0;D[q+g]=$&255,g+=I,$/=256,B-=8);D[q+g-I]|=w*128};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -267,4 +267,4 @@ ${p}}`}return`
267
267
  }
268
268
  }
269
269
  }
270
- `,_gql_doc={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__Type",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"fields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}],loc:{start:0,end:137,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:_gql_source}}};print(_gql_doc$4);print(_gql_doc$3);print(_gql_doc$2);print(_gql_doc$1);print(_gql_doc);class SchemaCache{#e=new LRUMap;get(t){return this.#e.get(t)??null}set(t,n){const i=new SchemaCacheItem(n);return this.#e.get(t)?.dispose(),this.#e.set(t,i),i}remove(t){this.#e.get(t)?.dispose(),this.#e.delete(t)}}class SchemaCacheItem{#e;#t;#r;#i;constructor(t){this.#e=new Map(t.directives),this.#t=new Map(t.fields),this.#r=new Map(t.types),this.#i=new Map(t.fields)}getDirective(t){return this.#e.get(t)??null}getDirectives(t){const n=[];if(t?.length){const i=t.toLocaleLowerCase();this.#e.forEach(s=>{!INTROSPECTION_PREFIX.test(s.name)&&s.name.toLocaleLowerCase().includes(i)&&n.push(s)})}else this.#e.forEach(i=>{INTROSPECTION_PREFIX.test(i.name)||n.push(i)});return n.sort(objectNameComparer)}getField(t){return this.#t.get(t)??null}getFields(t,n){const i=t+".",s=[];if(n?.includeIntrospectionFields&&this.addIntrospectionFields(t,s),n?.filter?.length){const a=n.filter.toLocaleLowerCase();this.#t.forEach(f=>{f.coordinate.startsWith(i)&&f.name.toLocaleLowerCase().includes(a)&&s.push(f)})}else this.#t.forEach(a=>{a.coordinate.startsWith(i)&&s.push(a)});return s.sort(objectNameComparer)}getType(t){return this.#r.get(t)??null}getTypes(t){const n=[];if(t?.length){const i=t.toLocaleLowerCase();this.#r.forEach(s=>{!INTROSPECTION_PREFIX.test(s.name)&&s.name.toLocaleLowerCase().includes(i)&&n.push(s)})}else this.#r.forEach(i=>{INTROSPECTION_PREFIX.test(i.name)||n.push(i)});return n.sort(objectNameComparer)}getInterfaces(t,n){const i=this.#r.get(t);if(!i?.interfaces?.length)return[];if(n?.length){const s=n.toLocaleLowerCase();return i.interfaces.filter(({name:a})=>a.toLocaleLowerCase().includes(s)).sort(objectNameComparer)}return i.interfaces.sort(objectNameComparer)}getPossibleTypes(t,n){const i=this.#r.get(t);if(!i?.types?.length)return[];if(n?.length){const s=n.toLocaleLowerCase();return i.types.map(getInnerType).filter(({name:a})=>a.toLocaleLowerCase().includes(s)).sort(objectNameComparer)}return i.types.map(getInnerType).sort(objectNameComparer)}getTypesByTypeKind(t,n){const i=[];if(n?.length){const s=n.toLocaleLowerCase();this.#r.forEach(a=>{a.typeKind===t&&!INTROSPECTION_PREFIX.test(a.name)&&a.name.toLocaleLowerCase().includes(s)&&i.push(a)})}else this.#r.forEach(s=>{s.typeKind===t&&!INTROSPECTION_PREFIX.test(s.name)&&i.push(s)});return i.sort(objectNameComparer)}dispose(){this.#e.clear(),this.#t.clear(),this.#r.clear()}addIntrospectionFields(t,n){const i=this.#r.get(t),s=i?.kind==="query-type",a=i?.kind==="subscription-type";if(s){const f=this.getIntrospectionSchemaField(i.name);f&&n.push(f);const l=this.getIntrospectionTypeField(i.name);l&&n.push(l)}if(!a&&i){const f=this.getIntrospectionTypenameField(i.name);f&&n.push(f)}}getIntrospectionSchemaField(t){const n=IntrospectionField.SCHEMA_FIELD;let i=this.#i.get(n);if(!i){const s=this.#r.get("__Schema");s&&(i={kind:"field",name:n,coordinate:createSchemaMemberCoordinate(t,n),valueType:{kind:"value-type",isList:!1,isOptional:!1,type:s}},this.#i.set(n,i))}return i}getIntrospectionTypeField(t){const n=IntrospectionField.TYPE_FIELD;let i=this.#i.get(n);if(!i){const s=this.#r.get("__Type"),a=this.#r.get("String");s&&a&&(i={kind:"field",name:n,coordinate:createSchemaMemberCoordinate(t,n),valueType:{kind:"value-type",isList:!1,isOptional:!0,type:s},arguments:[{kind:"argument",name:"name",coordinate:createSchemaMemberCoordinate(t,n,"name"),type:{kind:"value-type",isList:!1,isOptional:!1,type:a}}]},this.#i.set(n,i))}return i}getIntrospectionTypenameField(t){const n=IntrospectionField.TYPENAME_FIELD;let i=this.#i.get(n);if(i)i={...i,coordinate:createSchemaMemberCoordinate(t,IntrospectionField.TYPE_FIELD)};else{const s=this.#r.get("String");s&&(i={kind:"field",name:n,coordinate:createSchemaMemberCoordinate(t,n),valueType:{kind:"value-type",isList:!1,isOptional:!1,type:s}},this.#i.set(n,i))}return i}}const schemaCache=new SchemaCache;function setSchemaCacheItem(r,t){schemaCache.set(harmonizeSchemaUrl(r),t)}const LINE_BREAK="<br />",SPACE=" ";function printAsHTML(r){return visit(r,printDocASTReducer)}const printDocASTReducer={Name:{leave:r=>r.value},Argument:{leave:({name:r,value:t})=>wrapArgumentName(r)+wrapDelimiter(":")+SPACE+t},IntValue:{leave:({value:r})=>wrapNumberValue(r)},FloatValue:{leave:({value:r})=>wrapNumberValue(r)},StringValue:{leave:({value:r,block:t})=>wrapStringValue(t?printBlockString(r):printString(r))},BooleanValue:{leave:({value:r})=>wrapLiteral(r?"true":"false")},NullValue:{leave:()=>wrapLiteral("null")},EnumValue:{leave:({value:r})=>wrapEnumValue(r)},ListValue:{leave:({values:r})=>block(r,"[]")},ObjectValue:{leave:({fields:r})=>block(r,"{}")},ObjectField:{leave:({name:r,value:t})=>wrapKey(r)+wrapDelimiter(":")+SPACE+t},Directive:{leave:({name:r,arguments:t})=>r.startsWith("fusion__")?"":LINE_BREAK+indent(wrapDirectiveName("@"+r)+block(t,"()"))},NamedType:{leave:({name:r})=>wrapTypeName(r)},ListType:{leave:({type:r})=>wrapDelimiter("[")+r+wrapDelimiter("]")},NonNullType:{leave:({type:r})=>r+wrapDelimiter("!")},DirectiveDefinition:{leave:({name:r,arguments:t})=>wrapKeyword("directive")+SPACE+wrapDirectiveName(r)+block(t,"()")},ScalarTypeDefinition:{leave:({name:r,directives:t})=>join([wrapKeyword("scalar"),wrapTypeName(r),join(t,SPACE)],SPACE)},ObjectTypeDefinition:{leave:({name:r,interfaces:t,directives:n})=>join([wrapKeyword("type"),wrapTypeName(r),wrap(wrapKeyword("implements")+SPACE,join(t,LINE_BREAK+wrapDelimiter("&")+SPACE)),join(n,SPACE)],SPACE)},FieldDefinition:{leave:({name:r,arguments:t,type:n,directives:i})=>wrapFieldName(r)+block(t,"()")+wrapDelimiter(":")+SPACE+n+wrap(SPACE,join(i,SPACE))},InputValueDefinition:{leave:({name:r,type:t,defaultValue:n,directives:i})=>join([wrapArgumentName(r)+wrapDelimiter(":")+SPACE+t,wrap(wrapDelimiter("=")+SPACE,n),join(i,SPACE)],SPACE)},InterfaceTypeDefinition:{leave:({name:r,interfaces:t,directives:n})=>join([wrapKeyword("interface"),wrapTypeName(r),wrap(wrapKeyword("implements")+SPACE,join(t,`${LINE_BREAK}${wrapDelimiter("&")} `)),join(n,SPACE)],SPACE)},UnionTypeDefinition:{leave:({name:r,directives:t})=>join([wrapKeyword("union"),wrapTypeName(r),join(t,SPACE)],SPACE)},EnumTypeDefinition:{leave:({name:r,directives:t})=>join([wrapKeyword("enum"),wrapTypeName(r),join(t,SPACE)],SPACE)},EnumValueDefinition:{leave:({name:r,directives:t})=>join([wrapEnumValue(r),join(t,SPACE)],SPACE)},InputObjectTypeDefinition:{leave:({name:r,directives:t})=>join([wrapKeyword("input"),wrapTypeName(r),join(t,SPACE)],SPACE)}};function join(r,t=""){return r?.filter(n=>n).join(t)??""}function block(r,t){switch(t){case"{}":return wrap(wrapDelimiter("{")+LINE_BREAK,indent(join(r,LINE_BREAK)),LINE_BREAK+wrapDelimiter("}"));case"[]":return wrap(wrapDelimiter("[")+LINE_BREAK,indent(join(r,LINE_BREAK)),LINE_BREAK+wrapDelimiter("]"));case"()":return wrap(wrapDelimiter("(")+LINE_BREAK,indent(join(r,LINE_BREAK)),LINE_BREAK+wrapDelimiter(")"))}}function wrap(r,t,n=""){return t!=null&&t!==""?r+t+n:""}function indent(r){return wrap(SPACE+SPACE,r.replaceAll(LINE_BREAK,LINE_BREAK+SPACE+SPACE))}function wrapArgumentName(r){return`<span class="argument">${r}</span>`}function wrapDelimiter(r){return`<span class="delimiter">${r}</span>`}function wrapDirectiveName(r){return`<span class="directive">${r}</span>`}function wrapEnumValue(r){return`<span class="enum-value">${r}</span>`}function wrapFieldName(r){return`<span class="field">${r}</span>`}function wrapKey(r){return`<span class="key">${r}</span>`}function wrapKeyword(r){return`<span class="keyword">${r}</span>`}function wrapLiteral(r){return`<span class="literal">${r}</span>`}function wrapNumberValue(r){return`<span class="number">${r}</span>`}function wrapStringValue(r){return`<span class="string">${r}</span>`}function wrapTypeName(r){return`<span class="type">${r}</span>`}function buildSchemaInfosAndItems(r){const t=[],n=[],i=[],s=Object.values(r.getTypeMap()).filter(p=>!INTROSPECTION_PREFIX.test(p.name)&&!p.name.startsWith("fusion__")),a=r.getQueryType(),f=r.getMutationType(),l=r.getSubscriptionType(),c=(a?1:0)+(f?1:0)+(l?1:0),o=Object.values(r.getTypeMap()).find(p=>p.name==="fusion__Schema")?.getValues().reduce((p,d)=>{const v=d.astNode?.directives?.find(y=>y.name.value==="fusion__schema_metadata")?.arguments?.find(y=>y.name.value==="name")?.value;return p[d.name]=v?.kind===STRING?v.value:d.name,p},{});for(const p of s){const d=buildSchemaType(r,p,o);i.push([d.coordinate,d]);const v=buildSchemaFieldTypes(r,p,void 0,o);for(const y of v)n.push([y.coordinate,y])}for(const p of r.getDirectives()){if(p.name.startsWith("fusion__"))continue;const d=buildSchemaDirective(r,p);t.push([d.coordinate,d])}const u={queryCount:getCountForOperationType(a),mutationCount:getCountForOperationType(f),subscriptionCount:getCountForOperationType(l),directiveCount:t.length,enumCount:s.filter(p=>p instanceof GraphQLEnumType).length,fieldCount:n.length,inputObjectCount:s.filter(p=>p instanceof GraphQLInputObjectType).length,interfaceCount:s.filter(p=>p instanceof GraphQLInterfaceType).length,objectCount:s.filter(p=>p instanceof GraphQLObjectType).length,rootTypeCount:c,scalarCount:s.filter(p=>p instanceof GraphQLScalarType).length,typeCount:s.length,unionCount:s.filter(p=>p instanceof GraphQLUnionType).length};return{queryTypeName:a?.name,mutationTypeName:f?.name,subscriptionTypeName:l?.name,statistics:u,items:{directives:t,fields:n,types:i}}}function readSchemaDefaultValue(r){const t=r.default;if(t!==void 0)return t.literal?valueFromASTUntyped(t.literal):t.value}function getKind(r){return r instanceof GraphQLEnumType?"enum":r instanceof GraphQLInputObjectType?"input-object":r instanceof GraphQLInterfaceType?"interface":r instanceof GraphQLScalarType?"scalar":r instanceof GraphQLUnionType?"union":r instanceof GraphQLList||r instanceof GraphQLNonNull?getKind(r.ofType):"object"}function buildSchemaFieldType(r,t,n,i){if(t instanceof GraphQLInputObjectType){const s=t.getFields()[n];if(s)return{coordinate:createSchemaMemberCoordinate(t.name,s.name),name:s.name,kind:"field",description:s.description||void 0,valueType:buildSchemaValueType(r,s.type,i),defaultValue:readSchemaDefaultValue(s),isDeprecated:!!s.deprecationReason?.length,deprecationReason:s.deprecationReason??void 0,sdlAsHTML:s.astNode?printAsHTML(s.astNode):void 0,directives:buildConstDirective(s.astNode?.directives,i)}}else if(t instanceof GraphQLInterfaceType||t instanceof GraphQLObjectType){const s=t.getFields()[n];if(s){const a=s.args.length?s.args.map(f=>{const l=buildSchemaValueType(r,f.type,i);return{coordinate:createSchemaMemberCoordinate(t.name,s.name,f.name),name:f.name,kind:"argument",description:f.description||void 0,defaultValue:readSchemaDefaultValue(f),type:l,isDeprecated:!!s.deprecationReason?.length,deprecationReason:f.deprecationReason||void 0,sdlAsHTML:f.astNode?printAsHTML(f.astNode):void 0,directives:buildConstDirective(f.astNode?.directives,i)}}):void 0;return{coordinate:createSchemaMemberCoordinate(t.name,s.name),name:s.name,kind:"field",description:s.description??void 0,arguments:a,valueType:buildSchemaValueType(r,s.type,i),isDeprecated:!!s.deprecationReason?.length,deprecationReason:s.deprecationReason??void 0,sdlAsHTML:s.astNode?printAsHTML(s.astNode):void 0,directives:buildConstDirective(s.astNode?.directives,i)}}}}function buildSchemaFieldTypes(r,t,n,i){const s=[];if(t instanceof GraphQLInputObjectType){const a=t.getFields();for(const f in a){const l=a[f];s.push({coordinate:createSchemaMemberCoordinate(t.name,l.name),name:l.name,kind:"field",description:l.description||void 0,valueType:buildSchemaValueType(r,l.type,i),defaultValue:readSchemaDefaultValue(l),isDeprecated:!!l.deprecationReason?.length,deprecationReason:l.deprecationReason??void 0,sdlAsHTML:l.astNode?printAsHTML(l.astNode):void 0,directives:buildConstDirective(l.astNode?.directives,i)})}}else if(t instanceof GraphQLInterfaceType||t instanceof GraphQLObjectType){const a=t.getFields();for(const f in a){const l=a[f];{const c=l.args.length===0?void 0:l.args.map(o=>{const u=buildSchemaValueType(r,o.type,i);return{coordinate:createSchemaMemberCoordinate(t.name,l.name,o.name),name:o.name,kind:"argument",description:o.description||void 0,defaultValue:readSchemaDefaultValue(o),type:u,isDeprecated:!!o.deprecationReason?.length,deprecationReason:o.deprecationReason||void 0,sdlAsHTML:o.astNode?printAsHTML(o.astNode):void 0,directives:buildConstDirective(o.astNode?.directives,i)}});s.push({coordinate:createSchemaMemberCoordinate(t.name,l.name),name:l.name,kind:"field",description:l.description||void 0,arguments:c,valueType:buildSchemaValueType(r,l.type,i),isDeprecated:!!l.deprecationReason?.length,deprecationReason:l.deprecationReason||void 0,sdlAsHTML:l.astNode?printAsHTML(l.astNode):void 0,directives:buildConstDirective(l.astNode?.directives,i)})}}}return s.sort(objectNameComparer)}function buildSchemaDirective(r,t){const n=t.args.length?t.args.map(i=>{const s=buildSchemaValueType(r,i.type,void 0);return{coordinate:createSchemaDirectiveCoordinate(t.name,i.name),name:i.name,kind:"argument",description:i.description??void 0,defaultValue:readSchemaDefaultValue(i),type:s,isDeprecated:!!i.deprecationReason?.length,deprecationReason:i.deprecationReason??void 0,sdlAsHTML:i.astNode?printAsHTML(i.astNode):void 0}}):void 0;return{coordinate:createSchemaDirectiveCoordinate(t.name),name:t.name,kind:"directive",description:t.description??void 0,arguments:n,sdlAsHTML:t.astNode?printAsHTML(t.astNode):void 0}}function buildSchemaType(r,t,n){let i,s,a,f=!1;return t instanceof GraphQLEnumType&&(i=t.getValues().map(l=>l).sort(objectNameComparer).map(l=>({coordinate:createSchemaMemberCoordinate(t.name,l.name),name:l.name,kind:"enum-value",description:l.description||void 0,value:l.value,isDeprecated:!!l.deprecationReason?.length,deprecationReason:l.deprecationReason??void 0,sdlAsHTML:l.astNode?printAsHTML(l.astNode):void 0,directives:buildConstDirective(l.astNode?.directives,n)}))),t instanceof GraphQLInterfaceType&&(f=isRelayInterface(r,t),a=r.getPossibleTypes(t).map(l=>l).sort(objectNameComparer).map(l=>buildSchemaValueType(r,l,n))),t instanceof GraphQLObjectType&&(f=isRelayObject(r,t),s=t.getInterfaces().map(l=>({coordinate:l.name,name:l.name,kind:"type",description:l.description||void 0,typeKind:"interface",isRelayType:isRelayObject(r,t),sdlAsHTML:l.astNode?printAsHTML(l.astNode):void 0,directives:buildConstDirective(l.astNode?.directives,n)}))),t instanceof GraphQLUnionType&&(a=t.getTypes().map(l=>l).sort(objectNameComparer).map(l=>buildSchemaValueType(r,l,n))),{coordinate:t.name,name:t.name,kind:t instanceof GraphQLObjectType?resolveObjectKind(r,t):"type",description:t.description||void 0,typeKind:getKind(t),enumValues:i,interfaces:s,isRelayType:f,types:a,sdlAsHTML:t.astNode?printAsHTML(t.astNode):void 0,directives:buildConstDirective(t.astNode?.directives,n)}}function buildConstDirective(r,t){return r?.map(({name:n,arguments:i})=>({name:n.value,arguments:i?.map(({name:s,value:a})=>({name:s.value,value:buildConstValue(a,t)}))}))}function buildConstValue(r,t){switch(r?.kind){case OBJECT:return r.fields.reduce((n,i)=>(n[i.name.value]=buildConstValue(i.value,t),n),{});case LIST:return r.values.map(n=>buildConstValue(n,t));case ENUM:return t?.[r.value]??r.value;case BOOLEAN:case FLOAT:case INT:case STRING:return r.value;default:return null}}function isRelayInterface(r,t){return t.name==="Node"&&!!buildSchemaFieldType(r,t,"id",void 0)}function isRelayObject(r,t){if(t.name.endsWith("Connection")){const n=buildSchemaFieldTypes(r,t,void 0,void 0).map(i=>i.name);return n.includes("edges")&&n.includes("pageInfo")}if(t.name.endsWith("Edge")){const n=buildSchemaFieldTypes(r,t,void 0,void 0).map(i=>i.name);return n.includes("cursor")&&n.includes("node")}if(t.name==="PageInfo"){const n=buildSchemaFieldTypes(r,t,void 0,void 0).map(i=>i.name);return n.includes("hasNextPage")&&n.includes("hasPreviousPage")&&n.includes("startCursor")&&n.includes("endCursor")}return!1}function buildSchemaValueType(r,t,n){let i,s=!1,a=!0,f;return t instanceof GraphQLNonNull?(a=!1,t.ofType instanceof GraphQLList?(i=t.ofType.ofType,s=!0):i=t.ofType):t instanceof GraphQLList?(i=t.ofType,s=!0):i=t,i instanceof GraphQLList||i instanceof GraphQLNonNull?f=buildSchemaValueType(r,i,n):f=buildSchemaType(r,i,n),{kind:"value-type",isList:s,isOptional:a,type:f}}function resolveObjectKind(r,t){switch(!0){case t===r.getQueryType():return"query-type";case t===r.getMutationType():return"mutation-type";case t===r.getSubscriptionType():return"subscription-type";default:return"type"}}function getCountForOperationType(r){return r?Object.keys(r.getFields()).length:0}const runningTasks=new Map;function cancelTask(r){runningTasks.get(r)?.cancel()}function enqueueTask(r){runningTasks.has(r.id)||(runningTasks.set(r.id,r),SCHEDULER_CONTEXT.sendMessage(new Message("scheduler-status-updated",{idling:!1,lastUpdated:now()})),deferWork(()=>{r.execute().catch(t=>{t instanceof TaskFailedError?failTask(SCHEDULER_CONTEXT,r.id,t.message,t.kind,t.details):t instanceof Error?failTask(SCHEDULER_CONTEXT,r.id,t.message,"UNEXPECTED_ERROR"):failTask(SCHEDULER_CONTEXT,r.id,"There was a unexpected error in the task","UNEXPECTED_ERROR")}).finally(()=>{runningTasks.delete(r.id),SCHEDULER_CONTEXT.sendMessage(new Message("scheduler-status-updated",{idling:runningTasks.size===0,lastUpdated:now()}))})}))}function deferWork(r){self.setTimeout(r,0)}const SCHEDULER_CONTEXT={sendMessage:r=>self.postMessage(r)};class SchedulerBase extends MessageObserver{#e={sendMessage:t=>self.postMessage(t)};constructor(){super(),this.initialize()}getContext(){return this.#e}initialize(){self.onmessage=({data:t})=>{this.handleMessage(this.#e,t)},this.registerReceiveMessageHandler(CANCEL_TASK_MESSAGE_TYPE,t=>{cancelTask(t.payload.taskId)}),this.registerReceiveMessageHandler(INITIALIZE_WORKER_MESSAGE_TYPE,t=>{self.appNamespace=t.payload.appNamespace}),this.registerMessageReceiveHandlers()}}const INDEX_SCHEMA_MESSAGE_TYPE="index-schema",SCHEMA_INDEXED_MESSAGE_TYPE="schema-indexed",runningIndexingJobs=new Map;function indexSchema({id:r,payload:{schemaEndpoint:t,schemaHash:n,schemaUpdatedAt:i}},s){const a=runningIndexingJobs.get(t);if(a){if(a.schemaHash===n||a.schemaUpdatedAt>i)return;cancelTask(a.taskId)}runningIndexingJobs.set(t,{taskId:r,schemaHash:n,schemaUpdatedAt:i});const f=new AbortController;enqueueTask({id:r,cancel:()=>f.abort(),execute:async()=>{const[l,c]=await Promise.all([getGraphQLSchemaEntity(t),getGraphQLSdlSchema(t)]);if(!l||!c||l.indexed||f.signal.aborted){s.sendMessage(new Message(SCHEMA_INDEXED_MESSAGE_TYPE,{schemaEndpoint:l?.endpoint??t,schemaHash:l?.hash??"",schemaIndexed:l?.indexed??!1}));return}let o=!1;try{const{statistics:u,items:p}=buildSchemaInfosAndItems(buildSchema(c));setSchemaCacheItem(l.endpoint,p),await setIndexedGraphQLSchemaEntity(l.endpoint,l.hash,p,u),o=!0}finally{s.sendMessage(new Message(SCHEMA_INDEXED_MESSAGE_TYPE,{schemaEndpoint:l.endpoint,schemaHash:l.hash,schemaIndexed:o}))}}})}class GraphQLIndexerScheduler extends SchedulerBase{registerMessageReceiveHandlers(){this.registerReceiveMessageHandler(INDEX_SCHEMA_MESSAGE_TYPE,indexSchema)}}new GraphQLIndexerScheduler;
270
+ `,_gql_doc={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntrospectionQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__type"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"__Type",block:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"fields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}],loc:{start:0,end:137,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:_gql_source}}};print(_gql_doc$4);print(_gql_doc$3);print(_gql_doc$2);print(_gql_doc$1);print(_gql_doc);class SchemaCache{#e=new LRUMap;get(t){return this.#e.get(t)??null}set(t,n){const i=new SchemaCacheItem(n);return this.#e.get(t)?.dispose(),this.#e.set(t,i),i}remove(t){this.#e.get(t)?.dispose(),this.#e.delete(t)}}class SchemaCacheItem{#e;#t;#r;#i;constructor(t){this.#e=new Map(t.directives),this.#t=new Map(t.fields),this.#r=new Map(t.types),this.#i=new Map(t.fields)}getDirective(t){return this.#e.get(t)??null}getDirectives(t){const n=[];if(t?.length){const i=t.toLocaleLowerCase();this.#e.forEach(s=>{!INTROSPECTION_PREFIX.test(s.name)&&s.name.toLocaleLowerCase().includes(i)&&n.push(s)})}else this.#e.forEach(i=>{INTROSPECTION_PREFIX.test(i.name)||n.push(i)});return n.sort(objectNameComparer)}getField(t){return this.#t.get(t)??null}getFields(t,n){const i=t+".",s=[];if(n?.includeIntrospectionFields&&this.addIntrospectionFields(t,s),n?.filter?.length){const a=n.filter.toLocaleLowerCase();this.#t.forEach(f=>{f.coordinate.startsWith(i)&&f.name.toLocaleLowerCase().includes(a)&&s.push(f)})}else this.#t.forEach(a=>{a.coordinate.startsWith(i)&&s.push(a)});return s.sort(objectNameComparer)}getType(t){return this.#r.get(t)??null}getTypes(t){const n=[];if(t?.length){const i=t.toLocaleLowerCase();this.#r.forEach(s=>{!INTROSPECTION_PREFIX.test(s.name)&&s.name.toLocaleLowerCase().includes(i)&&n.push(s)})}else this.#r.forEach(i=>{INTROSPECTION_PREFIX.test(i.name)||n.push(i)});return n.sort(objectNameComparer)}getInterfaces(t,n){const i=this.#r.get(t);if(!i?.interfaces?.length)return[];if(n?.length){const s=n.toLocaleLowerCase();return i.interfaces.filter(({name:a})=>a.toLocaleLowerCase().includes(s)).sort(objectNameComparer)}return i.interfaces.sort(objectNameComparer)}getPossibleTypes(t,n){const i=this.#r.get(t);if(!i?.types?.length)return[];if(n?.length){const s=n.toLocaleLowerCase();return i.types.map(getInnerType).filter(({name:a})=>a.toLocaleLowerCase().includes(s)).sort(objectNameComparer)}return i.types.map(getInnerType).sort(objectNameComparer)}getTypesByTypeKind(t,n){const i=[];if(n?.length){const s=n.toLocaleLowerCase();this.#r.forEach(a=>{a.typeKind===t&&!INTROSPECTION_PREFIX.test(a.name)&&a.name.toLocaleLowerCase().includes(s)&&i.push(a)})}else this.#r.forEach(s=>{s.typeKind===t&&!INTROSPECTION_PREFIX.test(s.name)&&i.push(s)});return i.sort(objectNameComparer)}dispose(){this.#e.clear(),this.#t.clear(),this.#r.clear()}addIntrospectionFields(t,n){const i=this.#r.get(t),s=i?.kind==="query-type",a=i?.kind==="subscription-type";if(s){const f=this.getIntrospectionSchemaField(i.name);f&&n.push(f);const l=this.getIntrospectionTypeField(i.name);l&&n.push(l)}if(!a&&i){const f=this.getIntrospectionTypenameField(i.name);f&&n.push(f)}}getIntrospectionSchemaField(t){const n=IntrospectionField.SCHEMA_FIELD;let i=this.#i.get(n);if(!i){const s=this.#r.get("__Schema");s&&(i={kind:"field",name:n,coordinate:createSchemaMemberCoordinate(t,n),valueType:{kind:"value-type",isList:!1,isOptional:!1,type:s}},this.#i.set(n,i))}return i}getIntrospectionTypeField(t){const n=IntrospectionField.TYPE_FIELD;let i=this.#i.get(n);if(!i){const s=this.#r.get("__Type"),a=this.#r.get("String");s&&a&&(i={kind:"field",name:n,coordinate:createSchemaMemberCoordinate(t,n),valueType:{kind:"value-type",isList:!1,isOptional:!0,type:s},arguments:[{kind:"argument",name:"name",coordinate:createSchemaMemberCoordinate(t,n,"name"),type:{kind:"value-type",isList:!1,isOptional:!1,type:a}}]},this.#i.set(n,i))}return i}getIntrospectionTypenameField(t){const n=IntrospectionField.TYPENAME_FIELD;let i=this.#i.get(n);if(i)i={...i,coordinate:createSchemaMemberCoordinate(t,IntrospectionField.TYPE_FIELD)};else{const s=this.#r.get("String");s&&(i={kind:"field",name:n,coordinate:createSchemaMemberCoordinate(t,n),valueType:{kind:"value-type",isList:!1,isOptional:!1,type:s}},this.#i.set(n,i))}return i}}const schemaCache=new SchemaCache;function setSchemaCacheItem(r,t){schemaCache.set(harmonizeSchemaUrl(r),t)}const LINE_BREAK="<br />",SPACE=" ";function printAsHTML(r){return visit(r,printDocASTReducer)}const printDocASTReducer={Name:{leave:r=>r.value},Argument:{leave:({name:r,value:t})=>wrapArgumentName(r)+wrapDelimiter(":")+SPACE+t},IntValue:{leave:({value:r})=>wrapNumberValue(r)},FloatValue:{leave:({value:r})=>wrapNumberValue(r)},StringValue:{leave:({value:r,block:t})=>wrapStringValue(t?printBlockString(r):printString(r))},BooleanValue:{leave:({value:r})=>wrapLiteral(r?"true":"false")},NullValue:{leave:()=>wrapLiteral("null")},EnumValue:{leave:({value:r})=>wrapEnumValue(r)},ListValue:{leave:({values:r})=>block(r,"[]")},ObjectValue:{leave:({fields:r})=>block(r,"{}")},ObjectField:{leave:({name:r,value:t})=>wrapKey(r)+wrapDelimiter(":")+SPACE+t},Directive:{leave:({name:r,arguments:t})=>r.startsWith("fusion__")?"":LINE_BREAK+indent(wrapDirectiveName("@"+r)+block(t,"()"))},NamedType:{leave:({name:r})=>wrapTypeName(r)},ListType:{leave:({type:r})=>wrapDelimiter("[")+r+wrapDelimiter("]")},NonNullType:{leave:({type:r})=>r+wrapDelimiter("!")},DirectiveDefinition:{leave:({name:r,arguments:t,directives:n})=>wrapKeyword("directive")+SPACE+wrapDirectiveName(r)+block(t,"()")+wrap(SPACE,join(n,SPACE))},ScalarTypeDefinition:{leave:({name:r,directives:t})=>join([wrapKeyword("scalar"),wrapTypeName(r),join(t,SPACE)],SPACE)},ObjectTypeDefinition:{leave:({name:r,interfaces:t,directives:n})=>join([wrapKeyword("type"),wrapTypeName(r),wrap(wrapKeyword("implements")+SPACE,join(t,LINE_BREAK+wrapDelimiter("&")+SPACE)),join(n,SPACE)],SPACE)},FieldDefinition:{leave:({name:r,arguments:t,type:n,directives:i})=>wrapFieldName(r)+block(t,"()")+wrapDelimiter(":")+SPACE+n+wrap(SPACE,join(i,SPACE))},InputValueDefinition:{leave:({name:r,type:t,defaultValue:n,directives:i})=>join([wrapArgumentName(r)+wrapDelimiter(":")+SPACE+t,wrap(wrapDelimiter("=")+SPACE,n),join(i,SPACE)],SPACE)},InterfaceTypeDefinition:{leave:({name:r,interfaces:t,directives:n})=>join([wrapKeyword("interface"),wrapTypeName(r),wrap(wrapKeyword("implements")+SPACE,join(t,`${LINE_BREAK}${wrapDelimiter("&")} `)),join(n,SPACE)],SPACE)},UnionTypeDefinition:{leave:({name:r,directives:t})=>join([wrapKeyword("union"),wrapTypeName(r),join(t,SPACE)],SPACE)},EnumTypeDefinition:{leave:({name:r,directives:t})=>join([wrapKeyword("enum"),wrapTypeName(r),join(t,SPACE)],SPACE)},EnumValueDefinition:{leave:({name:r,directives:t})=>join([wrapEnumValue(r),join(t,SPACE)],SPACE)},InputObjectTypeDefinition:{leave:({name:r,directives:t})=>join([wrapKeyword("input"),wrapTypeName(r),join(t,SPACE)],SPACE)}};function join(r,t=""){return r?.filter(n=>n).join(t)??""}function block(r,t){switch(t){case"{}":return wrap(wrapDelimiter("{")+LINE_BREAK,indent(join(r,LINE_BREAK)),LINE_BREAK+wrapDelimiter("}"));case"[]":return wrap(wrapDelimiter("[")+LINE_BREAK,indent(join(r,LINE_BREAK)),LINE_BREAK+wrapDelimiter("]"));case"()":return wrap(wrapDelimiter("(")+LINE_BREAK,indent(join(r,LINE_BREAK)),LINE_BREAK+wrapDelimiter(")"))}}function wrap(r,t,n=""){return t!=null&&t!==""?r+t+n:""}function indent(r){return wrap(SPACE+SPACE,r.replaceAll(LINE_BREAK,LINE_BREAK+SPACE+SPACE))}function wrapArgumentName(r){return`<span class="argument">${r}</span>`}function wrapDelimiter(r){return`<span class="delimiter">${r}</span>`}function wrapDirectiveName(r){return`<span class="directive">${r}</span>`}function wrapEnumValue(r){return`<span class="enum-value">${r}</span>`}function wrapFieldName(r){return`<span class="field">${r}</span>`}function wrapKey(r){return`<span class="key">${r}</span>`}function wrapKeyword(r){return`<span class="keyword">${r}</span>`}function wrapLiteral(r){return`<span class="literal">${r}</span>`}function wrapNumberValue(r){return`<span class="number">${r}</span>`}function wrapStringValue(r){return`<span class="string">${r}</span>`}function wrapTypeName(r){return`<span class="type">${r}</span>`}function buildSchemaInfosAndItems(r){const t=[],n=[],i=[],s=Object.values(r.getTypeMap()).filter(p=>!INTROSPECTION_PREFIX.test(p.name)&&!p.name.startsWith("fusion__")),a=r.getQueryType(),f=r.getMutationType(),l=r.getSubscriptionType(),c=(a?1:0)+(f?1:0)+(l?1:0),o=Object.values(r.getTypeMap()).find(p=>p.name==="fusion__Schema")?.getValues().reduce((p,d)=>{const v=d.astNode?.directives?.find(y=>y.name.value==="fusion__schema_metadata")?.arguments?.find(y=>y.name.value==="name")?.value;return p[d.name]=v?.kind===STRING?v.value:d.name,p},{});for(const p of s){const d=buildSchemaType(r,p,o);i.push([d.coordinate,d]);const v=buildSchemaFieldTypes(r,p,void 0,o);for(const y of v)n.push([y.coordinate,y])}for(const p of r.getDirectives()){if(p.name.startsWith("fusion__"))continue;const d=buildSchemaDirective(r,p);t.push([d.coordinate,d])}const u={queryCount:getCountForOperationType(a),mutationCount:getCountForOperationType(f),subscriptionCount:getCountForOperationType(l),directiveCount:t.length,enumCount:s.filter(p=>p instanceof GraphQLEnumType).length,fieldCount:n.length,inputObjectCount:s.filter(p=>p instanceof GraphQLInputObjectType).length,interfaceCount:s.filter(p=>p instanceof GraphQLInterfaceType).length,objectCount:s.filter(p=>p instanceof GraphQLObjectType).length,rootTypeCount:c,scalarCount:s.filter(p=>p instanceof GraphQLScalarType).length,typeCount:s.length,unionCount:s.filter(p=>p instanceof GraphQLUnionType).length};return{queryTypeName:a?.name,mutationTypeName:f?.name,subscriptionTypeName:l?.name,statistics:u,items:{directives:t,fields:n,types:i}}}function readSchemaDefaultValue(r){const t=r.default;if(t!==void 0)return t.literal?valueFromASTUntyped(t.literal):t.value}function getKind(r){return r instanceof GraphQLEnumType?"enum":r instanceof GraphQLInputObjectType?"input-object":r instanceof GraphQLInterfaceType?"interface":r instanceof GraphQLScalarType?"scalar":r instanceof GraphQLUnionType?"union":r instanceof GraphQLList||r instanceof GraphQLNonNull?getKind(r.ofType):"object"}function buildSchemaFieldType(r,t,n,i){if(t instanceof GraphQLInputObjectType){const s=t.getFields()[n];if(s)return{coordinate:createSchemaMemberCoordinate(t.name,s.name),name:s.name,kind:"field",description:s.description??void 0,valueType:buildSchemaValueType(r,s.type,i),defaultValue:readSchemaDefaultValue(s),isDeprecated:s.deprecationReason!=null,deprecationReason:s.deprecationReason??void 0,sdlAsHTML:s.astNode?printAsHTML(s.astNode):void 0,directives:buildConstDirective(s.astNode?.directives,i)}}else if(t instanceof GraphQLInterfaceType||t instanceof GraphQLObjectType){const s=t.getFields()[n];if(s){const a=s.args.length?s.args.map(f=>{const l=buildSchemaValueType(r,f.type,i);return{coordinate:createSchemaMemberCoordinate(t.name,s.name,f.name),name:f.name,kind:"argument",description:f.description??void 0,defaultValue:readSchemaDefaultValue(f),type:l,isDeprecated:f.deprecationReason!=null,deprecationReason:f.deprecationReason??void 0,sdlAsHTML:f.astNode?printAsHTML(f.astNode):void 0,directives:buildConstDirective(f.astNode?.directives,i)}}):void 0;return{coordinate:createSchemaMemberCoordinate(t.name,s.name),name:s.name,kind:"field",description:s.description??void 0,arguments:a,valueType:buildSchemaValueType(r,s.type,i),isDeprecated:s.deprecationReason!=null,deprecationReason:s.deprecationReason??void 0,sdlAsHTML:s.astNode?printAsHTML(s.astNode):void 0,directives:buildConstDirective(s.astNode?.directives,i)}}}}function buildSchemaFieldTypes(r,t,n,i){const s=[];if(t instanceof GraphQLInputObjectType){const a=t.getFields();for(const f in a){const l=a[f];s.push({coordinate:createSchemaMemberCoordinate(t.name,l.name),name:l.name,kind:"field",description:l.description??void 0,valueType:buildSchemaValueType(r,l.type,i),defaultValue:readSchemaDefaultValue(l),isDeprecated:l.deprecationReason!=null,deprecationReason:l.deprecationReason??void 0,sdlAsHTML:l.astNode?printAsHTML(l.astNode):void 0,directives:buildConstDirective(l.astNode?.directives,i)})}}else if(t instanceof GraphQLInterfaceType||t instanceof GraphQLObjectType){const a=t.getFields();for(const f in a){const l=a[f];{const c=l.args.length===0?void 0:l.args.map(o=>{const u=buildSchemaValueType(r,o.type,i);return{coordinate:createSchemaMemberCoordinate(t.name,l.name,o.name),name:o.name,kind:"argument",description:o.description??void 0,defaultValue:readSchemaDefaultValue(o),type:u,isDeprecated:o.deprecationReason!=null,deprecationReason:o.deprecationReason??void 0,sdlAsHTML:o.astNode?printAsHTML(o.astNode):void 0,directives:buildConstDirective(o.astNode?.directives,i)}});s.push({coordinate:createSchemaMemberCoordinate(t.name,l.name),name:l.name,kind:"field",description:l.description??void 0,arguments:c,valueType:buildSchemaValueType(r,l.type,i),isDeprecated:l.deprecationReason!=null,deprecationReason:l.deprecationReason??void 0,sdlAsHTML:l.astNode?printAsHTML(l.astNode):void 0,directives:buildConstDirective(l.astNode?.directives,i)})}}}return s.sort(objectNameComparer)}function buildSchemaDirective(r,t){const n=t.args.length?t.args.map(i=>{const s=buildSchemaValueType(r,i.type,void 0);return{coordinate:createSchemaDirectiveCoordinate(t.name,i.name),name:i.name,kind:"argument",description:i.description??void 0,defaultValue:readSchemaDefaultValue(i),type:s,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason??void 0,sdlAsHTML:i.astNode?printAsHTML(i.astNode):void 0}}):void 0;return{coordinate:createSchemaDirectiveCoordinate(t.name),name:t.name,kind:"directive",description:t.description??void 0,arguments:n,isDeprecated:t.deprecationReason!=null,deprecationReason:t.deprecationReason??void 0,sdlAsHTML:t.astNode?printAsHTML(t.astNode):void 0}}function buildSchemaType(r,t,n){let i,s,a,f=!1;return t instanceof GraphQLEnumType&&(i=t.getValues().map(l=>l).sort(objectNameComparer).map(l=>({coordinate:createSchemaMemberCoordinate(t.name,l.name),name:l.name,kind:"enum-value",description:l.description??void 0,value:l.value,isDeprecated:l.deprecationReason!=null,deprecationReason:l.deprecationReason??void 0,sdlAsHTML:l.astNode?printAsHTML(l.astNode):void 0,directives:buildConstDirective(l.astNode?.directives,n)}))),t instanceof GraphQLInterfaceType&&(f=isRelayInterface(r,t),a=r.getPossibleTypes(t).map(l=>l).sort(objectNameComparer).map(l=>buildSchemaValueType(r,l,n))),t instanceof GraphQLObjectType&&(f=isRelayObject(r,t),s=t.getInterfaces().map(l=>({coordinate:l.name,name:l.name,kind:"type",description:l.description??void 0,typeKind:"interface",isRelayType:isRelayObject(r,t),sdlAsHTML:l.astNode?printAsHTML(l.astNode):void 0,directives:buildConstDirective(l.astNode?.directives,n)}))),t instanceof GraphQLUnionType&&(a=t.getTypes().map(l=>l).sort(objectNameComparer).map(l=>buildSchemaValueType(r,l,n))),{coordinate:t.name,name:t.name,kind:t instanceof GraphQLObjectType?resolveObjectKind(r,t):"type",description:t.description??void 0,typeKind:getKind(t),enumValues:i,interfaces:s,isRelayType:f,types:a,sdlAsHTML:t.astNode?printAsHTML(t.astNode):void 0,directives:buildConstDirective(t.astNode?.directives,n)}}function buildConstDirective(r,t){return r?.map(({name:n,arguments:i})=>({name:n.value,arguments:i?.map(({name:s,value:a})=>({name:s.value,value:buildConstValue(a,t)}))}))}function buildConstValue(r,t){switch(r?.kind){case OBJECT:return r.fields.reduce((n,i)=>(n[i.name.value]=buildConstValue(i.value,t),n),{});case LIST:return r.values.map(n=>buildConstValue(n,t));case ENUM:return t?.[r.value]??r.value;case BOOLEAN:case FLOAT:case INT:case STRING:return r.value;default:return null}}function isRelayInterface(r,t){return t.name==="Node"&&!!buildSchemaFieldType(r,t,"id",void 0)}function isRelayObject(r,t){if(t.name.endsWith("Connection")){const n=buildSchemaFieldTypes(r,t,void 0,void 0).map(i=>i.name);return n.includes("edges")&&n.includes("pageInfo")}if(t.name.endsWith("Edge")){const n=buildSchemaFieldTypes(r,t,void 0,void 0).map(i=>i.name);return n.includes("cursor")&&n.includes("node")}if(t.name==="PageInfo"){const n=buildSchemaFieldTypes(r,t,void 0,void 0).map(i=>i.name);return n.includes("hasNextPage")&&n.includes("hasPreviousPage")&&n.includes("startCursor")&&n.includes("endCursor")}return!1}function buildSchemaValueType(r,t,n){let i,s=!1,a=!0,f;return t instanceof GraphQLNonNull?(a=!1,t.ofType instanceof GraphQLList?(i=t.ofType.ofType,s=!0):i=t.ofType):t instanceof GraphQLList?(i=t.ofType,s=!0):i=t,i instanceof GraphQLList||i instanceof GraphQLNonNull?f=buildSchemaValueType(r,i,n):f=buildSchemaType(r,i,n),{kind:"value-type",isList:s,isOptional:a,type:f}}function resolveObjectKind(r,t){switch(!0){case t===r.getQueryType():return"query-type";case t===r.getMutationType():return"mutation-type";case t===r.getSubscriptionType():return"subscription-type";default:return"type"}}function getCountForOperationType(r){return r?Object.keys(r.getFields()).length:0}const runningTasks=new Map;function cancelTask(r){runningTasks.get(r)?.cancel()}function enqueueTask(r){runningTasks.has(r.id)||(runningTasks.set(r.id,r),SCHEDULER_CONTEXT.sendMessage(new Message("scheduler-status-updated",{idling:!1,lastUpdated:now()})),deferWork(()=>{r.execute().catch(t=>{t instanceof TaskFailedError?failTask(SCHEDULER_CONTEXT,r.id,t.message,t.kind,t.details):t instanceof Error?failTask(SCHEDULER_CONTEXT,r.id,t.message,"UNEXPECTED_ERROR"):failTask(SCHEDULER_CONTEXT,r.id,"There was a unexpected error in the task","UNEXPECTED_ERROR")}).finally(()=>{runningTasks.delete(r.id),SCHEDULER_CONTEXT.sendMessage(new Message("scheduler-status-updated",{idling:runningTasks.size===0,lastUpdated:now()}))})}))}function deferWork(r){self.setTimeout(r,0)}const SCHEDULER_CONTEXT={sendMessage:r=>self.postMessage(r)};class SchedulerBase extends MessageObserver{#e={sendMessage:t=>self.postMessage(t)};constructor(){super(),this.initialize()}getContext(){return this.#e}initialize(){self.onmessage=({data:t})=>{this.handleMessage(this.#e,t)},this.registerReceiveMessageHandler(CANCEL_TASK_MESSAGE_TYPE,t=>{cancelTask(t.payload.taskId)}),this.registerReceiveMessageHandler(INITIALIZE_WORKER_MESSAGE_TYPE,t=>{self.appNamespace=t.payload.appNamespace}),this.registerMessageReceiveHandlers()}}const INDEX_SCHEMA_MESSAGE_TYPE="index-schema",SCHEMA_INDEXED_MESSAGE_TYPE="schema-indexed",runningIndexingJobs=new Map;function indexSchema({id:r,payload:{schemaEndpoint:t,schemaHash:n,schemaUpdatedAt:i}},s){const a=runningIndexingJobs.get(t);if(a){if(a.schemaHash===n||a.schemaUpdatedAt>i)return;cancelTask(a.taskId)}runningIndexingJobs.set(t,{taskId:r,schemaHash:n,schemaUpdatedAt:i});const f=new AbortController;enqueueTask({id:r,cancel:()=>f.abort(),execute:async()=>{const[l,c]=await Promise.all([getGraphQLSchemaEntity(t),getGraphQLSdlSchema(t)]);if(!l||!c||l.indexed||f.signal.aborted){s.sendMessage(new Message(SCHEMA_INDEXED_MESSAGE_TYPE,{schemaEndpoint:l?.endpoint??t,schemaHash:l?.hash??"",schemaIndexed:l?.indexed??!1}));return}let o=!1;try{const{statistics:u,items:p}=buildSchemaInfosAndItems(buildSchema(c));setSchemaCacheItem(l.endpoint,p),await setIndexedGraphQLSchemaEntity(l.endpoint,l.hash,p,u),o=!0}finally{s.sendMessage(new Message(SCHEMA_INDEXED_MESSAGE_TYPE,{schemaEndpoint:l.endpoint,schemaHash:l.hash,schemaIndexed:o}))}}})}class GraphQLIndexerScheduler extends SchedulerBase{registerMessageReceiveHandlers(){this.registerReceiveMessageHandler(INDEX_SCHEMA_MESSAGE_TYPE,indexSchema)}}new GraphQLIndexerScheduler;
@@ -1,4 +1,4 @@
1
- import{S as SimpleWorkerServer,E as EditorSimpleWorker,p as process$1,B as Buffer}from"./monaco.af776b64.BCQ461Sb.js";let initialized=!1;function initialize(r){if(initialized)return;initialized=!0;const n=new SimpleWorkerServer(i=>{globalThis.postMessage(i)},i=>new EditorSimpleWorker(i,r));globalThis.onmessage=i=>{n.onmessage(i.data)}}globalThis.onmessage=r=>{initialized||initialize(null)};const ABORT_ERROR_NAME="AbortError";new DOMException("Action cancelled",ABORT_ERROR_NAME);const TIMEOUT_ABORT_ERROR_MESSAGE="Action timed out",TIMEOUT_ABORT_ERROR=new DOMException(TIMEOUT_ABORT_ERROR_MESSAGE,ABORT_ERROR_NAME);class TimeoutAbortSignal{#e;#r;#t;constructor(n,i){this.#e=n,this.#r=i}get aborted(){return this.#e.aborted}get cancelled(){return this.#r()}get onabort(){return this.#e.onabort}get reason(){return this.#e.reason}dispatchEvent(n){return this.#e.dispatchEvent(n)}throwIfAborted(){this.#e.throwIfAborted()}toAbortSignal(){return this.#e}toPromise(){if(this.#t)return this.#t;const n=this;let i=!1;return this.#t=new Promise((a,s)=>{if(n.aborted){i=!0,s(TIMEOUT_ABORT_ERROR);return}if(n.cancelled){i=!0,a();return}function E(){n.removeEventListener("abort",E),n.removeEventListener("cancelled",C),i||(i=!0,s(TIMEOUT_ABORT_ERROR))}function C(){n.removeEventListener("abort",E),n.removeEventListener("cancelled",C),i||(i=!0,a())}n.addEventListener("abort",E),n.addEventListener("cancelled",C)}),this.#t}addEventListener(n,i,a){this.#e.addEventListener(n,i,a)}removeEventListener(n,i,a){this.#e.removeEventListener(n,i,a)}}class TimeoutAbortController{_controller=new AbortController;_signal=new TimeoutAbortSignal(this._controller.signal,()=>this._cancelled);_cancelled=!1;_timeoutHandle;constructor(n){this._timeoutHandle=self.setTimeout(()=>{this.abort(TIMEOUT_ABORT_ERROR_MESSAGE)},n)}get signal(){return this._signal}abort(n){this._controller.abort(n)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function isAbortError(r){return r instanceof DOMException&&r.name===ABORT_ERROR_NAME}function isTimeoutAbortError(r){return isAbortError(r)&&r.message===TIMEOUT_ABORT_ERROR_MESSAGE}function createAbortScope(r,n,i){return n()}getOsName();isMacLike();const IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0;function getOsName(){return navigator.userAgent.indexOf("Win")>=0?"Windows":navigator.userAgent.indexOf("Mac")>=0?"macOS":navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0?"Linux":"Unknown"}function isMacLike(){const r=navigator.userAgent.toLowerCase();return r.includes("mac os")||r.includes("ipad")}const APP_NAME="Nitro",APP_VERSION="32.0.0-insider.19",APP_GRAPHQL_CLIENT_ID="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",cloudUriPattern=new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i"),IS_RUNNING_IN_CLOUD=cloudUriPattern?.test(self.origin)??!1,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION} (${APP_TYPE})`,HEADER_CONTENT_TYPE="Content-Type",HTTP_SCHEME_PATTERN=/^https?:\/\//i;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var n=r.default;if(typeof n=="function"){var i=function a(){var s=!1;try{s=this instanceof a}catch{}return s?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var s=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:function(){return r[a]}})}),i}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(n,i){i&&(n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(n,i){if(i){n.super_=i;var a=function(){};a.prototype=i.prototype,n.prototype=new a,n.prototype.constructor=n}}),inherits_browser.exports}var safeBuffer$1={exports:{}},dist={},hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var n={},i={};i.byteLength=Or,i.toByteArray=gi,i.fromByteArray=Qi;for(var a=[],s=[],E=typeof Uint8Array<"u"?Uint8Array:Array,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lr=0,Pr=C.length;lr<Pr;++lr)a[lr]=C[lr],s[C.charCodeAt(lr)]=lr;s[45]=62,s[95]=63;function P(aa){var la=aa.length;if(la%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ca=aa.indexOf("=");ca===-1&&(ca=la);var da=ca===la?0:4-ca%4;return[ca,da]}function Or(aa){var la=P(aa),ca=la[0],da=la[1];return(ca+da)*3/4-da}function qi(aa,la,ca){return(la+ca)*3/4-ca}function gi(aa){var la,ca=P(aa),da=ca[0],ha=ca[1],pa=new E(qi(aa,da,ha)),ya=0,va=ha>0?da-4:da,Ea;for(Ea=0;Ea<va;Ea+=4)la=s[aa.charCodeAt(Ea)]<<18|s[aa.charCodeAt(Ea+1)]<<12|s[aa.charCodeAt(Ea+2)]<<6|s[aa.charCodeAt(Ea+3)],pa[ya++]=la>>16&255,pa[ya++]=la>>8&255,pa[ya++]=la&255;return ha===2&&(la=s[aa.charCodeAt(Ea)]<<2|s[aa.charCodeAt(Ea+1)]>>4,pa[ya++]=la&255),ha===1&&(la=s[aa.charCodeAt(Ea)]<<10|s[aa.charCodeAt(Ea+1)]<<4|s[aa.charCodeAt(Ea+2)]>>2,pa[ya++]=la>>8&255,pa[ya++]=la&255),pa}function Ki(aa){return a[aa>>18&63]+a[aa>>12&63]+a[aa>>6&63]+a[aa&63]}function Hi(aa,la,ca){for(var da,ha=[],pa=la;pa<ca;pa+=3)da=(aa[pa]<<16&16711680)+(aa[pa+1]<<8&65280)+(aa[pa+2]&255),ha.push(Ki(da));return ha.join("")}function Qi(aa){for(var la,ca=aa.length,da=ca%3,ha=[],pa=16383,ya=0,va=ca-da;ya<va;ya+=pa)ha.push(Hi(aa,ya,ya+pa>va?va:ya+pa));return da===1?(la=aa[ca-1],ha.push(a[la>>2]+a[la<<4&63]+"==")):da===2&&(la=(aa[ca-2]<<8)+aa[ca-1],ha.push(a[la>>10]+a[la>>4&63]+a[la<<2&63]+"=")),ha.join("")}var Ji={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Ji.read=function(aa,la,ca,da,ha){var pa,ya,va=ha*8-da-1,Ea=(1<<va)-1,ma=Ea>>1,na=-7,Zi=ca?ha-1:0,Gi=ca?-1:1,zi=aa[la+Zi];for(Zi+=Gi,pa=zi&(1<<-na)-1,zi>>=-na,na+=va;na>0;pa=pa*256+aa[la+Zi],Zi+=Gi,na-=8);for(ya=pa&(1<<-na)-1,pa>>=-na,na+=da;na>0;ya=ya*256+aa[la+Zi],Zi+=Gi,na-=8);if(pa===0)pa=1-ma;else{if(pa===Ea)return ya?NaN:(zi?-1:1)*(1/0);ya=ya+Math.pow(2,da),pa=pa-ma}return(zi?-1:1)*ya*Math.pow(2,pa-da)},Ji.write=function(aa,la,ca,da,ha,pa){var ya,va,Ea,ma=pa*8-ha-1,na=(1<<ma)-1,Zi=na>>1,Gi=ha===23?Math.pow(2,-24)-Math.pow(2,-77):0,zi=da?0:pa-1,sa=da?1:-1,ia=la<0||la===0&&1/la<0?1:0;for(la=Math.abs(la),isNaN(la)||la===1/0?(va=isNaN(la)?1:0,ya=na):(ya=Math.floor(Math.log(la)/Math.LN2),la*(Ea=Math.pow(2,-ya))<1&&(ya--,Ea*=2),ya+Zi>=1?la+=Gi/Ea:la+=Gi*Math.pow(2,1-Zi),la*Ea>=2&&(ya++,Ea/=2),ya+Zi>=na?(va=0,ya=na):ya+Zi>=1?(va=(la*Ea-1)*Math.pow(2,ha),ya=ya+Zi):(va=la*Math.pow(2,Zi-1)*Math.pow(2,ha),ya=0));ha>=8;aa[ca+zi]=va&255,zi+=sa,va/=256,ha-=8);for(ya=ya<<ha|va,ma+=ha;ma>0;aa[ca+zi]=ya&255,zi+=sa,ya/=256,ma-=8);aa[ca+zi-sa]|=ia*128};/*!
1
+ import{S as SimpleWorkerServer,E as EditorSimpleWorker,p as process$1,B as Buffer}from"./monaco.01173db7.BbrrOr-C.js";let initialized=!1;function initialize(r){if(initialized)return;initialized=!0;const n=new SimpleWorkerServer(i=>{globalThis.postMessage(i)},i=>new EditorSimpleWorker(i,r));globalThis.onmessage=i=>{n.onmessage(i.data)}}globalThis.onmessage=r=>{initialized||initialize(null)};const ABORT_ERROR_NAME="AbortError";new DOMException("Action cancelled",ABORT_ERROR_NAME);const TIMEOUT_ABORT_ERROR_MESSAGE="Action timed out",TIMEOUT_ABORT_ERROR=new DOMException(TIMEOUT_ABORT_ERROR_MESSAGE,ABORT_ERROR_NAME);class TimeoutAbortSignal{#e;#r;#t;constructor(n,i){this.#e=n,this.#r=i}get aborted(){return this.#e.aborted}get cancelled(){return this.#r()}get onabort(){return this.#e.onabort}get reason(){return this.#e.reason}dispatchEvent(n){return this.#e.dispatchEvent(n)}throwIfAborted(){this.#e.throwIfAborted()}toAbortSignal(){return this.#e}toPromise(){if(this.#t)return this.#t;const n=this;let i=!1;return this.#t=new Promise((a,s)=>{if(n.aborted){i=!0,s(TIMEOUT_ABORT_ERROR);return}if(n.cancelled){i=!0,a();return}function E(){n.removeEventListener("abort",E),n.removeEventListener("cancelled",C),i||(i=!0,s(TIMEOUT_ABORT_ERROR))}function C(){n.removeEventListener("abort",E),n.removeEventListener("cancelled",C),i||(i=!0,a())}n.addEventListener("abort",E),n.addEventListener("cancelled",C)}),this.#t}addEventListener(n,i,a){this.#e.addEventListener(n,i,a)}removeEventListener(n,i,a){this.#e.removeEventListener(n,i,a)}}class TimeoutAbortController{_controller=new AbortController;_signal=new TimeoutAbortSignal(this._controller.signal,()=>this._cancelled);_cancelled=!1;_timeoutHandle;constructor(n){this._timeoutHandle=self.setTimeout(()=>{this.abort(TIMEOUT_ABORT_ERROR_MESSAGE)},n)}get signal(){return this._signal}abort(n){this._controller.abort(n)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function isAbortError(r){return r instanceof DOMException&&r.name===ABORT_ERROR_NAME}function isTimeoutAbortError(r){return isAbortError(r)&&r.message===TIMEOUT_ABORT_ERROR_MESSAGE}function createAbortScope(r,n,i){return n()}getOsName();isMacLike();const IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0;function getOsName(){return navigator.userAgent.indexOf("Win")>=0?"Windows":navigator.userAgent.indexOf("Mac")>=0?"macOS":navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0?"Linux":"Unknown"}function isMacLike(){const r=navigator.userAgent.toLowerCase();return r.includes("mac os")||r.includes("ipad")}const APP_NAME="Nitro",APP_VERSION="32.0.0-insider.21",APP_GRAPHQL_CLIENT_ID="Q2xpZW50Cmc5ZjAwOTFmNTY5NmQ0NTZkOWUwZDQ0ZDMzYjJhZDJlOA==",cloudUriPattern=new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.com|chillicream\\.cloud)","i"),IS_RUNNING_IN_CLOUD=cloudUriPattern?.test(self.origin)??!1,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION} (${APP_TYPE})`,HEADER_CONTENT_TYPE="Content-Type",HTTP_SCHEME_PATTERN=/^https?:\/\//i;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getAugmentedNamespace(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var n=r.default;if(typeof n=="function"){var i=function a(){var s=!1;try{s=this instanceof a}catch{}return s?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var s=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:function(){return r[a]}})}),i}var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,typeof Object.create=="function"?inherits_browser.exports=function(n,i){i&&(n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(n,i){if(i){n.super_=i;var a=function(){};a.prototype=i.prototype,n.prototype=new a,n.prototype.constructor=n}}),inherits_browser.exports}var safeBuffer$1={exports:{}},dist={},hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(r){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var n={},i={};i.byteLength=Or,i.toByteArray=gi,i.fromByteArray=Qi;for(var a=[],s=[],E=typeof Uint8Array<"u"?Uint8Array:Array,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lr=0,Pr=C.length;lr<Pr;++lr)a[lr]=C[lr],s[C.charCodeAt(lr)]=lr;s[45]=62,s[95]=63;function P(aa){var la=aa.length;if(la%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ca=aa.indexOf("=");ca===-1&&(ca=la);var da=ca===la?0:4-ca%4;return[ca,da]}function Or(aa){var la=P(aa),ca=la[0],da=la[1];return(ca+da)*3/4-da}function qi(aa,la,ca){return(la+ca)*3/4-ca}function gi(aa){var la,ca=P(aa),da=ca[0],ha=ca[1],pa=new E(qi(aa,da,ha)),ya=0,va=ha>0?da-4:da,Ea;for(Ea=0;Ea<va;Ea+=4)la=s[aa.charCodeAt(Ea)]<<18|s[aa.charCodeAt(Ea+1)]<<12|s[aa.charCodeAt(Ea+2)]<<6|s[aa.charCodeAt(Ea+3)],pa[ya++]=la>>16&255,pa[ya++]=la>>8&255,pa[ya++]=la&255;return ha===2&&(la=s[aa.charCodeAt(Ea)]<<2|s[aa.charCodeAt(Ea+1)]>>4,pa[ya++]=la&255),ha===1&&(la=s[aa.charCodeAt(Ea)]<<10|s[aa.charCodeAt(Ea+1)]<<4|s[aa.charCodeAt(Ea+2)]>>2,pa[ya++]=la>>8&255,pa[ya++]=la&255),pa}function Ki(aa){return a[aa>>18&63]+a[aa>>12&63]+a[aa>>6&63]+a[aa&63]}function Hi(aa,la,ca){for(var da,ha=[],pa=la;pa<ca;pa+=3)da=(aa[pa]<<16&16711680)+(aa[pa+1]<<8&65280)+(aa[pa+2]&255),ha.push(Ki(da));return ha.join("")}function Qi(aa){for(var la,ca=aa.length,da=ca%3,ha=[],pa=16383,ya=0,va=ca-da;ya<va;ya+=pa)ha.push(Hi(aa,ya,ya+pa>va?va:ya+pa));return da===1?(la=aa[ca-1],ha.push(a[la>>2]+a[la<<4&63]+"==")):da===2&&(la=(aa[ca-2]<<8)+aa[ca-1],ha.push(a[la>>10]+a[la>>4&63]+a[la<<2&63]+"=")),ha.join("")}var Ji={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Ji.read=function(aa,la,ca,da,ha){var pa,ya,va=ha*8-da-1,Ea=(1<<va)-1,ma=Ea>>1,na=-7,Zi=ca?ha-1:0,Gi=ca?-1:1,zi=aa[la+Zi];for(Zi+=Gi,pa=zi&(1<<-na)-1,zi>>=-na,na+=va;na>0;pa=pa*256+aa[la+Zi],Zi+=Gi,na-=8);for(ya=pa&(1<<-na)-1,pa>>=-na,na+=da;na>0;ya=ya*256+aa[la+Zi],Zi+=Gi,na-=8);if(pa===0)pa=1-ma;else{if(pa===Ea)return ya?NaN:(zi?-1:1)*(1/0);ya=ya+Math.pow(2,da),pa=pa-ma}return(zi?-1:1)*ya*Math.pow(2,pa-da)},Ji.write=function(aa,la,ca,da,ha,pa){var ya,va,Ea,ma=pa*8-ha-1,na=(1<<ma)-1,Zi=na>>1,Gi=ha===23?Math.pow(2,-24)-Math.pow(2,-77):0,zi=da?0:pa-1,sa=da?1:-1,ia=la<0||la===0&&1/la<0?1:0;for(la=Math.abs(la),isNaN(la)||la===1/0?(va=isNaN(la)?1:0,ya=na):(ya=Math.floor(Math.log(la)/Math.LN2),la*(Ea=Math.pow(2,-ya))<1&&(ya--,Ea*=2),ya+Zi>=1?la+=Gi/Ea:la+=Gi*Math.pow(2,1-Zi),la*Ea>=2&&(ya++,Ea/=2),ya+Zi>=na?(va=0,ya=na):ya+Zi>=1?(va=(la*Ea-1)*Math.pow(2,ha),ya=ya+Zi):(va=la*Math.pow(2,Zi-1)*Math.pow(2,ha),ya=0));ha>=8;aa[ca+zi]=va&255,zi+=sa,va/=256,ha-=8);for(ya=ya<<ha|va,ma+=ha;ma>0;aa[ca+zi]=ya&255,zi+=sa,ya/=256,ma-=8);aa[ca+zi-sa]|=ia*128};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -1,4 +1,4 @@
1
- import{b as a,bN as e,cL as de,cK as ke,c0 as c,s as D,c2 as f,dL as Re,I as w,b1 as De,a$ as we,be as ve,aV as xe,ba as _e,bb as Ne,aW as ye,aX as Ee,b3 as He,aY as Me,dc as P}from"./main.af776b64.Dmk4-xvl.js";import{u as qe,a as Oe,b as Pe,c as A,d as Ae,e as $e,f as S,L as ze,g as Be,V as Ge,N as Fe,C as b,h as ue,H as y,i as E,S as he,j as v,k as F,T as U,l as H,m as M,n as pe,o as Ue,p as We,q as Ke,r as Ve,s as je,t as Ye,v as m,F as ee,w as Ie,x as Je,I as Qe,y as _,W as Xe,z as Ze,A as et,B as tt,D as nt,E as st,M as it,G as ot,J as rt,K as at,O as ct,P as V,Q as k,R as $,U as te,X as z,Y as g,Z as j,_ as Z,$ as W,a0 as N,a1 as fe,a2 as me,a3 as ge,a4 as K,a5 as ne,a6 as T,a7 as se,a8 as lt,a9 as dt,aa as ut,ab as ht,ac as pt,ad as It,ae as ft,af as mt,ag as gt,ah as Ct,ai as Lt,aj as bt,ak as Tt,al as St,am as kt,an as Rt,ao as Dt,ap as wt,aq as vt,ar as xt,as as _t,at as Nt}from"./context-providers.af776b64.BBmagZaV.js";import"./monaco.af776b64.CqI-ScCO.js";const x=a.forwardRef((t,n)=>e(de,{ref:n,icon:"go-to-file",...t}));x.displayName="GoToItemIcon";const ie=a.forwardRef((t,n)=>e(de,{ref:n,icon:"play-circle",fill:ke.states.info,...t}));ie.displayName="RunningIcon";function B(){const t=qe(),n=Oe();return a.useCallback(async(s,i)=>{await n(s),i&&t(s,i,void 0)},[t,n])}const G="log";function yt(){const t=Pe(),n=A(G).toLocaleLowerCase(),s=a.useRef(null),i=a.useRef(t),o=a.useRef(t.followNewest),l=a.useRef(!0),h=Ae(),u=B(),r=$e(),p={activeId:t.activeId,activeChildId:t.activeChildId,entries:t.entries.filter(d=>{const{kind:I}=d;switch(I){case"basic":return d.message.toLocaleLowerCase().includes(n);case"http-request":return d.name?.toLocaleLowerCase().includes(n)||d.uri.toLocaleLowerCase().includes(n);case"scope":return d.name.includes(n)||d.details?.uri?.toLocaleLowerCase().includes(n);case"subscription-request":return d.uri.toLocaleLowerCase().includes(n);default:return S()}})};i.current=t,o.current=t.followNewest;const C=a.useCallback(d=>{l.current=!1,d.kind==="http-request"&&d.scopeId?h(d.scopeId,d.id):h(d.id)},[h]),L=a.useCallback(async d=>{d.item?.id&&await u(d.item.id,d.id)},[u]),J=a.useCallback(d=>{const{scrollTop:I,clientHeight:R,scrollHeight:Se}=d.currentTarget;l.current=!0,o.current=Se-R<=Math.ceil(I),r(o.current)},[r]),Q=a.useCallback(d=>{if(s.current=d,s.current&&i.current.entries.length){const I=i.current.activeId?i.current.entries.findIndex(({id:R})=>R===i.current.activeId):-1;I===-1?s.current.scrollToIndex({index:i.current.entries.length-1,align:"end"}):s.current.scrollToIndex({index:I,align:"end"})}},[]);a.useLayoutEffect(()=>{o.current&&s.current&&p.entries.length&&s.current.scrollToIndex({index:p.entries.length-1,align:"end"})},[p.entries.length]),a.useLayoutEffect(()=>{if(l.current&&!o.current&&t.activeId&&s.current&&i.current){const d=i.current.entries.findIndex(({id:I})=>I===t.activeId);d!==-1&&s.current.scrollToIndex({index:d,align:"end"})}l.current=!0},[t.activeId]),a.useEffect(()=>()=>r(!0),[r]);const Te=a.useCallback((d,I)=>{const R=I.kind==="http-request"&&I.scopeId?I.id===p.activeChildId&&I.scopeId===p.activeId:I.id===p.activeId;return e(ze,{onClick:()=>C(I),onDoubleClick:()=>L(I),className:R?"active":void 0,children:e(Et,{active:R,logEntry:I})})},[p.activeId,p.activeChildId,C,L]);return p.entries.length?e(Ge,{innerListRef:Q,data:p.entries,computeItemKey:d=>`log-entry-${d}`,fixedItemSize:Be,tabIndex:-1,onScrollVirtualList:J,itemContent:Te}):e(Fe,{isFilterActive:!!n})}const Et=a.memo(function({active:n,logEntry:s}){const{kind:i}=s;switch(i){case"basic":return e(Ht,{active:n,logEntry:s});case"http-request":return e(Mt,{active:n,logEntry:s});case"scope":return e(qt,{active:n,logEntry:s});case"subscription-request":return e(Ot,{active:n,logEntry:s});default:return S()}}),Ht=a.memo(function({active:n,logEntry:{id:s,level:i,message:o,timestamp:l,item:h}}){return c(f,{children:[e(Y,{id:s,active:n}),e(Ce,{level:i}),e(O,{children:e(Le,{level:i})}),e(E,{children:e(y,{text:o,highlightedText:A(G)})}),e(q,{item:h}),e(M,{children:H(l)})]})});function Ce({level:t}){switch(t){case _.warning:return e(m,{children:e(Xe,{})});case _.error:return e(m,{children:e(ee,{})});default:return e(m,{children:e(Qe,{})})}}const Le=a.memo(function({level:n}){switch(n){case _.error:return e(b,{color:"error",label:"ERR"});case _.info:return e(b,{color:"info",label:"INFO"});case _.warning:return e(b,{color:"warning",label:"WARN"});default:return S()}}),Mt=a.memo(function({active:n,logEntry:{id:s,scopeId:i,status:o,name:l,started:h,duration:u,item:r,uri:p,method:C,statusCode:L,contentLength:J,lastChild:Q}}){return c(f,{children:[i?e(At,{active:n,last:Q??!1}):e(Y,{id:s,active:n,pending:o==="pending"}),e(be,{status:o,statusCode:L}),e(O,{children:e(b,{color:"info",label:C})}),e(E,{children:e(y,{text:l?.length?l+": "+p:p,highlightedText:A(G)})}),e(oe,{children:e(pe,{status:o,statusCode:L})}),e(re,{children:v(J)}),e(U,{children:F(u)}),e(q,{item:r}),e(M,{children:H(h)})]})}),qt=a.memo(function({active:n,logEntry:{id:s,name:i,level:o,started:l,duration:h,item:u,details:r,expanded:p}}){const C=A(G);return c(f,{children:[e(Y,{id:s,active:n,pending:r?.status==="pending",expandable:!0,expanded:p}),r?.kind==="introspection"?c(f,{children:[e(be,{status:r.status,statusCode:r.statusCode}),e(O,{children:e(b,{color:"info",label:r.method})}),e(E,{children:e(y,{text:i?.length?i+": "+r.uri:r.uri,highlightedText:C})}),e(oe,{children:e(pe,{status:r.status,statusCode:r.statusCode})}),e(re,{children:v(r.contentLength)}),e(U,{children:F(h)}),e(q,{item:u}),e(M,{children:H(l)})]}):c(f,{children:[e(Ce,{level:o}),e(O,{children:e(Le,{level:o})}),e(E,{children:e(y,{text:i,highlightedText:C})}),e(U,{children:F(h)}),e(q,{item:u}),e(M,{children:H(l)})]})]})});function be({status:t,statusCode:n}){return t==="pending"?e(m,{children:e(ie,{})}):t==="cancelled"?e(m,{children:e(Je,{})}):!n||n>=300?e(m,{children:e(ee,{})}):e(m,{children:e(Ie,{})})}const Ot=a.memo(function({active:n,logEntry:{id:s,status:i,started:o,duration:l,item:h,protocol:u,uri:r,contentLength:p}}){return c(f,{children:[e(Y,{id:s,active:n}),e(Pt,{status:i}),e(O,{children:e(b,{color:"info",label:ue(u)})}),e(E,{children:e(y,{text:r,highlightedText:A(G)})}),e(oe,{children:e(he,{status:i})}),e(re,{children:v(p)}),e(U,{children:F(l)}),e(q,{item:h}),e(M,{children:H(o)})]})});function Pt({status:t}){return t==="pending"?e(m,{children:e(ie,{})}):t==="failed"?e(m,{children:e(ee,{})}):e(m,{children:e(Ie,{})})}function Y({id:t,active:n,pending:s,expandable:i,expanded:o}){const l=Ue(),h=We(),u=a.useCallback(r=>{i&&(r.stopPropagation(),o?l(t):h(t))},[t,i,o,l,h]);return e(m,{onClick:u,children:s?e(Ke,{}):i?o?e(Re,{}):e(Ve,{}):n?e(je,{}):e(Ye,{})})}function At({active:t,last:n}){return e(m,{children:n?t?e(Ze,{}):e(et,{}):t?e(tt,{}):e(nt,{})})}function q({item:t}){return e(zt,{children:t&&c(f,{children:[e(m,{children:e($t,{kind:t.kind})}),e(Bt,{children:t.name})]})})}function $t({kind:t}){if(!t)return e(x,{});switch(t){case Me:case He:return e(ct,{});case Ee:case ye:case Ne:return e(at,{});case _e:return e(rt,{});case xe:case ve:return e(ot,{});case we:return e(it,{});case De:return e(st,{});default:return S()}}const zt=D("div")(({theme:t})=>w`
1
+ import{b as a,bN as e,cL as de,cK as ke,c0 as c,s as D,c2 as f,dL as Re,I as w,b1 as De,a$ as we,be as ve,aV as xe,ba as _e,bb as Ne,aW as ye,aX as Ee,b3 as He,aY as Me,dc as P}from"./main.01173db7.RJKmdTa5.js";import{u as qe,a as Oe,b as Pe,c as A,d as Ae,e as $e,f as S,L as ze,g as Be,V as Ge,N as Fe,C as b,h as ue,H as y,i as E,S as he,j as v,k as F,T as U,l as H,m as M,n as pe,o as Ue,p as We,q as Ke,r as Ve,s as je,t as Ye,v as m,F as ee,w as Ie,x as Je,I as Qe,y as _,W as Xe,z as Ze,A as et,B as tt,D as nt,E as st,M as it,G as ot,J as rt,K as at,O as ct,P as V,Q as k,R as $,U as te,X as z,Y as g,Z as j,_ as Z,$ as W,a0 as N,a1 as fe,a2 as me,a3 as ge,a4 as K,a5 as ne,a6 as T,a7 as se,a8 as lt,a9 as dt,aa as ut,ab as ht,ac as pt,ad as It,ae as ft,af as mt,ag as gt,ah as Ct,ai as Lt,aj as bt,ak as Tt,al as St,am as kt,an as Rt,ao as Dt,ap as wt,aq as vt,ar as xt,as as _t,at as Nt}from"./context-providers.01173db7.tvHB1UUr.js";import"./monaco.01173db7.C1k7-RUu.js";const x=a.forwardRef((t,n)=>e(de,{ref:n,icon:"go-to-file",...t}));x.displayName="GoToItemIcon";const ie=a.forwardRef((t,n)=>e(de,{ref:n,icon:"play-circle",fill:ke.states.info,...t}));ie.displayName="RunningIcon";function B(){const t=qe(),n=Oe();return a.useCallback(async(s,i)=>{await n(s),i&&t(s,i,void 0)},[t,n])}const G="log";function yt(){const t=Pe(),n=A(G).toLocaleLowerCase(),s=a.useRef(null),i=a.useRef(t),o=a.useRef(t.followNewest),l=a.useRef(!0),h=Ae(),u=B(),r=$e(),p={activeId:t.activeId,activeChildId:t.activeChildId,entries:t.entries.filter(d=>{const{kind:I}=d;switch(I){case"basic":return d.message.toLocaleLowerCase().includes(n);case"http-request":return d.name?.toLocaleLowerCase().includes(n)||d.uri.toLocaleLowerCase().includes(n);case"scope":return d.name.includes(n)||d.details?.uri?.toLocaleLowerCase().includes(n);case"subscription-request":return d.uri.toLocaleLowerCase().includes(n);default:return S()}})};i.current=t,o.current=t.followNewest;const C=a.useCallback(d=>{l.current=!1,d.kind==="http-request"&&d.scopeId?h(d.scopeId,d.id):h(d.id)},[h]),L=a.useCallback(async d=>{d.item?.id&&await u(d.item.id,d.id)},[u]),J=a.useCallback(d=>{const{scrollTop:I,clientHeight:R,scrollHeight:Se}=d.currentTarget;l.current=!0,o.current=Se-R<=Math.ceil(I),r(o.current)},[r]),Q=a.useCallback(d=>{if(s.current=d,s.current&&i.current.entries.length){const I=i.current.activeId?i.current.entries.findIndex(({id:R})=>R===i.current.activeId):-1;I===-1?s.current.scrollToIndex({index:i.current.entries.length-1,align:"end"}):s.current.scrollToIndex({index:I,align:"end"})}},[]);a.useLayoutEffect(()=>{o.current&&s.current&&p.entries.length&&s.current.scrollToIndex({index:p.entries.length-1,align:"end"})},[p.entries.length]),a.useLayoutEffect(()=>{if(l.current&&!o.current&&t.activeId&&s.current&&i.current){const d=i.current.entries.findIndex(({id:I})=>I===t.activeId);d!==-1&&s.current.scrollToIndex({index:d,align:"end"})}l.current=!0},[t.activeId]),a.useEffect(()=>()=>r(!0),[r]);const Te=a.useCallback((d,I)=>{const R=I.kind==="http-request"&&I.scopeId?I.id===p.activeChildId&&I.scopeId===p.activeId:I.id===p.activeId;return e(ze,{onClick:()=>C(I),onDoubleClick:()=>L(I),className:R?"active":void 0,children:e(Et,{active:R,logEntry:I})})},[p.activeId,p.activeChildId,C,L]);return p.entries.length?e(Ge,{innerListRef:Q,data:p.entries,computeItemKey:d=>`log-entry-${d}`,fixedItemSize:Be,tabIndex:-1,onScrollVirtualList:J,itemContent:Te}):e(Fe,{isFilterActive:!!n})}const Et=a.memo(function({active:n,logEntry:s}){const{kind:i}=s;switch(i){case"basic":return e(Ht,{active:n,logEntry:s});case"http-request":return e(Mt,{active:n,logEntry:s});case"scope":return e(qt,{active:n,logEntry:s});case"subscription-request":return e(Ot,{active:n,logEntry:s});default:return S()}}),Ht=a.memo(function({active:n,logEntry:{id:s,level:i,message:o,timestamp:l,item:h}}){return c(f,{children:[e(Y,{id:s,active:n}),e(Ce,{level:i}),e(O,{children:e(Le,{level:i})}),e(E,{children:e(y,{text:o,highlightedText:A(G)})}),e(q,{item:h}),e(M,{children:H(l)})]})});function Ce({level:t}){switch(t){case _.warning:return e(m,{children:e(Xe,{})});case _.error:return e(m,{children:e(ee,{})});default:return e(m,{children:e(Qe,{})})}}const Le=a.memo(function({level:n}){switch(n){case _.error:return e(b,{color:"error",label:"ERR"});case _.info:return e(b,{color:"info",label:"INFO"});case _.warning:return e(b,{color:"warning",label:"WARN"});default:return S()}}),Mt=a.memo(function({active:n,logEntry:{id:s,scopeId:i,status:o,name:l,started:h,duration:u,item:r,uri:p,method:C,statusCode:L,contentLength:J,lastChild:Q}}){return c(f,{children:[i?e(At,{active:n,last:Q??!1}):e(Y,{id:s,active:n,pending:o==="pending"}),e(be,{status:o,statusCode:L}),e(O,{children:e(b,{color:"info",label:C})}),e(E,{children:e(y,{text:l?.length?l+": "+p:p,highlightedText:A(G)})}),e(oe,{children:e(pe,{status:o,statusCode:L})}),e(re,{children:v(J)}),e(U,{children:F(u)}),e(q,{item:r}),e(M,{children:H(h)})]})}),qt=a.memo(function({active:n,logEntry:{id:s,name:i,level:o,started:l,duration:h,item:u,details:r,expanded:p}}){const C=A(G);return c(f,{children:[e(Y,{id:s,active:n,pending:r?.status==="pending",expandable:!0,expanded:p}),r?.kind==="introspection"?c(f,{children:[e(be,{status:r.status,statusCode:r.statusCode}),e(O,{children:e(b,{color:"info",label:r.method})}),e(E,{children:e(y,{text:i?.length?i+": "+r.uri:r.uri,highlightedText:C})}),e(oe,{children:e(pe,{status:r.status,statusCode:r.statusCode})}),e(re,{children:v(r.contentLength)}),e(U,{children:F(h)}),e(q,{item:u}),e(M,{children:H(l)})]}):c(f,{children:[e(Ce,{level:o}),e(O,{children:e(Le,{level:o})}),e(E,{children:e(y,{text:i,highlightedText:C})}),e(U,{children:F(h)}),e(q,{item:u}),e(M,{children:H(l)})]})]})});function be({status:t,statusCode:n}){return t==="pending"?e(m,{children:e(ie,{})}):t==="cancelled"?e(m,{children:e(Je,{})}):!n||n>=300?e(m,{children:e(ee,{})}):e(m,{children:e(Ie,{})})}const Ot=a.memo(function({active:n,logEntry:{id:s,status:i,started:o,duration:l,item:h,protocol:u,uri:r,contentLength:p}}){return c(f,{children:[e(Y,{id:s,active:n}),e(Pt,{status:i}),e(O,{children:e(b,{color:"info",label:ue(u)})}),e(E,{children:e(y,{text:r,highlightedText:A(G)})}),e(oe,{children:e(he,{status:i})}),e(re,{children:v(p)}),e(U,{children:F(l)}),e(q,{item:h}),e(M,{children:H(o)})]})});function Pt({status:t}){return t==="pending"?e(m,{children:e(ie,{})}):t==="failed"?e(m,{children:e(ee,{})}):e(m,{children:e(Ie,{})})}function Y({id:t,active:n,pending:s,expandable:i,expanded:o}){const l=Ue(),h=We(),u=a.useCallback(r=>{i&&(r.stopPropagation(),o?l(t):h(t))},[t,i,o,l,h]);return e(m,{onClick:u,children:s?e(Ke,{}):i?o?e(Re,{}):e(Ve,{}):n?e(je,{}):e(Ye,{})})}function At({active:t,last:n}){return e(m,{children:n?t?e(Ze,{}):e(et,{}):t?e(tt,{}):e(nt,{})})}function q({item:t}){return e(zt,{children:t&&c(f,{children:[e(m,{children:e($t,{kind:t.kind})}),e(Bt,{children:t.name})]})})}function $t({kind:t}){if(!t)return e(x,{});switch(t){case Me:case He:return e(ct,{});case Ee:case ye:case Ne:return e(at,{});case _e:return e(rt,{});case xe:case ve:return e(ot,{});case we:return e(it,{});case De:return e(st,{});default:return S()}}const zt=D("div")(({theme:t})=>w`
2
2
  display: flex;
3
3
  flex: 0 0 ${t.spacing(100)};
4
4
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{S as xr,E as wr,p as Ye}from"./monaco.af776b64.Bp-X6TVF.js";let ot=!1;function cr(e){if(ot)return;ot=!0;const r=new xr(i=>{globalThis.postMessage(i)},i=>new wr(i,e));globalThis.onmessage=i=>{r.onmessage(i.data)}}globalThis.onmessage=e=>{ot||cr(null)};function At(e,r){r===void 0&&(r=!1);var i=e.length,t=0,n="",a=0,s=16,o=0,f=0,l=0,c=0,u=0;function h(m,I){for(var E=0,x=0;E<m;){var w=e.charCodeAt(t);if(w>=48&&w<=57)x=x*16+w-48;else if(w>=65&&w<=70)x=x*16+w-65+10;else if(w>=97&&w<=102)x=x*16+w-97+10;else break;t++,E++}return E<m&&(x=-1),x}function g(m){t=m,n="",a=0,s=16,u=0}function d(){var m=t;if(e.charCodeAt(t)===48)t++;else for(t++;t<e.length&&be(e.charCodeAt(t));)t++;if(t<e.length&&e.charCodeAt(t)===46)if(t++,t<e.length&&be(e.charCodeAt(t)))for(t++;t<e.length&&be(e.charCodeAt(t));)t++;else return u=3,e.substring(m,t);var I=t;if(t<e.length&&(e.charCodeAt(t)===69||e.charCodeAt(t)===101))if(t++,(t<e.length&&e.charCodeAt(t)===43||e.charCodeAt(t)===45)&&t++,t<e.length&&be(e.charCodeAt(t))){for(t++;t<e.length&&be(e.charCodeAt(t));)t++;I=t}else u=3;return e.substring(m,I)}function v(){for(var m="",I=t;;){if(t>=i){m+=e.substring(I,t),u=2;break}var E=e.charCodeAt(t);if(E===34){m+=e.substring(I,t),t++;break}if(E===92){if(m+=e.substring(I,t),t++,t>=i){u=2;break}var x=e.charCodeAt(t++);switch(x){case 34:m+='"';break;case 92:m+="\\";break;case 47:m+="/";break;case 98:m+="\b";break;case 102:m+="\f";break;case 110:m+=`
1
+ import{S as xr,E as wr,p as Ye}from"./monaco.01173db7.C-bC2H3w.js";let ot=!1;function cr(e){if(ot)return;ot=!0;const r=new xr(i=>{globalThis.postMessage(i)},i=>new wr(i,e));globalThis.onmessage=i=>{r.onmessage(i.data)}}globalThis.onmessage=e=>{ot||cr(null)};function At(e,r){r===void 0&&(r=!1);var i=e.length,t=0,n="",a=0,s=16,o=0,f=0,l=0,c=0,u=0;function h(m,I){for(var E=0,x=0;E<m;){var w=e.charCodeAt(t);if(w>=48&&w<=57)x=x*16+w-48;else if(w>=65&&w<=70)x=x*16+w-65+10;else if(w>=97&&w<=102)x=x*16+w-97+10;else break;t++,E++}return E<m&&(x=-1),x}function g(m){t=m,n="",a=0,s=16,u=0}function d(){var m=t;if(e.charCodeAt(t)===48)t++;else for(t++;t<e.length&&be(e.charCodeAt(t));)t++;if(t<e.length&&e.charCodeAt(t)===46)if(t++,t<e.length&&be(e.charCodeAt(t)))for(t++;t<e.length&&be(e.charCodeAt(t));)t++;else return u=3,e.substring(m,t);var I=t;if(t<e.length&&(e.charCodeAt(t)===69||e.charCodeAt(t)===101))if(t++,(t<e.length&&e.charCodeAt(t)===43||e.charCodeAt(t)===45)&&t++,t<e.length&&be(e.charCodeAt(t))){for(t++;t<e.length&&be(e.charCodeAt(t));)t++;I=t}else u=3;return e.substring(m,I)}function v(){for(var m="",I=t;;){if(t>=i){m+=e.substring(I,t),u=2;break}var E=e.charCodeAt(t);if(E===34){m+=e.substring(I,t),t++;break}if(E===92){if(m+=e.substring(I,t),t++,t>=i){u=2;break}var x=e.charCodeAt(t++);switch(x){case 34:m+='"';break;case 92:m+="\\";break;case 47:m+="/";break;case 98:m+="\b";break;case 102:m+="\f";break;case 110:m+=`
2
2
  `;break;case 114:m+="\r";break;case 116:m+=" ";break;case 117:var w=h(4);w>=0?m+=String.fromCharCode(w):u=4;break;default:u=5}I=t;continue}if(E>=0&&E<=31)if(Te(E)){m+=e.substring(I,t),u=2;break}else u=6;t++}return m}function p(){if(n="",u=0,a=t,f=o,c=l,t>=i)return a=i,s=17;var m=e.charCodeAt(t);if(Ke(m)){do t++,n+=String.fromCharCode(m),m=e.charCodeAt(t);while(Ke(m));return s=15}if(Te(m))return t++,n+=String.fromCharCode(m),m===13&&e.charCodeAt(t)===10&&(t++,n+=`
3
3
  `),o++,l=t,s=14;switch(m){case 123:return t++,s=1;case 125:return t++,s=2;case 91:return t++,s=3;case 93:return t++,s=4;case 58:return t++,s=6;case 44:return t++,s=5;case 34:return t++,n=v(),s=10;case 47:var I=t-1;if(e.charCodeAt(t+1)===47){for(t+=2;t<i&&!Te(e.charCodeAt(t));)t++;return n=e.substring(I,t),s=12}if(e.charCodeAt(t+1)===42){t+=2;for(var E=i-1,x=!1;t<E;){var w=e.charCodeAt(t);if(w===42&&e.charCodeAt(t+1)===47){t+=2,x=!0;break}t++,Te(w)&&(w===13&&e.charCodeAt(t)===10&&t++,o++,l=t)}return x||(t++,u=1),n=e.substring(I,t),s=13}return n+=String.fromCharCode(m),t++,s=16;case 45:if(n+=String.fromCharCode(m),t++,t===i||!be(e.charCodeAt(t)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=d(),s=11;default:for(;t<i&&A(m);)t++,m=e.charCodeAt(t);if(a!==t){switch(n=e.substring(a,t),n){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return n+=String.fromCharCode(m),t++,s=16}}function A(m){if(Ke(m)||Te(m))return!1;switch(m){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function b(){var m;do m=p();while(m>=12&&m<=15);return m}return{setPosition:g,getPosition:function(){return t},scan:r?b:p,getToken:function(){return s},getTokenValue:function(){return n},getTokenOffset:function(){return a},getTokenLength:function(){return t-a},getTokenStartLine:function(){return f},getTokenStartCharacter:function(){return a-c},getTokenError:function(){return u}}}function Ke(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Te(e){return e===10||e===13||e===8232||e===8233}function be(e){return e>=48&&e<=57}function Tr(e,r,i){var t,n,a,s,o;if(r){for(s=r.offset,o=s+r.length,a=s;a>0&&!Ot(e,a-1);)a--;for(var f=o;f<e.length&&!Ot(e,f);)f++;n=e.substring(a,f),t=kr(n,i)}else n=e,t=0,a=0,s=0,o=e.length;var l=Or(i,e),c=!1,u=0,h;i.insertSpaces?h=et(" ",i.tabSize||4):h=" ";var g=At(n,!1),d=!1;function v(){return l+et(h,t+u)}function p(){var V=g.scan();for(c=!1;V===15||V===14;)c=c||V===14,V=g.scan();return d=V===16||g.getTokenError()!==0,V}var A=[];function b(V,F,R){!d&&(!r||F<o&&R>s)&&e.substring(F,R)!==V&&A.push({offset:F,length:R-F,content:V})}var m=p();if(m!==17){var I=g.getTokenOffset()+a,E=et(h,t);b(E,a,I)}for(;m!==17;){for(var x=g.getTokenOffset()+g.getTokenLength()+a,w=p(),C="",T=!1;!c&&(w===12||w===13);){var N=g.getTokenOffset()+a;b(" ",x,N),x=g.getTokenOffset()+g.getTokenLength()+a,T=w===12,C=T?v():"",w=p()}if(w===2)m!==1&&(u--,C=v());else if(w===4)m!==3&&(u--,C=v());else{switch(m){case 3:case 1:u++,C=v();break;case 5:case 12:C=v();break;case 13:c?C=v():T||(C=" ");break;case 6:T||(C=" ");break;case 10:if(w===6){T||(C="");break}case 7:case 8:case 9:case 11:case 2:case 4:w===12||w===13?T||(C=" "):w!==5&&w!==17&&(d=!0);break;case 16:d=!0;break}c&&(w===12||w===13)&&(C=v())}w===17&&(C=i.insertFinalNewline?l:"");var M=g.getTokenOffset()+a;b(C,x,M),m=w}return A}function et(e,r){for(var i="",t=0;t<r;t++)i+=e;return i}function kr(e,r){for(var i=0,t=0,n=r.tabSize||4;i<e.length;){var a=e.charAt(i);if(a===" ")t++;else if(a===" ")t+=n;else break;i++}return Math.floor(t/n)}function Or(e,r){for(var i=0;i<r.length;i++){var t=r.charAt(i);if(t==="\r")return i+1<r.length&&r.charAt(i+1)===`
4
4
  `?`\r
@@ -1,4 +1,4 @@
1
- import{m as Ye}from"./monaco.af776b64.CqI-ScCO.js";/*!-----------------------------------------------------------------------------
1
+ import{m as Ye}from"./monaco.01173db7.C1k7-RUu.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
4
4
  * Released under the MIT license