@chillicream/nitro-embedded 30.0.0 → 30.0.2

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 (28) hide show
  1. package/assets/{context-providers.a6cbd8ae.-xn453sc.js → context-providers.b80d8424.B76mxacb.js} +509 -507
  2. package/assets/{editor.worker.a6cbd8ae.DKTbkej7.js → editor.worker.b80d8424.BZd2Bdq2.js} +1 -1
  3. package/assets/{graphql-engine-scheduler.a6cbd8ae.CRCZH9eT.js → graphql-engine-scheduler.b80d8424.BIAP1cE9.js} +1 -1
  4. package/assets/{graphql-indexer-scheduler.a6cbd8ae.Bvw8ykb0.js → graphql-indexer-scheduler.b80d8424.fuMYnFk0.js} +1 -1
  5. package/assets/{graphql.worker.a6cbd8ae.DrQju_5S.js → graphql.worker.b80d8424.CHEJT8-c.js} +1 -1
  6. package/assets/index.b80d8424.DsczWEIv.js +32 -0
  7. package/assets/{json.worker.a6cbd8ae.BAHwolUd.js → json.worker.b80d8424.DRi2v0dt.js} +1 -1
  8. package/assets/{jsonMode.a6cbd8ae.D9G33m7j.js → jsonMode.b80d8424.8UbunXhg.js} +1 -1
  9. package/assets/{main.a6cbd8ae.O2wwCX4n.css → main.b80d8424.BdMtxJz7.css} +1 -1
  10. package/assets/{main.a6cbd8ae.nI2HRy2W.js → main.b80d8424.Bn1T57BQ.js} +12 -25
  11. package/assets/{monaco.a6cbd8ae.Cx26j2kT.css → monaco.b80d8424.DNmJ3sDC.css} +1 -1
  12. package/assets/{monaco.a6cbd8ae.yVFOAV5a.css → monaco.b80d8424.DkQR9Zyg.css} +1 -1
  13. package/assets/{monaco.a6cbd8ae.DRTmByXd.js → monaco.b80d8424.jGozqPLC.js} +2 -2
  14. package/assets/{session-scheduler.a6cbd8ae.Cs3Lp-R6.js → session-scheduler.b80d8424.aW0-ct_v.js} +1 -1
  15. package/assets/{yaml.a6cbd8ae.BrAx0Nnq.js → yaml.b80d8424.DGFcs6Nt.js} +1 -1
  16. package/assets/{yaml.worker.a6cbd8ae.BOVYkCVk.js → yaml.worker.b80d8424.q5FccL7x.js} +1 -1
  17. package/index.html +4 -4
  18. package/package.json +1 -1
  19. package/service-worker.js +1 -1
  20. package/assets/index.a6cbd8ae.DH9clVIb.js +0 -32
  21. /package/assets/{FiraCode-Medium.a6cbd8ae.-YTCSZkP.woff2 → FiraCode-Medium.b80d8424.-YTCSZkP.woff2} +0 -0
  22. /package/assets/{codicon.a6cbd8ae.Hscy-R9e.ttf → codicon.b80d8424.Hscy-R9e.ttf} +0 -0
  23. /package/assets/{context-providers.a6cbd8ae.3HkX5s82.css → context-providers.b80d8424.3HkX5s82.css} +0 -0
  24. /package/assets/{monaco.a6cbd8ae.DPHEUpPG.js → monaco.b80d8424.C0XenLoG.js} +0 -0
  25. /package/assets/{monaco.a6cbd8ae.EZduqCri.js → monaco.b80d8424.CVrHpwcq.js} +0 -0
  26. /package/assets/{monaco.a6cbd8ae.CX283ebn.js → monaco.b80d8424.CW8QmSOo.js} +0 -0
  27. /package/assets/{monaco.a6cbd8ae.v2QsmtMC.js → monaco.b80d8424.CcJBgAKd.js} +0 -0
  28. /package/assets/{monaco.a6cbd8ae.B_bsp91k.js → monaco.b80d8424.DUscfaQn.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{B as Buffer$1,p as process$1,a as Buffer}from"./monaco.a6cbd8ae.CX283ebn.js";const APP_NAME="Nitro",APP_VERSION="30.0.0",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,IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION} (${APP_TYPE})`;getOsName();isMacLike();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 HEADER_CONTENT_TYPE="Content-Type",HTTP_SCHEME_PATTERN=/^https?:\/\//i,FIFTY_MILLISECONDS=50,ONE_SECOND=1e3,FIVE_SECONDS=5e3,THIRTY_SECONDS=3e4,ONE_MINUTE=6e4,FIVE_MINUTES=3e5,ONE_HOUR=36e5,THREE_HOURS=108e5,SIX_HOURS=216e5,TWELVE_HOURS=432e5,ONE_DAY=864e5,THREE_DAYS=2592e5,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;#r;#t;constructor(t,n){this.#e=t,this.#r=n}get aborted(){return this.#e.aborted}get cancelled(){return this.#r()}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.#t)return this.#t;const t=this;let n=!1;return this.#t=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",u),n||(n=!0,s(TIMEOUT_ABORT_ERROR))}function u(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",u),n||(n=!0,i())}t.addEventListener("abort",a),t.addEventListener("cancelled",u)}),this.#t}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 linkAbortSignals(r,t){const n=new AbortController;if(r.aborted||t.aborted)n.abort(r.reason??t.reason);else{let i=function(a){return()=>{n.signal.aborted||n.abort(a.reason)}},s=function(){n.signal.removeEventListener("abort",s),r.removeEventListener("abort",i(r)),t.removeEventListener("abort",i(t))};n.signal.addEventListener("abort",s),r.addEventListener("abort",i(r)),t.addEventListener("abort",i(t))}return n.signal}function createAbortScope(r,t,n){return n?n.aborted?Promise.reject(ABORT_ERROR):(n.addEventListener("abort",r),t().finally(()=>{n.removeEventListener("abort",r)})):t()}function assertUnreachable(r){return null}function encodeBase64(r,t){return Buffer$1.from(r,t).toString("base64")}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}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=h,n.toByteArray=D,n.fromByteArray=jn;for(var i=[],s=[],a=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0,on=u.length;v<on;++v)i[v]=u[v],s[u.charCodeAt(v)]=v;s[45]=62,s[95]=63;function l(gi){var Ri=gi.length;if(Ri%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Si=gi.indexOf("=");Si===-1&&(Si=Ri);var wi=Si===Ri?0:4-Si%4;return[Si,wi]}function h(gi){var Ri=l(gi),Si=Ri[0],wi=Ri[1];return(Si+wi)*3/4-wi}function Rn(gi,Ri,Si){return(Ri+Si)*3/4-Si}function D(gi){var Ri,Si=l(gi),wi=Si[0],Ii=Si[1],Ci=new a(Rn(gi,wi,Ii)),Ni=0,Oi=Ii>0?wi-4:wi,Li;for(Li=0;Li<Oi;Li+=4)Ri=s[gi.charCodeAt(Li)]<<18|s[gi.charCodeAt(Li+1)]<<12|s[gi.charCodeAt(Li+2)]<<6|s[gi.charCodeAt(Li+3)],Ci[Ni++]=Ri>>16&255,Ci[Ni++]=Ri>>8&255,Ci[Ni++]=Ri&255;return Ii===2&&(Ri=s[gi.charCodeAt(Li)]<<2|s[gi.charCodeAt(Li+1)]>>4,Ci[Ni++]=Ri&255),Ii===1&&(Ri=s[gi.charCodeAt(Li)]<<10|s[gi.charCodeAt(Li+1)]<<4|s[gi.charCodeAt(Li+2)]>>2,Ci[Ni++]=Ri>>8&255,Ci[Ni++]=Ri&255),Ci}function Mn(gi){return i[gi>>18&63]+i[gi>>12&63]+i[gi>>6&63]+i[gi&63]}function Ln(gi,Ri,Si){for(var wi,Ii=[],Ci=Ri;Ci<Si;Ci+=3)wi=(gi[Ci]<<16&16711680)+(gi[Ci+1]<<8&65280)+(gi[Ci+2]&255),Ii.push(Mn(wi));return Ii.join("")}function jn(gi){for(var Ri,Si=gi.length,wi=Si%3,Ii=[],Ci=16383,Ni=0,Oi=Si-wi;Ni<Oi;Ni+=Ci)Ii.push(Ln(gi,Ni,Ni+Ci>Oi?Oi:Ni+Ci));return wi===1?(Ri=gi[Si-1],Ii.push(i[Ri>>2]+i[Ri<<4&63]+"==")):wi===2&&(Ri=(gi[Si-2]<<8)+gi[Si-1],Ii.push(i[Ri>>10]+i[Ri>>4&63]+i[Ri<<2&63]+"=")),Ii.join("")}var hi={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */hi.read=function(gi,Ri,Si,wi,Ii){var Ci,Ni,Oi=Ii*8-wi-1,Li=(1<<Oi)-1,Fi=Li>>1,bi=-7,Yn=Si?Ii-1:0,In=Si?-1:1,Hn=gi[Ri+Yn];for(Yn+=In,Ci=Hn&(1<<-bi)-1,Hn>>=-bi,bi+=Oi;bi>0;Ci=Ci*256+gi[Ri+Yn],Yn+=In,bi-=8);for(Ni=Ci&(1<<-bi)-1,Ci>>=-bi,bi+=wi;bi>0;Ni=Ni*256+gi[Ri+Yn],Yn+=In,bi-=8);if(Ci===0)Ci=1-Fi;else{if(Ci===Li)return Ni?NaN:(Hn?-1:1)*(1/0);Ni=Ni+Math.pow(2,wi),Ci=Ci-Fi}return(Hn?-1:1)*Ni*Math.pow(2,Ci-wi)},hi.write=function(gi,Ri,Si,wi,Ii,Ci){var Ni,Oi,Li,Fi=Ci*8-Ii-1,bi=(1<<Fi)-1,Yn=bi>>1,In=Ii===23?Math.pow(2,-24)-Math.pow(2,-77):0,Hn=wi?0:Ci-1,yi=wi?1:-1,mi=Ri<0||Ri===0&&1/Ri<0?1:0;for(Ri=Math.abs(Ri),isNaN(Ri)||Ri===1/0?(Oi=isNaN(Ri)?1:0,Ni=bi):(Ni=Math.floor(Math.log(Ri)/Math.LN2),Ri*(Li=Math.pow(2,-Ni))<1&&(Ni--,Li*=2),Ni+Yn>=1?Ri+=In/Li:Ri+=In*Math.pow(2,1-Yn),Ri*Li>=2&&(Ni++,Li/=2),Ni+Yn>=bi?(Oi=0,Ni=bi):Ni+Yn>=1?(Oi=(Ri*Li-1)*Math.pow(2,Ii),Ni=Ni+Yn):(Oi=Ri*Math.pow(2,Yn-1)*Math.pow(2,Ii),Ni=0));Ii>=8;gi[Si+Hn]=Oi&255,Hn+=yi,Oi/=256,Ii-=8);for(Ni=Ni<<Ii|Oi,Fi+=Ii;Fi>0;gi[Si+Hn]=Ni&255,Hn+=yi,Ni/=256,Fi-=8);gi[Si+Hn-yi]|=mi*128};/*!
1
+ import{B as Buffer$1,p as process$1,a as Buffer}from"./monaco.b80d8424.CW8QmSOo.js";const APP_NAME="Nitro",APP_VERSION="30.0.2",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,IS_RUNNING_IN_ELECTRON=navigator.userAgent.indexOf("Electron")>=0,APP_TYPE=IS_RUNNING_IN_CLOUD?"cloud":IS_RUNNING_IN_ELECTRON?"app":"middleware",APP_AGENT=`${APP_NAME}/${APP_VERSION} (${APP_TYPE})`;getOsName();isMacLike();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 HEADER_CONTENT_TYPE="Content-Type",HTTP_SCHEME_PATTERN=/^https?:\/\//i,FIFTY_MILLISECONDS=50,ONE_SECOND=1e3,FIVE_SECONDS=5e3,THIRTY_SECONDS=3e4,ONE_MINUTE=6e4,FIVE_MINUTES=3e5,ONE_HOUR=36e5,THREE_HOURS=108e5,SIX_HOURS=216e5,TWELVE_HOURS=432e5,ONE_DAY=864e5,THREE_DAYS=2592e5,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;#r;#t;constructor(t,n){this.#e=t,this.#r=n}get aborted(){return this.#e.aborted}get cancelled(){return this.#r()}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.#t)return this.#t;const t=this;let n=!1;return this.#t=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",u),n||(n=!0,s(TIMEOUT_ABORT_ERROR))}function u(){t.removeEventListener("abort",a),t.removeEventListener("cancelled",u),n||(n=!0,i())}t.addEventListener("abort",a),t.addEventListener("cancelled",u)}),this.#t}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 linkAbortSignals(r,t){const n=new AbortController;if(r.aborted||t.aborted)n.abort(r.reason??t.reason);else{let i=function(a){return()=>{n.signal.aborted||n.abort(a.reason)}},s=function(){n.signal.removeEventListener("abort",s),r.removeEventListener("abort",i(r)),t.removeEventListener("abort",i(t))};n.signal.addEventListener("abort",s),r.addEventListener("abort",i(r)),t.addEventListener("abort",i(t))}return n.signal}function createAbortScope(r,t,n){return n?n.aborted?Promise.reject(ABORT_ERROR):(n.addEventListener("abort",r),t().finally(()=>{n.removeEventListener("abort",r)})):t()}function assertUnreachable(r){return null}function encodeBase64(r,t){return Buffer$1.from(r,t).toString("base64")}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}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=h,n.toByteArray=D,n.fromByteArray=jn;for(var i=[],s=[],a=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0,on=u.length;v<on;++v)i[v]=u[v],s[u.charCodeAt(v)]=v;s[45]=62,s[95]=63;function l(gi){var Ri=gi.length;if(Ri%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Si=gi.indexOf("=");Si===-1&&(Si=Ri);var wi=Si===Ri?0:4-Si%4;return[Si,wi]}function h(gi){var Ri=l(gi),Si=Ri[0],wi=Ri[1];return(Si+wi)*3/4-wi}function Rn(gi,Ri,Si){return(Ri+Si)*3/4-Si}function D(gi){var Ri,Si=l(gi),wi=Si[0],Ii=Si[1],Ci=new a(Rn(gi,wi,Ii)),Ni=0,Oi=Ii>0?wi-4:wi,Li;for(Li=0;Li<Oi;Li+=4)Ri=s[gi.charCodeAt(Li)]<<18|s[gi.charCodeAt(Li+1)]<<12|s[gi.charCodeAt(Li+2)]<<6|s[gi.charCodeAt(Li+3)],Ci[Ni++]=Ri>>16&255,Ci[Ni++]=Ri>>8&255,Ci[Ni++]=Ri&255;return Ii===2&&(Ri=s[gi.charCodeAt(Li)]<<2|s[gi.charCodeAt(Li+1)]>>4,Ci[Ni++]=Ri&255),Ii===1&&(Ri=s[gi.charCodeAt(Li)]<<10|s[gi.charCodeAt(Li+1)]<<4|s[gi.charCodeAt(Li+2)]>>2,Ci[Ni++]=Ri>>8&255,Ci[Ni++]=Ri&255),Ci}function Mn(gi){return i[gi>>18&63]+i[gi>>12&63]+i[gi>>6&63]+i[gi&63]}function Ln(gi,Ri,Si){for(var wi,Ii=[],Ci=Ri;Ci<Si;Ci+=3)wi=(gi[Ci]<<16&16711680)+(gi[Ci+1]<<8&65280)+(gi[Ci+2]&255),Ii.push(Mn(wi));return Ii.join("")}function jn(gi){for(var Ri,Si=gi.length,wi=Si%3,Ii=[],Ci=16383,Ni=0,Oi=Si-wi;Ni<Oi;Ni+=Ci)Ii.push(Ln(gi,Ni,Ni+Ci>Oi?Oi:Ni+Ci));return wi===1?(Ri=gi[Si-1],Ii.push(i[Ri>>2]+i[Ri<<4&63]+"==")):wi===2&&(Ri=(gi[Si-2]<<8)+gi[Si-1],Ii.push(i[Ri>>10]+i[Ri>>4&63]+i[Ri<<2&63]+"=")),Ii.join("")}var hi={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */hi.read=function(gi,Ri,Si,wi,Ii){var Ci,Ni,Oi=Ii*8-wi-1,Li=(1<<Oi)-1,Fi=Li>>1,bi=-7,Yn=Si?Ii-1:0,In=Si?-1:1,Hn=gi[Ri+Yn];for(Yn+=In,Ci=Hn&(1<<-bi)-1,Hn>>=-bi,bi+=Oi;bi>0;Ci=Ci*256+gi[Ri+Yn],Yn+=In,bi-=8);for(Ni=Ci&(1<<-bi)-1,Ci>>=-bi,bi+=wi;bi>0;Ni=Ni*256+gi[Ri+Yn],Yn+=In,bi-=8);if(Ci===0)Ci=1-Fi;else{if(Ci===Li)return Ni?NaN:(Hn?-1:1)*(1/0);Ni=Ni+Math.pow(2,wi),Ci=Ci-Fi}return(Hn?-1:1)*Ni*Math.pow(2,Ci-wi)},hi.write=function(gi,Ri,Si,wi,Ii,Ci){var Ni,Oi,Li,Fi=Ci*8-Ii-1,bi=(1<<Fi)-1,Yn=bi>>1,In=Ii===23?Math.pow(2,-24)-Math.pow(2,-77):0,Hn=wi?0:Ci-1,yi=wi?1:-1,mi=Ri<0||Ri===0&&1/Ri<0?1:0;for(Ri=Math.abs(Ri),isNaN(Ri)||Ri===1/0?(Oi=isNaN(Ri)?1:0,Ni=bi):(Ni=Math.floor(Math.log(Ri)/Math.LN2),Ri*(Li=Math.pow(2,-Ni))<1&&(Ni--,Li*=2),Ni+Yn>=1?Ri+=In/Li:Ri+=In*Math.pow(2,1-Yn),Ri*Li>=2&&(Ni++,Li/=2),Ni+Yn>=bi?(Oi=0,Ni=bi):Ni+Yn>=1?(Oi=(Ri*Li-1)*Math.pow(2,Ii),Ni=Ni+Yn):(Oi=Ri*Math.pow(2,Yn-1)*Math.pow(2,Ii),Ni=0));Ii>=8;gi[Si+Hn]=Oi&255,Hn+=yi,Oi/=256,Ii-=8);for(Ni=Ni<<Ii|Oi,Fi+=Ii;Fi>0;gi[Si+Hn]=Ni&255,Hn+=yi,Ni/=256,Fi-=8);gi[Si+Hn-yi]|=mi*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{m as l}from"./monaco.a6cbd8ae.DRTmByXd.js";/*!-----------------------------------------------------------------------------
1
+ import{m as l}from"./monaco.b80d8424.jGozqPLC.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
4
4
  * Released under the MIT license
@@ -1,4 +1,4 @@
1
- import{S as Uh,E as Wh,p as es,B as Ai}from"./monaco.a6cbd8ae.EZduqCri.js";function Jh(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}let nl=!1;function df(e){if(nl)return;nl=!0;const t=new Uh(n=>{globalThis.postMessage(n)},n=>new Wh(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{nl||df(null)};function Yh(e){self.onmessage=()=>{df((t,n)=>Object.create(e(t,n)))}}let Vc=class rl{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(rl.isIncremental(r)){const i=mf(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const y=Math.max(i.start.line,0),h=Math.max(i.end.line,0);let x=this._lineOffsets;const J=qc(r.text,!1,s);if(h-y===J.length)for(let te=0,ce=J.length;te<ce;te++)x[te+y+1]=J[te];else J.length<1e4?x.splice(y+1,h-y,...J):this._lineOffsets=x=x.slice(0,y+1).concat(J,x.slice(h+1));const v=r.text.length-(a-s);if(v!==0)for(let te=y+1+J.length,ce=x.length;te<ce;te++)x[te]=x[te]+v}else if(rl.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=qc(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}let s=r-1;return{line:s,character:t-n[s]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}};var il;(function(e){function t(i,s,a,y){return new Vc(i,s,a,y)}e.create=t;function n(i,s,a){if(i instanceof Vc)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,s){let a=i.getText(),y=sl(s.map(Gh),(J,v)=>{let te=J.range.start.line-v.range.start.line;return te===0?J.range.start.character-v.range.start.character:te}),h=0;const x=[];for(const J of y){let v=i.offsetAt(J.range.start);if(v<h)throw new Error("Overlapping edit");v>h&&x.push(a.substring(h,v)),J.newText.length&&x.push(J.newText),h=i.offsetAt(J.range.end)}return x.push(a.substr(h)),x.join("")}e.applyEdits=r})(il||(il={}));function sl(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);sl(r,t),sl(i,t);let s=0,a=0,y=0;for(;s<r.length&&a<i.length;)t(r[s],i[a])<=0?e[y++]=r[s++]:e[y++]=i[a++];for(;s<r.length;)e[y++]=r[s++];for(;a<i.length;)e[y++]=i[a++];return e}function qc(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);(s===13||s===10)&&(s===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function mf(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Gh(e){const t=mf(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function Kh(e,t=!1){const n=e.length;let r=0,i="",s=0,a=16,y=0,h=0,x=0,J=0,v=0;function te(lt,pt){let Fe=0,Le=0;for(;Fe<lt;){let Ft=e.charCodeAt(r);if(Ft>=48&&Ft<=57)Le=Le*16+Ft-48;else if(Ft>=65&&Ft<=70)Le=Le*16+Ft-65+10;else if(Ft>=97&&Ft<=102)Le=Le*16+Ft-97+10;else break;r++,Fe++}return Fe<lt&&(Le=-1),Le}function ce(lt){r=lt,i="",s=0,a=16,v=0}function be(){let lt=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&xs(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&xs(e.charCodeAt(r)))for(r++;r<e.length&&xs(e.charCodeAt(r));)r++;else return v=3,e.substring(lt,r);let pt=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&xs(e.charCodeAt(r))){for(r++;r<e.length&&xs(e.charCodeAt(r));)r++;pt=r}else v=3;return e.substring(lt,pt)}function ne(){let lt="",pt=r;for(;;){if(r>=n){lt+=e.substring(pt,r),v=2;break}const Fe=e.charCodeAt(r);if(Fe===34){lt+=e.substring(pt,r),r++;break}if(Fe===92){if(lt+=e.substring(pt,r),r++,r>=n){v=2;break}switch(e.charCodeAt(r++)){case 34:lt+='"';break;case 92:lt+="\\";break;case 47:lt+="/";break;case 98:lt+="\b";break;case 102:lt+="\f";break;case 110:lt+=`
1
+ import{S as Uh,E as Wh,p as es,B as Ai}from"./monaco.b80d8424.CVrHpwcq.js";function Jh(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}let nl=!1;function df(e){if(nl)return;nl=!0;const t=new Uh(n=>{globalThis.postMessage(n)},n=>new Wh(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{nl||df(null)};function Yh(e){self.onmessage=()=>{df((t,n)=>Object.create(e(t,n)))}}let Vc=class rl{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(rl.isIncremental(r)){const i=mf(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const y=Math.max(i.start.line,0),h=Math.max(i.end.line,0);let x=this._lineOffsets;const J=qc(r.text,!1,s);if(h-y===J.length)for(let te=0,ce=J.length;te<ce;te++)x[te+y+1]=J[te];else J.length<1e4?x.splice(y+1,h-y,...J):this._lineOffsets=x=x.slice(0,y+1).concat(J,x.slice(h+1));const v=r.text.length-(a-s);if(v!==0)for(let te=y+1+J.length,ce=x.length;te<ce;te++)x[te]=x[te]+v}else if(rl.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=qc(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}let s=r-1;return{line:s,character:t-n[s]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}};var il;(function(e){function t(i,s,a,y){return new Vc(i,s,a,y)}e.create=t;function n(i,s,a){if(i instanceof Vc)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,s){let a=i.getText(),y=sl(s.map(Gh),(J,v)=>{let te=J.range.start.line-v.range.start.line;return te===0?J.range.start.character-v.range.start.character:te}),h=0;const x=[];for(const J of y){let v=i.offsetAt(J.range.start);if(v<h)throw new Error("Overlapping edit");v>h&&x.push(a.substring(h,v)),J.newText.length&&x.push(J.newText),h=i.offsetAt(J.range.end)}return x.push(a.substr(h)),x.join("")}e.applyEdits=r})(il||(il={}));function sl(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);sl(r,t),sl(i,t);let s=0,a=0,y=0;for(;s<r.length&&a<i.length;)t(r[s],i[a])<=0?e[y++]=r[s++]:e[y++]=i[a++];for(;s<r.length;)e[y++]=r[s++];for(;a<i.length;)e[y++]=i[a++];return e}function qc(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);(s===13||s===10)&&(s===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function mf(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Gh(e){const t=mf(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function Kh(e,t=!1){const n=e.length;let r=0,i="",s=0,a=16,y=0,h=0,x=0,J=0,v=0;function te(lt,pt){let Fe=0,Le=0;for(;Fe<lt;){let Ft=e.charCodeAt(r);if(Ft>=48&&Ft<=57)Le=Le*16+Ft-48;else if(Ft>=65&&Ft<=70)Le=Le*16+Ft-65+10;else if(Ft>=97&&Ft<=102)Le=Le*16+Ft-97+10;else break;r++,Fe++}return Fe<lt&&(Le=-1),Le}function ce(lt){r=lt,i="",s=0,a=16,v=0}function be(){let lt=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&xs(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&xs(e.charCodeAt(r)))for(r++;r<e.length&&xs(e.charCodeAt(r));)r++;else return v=3,e.substring(lt,r);let pt=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&xs(e.charCodeAt(r))){for(r++;r<e.length&&xs(e.charCodeAt(r));)r++;pt=r}else v=3;return e.substring(lt,pt)}function ne(){let lt="",pt=r;for(;;){if(r>=n){lt+=e.substring(pt,r),v=2;break}const Fe=e.charCodeAt(r);if(Fe===34){lt+=e.substring(pt,r),r++;break}if(Fe===92){if(lt+=e.substring(pt,r),r++,r>=n){v=2;break}switch(e.charCodeAt(r++)){case 34:lt+='"';break;case 92:lt+="\\";break;case 47:lt+="/";break;case 98:lt+="\b";break;case 102:lt+="\f";break;case 110:lt+=`
2
2
  `;break;case 114:lt+="\r";break;case 116:lt+=" ";break;case 117:const Ft=te(4);Ft>=0?lt+=String.fromCharCode(Ft):v=4;break;default:v=5}pt=r;continue}if(Fe>=0&&Fe<=31)if(aa(Fe)){lt+=e.substring(pt,r),v=2;break}else v=6;r++}return lt}function Y(){if(i="",v=0,s=r,h=y,J=x,r>=n)return s=n,a=17;let lt=e.charCodeAt(r);if(Ru(lt)){do r++,i+=String.fromCharCode(lt),lt=e.charCodeAt(r);while(Ru(lt));return a=15}if(aa(lt))return r++,i+=String.fromCharCode(lt),lt===13&&e.charCodeAt(r)===10&&(r++,i+=`
3
3
  `),y++,x=r,a=14;switch(lt){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=ne(),a=10;case 47:const pt=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!aa(e.charCodeAt(r));)r++;return i=e.substring(pt,r),a=12}if(e.charCodeAt(r+1)===42){r+=2;const Fe=n-1;let Le=!1;for(;r<Fe;){const Ft=e.charCodeAt(r);if(Ft===42&&e.charCodeAt(r+1)===47){r+=2,Le=!0;break}r++,aa(Ft)&&(Ft===13&&e.charCodeAt(r)===10&&r++,y++,x=r)}return Le||(r++,v=1),i=e.substring(pt,r),a=13}return i+=String.fromCharCode(lt),r++,a=16;case 45:if(i+=String.fromCharCode(lt),r++,r===n||!xs(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=be(),a=11;default:for(;r<n&&ke(lt);)r++,lt=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(lt),r++,a=16}}function ke(lt){if(Ru(lt)||aa(lt))return!1;switch(lt){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function We(){let lt;do lt=Y();while(lt>=12&&lt<=15);return lt}return{setPosition:ce,getPosition:()=>r,scan:t?We:Y,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>h,getTokenStartCharacter:()=>s-J,getTokenError:()=>v}}function Ru(e){return e===32||e===9}function aa(e){return e===10||e===13}function xs(e){return e>=48&&e<=57}var Uc;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Uc||(Uc={}));new Array(20).fill(0).map((e,t)=>" ".repeat(t));const ws=200;new Array(ws).fill(0).map((e,t)=>`
4
4
  `+" ".repeat(t)),new Array(ws).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(ws).fill(0).map((e,t)=>`\r
package/index.html CHANGED
@@ -15,10 +15,10 @@
15
15
  />
16
16
  <meta name="theme-color" content="#3b4f74" />
17
17
  <title>Nitro</title>
18
- <script type="module" crossorigin src="./assets/main.a6cbd8ae.nI2HRy2W.js"></script>
19
- <link rel="modulepreload" crossorigin href="./assets/monaco.a6cbd8ae.DRTmByXd.js">
20
- <link rel="stylesheet" crossorigin href="./assets/monaco.a6cbd8ae.Cx26j2kT.css">
21
- <link rel="stylesheet" crossorigin href="./assets/main.a6cbd8ae.O2wwCX4n.css">
18
+ <script type="module" crossorigin src="./assets/main.b80d8424.Bn1T57BQ.js"></script>
19
+ <link rel="modulepreload" crossorigin href="./assets/monaco.b80d8424.jGozqPLC.js">
20
+ <link rel="stylesheet" crossorigin href="./assets/monaco.b80d8424.DNmJ3sDC.css">
21
+ <link rel="stylesheet" crossorigin href="./assets/main.b80d8424.BdMtxJz7.css">
22
22
  <link rel="manifest" href="./manifest.webmanifest"></head>
23
23
 
24
24
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chillicream/nitro-embedded",
3
- "version": "30.0.0",
3
+ "version": "30.0.2",
4
4
  "description": "Nitro GraphQL IDE",
5
5
  "homepage": "https://chillicream.com",
6
6
  "repository": "github:ChilliCream/graphql-platform",
package/service-worker.js CHANGED
@@ -1,2 +1,2 @@
1
1
  try{self["workbox:core:7.2.0"]&&_()}catch{}const G=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Q=G;class l extends Error{constructor(e,t){const n=Q(e,t);super(n),this.name=e,this.details=t}}const j=new Set;function z(s){j.add(s)}const d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},E=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),J=s=>{for(const e of Object.keys(d))s(e)},b={updateDetails:s=>{J(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||E(d.googleAnalytics),getPrecacheName:s=>s||E(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||E(d.runtime),getSuffix:()=>d.suffix};function K(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function X(s,e,t,n){const a=K(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=K(c.url,t);if(a===o)return s.match(c,n)}}let m;function Y(){if(m===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),m=!0}catch{m=!1}m=!1}return m}function q(s){s.then(()=>{})}class Z{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}async function ee(){for(const s of j)await s()}const te=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function se(s){return new Promise(e=>setTimeout(e,s))}function A(s,e){const t=e();return s.waitUntil(t),t}async function ne(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new l("cross-origin-copy-response",{origin:t});const n=s.clone(),r={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},i=Y()?n.body:await n.blob();return new Response(i,r)}function ae(){self.addEventListener("activate",()=>self.clients.claim())}const re=(s,e)=>e.some(t=>s instanceof t);let O,S;function ie(){return O||(O=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ce(){return S||(S=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const F=new WeakMap,P=new WeakMap,H=new WeakMap,D=new WeakMap,I=new WeakMap;function oe(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(f(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&F.set(t,s)}).catch(()=>{}),I.set(e,s),e}function he(s){if(P.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});P.set(s,e)}let k={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return P.get(s);if(e==="objectStoreNames")return s.objectStoreNames||H.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return f(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function le(s){k=s(k)}function ue(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(L(this),e,...t);return H.set(n,e.sort?e.sort():[e]),f(n)}:ce().includes(s)?function(...e){return s.apply(L(this),e),f(F.get(this))}:function(...e){return f(s.apply(L(this),e))}}function de(s){return typeof s=="function"?ue(s):(s instanceof IDBTransaction&&he(s),re(s,ie())?new Proxy(s,k):s)}function f(s){if(s instanceof IDBRequest)return oe(s);if(D.has(s))return D.get(s);const e=de(s);return e!==s&&(D.set(s,e),I.set(e,s)),e}const L=s=>I.get(s);function fe(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=f(i);return n&&i.addEventListener("upgradeneeded",o=>{n(f(i.result),o.oldVersion,o.newVersion,f(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",h=>a(h.oldVersion,h.newVersion,h))}).catch(()=>{}),c}function pe(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),f(t).then(()=>{})}const ge=["get","getKey","getAll","getAllKeys","count"],me=["put","add","delete","clear"],U=new Map;function W(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(U.get(e))return U.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=me.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||ge.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let h=o.store;return n&&(h=h.index(c.shift())),(await Promise.all([h[t](...c),a&&o.done]))[0]};return U.set(e,r),r}le(s=>({...s,get:(e,t,n)=>W(e,t)||s.get(e,t,n),has:(e,t)=>!!W(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.2.0"]&&_()}catch{}const we="workbox-expiration",w="cache-entries",B=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class ye{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(w,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&pe(this._cacheName)}async setTimestamp(e,t){e=B(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(w,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(w,this._getId(e));return n?.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(w).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&i>=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(w,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+B(e)}async getDb(){return this._db||(this._db=await fe(we,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class _e{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ye(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,q(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<n:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}class Re{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:n,cacheName:a,cachedResponse:r})=>{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);q(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&z(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===b.getRuntimeName())throw new l("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new _e(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:precaching:7.2.0"]&&_()}catch{}const be="__WB_REVISION__";function Ce(s){if(!s)throw new l("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const r=new URL(s,location.href);return{cacheKey:r.href,url:r.href}}const{revision:e,url:t}=s;if(!t)throw new l("add-to-cache-list-unexpected-type",{entry:s});if(!e){const r=new URL(t,location.href);return{cacheKey:r.href,url:r.href}}const n=new URL(t,location.href),a=new URL(t,location.href);return n.searchParams.set(be,e),{cacheKey:n.href,url:a.href}}class xe{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;n?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return n}}}class Ee{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const a=n?.cacheKey||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}try{self["workbox:strategies:7.2.0"]&&_()}catch{}function C(s){return typeof s=="string"?new Request(s):s}class De{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new Z,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=C(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new l("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=C(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=C(e);await se(0);const a=await this.getCacheKey(n,"write");if(!t)throw new l("cache-put-with-no-response",{url:te(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),h=this.hasCallback("cacheDidUpdate"),g=h?await X(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,h?r.clone():r)}catch(u){if(u instanceof Error)throw u.name==="QuotaExceededError"&&await ee(),u}for(const u of this.iterateCallbacks("cacheDidUpdate"))await u({cacheName:i,oldResponse:g,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=C(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class V{constructor(e={}){this.cacheName=b.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new De(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new l("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class p extends V{constructor(e={}){e.cacheName=b.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(p.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const a=t.params||{};if(this._fallbackToNetwork){const r=a.integrity,i=e.integrity,c=!i||i===r;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||r:void 0})),r&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new l("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new l("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,a]of this.plugins.entries())a!==p.copyRedirectedCacheableResponsesPlugin&&(a===p.defaultPrecacheCacheabilityPlugin&&(e=n),a.cacheWillUpdate&&t++);t===0?this.plugins.push(p.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}p.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};p.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await ne(s):s}};class Le{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new p({cacheName:b.getPrecacheName(e),plugins:[...t,new Ee({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:a,url:r}=Ce(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(r)&&this._urlsToCacheKeys.get(r)!==a)throw new l("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(r),secondEntry:a});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==n.integrity)throw new l("add-to-cache-list-conflicting-integrities",{url:r});this._cacheKeysToIntegrities.set(a,n.integrity)}if(this._urlsToCacheKeys.set(r,a),this._urlsToCacheModes.set(r,i),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")}
2
- This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return A(e,async()=>{const t=new xe;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),h=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:h,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return A(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new l("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let T;const N=()=>(T||(T=new Le),T);try{self["workbox:routing:7.2.0"]&&_()}catch{}const $="GET",x=s=>s&&typeof s=="object"?s:{handle:s};class R{constructor(e,t,n=$){this.handler=x(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=x(e)}}class Ue extends R{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class Te{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let h;try{h=c.handle({url:n,request:e,event:t,params:r})}catch(u){h=Promise.reject(u)}const g=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||g)&&(h=h.catch(async u=>{if(g)try{return await g.handle({url:n,request:e,event:t,params:r})}catch(M){M instanceof Error&&(u=M)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),h}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=$){this._defaultHandlerMap.set(t,x(e))}setCatchHandler(e){this._catchHandler=x(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}}let y;const Pe=()=>(y||(y=new Te,y.addFetchListener(),y.addCacheListener()),y);function v(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new R(i,e,t)}else if(s instanceof RegExp)n=new Ue(s,e,t);else if(typeof s=="function")n=new R(s,e,t);else if(s instanceof R)n=s;else throw new l("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Pe().registerRoute(n),n}function ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=ke(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class Ne extends R{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of Ie(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function ve(s){const e=N(),t=new Ne(e,s);v(t)}const Me="-precache-",Ke=async(s,e=Me)=>{const n=(await self.caches.keys()).filter(a=>a.includes(e)&&a.includes(self.registration.scope)&&a!==s);return await Promise.all(n.map(a=>self.caches.delete(a))),n};function Ae(){self.addEventListener("activate",s=>{const e=b.getPrecacheName();s.waitUntil(Ke(e).then(t=>{}))})}function Oe(s){return N().createHandlerBoundToURL(s)}function Se(s){N().precache(s)}function We(s,e){Se(s),ve(e)}const Be={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class je extends V{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Be)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new l("no-response",{url:e.url,error:r});return a}}ae();Ae();We([{"revision":null,"url":"assets/context-providers.a6cbd8ae.-xn453sc.js"},{"revision":null,"url":"assets/context-providers.a6cbd8ae.3HkX5s82.css"},{"revision":null,"url":"assets/editor.worker.a6cbd8ae.DKTbkej7.js"},{"revision":null,"url":"assets/FiraCode-Medium.a6cbd8ae.-YTCSZkP.woff2"},{"revision":null,"url":"assets/graphql-engine-scheduler.a6cbd8ae.CRCZH9eT.js"},{"revision":null,"url":"assets/graphql-indexer-scheduler.a6cbd8ae.Bvw8ykb0.js"},{"revision":null,"url":"assets/graphql.worker.a6cbd8ae.DrQju_5S.js"},{"revision":null,"url":"assets/index.a6cbd8ae.DH9clVIb.js"},{"revision":null,"url":"assets/json.worker.a6cbd8ae.BAHwolUd.js"},{"revision":null,"url":"assets/jsonMode.a6cbd8ae.D9G33m7j.js"},{"revision":null,"url":"assets/main.a6cbd8ae.nI2HRy2W.js"},{"revision":null,"url":"assets/main.a6cbd8ae.O2wwCX4n.css"},{"revision":null,"url":"assets/monaco.a6cbd8ae.B_bsp91k.js"},{"revision":null,"url":"assets/monaco.a6cbd8ae.Cx26j2kT.css"},{"revision":null,"url":"assets/monaco.a6cbd8ae.CX283ebn.js"},{"revision":null,"url":"assets/monaco.a6cbd8ae.DPHEUpPG.js"},{"revision":null,"url":"assets/monaco.a6cbd8ae.DRTmByXd.js"},{"revision":null,"url":"assets/monaco.a6cbd8ae.EZduqCri.js"},{"revision":null,"url":"assets/monaco.a6cbd8ae.v2QsmtMC.js"},{"revision":null,"url":"assets/monaco.a6cbd8ae.yVFOAV5a.css"},{"revision":null,"url":"assets/session-scheduler.a6cbd8ae.Cs3Lp-R6.js"},{"revision":null,"url":"assets/yaml.a6cbd8ae.BrAx0Nnq.js"},{"revision":null,"url":"assets/yaml.worker.a6cbd8ae.BOVYkCVk.js"},{"revision":"a7f9a20804874fa7f972c5767047e5bf","url":"index.html"},{"revision":"6f81e07d36deecc50959d4010a319be4","url":"favicon.ico"},{"revision":"517fe31359162d79d0d314af7805d7b2","url":"favicon.svg"},{"revision":"3e7505908c7f5a5dcdfa9142458e7c97","url":"manifest.webmanifest"}]);const qe=new RegExp("/[^/?]+\\.[^/]+$");v(({request:s,url:e})=>!(s.mode!=="navigate"||e.pathname.startsWith("/_")||e.pathname.match(qe)),Oe("./index.html"));v(({url:s})=>s.origin===self.location.origin&&(s.pathname.endsWith("/bcp-config.json")||s.pathname.endsWith("/nitro-config.json")),new je({cacheName:"runtime",plugins:[new Re({maxEntries:1})]}));self.addEventListener("message",s=>{s.data?.type==="SKIP_WAITING"&&self.skipWaiting()});
2
+ This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return A(e,async()=>{const t=new xe;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),h=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:h,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return A(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new l("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let T;const N=()=>(T||(T=new Le),T);try{self["workbox:routing:7.2.0"]&&_()}catch{}const $="GET",x=s=>s&&typeof s=="object"?s:{handle:s};class R{constructor(e,t,n=$){this.handler=x(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=x(e)}}class Ue extends R{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class Te{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let h;try{h=c.handle({url:n,request:e,event:t,params:r})}catch(u){h=Promise.reject(u)}const g=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||g)&&(h=h.catch(async u=>{if(g)try{return await g.handle({url:n,request:e,event:t,params:r})}catch(M){M instanceof Error&&(u=M)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),h}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=$){this._defaultHandlerMap.set(t,x(e))}setCatchHandler(e){this._catchHandler=x(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new l("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new l("unregister-route-route-not-registered")}}let y;const Pe=()=>(y||(y=new Te,y.addFetchListener(),y.addCacheListener()),y);function v(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new R(i,e,t)}else if(s instanceof RegExp)n=new Ue(s,e,t);else if(typeof s=="function")n=new R(s,e,t);else if(s instanceof R)n=s;else throw new l("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Pe().registerRoute(n),n}function ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=ke(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class Ne extends R{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of Ie(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function ve(s){const e=N(),t=new Ne(e,s);v(t)}const Me="-precache-",Ke=async(s,e=Me)=>{const n=(await self.caches.keys()).filter(a=>a.includes(e)&&a.includes(self.registration.scope)&&a!==s);return await Promise.all(n.map(a=>self.caches.delete(a))),n};function Ae(){self.addEventListener("activate",s=>{const e=b.getPrecacheName();s.waitUntil(Ke(e).then(t=>{}))})}function Oe(s){return N().createHandlerBoundToURL(s)}function Se(s){N().precache(s)}function We(s,e){Se(s),ve(e)}const Be={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class je extends V{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Be)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new l("no-response",{url:e.url,error:r});return a}}ae();Ae();We([{"revision":null,"url":"assets/context-providers.b80d8424.3HkX5s82.css"},{"revision":null,"url":"assets/context-providers.b80d8424.B76mxacb.js"},{"revision":null,"url":"assets/editor.worker.b80d8424.BZd2Bdq2.js"},{"revision":null,"url":"assets/FiraCode-Medium.b80d8424.-YTCSZkP.woff2"},{"revision":null,"url":"assets/graphql-engine-scheduler.b80d8424.BIAP1cE9.js"},{"revision":null,"url":"assets/graphql-indexer-scheduler.b80d8424.fuMYnFk0.js"},{"revision":null,"url":"assets/graphql.worker.b80d8424.CHEJT8-c.js"},{"revision":null,"url":"assets/index.b80d8424.DsczWEIv.js"},{"revision":null,"url":"assets/json.worker.b80d8424.DRi2v0dt.js"},{"revision":null,"url":"assets/jsonMode.b80d8424.8UbunXhg.js"},{"revision":null,"url":"assets/main.b80d8424.BdMtxJz7.css"},{"revision":null,"url":"assets/main.b80d8424.Bn1T57BQ.js"},{"revision":null,"url":"assets/monaco.b80d8424.C0XenLoG.js"},{"revision":null,"url":"assets/monaco.b80d8424.CcJBgAKd.js"},{"revision":null,"url":"assets/monaco.b80d8424.CVrHpwcq.js"},{"revision":null,"url":"assets/monaco.b80d8424.CW8QmSOo.js"},{"revision":null,"url":"assets/monaco.b80d8424.DkQR9Zyg.css"},{"revision":null,"url":"assets/monaco.b80d8424.DNmJ3sDC.css"},{"revision":null,"url":"assets/monaco.b80d8424.DUscfaQn.js"},{"revision":null,"url":"assets/monaco.b80d8424.jGozqPLC.js"},{"revision":null,"url":"assets/session-scheduler.b80d8424.aW0-ct_v.js"},{"revision":null,"url":"assets/yaml.b80d8424.DGFcs6Nt.js"},{"revision":null,"url":"assets/yaml.worker.b80d8424.q5FccL7x.js"},{"revision":"9e230b71cbcd1c682603a82294eafaf5","url":"index.html"},{"revision":"6f81e07d36deecc50959d4010a319be4","url":"favicon.ico"},{"revision":"517fe31359162d79d0d314af7805d7b2","url":"favicon.svg"},{"revision":"3e7505908c7f5a5dcdfa9142458e7c97","url":"manifest.webmanifest"}]);const qe=new RegExp("/[^/?]+\\.[^/]+$");v(({request:s,url:e})=>!(s.mode!=="navigate"||e.pathname.startsWith("/_")||e.pathname.match(qe)),Oe("./index.html"));v(({url:s})=>s.origin===self.location.origin&&(s.pathname.endsWith("/bcp-config.json")||s.pathname.endsWith("/nitro-config.json")),new je({cacheName:"runtime",plugins:[new Re({maxEntries:1})]}));self.addEventListener("message",s=>{s.data?.type==="SKIP_WAITING"&&self.skipWaiting()});
@@ -1,32 +0,0 @@
1
- import{ff as De,b as o,lz as we,e_ as ve,lA as _e,b1 as e,hn as xe,b8 as c,lB as he,B as D,j_ as w,jM as F,jL as N,b9 as p,lC as ye,lD as Ne,ho as Ee,cs as He,ct as Me,jN as qe,jO as Oe,lE as pe,ds as ne,dt as fe,a2 as v,fX as Pe,eu as Ae,c9 as x,dr as $e,jG as je,jH as ze,jI as Be,jJ as Ge,lF as P,ba as Fe,fw as Ue,bb as Ke,dI as We,lG as Ve,eC as Je,fJ as Ye,lH as Qe,fV as Xe,lI as Ze,fy as et,bc as tt,bd as nt,lJ as st,fD as it,be as rt,gB as V,gC as R,lK as A,fl as se,fm as $,dJ as C,dK as j,gA as J,lL as te,hm as U,jR as y,hl as me,lM as ot,gD as ct,lN as at,lO as lt,fT as dt,lP as ut,f$ as ht,lQ as pt,er as ft,jw as mt,jv as It,lR as gt}from"./main.a6cbd8ae.nI2HRy2W.js";import{u as Ct,a as z,b as k,L as Lt,c as bt,d as Tt,V as St,C as b,H as E,e as H,S as Ie,T as K,f as M,g as ge,h as g,i as ie,j as S,k as Ce,l as Le,A as W,m as re,n as Rt,o as kt,p as Dt,q as wt,r as vt,s as _t,t as xt,v as yt,w as Nt,x as Et}from"./context-providers.a6cbd8ae.-xn453sc.js";import"./monaco.a6cbd8ae.DRTmByXd.js";function B(){const t=Ct(),n=De();return o.useCallback(async(s,i)=>{await n(s),i&&t(s,i,void 0)},[t,n])}const G="log";function Ht(){const t=we(),n=z(G).toLocaleLowerCase(),s=o.useRef(null),i=o.useRef(null),r=o.useRef(t),a=o.useRef(t.followNewest),l=o.useRef(!0),u=ve(),h=B(),f=_e(),I={activeId:t.activeId,activeChildId:t.activeChildId,entries:t.entries.filter(d=>{const{kind:m}=d;switch(m){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 k()}})};r.current=t,a.current=t.followNewest;const T=o.useCallback(d=>{l.current=!1,d.kind==="http-request"&&d.scopeId?u(d.scopeId,d.id):u(d.id)},[u]),Q=o.useCallback(async d=>{d.item?.id&&await h(d.item.id,d.id)},[h]),X=o.useCallback(d=>{if(i.current){const m=i.current.getScrollElement();if(m){const{clientHeight:_,scrollHeight:Z}=m;l.current=!0,a.current=Z-_===d.scrollOffset,f(a.current)}}},[f]),Re=o.useCallback(d=>{if(s.current=d,s.current&&r.current.entries.length){const m=r.current.activeId?r.current.entries.findIndex(({id:_})=>_===r.current.activeId):-1;m===-1?s.current.scrollToItem(r.current.entries.length-1,"end"):s.current.scrollToItem(m,"end")}},[]);o.useLayoutEffect(()=>{a.current&&s.current&&I.entries.length&&s.current.scrollToItem(I.entries.length-1,"end")},[I.entries.length]),o.useLayoutEffect(()=>{if(l.current&&!a.current&&t.activeId&&s.current&&r.current){const d=r.current.entries.findIndex(({id:m})=>m===t.activeId);d!==-1&&s.current.scrollToItem(d,"end")}l.current=!0},[t.activeId]),o.useEffect(()=>()=>f(!0),[f]);const ke=o.memo(function({data:m,index:_,style:Z}){const L=m.entries[_],ae=L.kind==="http-request"&&L.scopeId?L.id===m.activeChildId&&L.scopeId===m.activeId:L.id===m.activeId;return e(Lt,{style:Z,onClick:()=>T(L),onDoubleClick:()=>Q(L),className:ae?"active":void 0,children:e(Mt,{active:ae,logEntry:L})},`log-entry-${L.id}`)},bt);return I.entries.length?e(St,{innerListRef:Re,scrollbarRef:i,itemCount:I.entries.length,itemData:I,itemKey:d=>`log-entry-${d}`,itemSize:Tt,tabIndex:-1,onScrollVirtualList:X,children:ke}):e(xe,{isFilterActive:!!n})}const Mt=o.memo(function({active:n,logEntry:s}){const{kind:i}=s;switch(i){case"basic":return e(qt,{active:n,logEntry:s});case"http-request":return e(Ot,{active:n,logEntry:s});case"scope":return e(Pt,{active:n,logEntry:s});case"subscription-request":return e(At,{active:n,logEntry:s});default:return k()}}),qt=o.memo(function({active:n,logEntry:{id:s,level:i,message:r,timestamp:a,item:l}}){return c(p,{children:[e(Y,{id:s,active:n}),e(be,{level:i}),e(O,{children:e(Te,{level:i})}),e(H,{children:e(E,{text:r,highlightedText:z(G)})}),e(q,{item:l}),e(M,{children:N(a)})]})});function be({level:t}){switch(t){case x.warning:return e(g,{children:e($e,{})});case x.error:return e(g,{children:e(ne,{})});default:return e(g,{children:e(Ae,{})})}}const Te=o.memo(function({level:n}){switch(n){case x.error:return e(b,{color:"error",label:"ERR"});case x.info:return e(b,{color:"info",label:"INFO"});case x.warning:return e(b,{color:"warning",label:"WARN"});default:return k()}}),Ot=o.memo(function({active:n,logEntry:{id:s,scopeId:i,status:r,name:a,started:l,duration:u,item:h,uri:f,method:I,statusCode:T,contentLength:Q,lastChild:X}}){return c(p,{children:[i?e(jt,{active:n,last:X??!1}):e(Y,{id:s,active:n,pending:r==="pending"}),e(Se,{status:r,statusCode:T}),e(O,{children:e(b,{color:"info",label:I})}),e(H,{children:e(E,{text:a?.length?a+": "+f:f,highlightedText:z(G)})}),e(oe,{children:e(ge,{status:r,statusCode:T})}),e(ce,{children:w(Q)}),e(K,{children:F(u)}),e(q,{item:h}),e(M,{children:N(l)})]})}),Pt=o.memo(function({active:n,logEntry:{id:s,name:i,level:r,started:a,duration:l,item:u,details:h,expanded:f}}){const I=z(G);return c(p,{children:[e(Y,{id:s,active:n,pending:h?.status==="pending",expandable:!0,expanded:f}),h?.kind==="introspection"?c(p,{children:[e(Se,{status:h.status,statusCode:h.statusCode}),e(O,{children:e(b,{color:"info",label:h.method})}),e(H,{children:e(E,{text:i?.length?i+": "+h.uri:h.uri,highlightedText:I})}),e(oe,{children:e(ge,{status:h.status,statusCode:h.statusCode})}),e(ce,{children:w(h.contentLength)}),e(K,{children:F(l)}),e(q,{item:u}),e(M,{children:N(a)})]}):c(p,{children:[e(be,{level:r}),e(O,{children:e(Te,{level:r})}),e(H,{children:e(E,{text:i,highlightedText:I})}),e(K,{children:F(l)}),e(q,{item:u}),e(M,{children:N(a)})]})]})});function Se({status:t,statusCode:n}){return t==="pending"?e(g,{children:e(pe,{})}):t==="cancelled"?e(g,{children:e(Pe,{})}):!n||n>=300?e(g,{children:e(ne,{})}):e(g,{children:e(fe,{})})}const At=o.memo(function({active:n,logEntry:{id:s,status:i,started:r,duration:a,item:l,protocol:u,uri:h,contentLength:f}}){return c(p,{children:[e(Y,{id:s,active:n}),e($t,{status:i}),e(O,{children:e(b,{color:"info",label:he(u)})}),e(H,{children:e(E,{text:h,highlightedText:z(G)})}),e(oe,{children:e(Ie,{status:i})}),e(ce,{children:w(f)}),e(K,{children:F(a)}),e(q,{item:l}),e(M,{children:N(r)})]})});function $t({status:t}){return t==="pending"?e(g,{children:e(pe,{})}):t==="failed"?e(g,{children:e(ne,{})}):e(g,{children:e(fe,{})})}function Y({id:t,active:n,pending:s,expandable:i,expanded:r}){const a=ye(),l=Ne(),u=o.useCallback(h=>{i&&(h.stopPropagation(),r?a(t):l(t))},[t,i,r,a,l]);return e(g,{onClick:u,children:s?e(Ee,{}):i?r?e(He,{}):e(Me,{}):n?e(qe,{}):e(Oe,{})})}function jt({active:t,last:n}){return e(g,{children:n?t?e(je,{}):e(ze,{}):t?e(Be,{}):e(Ge,{})})}function q({item:t}){return e(Bt,{children:t&&c(p,{children:[e(g,{children:e(zt,{kind:t.kind})}),e(Gt,{children:t.name})]})})}function zt({kind:t}){if(!t)return e(P,{});switch(t){case rt:case st:return e(it,{});case nt:case tt:case Ze:return e(et,{});case Qe:return e(Xe,{});case Ye:case Ve:return e(Je,{});case Ke:return e(We,{});case Fe:return e(Ue,{});default:return k()}}const Bt=D("div")(({theme:t})=>v`
2
- display: flex;
3
- flex: 0 0 ${t.spacing(100)};
4
- flex-direction: row;
5
- align-items: center;
6
- justify-content: flex-start;
7
- padding: ${t.spacing(0,6,0,4)};
8
- `),Gt=D("div")(({theme:t})=>v`
9
- flex: 0 0 ${t.spacing(78)};
10
- overflow: hidden;
11
- margin-left: ${t.spacing(2)};
12
- text-overflow: ellipsis;
13
- white-space: nowrap;
14
- `),O=D("div")(({theme:t})=>v`
15
- flex: 0 0 ${t.spacing(50)};
16
- padding: ${t.spacing(0,6)};
17
- white-space: nowrap;
18
- `),oe=D("div")(({theme:t})=>v`
19
- flex: 0 0 ${t.spacing(40)};
20
- padding: ${t.spacing(0,6)};
21
- white-space: nowrap;
22
- `),ce=D("div")(({theme:t})=>v`
23
- flex: 0 0 ${t.spacing(60)};
24
- padding: ${t.spacing(0,6)};
25
- white-space: nowrap;
26
- text-align: right;
27
- `);function Ft({logEntry:t}){return c(p,{children:[e(Ut,{logEntry:t}),e(V,{}),e(R,{children:t&&e(Kt,{logEntry:t})})]})}function Ut({logEntry:t}){const n=A(),s=B(),i=o.useCallback(async()=>{t.item?.id&&await s(t.item.id)},[t.item?.id,s]);return c(J,{spacing:"right",children:[e(se,{children:"Details"}),e($,{}),t.item?.id&&e(C,{tooltip:"Go to result item",onClick:i,children:e(P,{})}),e(C,{tooltip:"Close",onClick:n,children:e(j,{})})]})}const le="log-entry-details";function Kt({logEntry:t}){const n=te(t.details);return typeof n=="string"?e(U,{id:le,content:n,enforceWordWrap:!0}):e(y,{id:le,content:n})}function Wt({logEntry:t}){const[n,s]=o.useState("transport");return c(p,{children:[e(Vt,{logEntry:t,viewId:n,updateViewId:s}),e(V,{}),e(R,{children:t&&e(Jt,{logEntry:t,viewId:n})})]})}function Vt({logEntry:t,viewId:n,updateViewId:s}){const{Tabs:i,Tab:r,MoreTabs:a}=me(),l=A(),u=B(),h=o.useCallback(async()=>{t.item?.id&&await u(t.item.id,t.id)},[t.id,t.item?.id,u]),f=o.useCallback((I,T)=>{s(T)},[s]);return c(J,{spacing:"right",children:[c(i,{value:n,"aria-label":"Log Entry Details",onChange:f,children:[e(r,{label:"Transport",value:"transport"}),e(r,{label:"Request Body",value:"request-body"}),e(r,{label:"Response Body",value:"response-body"})]}),e(a,{}),e($,{}),t.item?.id&&e(C,{tooltip:"Go to result item",onClick:h,children:e(P,{})}),e(C,{tooltip:"Close",onClick:l,children:e(j,{})})]})}const de="request-body",ee="response-body";function Jt({logEntry:t,viewId:n}){switch(n){case"transport":return e(Yt,{logEntry:t});case"request-body":{const s=te(t.request.body);return typeof s=="string"?e(U,{id:de,content:s}):e(y,{id:de,content:s})}case"response-body":{const s=te(t.response?.body);return(s===void 0||s==="")&&t.response?.error?e(y,{id:ee,content:t.response.error}):typeof s=="string"?e(U,{id:ee,content:s,followNewestLine:!0,scrollPositionInvalidation:t.id}):e(y,{id:ee,content:s})}default:return k()}}function Yt({logEntry:t}){const{request:n,response:s}=t,i=n.headers?Object.entries(n.headers):[],r=s?.headers?Object.entries(s.headers):[],a=s?.contentLength??0;return e(R,{children:e(ie,{children:c(re,{children:[e(S,{title:"General HTTP Information",items:[{key:"url",name:"URL",description:n.uri},{key:"method",name:"Method",description:e(b,{color:"info",label:n.method})},{key:"status",name:"Status",description:e(Ce,{status:t.status})},s?.statusCode&&{key:"status-code",name:"Status Code",description:c(p,{children:[e(Le,{statusCode:s.statusCode}),e(W,{children:s?.statusText&&`(${s.statusText})`})]})},{key:"response-size",name:"Response Size",description:w(a)},{key:"cache",name:"Cache",description:n.cache},n.credentials&&{key:"credentials",name:"Credentials",description:n.credentials},n.referrerPolicy&&{key:"referrer-policy",name:"Referrer Policy",description:n.referrerPolicy}].filter(l=>!!l),collapsible:!0}),i.length>0&&e(S,{title:"Request Headers",items:i.map(([l,u])=>({key:l,name:l,description:typeof u=="string"?u:u.join(", ")})),collapsible:!0}),r.length>0&&e(S,{title:"Response Headers",items:r.map(([l,u])=>({key:l,name:l,description:typeof u=="string"?u:u.join(", ")})),collapsible:!0})]})})})}function Qt({logEntry:t}){return c(p,{children:[e(Xt,{logEntry:t}),e(V,{}),e(R,{children:t&&e(Zt,{logEntry:t})})]})}function Xt({logEntry:t}){const n=A(),s=B(),i=o.useCallback(async()=>{t.item?.id&&await s(t.item.id,t.id)},[t.id,t.item?.id,s]);return c(J,{spacing:"right",children:[e(se,{children:"Transport"}),e($,{}),t.item?.id&&e(C,{tooltip:"Go to result item",onClick:i,children:e(P,{})}),e(C,{tooltip:"Close",onClick:n,children:e(j,{})})]})}function Zt({logEntry:t}){const{details:n}=t;if(!n)return null;const s=n.requestHeaders?Object.entries(n.requestHeaders):[],i=n.responseHeaders?Object.entries(n.responseHeaders):[];return e(R,{children:e(ie,{children:c(re,{children:[e(S,{title:"General HTTP Information",items:[{key:"url",name:"URL",description:n.uri},{key:"method",name:"Method",description:e(b,{color:"info",label:n.method})},{key:"status",name:"Status",description:e(Ce,{status:n.status})},n?.statusCode&&{key:"status-code",name:"Status Code",description:c(p,{children:[e(Le,{statusCode:n.statusCode}),e(W,{children:n?.statusText&&`(${n.statusText})`})]})},{key:"response-size",name:"Response Size",description:w(n.contentLength)},{key:"cache",name:"Cache",description:n.cache},n.credentials&&{key:"credentials",name:"Credentials",description:n.credentials},n.referrerPolicy&&{key:"referrer-policy",name:"Referrer Policy",description:n.referrerPolicy}].filter(r=>!!r),collapsible:!0}),s.length>0&&e(S,{title:"Request Headers",items:s.map(([r,a])=>({key:r,name:r,description:a})),collapsible:!0}),i.length>0&&e(S,{title:"Response Headers",items:i.map(([r,a])=>({key:r,name:r,description:a})),collapsible:!0})]})})})}function en({logEntry:t}){const[n,s]=o.useState("transport");return c(p,{children:[e(tn,{logEntry:t,viewId:n,updateViewId:s}),e(V,{}),e(R,{children:t&&e(rn,{logEntry:t,viewId:n})})]})}function tn({logEntry:t,viewId:n,updateViewId:s}){const{Tabs:i,Tab:r,MoreTabs:a}=me(),l=A(),u=B(),h=o.useCallback(async()=>{t.item?.id&&await u(t.item.id,t.id)},[t.id,t.item?.id,u]),f=o.useCallback((I,T)=>{s(T)},[s]);return c(J,{spacing:"right",children:[c(i,{value:n,"aria-label":"Log Entry Details",onChange:f,children:[e(r,{label:"Transport",value:"transport"}),e(r,{label:"Messages",value:"messages"}),e(r,{label:"Problems",value:"problems"})]}),e(a,{}),e($,{}),t.item?.id&&e(C,{tooltip:"Go to result item",onClick:h,children:e(P,{})}),e(C,{tooltip:"Close",onClick:l,children:e(j,{})})]})}const nn="subscription-data",sn="subscription-error";function rn({logEntry:t,viewId:n}){switch(n){case"messages":return e(U,{id:nn,content:t.data,followNewestLine:!0,scrollPositionInvalidation:t.id});case"problems":return e(y,{id:sn,content:t.error});case"transport":return e(on,{logEntry:t});default:return k()}}function on({logEntry:t}){const n=t.connectionParams?Object.entries(t.connectionParams):[];return e(R,{children:e(ie,{children:c(re,{children:[e(S,{title:"General Information",items:[{key:"url",name:"URL",description:t.uri},{key:"protocol",name:"Protocol",description:c(p,{children:[e(b,{color:"info",label:he(t.protocol)}),c(W,{children:["(",t.protocol,")"]})]})},{key:"status",name:"Status",description:c(p,{children:[e(Ie,{status:t.status}),c(W,{children:["(",t.status,")"]})]})},{key:"messages",name:"Messages",description:t.messages},{key:"response-size",name:"Response Size",description:w(t.contentLength)}],collapsible:!0}),n.length>0&&e(S,{title:"Connection Parameters",items:n.map(([s,i])=>({key:s,name:s,description:i})),collapsible:!0})]})})})}function cn(){const t=ot();return t?e(ct,{$separator:"left",children:e(an,{logEntry:t})}):null}function an({logEntry:t}){const{kind:n}=t;switch(n){case"basic":return e(Ft,{logEntry:t});case"http-request":return e(Wt,{logEntry:t});case"scope":return e(Qt,{logEntry:t});case"subscription-request":return e(en,{logEntry:t});default:return k()}}const ue="log";function ln(){const t=at(),n=Rt(ue),s=lt(),i=kt(ue);return c(dn,{role:"toolbar",children:[e(Dt,{searchTerm:n,onSearchTermChange:i}),e(C,{tooltip:"Clear Log",disabled:!t,onClick:s,children:e(dt,{})})]})}const dn=D("div")(({theme:t})=>v`
28
- display: flex;
29
- flex: 1 1 auto;
30
- flex-direction: row;
31
- max-width: ${t.spacing(300)};
32
- `);function Ln(){const t=wt(),n=A(),s=o.useCallback(()=>{t(),n()},[t,n]);return c(p,{children:[c(ut,{children:[e(un,{}),e($,{}),e(ln,{}),e(hn,{}),e(C,{onClick:s,children:e(j,{})})]}),e(pt,{children:e(ht,{children:e(pn,{})})})]})}function un(){const{all:t}=ft();return c(se,{children:["Log (",t,")"]})}function hn(){const t=vt(),n=_t();return xt()?e(C,{tooltip:"Minimize",onClick:n,children:e(mt,{})}):e(C,{tooltip:"Maximize",onClick:t,children:e(It,{})})}function pn(){const t=gt(),n=yt(),s=Nt();return e(Et,{id:"log",asideCollapsible:!0,asideCollapsed:t===null,asideWidth:n,leftContent:e(fn,{}),mainPane:"left",relativeWidth:!0,rightContent:e(mn,{}),onAsideWidthChange:s})}const fn=o.memo(Ht),mn=o.memo(cn);export{Ln as default};