@cubejs-backend/server-core 0.35.59 → 0.35.61

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 (40) hide show
  1. package/dist/src/core/DevServer.d.ts.map +1 -1
  2. package/dist/src/core/DevServer.js +36 -11
  3. package/dist/src/core/DevServer.js.map +1 -1
  4. package/package.json +7 -7
  5. package/playground/assets/{CachePane-3d9352e4.js → CachePane-9673c7ae.js} +1 -1
  6. package/playground/assets/{GraphiQLSandbox-e1707399.js → GraphiQLSandbox-53d3feeb.js} +2 -2
  7. package/playground/assets/{SchemaReference-b5aba4ba.js → SchemaReference-ef4fa07a.js} +1 -1
  8. package/playground/assets/{SqlQueryTab-5c44a6c7.js → SqlQueryTab-3e2bdfa2.js} +1 -1
  9. package/playground/assets/{brace-fold-eb99ef25.js → brace-fold-6a775a2a.js} +1 -1
  10. package/playground/assets/{closebrackets-173973f4.js → closebrackets-8dae6aa3.js} +1 -1
  11. package/playground/assets/{codemirror-209aaaaa.js → codemirror-3e55eb16.js} +1 -1
  12. package/playground/assets/{comment-c40eda47.js → comment-3e14e4d5.js} +1 -1
  13. package/playground/assets/{dialog-d8e24f8a.js → dialog-a3340072.js} +1 -1
  14. package/playground/assets/{dialog-74fdc56d.js → dialog-b108f254.js} +1 -1
  15. package/playground/assets/{foldgutter-b9987ffe.js → foldgutter-04638de0.js} +1 -1
  16. package/playground/assets/{hint-4bf6b6c9.js → hint-2f6f4aaa.js} +1 -1
  17. package/playground/assets/{hint-85227eef.js → hint-35bc0266.js} +1 -1
  18. package/playground/assets/{index-273ac92b.js → index-21441f59.js} +1 -1
  19. package/playground/assets/{index-4c243b0e.js → index-5b7876a6.js} +1 -1
  20. package/playground/assets/{index-bfe4aca1.js → index-f32c771c.js} +1 -1
  21. package/playground/assets/{info-4852b539.js → info-2f09b005.js} +1 -1
  22. package/playground/assets/{info-addon-a373c333.js → info-addon-ccdc82e5.js} +1 -1
  23. package/playground/assets/{javascript-10986ee6.js → javascript-1746d201.js} +1 -1
  24. package/playground/assets/{jump-6189d261.js → jump-1975be72.js} +1 -1
  25. package/playground/assets/{jump-to-line-89afbc3a.js → jump-to-line-00f030bc.js} +1 -1
  26. package/playground/assets/{lint-f4706595.js → lint-087d334a.js} +1 -1
  27. package/playground/assets/{lint-20c2736e.js → lint-0dc04469.js} +1 -1
  28. package/playground/assets/{lint-61771210.js → lint-d3c9ba5b.js} +1 -1
  29. package/playground/assets/matchbrackets-08ac6e5b.js +1 -0
  30. package/playground/assets/matchbrackets-8cf1c673.js +1 -0
  31. package/playground/assets/{mode-85ef62f6.js → mode-0a6ca237.js} +1 -1
  32. package/playground/assets/{mode-46e569c1.js → mode-55dee06f.js} +1 -1
  33. package/playground/assets/{mode-21587de9.js → mode-6f83539b.js} +1 -1
  34. package/playground/assets/{search-5e8ca4dd.js → search-3880dafb.js} +1 -1
  35. package/playground/assets/{searchcursor-4418e4ab.js → searchcursor-c88732e4.js} +1 -1
  36. package/playground/assets/{searchcursor-ebf28448.js → searchcursor-f596c4b5.js} +1 -1
  37. package/playground/assets/{show-hint-a374ab23.js → show-hint-61147df4.js} +1 -1
  38. package/playground/assets/{sublime-711c7963.js → sublime-4489239f.js} +3 -3
  39. package/playground/index.html +1 -1
  40. package/playground/assets/matchbrackets-ced66c94.js +0 -1
@@ -1 +1 @@
1
- import{g as _}from"./index-bfe4aca1.js";import{a as S}from"./codemirror-209aaaaa.js";function E(h,d){for(var e=0;e<d.length;e++){const t=d[e];if(typeof t!="string"&&!Array.isArray(t)){for(const a in t)if(a!=="default"&&!(a in h)){const n=Object.getOwnPropertyDescriptor(t,a);n&&Object.defineProperty(h,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(h,d){(function(e){e(S)})(function(e){e.registerHelper("fold","brace",function(t,a){var n=a.line,f=t.getLine(n),i;function o(F){for(var T=a.ch,O=0;;){var k=T<=0?-1:f.lastIndexOf(F,T-1);if(k==-1){if(O==1)break;O=1,T=f.length;continue}if(O==1&&k<a.ch)break;if(i=t.getTokenTypeAt(e.Pos(n,k+1)),!/^(comment|string)/.test(i))return k+1;T=k-1}}var u=o("{"),l=o("["),r,s,g;if(u!=null&&(l==null||l>u))g=u,r="{",s="}";else if(l!=null)g=l,r="[",s="]";else return;var P=1,L=t.lastLine(),v,m;t:for(var p=n;p<=L;++p)for(var b=t.getLine(p),c=p==n?g:0;;){var y=b.indexOf(r,c),A=b.indexOf(s,c);if(y<0&&(y=b.length),A<0&&(A=b.length),c=Math.min(y,A),c==b.length)break;if(t.getTokenTypeAt(e.Pos(p,c+1))==i){if(c==y)++P;else if(!--P){v=p,m=c;break t}}++c}if(!(v==null||n==v))return{from:e.Pos(n,g),to:e.Pos(v,m)}}),e.registerHelper("fold","import",function(t,a){function n(r){if(r<t.firstLine()||r>t.lastLine())return null;var s=t.getTokenAt(e.Pos(r,1));if(/\S/.test(s.string)||(s=t.getTokenAt(e.Pos(r,s.end+1))),s.type!="keyword"||s.string!="import")return null;for(var g=r,P=Math.min(t.lastLine(),r+10);g<=P;++g){var L=t.getLine(g),v=L.indexOf(";");if(v!=-1)return{startCh:s.end,end:e.Pos(g,v)}}}var f=a.line,i=n(f),o;if(!i||n(f-1)||(o=n(f-2))&&o.end.line==f-1)return null;for(var u=i.end;;){var l=n(u.line+1);if(l==null)break;u=l.end}return{from:t.clipPos(e.Pos(f,i.startCh+1)),to:u}}),e.registerHelper("fold","include",function(t,a){function n(l){if(l<t.firstLine()||l>t.lastLine())return null;var r=t.getTokenAt(e.Pos(l,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(l,r.end+1))),r.type=="meta"&&r.string.slice(0,8)=="#include")return r.start+8}var f=a.line,i=n(f);if(i==null||n(f-1)!=null)return null;for(var o=f;;){var u=n(o+1);if(u==null)break;++o}return{from:e.Pos(f,i+1),to:t.clipPos(e.Pos(o))}})})})();var j=H.exports;const I=_(j),B=E({__proto__:null,default:I},[j]);export{B as b};
1
+ import{g as _}from"./index-f32c771c.js";import{a as S}from"./codemirror-3e55eb16.js";function E(h,d){for(var e=0;e<d.length;e++){const t=d[e];if(typeof t!="string"&&!Array.isArray(t)){for(const a in t)if(a!=="default"&&!(a in h)){const n=Object.getOwnPropertyDescriptor(t,a);n&&Object.defineProperty(h,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(h,d){(function(e){e(S)})(function(e){e.registerHelper("fold","brace",function(t,a){var n=a.line,f=t.getLine(n),i;function o(F){for(var T=a.ch,O=0;;){var k=T<=0?-1:f.lastIndexOf(F,T-1);if(k==-1){if(O==1)break;O=1,T=f.length;continue}if(O==1&&k<a.ch)break;if(i=t.getTokenTypeAt(e.Pos(n,k+1)),!/^(comment|string)/.test(i))return k+1;T=k-1}}var u=o("{"),l=o("["),r,s,g;if(u!=null&&(l==null||l>u))g=u,r="{",s="}";else if(l!=null)g=l,r="[",s="]";else return;var P=1,L=t.lastLine(),v,m;t:for(var p=n;p<=L;++p)for(var b=t.getLine(p),c=p==n?g:0;;){var y=b.indexOf(r,c),A=b.indexOf(s,c);if(y<0&&(y=b.length),A<0&&(A=b.length),c=Math.min(y,A),c==b.length)break;if(t.getTokenTypeAt(e.Pos(p,c+1))==i){if(c==y)++P;else if(!--P){v=p,m=c;break t}}++c}if(!(v==null||n==v))return{from:e.Pos(n,g),to:e.Pos(v,m)}}),e.registerHelper("fold","import",function(t,a){function n(r){if(r<t.firstLine()||r>t.lastLine())return null;var s=t.getTokenAt(e.Pos(r,1));if(/\S/.test(s.string)||(s=t.getTokenAt(e.Pos(r,s.end+1))),s.type!="keyword"||s.string!="import")return null;for(var g=r,P=Math.min(t.lastLine(),r+10);g<=P;++g){var L=t.getLine(g),v=L.indexOf(";");if(v!=-1)return{startCh:s.end,end:e.Pos(g,v)}}}var f=a.line,i=n(f),o;if(!i||n(f-1)||(o=n(f-2))&&o.end.line==f-1)return null;for(var u=i.end;;){var l=n(u.line+1);if(l==null)break;u=l.end}return{from:t.clipPos(e.Pos(f,i.startCh+1)),to:u}}),e.registerHelper("fold","include",function(t,a){function n(l){if(l<t.firstLine()||l>t.lastLine())return null;var r=t.getTokenAt(e.Pos(l,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(l,r.end+1))),r.type=="meta"&&r.string.slice(0,8)=="#include")return r.start+8}var f=a.line,i=n(f);if(i==null||n(f-1)!=null)return null;for(var o=f;;){var u=n(o+1);if(u==null)break;++o}return{from:e.Pos(f,i+1),to:t.clipPos(e.Pos(o))}})})})();var j=H.exports;const I=_(j),B=E({__proto__:null,default:I},[j]);export{B as b};
@@ -1,2 +1,2 @@
1
- import{g as N}from"./index-bfe4aca1.js";import{a as q}from"./codemirror-209aaaaa.js";function G(O,A){for(var a=0;a<A.length;a++){const d=A[a];if(typeof d!="string"&&!Array.isArray(d)){for(const i in d)if(i!=="default"&&!(i in O)){const g=Object.getOwnPropertyDescriptor(d,i);g&&Object.defineProperty(O,i,g.get?g:{enumerable:!0,get:()=>d[i]})}}}return Object.freeze(Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(O,A){(function(a){a(q)})(function(a){var d={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},i=a.Pos;a.defineOption("autoCloseBrackets",!1,function(e,t,n){n&&n!=a.Init&&(e.removeKeyMap(x),e.state.closeBrackets=null),t&&(E(g(t,"pairs")),e.state.closeBrackets=t,e.addKeyMap(x))});function g(e,t){return t=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[t]!=null?e[t]:d[t]}var x={Backspace:K,Enter:L};function E(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),s="'"+n+"'";x[s]||(x[s]=D(n))}}E(d.pairs+"`");function D(e){return function(t){return $(t,e)}}function y(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var n=e.getModeAt(e.getCursor());return n.closeBrackets||t}function K(e){var t=y(e);if(!t||e.getOption("disableInput"))return a.Pass;for(var n=g(t,"pairs"),s=e.listSelections(),r=0;r<s.length;r++){if(!s[r].empty())return a.Pass;var f=_(e,s[r].head);if(!f||n.indexOf(f)%2!=0)return a.Pass}for(var r=s.length-1;r>=0;r--){var o=s[r].head;e.replaceRange("",i(o.line,o.ch-1),i(o.line,o.ch+1),"+delete")}}function L(e){var t=y(e),n=t&&g(t,"explode");if(!n||e.getOption("disableInput"))return a.Pass;for(var s=e.listSelections(),r=0;r<s.length;r++){if(!s[r].empty())return a.Pass;var f=_(e,s[r].head);if(!f||n.indexOf(f)%2!=0)return a.Pass}e.operation(function(){var o=e.lineSeparator()||`
1
+ import{g as N}from"./index-f32c771c.js";import{a as q}from"./codemirror-3e55eb16.js";function G(O,A){for(var a=0;a<A.length;a++){const d=A[a];if(typeof d!="string"&&!Array.isArray(d)){for(const i in d)if(i!=="default"&&!(i in O)){const g=Object.getOwnPropertyDescriptor(d,i);g&&Object.defineProperty(O,i,g.get?g:{enumerable:!0,get:()=>d[i]})}}}return Object.freeze(Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(O,A){(function(a){a(q)})(function(a){var d={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},i=a.Pos;a.defineOption("autoCloseBrackets",!1,function(e,t,n){n&&n!=a.Init&&(e.removeKeyMap(x),e.state.closeBrackets=null),t&&(E(g(t,"pairs")),e.state.closeBrackets=t,e.addKeyMap(x))});function g(e,t){return t=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[t]!=null?e[t]:d[t]}var x={Backspace:K,Enter:L};function E(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),s="'"+n+"'";x[s]||(x[s]=D(n))}}E(d.pairs+"`");function D(e){return function(t){return $(t,e)}}function y(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var n=e.getModeAt(e.getCursor());return n.closeBrackets||t}function K(e){var t=y(e);if(!t||e.getOption("disableInput"))return a.Pass;for(var n=g(t,"pairs"),s=e.listSelections(),r=0;r<s.length;r++){if(!s[r].empty())return a.Pass;var f=_(e,s[r].head);if(!f||n.indexOf(f)%2!=0)return a.Pass}for(var r=s.length-1;r>=0;r--){var o=s[r].head;e.replaceRange("",i(o.line,o.ch-1),i(o.line,o.ch+1),"+delete")}}function L(e){var t=y(e),n=t&&g(t,"explode");if(!n||e.getOption("disableInput"))return a.Pass;for(var s=e.listSelections(),r=0;r<s.length;r++){if(!s[r].empty())return a.Pass;var f=_(e,s[r].head);if(!f||n.indexOf(f)%2!=0)return a.Pass}e.operation(function(){var o=e.lineSeparator()||`
2
2
  `;e.replaceSelection(o+o,null),k(e,-1),s=e.listSelections();for(var h=0;h<s.length;h++){var S=s[h].head.line;e.indentLine(S,null,!0),e.indentLine(S+1,null,!0)}})}function k(e,t){for(var n=[],s=e.listSelections(),r=0,f=0;f<s.length;f++){var o=s[f];o.head==e.getCursor()&&(r=f);var h=o.head.ch||t>0?{line:o.head.line,ch:o.head.ch+t}:{line:o.head.line-1};n.push({anchor:h,head:h})}e.setSelections(n,r)}function W(e){var t=a.cmpPos(e.anchor,e.head)>0;return{anchor:new i(e.anchor.line,e.anchor.ch+(t?-1:1)),head:new i(e.head.line,e.head.ch+(t?1:-1))}}function $(e,t){var n=y(e);if(!n||e.getOption("disableInput"))return a.Pass;var s=g(n,"pairs"),r=s.indexOf(t);if(r==-1)return a.Pass;for(var f=g(n,"closeBefore"),o=g(n,"triples"),h=s.charAt(r+1)==t,S=e.listSelections(),B=r%2==0,c,R=0;R<S.length;R++){var w=S[R],l=w.head,p,P=e.getRange(l,i(l.line,l.ch+1));if(B&&!w.empty())p="surround";else if((h||!B)&&P==t)h&&z(e,l)?p="both":o.indexOf(t)>=0&&e.getRange(l,i(l.line,l.ch+3))==t+t+t?p="skipThree":p="skip";else if(h&&l.ch>1&&o.indexOf(t)>=0&&e.getRange(i(l.line,l.ch-2),l)==t+t){if(l.ch>2&&/\bstring/.test(e.getTokenTypeAt(i(l.line,l.ch-2))))return a.Pass;p="addFour"}else if(h){var I=l.ch==0?" ":e.getRange(i(l.line,l.ch-1),l);if(!a.isWordChar(P)&&I!=t&&!a.isWordChar(I))p="both";else return a.Pass}else if(B&&(P.length===0||/\s/.test(P)||f.indexOf(P)>-1))p="both";else return a.Pass;if(!c)c=p;else if(c!=p)return a.Pass}var b=r%2?s.charAt(r-1):t,j=r%2?t:s.charAt(r+1);e.operation(function(){if(c=="skip")k(e,1);else if(c=="skipThree")k(e,3);else if(c=="surround"){for(var v=e.getSelections(),u=0;u<v.length;u++)v[u]=b+v[u]+j;e.replaceSelections(v,"around"),v=e.listSelections().slice();for(var u=0;u<v.length;u++)v[u]=W(v[u]);e.setSelections(v)}else c=="both"?(e.replaceSelection(b+j,null),e.triggerElectric(b+j),k(e,-1)):c=="addFour"&&(e.replaceSelection(b+b+b+b,"before"),k(e,1))})}function _(e,t){var n=e.getRange(i(t.line,t.ch-1),i(t.line,t.ch+1));return n.length==2?n:null}function z(e,t){var n=e.getTokenAt(i(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch&&(t.ch==0||!/\bstring/.test(e.getTokenTypeAt(t)))}})})();var F=H.exports;const J=N(F),U=G({__proto__:null,default:J},[F]);export{U as c};
@@ -1,4 +1,4 @@
1
- import{g as au,o as su}from"./index-bfe4aca1.js";function uu(Ut,ci){for(var X=0;X<ci.length;X++){const Te=ci[X];if(typeof Te!="string"&&!Array.isArray(Te)){for(const oe in Te)if(oe!=="default"&&!(oe in Ut)){const yt=Object.getOwnPropertyDescriptor(Te,oe);yt&&Object.defineProperty(Ut,oe,yt.get?yt:{enumerable:!0,get:()=>Te[oe]})}}}return Object.freeze(Object.defineProperty(Ut,Symbol.toStringTag,{value:"Module"}))}var Go={exports:{}};(function(Ut,ci){(function(X,Te){Ut.exports=Te()})(su,function(){var X=navigator.userAgent,Te=navigator.platform,oe=/gecko\/\d/i.test(X),yt=/MSIE \d/.test(X),Dn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),kr=/Edge\/(\d+)/.exec(X),A=yt||Dn||kr,E=A&&(yt?document.documentMode||6:+(kr||Dn)[1]),ie=!kr&&/WebKit\//.test(X),Ko=ie&&/Qt\/\d+\.\d+/.test(X),Tr=!kr&&/Chrome\//.test(X),we=/Opera\//.test(X),Mr=/Apple Computer/.test(navigator.vendor),_o=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),Xo=/PhantomJS/.test(X),Kt=Mr&&(/Mobile\/\w+/.test(X)||navigator.maxTouchPoints>2),Dr=/Android/.test(X),_t=Kt||Dr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),me=Kt||/Mac/.test(Te),Yo=/\bCrOS\b/.test(X),qo=/win/i.test(Te),$e=we&&X.match(/Version\/(\d*\.\d*)/);$e&&($e=Number($e[1])),$e&&$e>=15&&(we=!1,ie=!0);var Nn=me&&(Ko||we&&($e==null||$e<12.11)),di=oe||A&&E>=9;function mt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var et=function(e,t){var i=e.className,r=mt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ge(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function ve(e,t){return Ge(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l<t.length;++l)n.appendChild(t[l]);return n}function bt(e,t,i,r){var n=k(e,t,i,r);return n.setAttribute("role","presentation"),n}var tt;document.createRange?tt=function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n}:tt=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(n){return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function Ue(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function be(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function rt(e,t){var i=e.className;mt(t).test(i)||(e.className+=(i?" ":"")+t)}function pi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!mt(i[r]).test(t)&&(t+=" "+i[r]);return t}var Xt=function(e){e.select()};Kt?Xt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:A&&(Xt=function(e){try{e.select()}catch(t){}});function vi(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function it(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function xe(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var l=r||0,o=n||0;;){var a=e.indexOf(" ",l);if(a<0||a>=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=vi(this.onTimeout,this)};Ke.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ke.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var An=50,Nr={toString:function(){return"CodeMirror.Pass"}},Me={scroll:!1},gi={origin:"*mouse"},Yt={origin:"+move"};function yi(e,t,i){for(var r=0,n=0;;){var l=e.indexOf(" ",r);l==-1&&(l=e.length);var o=l-r;if(l==e.length||n+o>=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Ar=[""];function mi(e){for(;Ar.length<=e;)Ar.push(W(Ar)+" ");return Ar[e]}function W(e){return e[e.length-1]}function Or(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function Zo(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}function On(){}function Wn(e,t){var i;return Object.create?i=Object.create(e):(On.prototype=e,i=new On),t&&it(t,i),i}var Qo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function bi(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Qo.test(e))}function Wr(e,t){return t?t.source.indexOf("\\w")>-1&&bi(e)?!0:t.test(e):bi(e)}function Hn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Jo=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xi(e){return e.charCodeAt(0)>=768&&Jo.test(e)}function Fn(e,t,i){for(;(i<0?t>0:t<e.length)&&xi(e.charAt(t));)t+=i;return t}function qt(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function jo(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;l<e.length;++l){var o=e[l];(o.from<i&&o.to>t||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var Zt=null;function Qt(e,t,i){var r;Zt=null;for(var n=0;n<e.length;++n){var l=e[n];if(l.from<t&&l.to>t)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:Zt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:Zt=n)}return r!=null?r:Zt}var Vo=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p<d;++p)c.push(i(u.charCodeAt(p)));for(var v=0,y=h;v<d;++v){var m=c[v];m=="m"?c[v]=y:y=m}for(var x=0,b=h;x<d;++x){var C=c[x];C=="1"&&b=="r"?c[x]="n":l.test(C)&&(b=C,C=="r"&&(c[x]="R"))}for(var L=1,S=c[0];L<d-1;++L){var N=c[L];N=="+"&&S=="1"&&c[L+1]=="1"?c[L]="1":N==","&&S==c[L+1]&&(S=="1"||S=="n")&&(c[L]=S),S=N}for(var P=0;P<d;++P){var j=c[P];if(j==",")c[P]="N";else if(j=="%"){var B=void 0;for(B=P+1;B<d&&c[B]=="%";++B);for(var pe=P&&c[P-1]=="!"||B<d&&c[B]=="1"?"1":"N",fe=P;fe<B;++fe)c[fe]=pe;P=B-1}}for(var K=0,he=h;K<d;++K){var $=c[K];he=="L"&&$=="1"?c[K]="L":l.test($)&&(he=$)}for(var Y=0;Y<d;++Y)if(n.test(c[Y])){var _=void 0;for(_=Y+1;_<d&&n.test(c[_]);++_);for(var R=(Y?c[Y-1]:h)=="L",ce=(_<d?c[_]:h)=="L",zt=R==ce?R?"L":"R":h,Ve=Y;Ve<_;++Ve)c[Ve]=zt;Y=_-1}for(var re=[],He,V=0;V<d;)if(o.test(c[V])){var Tn=V;for(++V;V<d&&o.test(c[V]);++V);re.push(new s(0,Tn,V))}else{var ze=V,vt=re.length,gt=f=="rtl"?1:0;for(++V;V<d&&c[V]!="L";++V);for(var le=ze;le<V;)if(a.test(c[le])){ze<le&&(re.splice(vt,0,new s(1,ze,le)),vt+=gt);var Gt=le;for(++le;le<V&&a.test(c[le]);++le);re.splice(vt,0,new s(2,Gt,le)),vt+=gt,ze=le}else++le;ze<V&&re.splice(vt,0,new s(1,ze,V))}return f=="ltr"&&(re[0].level==1&&(He=u.match(/^\s+/))&&(re[0].from=He[0].length,re.unshift(new s(0,0,He[0].length))),W(re).level==1&&(He=u.match(/\s+$/))&&(W(re).to-=He[0].length,re.push(new s(0,d-He[0].length,d)))),f=="rtl"?re.reverse():re}}();function Fe(e,t){var i=e.order;return i==null&&(i=e.order=Vo(e.text,t)),i}var Pn=[],T=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Pn).concat(i)}};function Ci(e,t){return e._handlers&&e._handlers[t]||Pn}function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var l=ee(n,i);l>-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=Ci(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),G(e,i||t.type,e,t),wi(t)||t.codemirrorIgnore}function En(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}function Ce(e,t){return Ci(e,t).length>0}function xt(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function In(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function wi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Jt(e){ae(e),In(e)}function Si(e){return e.target||e.srcElement}function Bn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),me&&e.ctrlKey&&t==1&&(t=3),t}var $o=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Li;function ea(e){if(Li==null){var t=k("span","​");ve(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Li=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=Li?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ki;function ta(e){if(ki!=null)return ki;var t=ve(e,document.createTextNode("AخA")),i=tt(t,0,1).getBoundingClientRect(),r=tt(t,1,2).getBoundingClientRect();return Ge(e),!i||i.left==i.right?!1:ki=r.right-i.right<3}var Ti=`
1
+ import{g as au,o as su}from"./index-f32c771c.js";function uu(Ut,ci){for(var X=0;X<ci.length;X++){const Te=ci[X];if(typeof Te!="string"&&!Array.isArray(Te)){for(const oe in Te)if(oe!=="default"&&!(oe in Ut)){const yt=Object.getOwnPropertyDescriptor(Te,oe);yt&&Object.defineProperty(Ut,oe,yt.get?yt:{enumerable:!0,get:()=>Te[oe]})}}}return Object.freeze(Object.defineProperty(Ut,Symbol.toStringTag,{value:"Module"}))}var Go={exports:{}};(function(Ut,ci){(function(X,Te){Ut.exports=Te()})(su,function(){var X=navigator.userAgent,Te=navigator.platform,oe=/gecko\/\d/i.test(X),yt=/MSIE \d/.test(X),Dn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),kr=/Edge\/(\d+)/.exec(X),A=yt||Dn||kr,E=A&&(yt?document.documentMode||6:+(kr||Dn)[1]),ie=!kr&&/WebKit\//.test(X),Ko=ie&&/Qt\/\d+\.\d+/.test(X),Tr=!kr&&/Chrome\//.test(X),we=/Opera\//.test(X),Mr=/Apple Computer/.test(navigator.vendor),_o=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),Xo=/PhantomJS/.test(X),Kt=Mr&&(/Mobile\/\w+/.test(X)||navigator.maxTouchPoints>2),Dr=/Android/.test(X),_t=Kt||Dr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),me=Kt||/Mac/.test(Te),Yo=/\bCrOS\b/.test(X),qo=/win/i.test(Te),$e=we&&X.match(/Version\/(\d*\.\d*)/);$e&&($e=Number($e[1])),$e&&$e>=15&&(we=!1,ie=!0);var Nn=me&&(Ko||we&&($e==null||$e<12.11)),di=oe||A&&E>=9;function mt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var et=function(e,t){var i=e.className,r=mt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ge(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function ve(e,t){return Ge(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l<t.length;++l)n.appendChild(t[l]);return n}function bt(e,t,i,r){var n=k(e,t,i,r);return n.setAttribute("role","presentation"),n}var tt;document.createRange?tt=function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n}:tt=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(n){return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function Ue(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function be(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function rt(e,t){var i=e.className;mt(t).test(i)||(e.className+=(i?" ":"")+t)}function pi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!mt(i[r]).test(t)&&(t+=" "+i[r]);return t}var Xt=function(e){e.select()};Kt?Xt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:A&&(Xt=function(e){try{e.select()}catch(t){}});function vi(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function it(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function xe(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var l=r||0,o=n||0;;){var a=e.indexOf(" ",l);if(a<0||a>=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=vi(this.onTimeout,this)};Ke.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ke.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var An=50,Nr={toString:function(){return"CodeMirror.Pass"}},Me={scroll:!1},gi={origin:"*mouse"},Yt={origin:"+move"};function yi(e,t,i){for(var r=0,n=0;;){var l=e.indexOf(" ",r);l==-1&&(l=e.length);var o=l-r;if(l==e.length||n+o>=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Ar=[""];function mi(e){for(;Ar.length<=e;)Ar.push(W(Ar)+" ");return Ar[e]}function W(e){return e[e.length-1]}function Or(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function Zo(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}function On(){}function Wn(e,t){var i;return Object.create?i=Object.create(e):(On.prototype=e,i=new On),t&&it(t,i),i}var Qo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function bi(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Qo.test(e))}function Wr(e,t){return t?t.source.indexOf("\\w")>-1&&bi(e)?!0:t.test(e):bi(e)}function Hn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Jo=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xi(e){return e.charCodeAt(0)>=768&&Jo.test(e)}function Fn(e,t,i){for(;(i<0?t>0:t<e.length)&&xi(e.charAt(t));)t+=i;return t}function qt(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function jo(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;l<e.length;++l){var o=e[l];(o.from<i&&o.to>t||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var Zt=null;function Qt(e,t,i){var r;Zt=null;for(var n=0;n<e.length;++n){var l=e[n];if(l.from<t&&l.to>t)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:Zt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:Zt=n)}return r!=null?r:Zt}var Vo=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p<d;++p)c.push(i(u.charCodeAt(p)));for(var v=0,y=h;v<d;++v){var m=c[v];m=="m"?c[v]=y:y=m}for(var x=0,b=h;x<d;++x){var C=c[x];C=="1"&&b=="r"?c[x]="n":l.test(C)&&(b=C,C=="r"&&(c[x]="R"))}for(var L=1,S=c[0];L<d-1;++L){var N=c[L];N=="+"&&S=="1"&&c[L+1]=="1"?c[L]="1":N==","&&S==c[L+1]&&(S=="1"||S=="n")&&(c[L]=S),S=N}for(var P=0;P<d;++P){var j=c[P];if(j==",")c[P]="N";else if(j=="%"){var B=void 0;for(B=P+1;B<d&&c[B]=="%";++B);for(var pe=P&&c[P-1]=="!"||B<d&&c[B]=="1"?"1":"N",fe=P;fe<B;++fe)c[fe]=pe;P=B-1}}for(var K=0,he=h;K<d;++K){var $=c[K];he=="L"&&$=="1"?c[K]="L":l.test($)&&(he=$)}for(var Y=0;Y<d;++Y)if(n.test(c[Y])){var _=void 0;for(_=Y+1;_<d&&n.test(c[_]);++_);for(var R=(Y?c[Y-1]:h)=="L",ce=(_<d?c[_]:h)=="L",zt=R==ce?R?"L":"R":h,Ve=Y;Ve<_;++Ve)c[Ve]=zt;Y=_-1}for(var re=[],He,V=0;V<d;)if(o.test(c[V])){var Tn=V;for(++V;V<d&&o.test(c[V]);++V);re.push(new s(0,Tn,V))}else{var ze=V,vt=re.length,gt=f=="rtl"?1:0;for(++V;V<d&&c[V]!="L";++V);for(var le=ze;le<V;)if(a.test(c[le])){ze<le&&(re.splice(vt,0,new s(1,ze,le)),vt+=gt);var Gt=le;for(++le;le<V&&a.test(c[le]);++le);re.splice(vt,0,new s(2,Gt,le)),vt+=gt,ze=le}else++le;ze<V&&re.splice(vt,0,new s(1,ze,V))}return f=="ltr"&&(re[0].level==1&&(He=u.match(/^\s+/))&&(re[0].from=He[0].length,re.unshift(new s(0,0,He[0].length))),W(re).level==1&&(He=u.match(/\s+$/))&&(W(re).to-=He[0].length,re.push(new s(0,d-He[0].length,d)))),f=="rtl"?re.reverse():re}}();function Fe(e,t){var i=e.order;return i==null&&(i=e.order=Vo(e.text,t)),i}var Pn=[],T=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Pn).concat(i)}};function Ci(e,t){return e._handlers&&e._handlers[t]||Pn}function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var l=ee(n,i);l>-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=Ci(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),G(e,i||t.type,e,t),wi(t)||t.codemirrorIgnore}function En(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}function Ce(e,t){return Ci(e,t).length>0}function xt(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function In(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function wi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Jt(e){ae(e),In(e)}function Si(e){return e.target||e.srcElement}function Bn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),me&&e.ctrlKey&&t==1&&(t=3),t}var $o=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Li;function ea(e){if(Li==null){var t=k("span","​");ve(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Li=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=Li?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ki;function ta(e){if(ki!=null)return ki;var t=ve(e,document.createTextNode("AخA")),i=tt(t,0,1).getBoundingClientRect(),r=tt(t,1,2).getBoundingClientRect();return Ge(e),!i||i.left==i.right?!1:ki=r.right-i.right<3}var Ti=`
2
2
 
3
3
  b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(`
4
4
  `,t);n==-1&&(n=e.length);var l=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),o=l.indexOf("\r");o!=-1?(i.push(l.slice(0,o)),t+=o+1):(i.push(l),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},ra=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},ia=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Mi=null;function na(e){if(Mi!=null)return Mi;var t=ve(e,k("span","x")),i=t.getBoundingClientRect(),r=tt(t,0,1).getBoundingClientRect();return Mi=Math.abs(i.left-r.left)>1}var Di={},Ct={};function la(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Di[e]=t}function oa(e,t){Ct[e]=t}function Hr(e){if(typeof e=="string"&&Ct.hasOwnProperty(e))e=Ct[e];else if(e&&typeof e.name=="string"&&Ct.hasOwnProperty(e.name)){var t=Ct[e.name];typeof t=="string"&&(t={name:t}),e=Wn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Hr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Hr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Ni(e,t){t=Hr(t);var i=Di[t.name];if(!i)return Ni(e,"text/plain");var r=i(e,t);if(wt.hasOwnProperty(t.name)){var n=wt[t.name];for(var l in n)n.hasOwnProperty(l)&&(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=n[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var wt={};function aa(e,t){var i=wt.hasOwnProperty(e)?wt[e]:wt[e]={};it(t,i)}function nt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function Ai(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Rn(e,t,i){return e.startState?e.startState(t,i):!0}var U=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};U.prototype.eol=function(){return this.pos>=this.string.length},U.prototype.sol=function(){return this.pos==this.lineStart},U.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},U.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},U.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},U.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},U.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},U.prototype.skipToEnd=function(){this.pos=this.string.length},U.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},U.prototype.backUp=function(e){this.pos-=e},U.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?xe(this.string,this.lineStart,this.tabSize):0)},U.prototype.indentation=function(){return xe(this.string,null,this.tabSize)-(this.lineStart?xe(this.string,this.lineStart,this.tabSize):0)},U.prototype.match=function(e,t,i){if(typeof e=="string"){var r=function(o){return i?o.toLowerCase():o},n=this.string.substr(this.pos,e.length);if(r(n)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var l=this.string.slice(this.pos).match(e);return l&&l.index>0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},U.prototype.current=function(){return this.string.slice(this.start,this.pos)},U.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},U.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},U.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function w(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],l=n.chunkSize();if(t<l){i=n;break}t-=l}return i.lines[t]}function lt(e,t,i){var r=[],n=t.line;return e.iter(t.line,i.line+1,function(l){var o=l.text;n==i.line&&(o=o.slice(0,i.ch)),n==t.line&&(o=o.slice(t.ch)),r.push(o),++n}),r}function Oi(e,t,i){var r=[];return e.iter(t,i,function(n){r.push(n.text)}),r}function De(e,t){var i=t-e.height;if(i)for(var r=e;r;r=r.parent)r.height+=i}function H(e){if(e.parent==null)return null;for(var t=e.parent,i=ee(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var n=0;r.children[n]!=t;++n)i+=r.children[n].chunkSize();return i+t.first}function ot(e,t){var i=e.first;e:do{for(var r=0;r<e.children.length;++r){var n=e.children[r],l=n.height;if(t<l){e=n;continue e}t-=l,i+=n.chunkSize()}return i}while(!e.lines);for(var o=0;o<e.lines.length;++o){var a=e.lines[o],s=a.height;if(t<s)break;t-=s}return i+o}function jt(e,t){return t>=e.first&&t<e.first+e.size}function Wi(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function g(e,t,i){if(i===void 0&&(i=null),!(this instanceof g))return new g(e,t,i);this.line=e,this.ch=t,this.sticky=i}function M(e,t){return e.line-t.line||e.ch-t.ch}function Hi(e,t){return e.sticky==t.sticky&&M(e,t)==0}function Fi(e){return g(e.line,e.ch)}function Fr(e,t){return M(e,t)<0?t:e}function Pr(e,t){return M(e,t)<0?e:t}function zn(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function D(e,t){if(t.line<e.first)return g(e.first,0);var i=e.first+e.size-1;return t.line>i?g(i,w(e,i).text.length):sa(t,w(e,t.line).text.length)}function sa(e,t){var i=e.ch;return i==null||i>t?g(e.line,t):i<0?g(e.line,0):e}function Gn(e,t){for(var i=[],r=0;r<t.length;r++)i[r]=D(e,t[r]);return i}var Er=function(e,t){this.state=e,this.lookAhead=t},Ne=function(e,t,i,r){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};Ne.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ne.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ne.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ne.fromSaved=function(e,t,i){return t instanceof Er?new Ne(e,nt(e.mode,t.state),i,t.lookAhead):new Ne(e,nt(e.mode,t),i)},Ne.prototype.save=function(e){var t=e!==!1?nt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Er(t,this.maxLookAhead):t};function Un(e,t,i,r){var n=[e.state.modeGen],l={};Zn(e,t.text,e.doc.mode,i,function(u,f){return n.push(u,f)},l,r);for(var o=i.state,a=function(u){i.baseTokens=n;var f=e.state.overlays[u],h=1,d=0;i.state=!0,Zn(e,t.text,f.mode,i,function(c,p){for(var v=h;d<c;){var y=n[h];y>c&&n.splice(h,1,c,n[h+1],y),h+=2,d=Math.min(c,y)}if(p)if(f.opaque)n.splice(v,h-v,c,"overlay "+p),h=v+2;else for(;v<h;v+=2){var m=n[v+1];n[v+1]=(m?m+" ":"")+"overlay "+p}},l),i.state=o,i.baseTokens=null,i.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)a(s);return{styles:n,classes:l.bgClass||l.textClass?l:null}}function Kn(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Vt(e,H(t)),n=t.text.length>e.options.maxHighlightLength&&nt(e.doc.mode,r.state),l=Un(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Vt(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new Ne(r,!0,t);var l=ua(e,t,i),o=l>r.first&&w(r,l-1).stateAfter,a=o?Ne.fromSaved(r,o,l):new Ne(r,Rn(r.mode),l);return r.iter(l,t,function(s){Pi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=n.viewFrom&&u<n.viewTo?a.save():null,a.nextLine()}),i&&(r.modeFrontier=a.line),a}function Pi(e,t,i,r){var n=e.doc.mode,l=new U(t,e.options.tabSize,i);for(l.start=l.pos=r||0,t==""&&_n(n,i.state);!l.eol();)Ei(n,l,i.state),l.start=l.pos}function _n(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var i=Ai(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function Ei(e,t,i,r){for(var n=0;n<10;n++){r&&(r[0]=Ai(e,i).mode);var l=e.token(t,i);if(t.pos>t.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var Xn=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Yn(e,t,i,r){var n=e.doc,l=n.mode,o;t=D(n,t);var a=w(n,t.line),s=Vt(e,t.line,i),u=new U(a.text,e.options.tabSize,s),f;for(r&&(f=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,o=Ei(l,u,s.state),r&&f.push(new Xn(u,o,nt(n.mode,s.state)));return r?f:new Xn(u,o,s.state)}function qn(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";t[r]==null?t[r]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+i[2])}return e}function Zn(e,t,i,r,n,l,o){var a=i.flattenSpans;a==null&&(a=e.options.flattenSpans);var s=0,u=null,f=new U(t,e.options.tabSize,r),h,d=e.options.addModeClass&&[null];for(t==""&&qn(_n(i,r.state),l);!f.eol();){if(f.pos>e.options.maxHighlightLength?(a=!1,o&&Pi(e,t,r,f.pos),f.pos=t.length,h=null):h=qn(Ei(i,f,r.state,d),l),d){var c=d[0].name;c&&(h="m-"+(h?c+" "+h:c))}if(!a||u!=h){for(;s<f.start;)s=Math.min(f.start,s+5e3),n(s,u);u=h}f.start=f.pos}for(;s<f.pos;){var p=Math.min(f.pos,s+5e3);n(p,u),s=p}}function ua(e,t,i){for(var r,n,l=e.doc,o=i?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>o;--a){if(a<=l.first)return l.first;var s=w(l,a-1),u=s.stateAfter;if(u&&(!i||a+(u instanceof Er?u.lookAhead:0)<=l.modeFrontier))return a;var f=xe(s.text,null,e.options.tabSize);(n==null||r>f)&&(n=a-1,r=f)}return n}function fa(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,r=t-1;r>i;r--){var n=w(e,r).stateAfter;if(n&&(!(n instanceof Er)||r+n.lookAhead<t)){i=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var Qn=!1,Pe=!1;function ha(){Qn=!0}function ca(){Pe=!0}function Ir(e,t,i){this.marker=e,this.from=t,this.to=i}function $t(e,t){if(e)for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t)return r}}function da(e,t){for(var i,r=0;r<e.length;++r)e[r]!=t&&(i||(i=[])).push(e[r]);return i}function pa(e,t,i){var r=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));r&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function va(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var l=e[n],o=l.marker,a=l.from==null||(o.inclusiveLeft?l.from<=t:l.from<t);if(a||l.from==t&&o.type=="bookmark"&&(!i||!l.marker.insertLeft)){var s=l.to==null||(o.inclusiveRight?l.to>=t:l.to>t);(r||(r=[])).push(new Ir(o,l.from,s?null:l.to))}}return r}function ga(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var l=e[n],o=l.marker,a=l.to==null||(o.inclusiveRight?l.to>=t:l.to>t);if(a||l.from==t&&o.type=="bookmark"&&(!i||l.marker.insertLeft)){var s=l.from==null||(o.inclusiveLeft?l.from<=t:l.from<t);(r||(r=[])).push(new Ir(o,s?null:l.from-t,l.to==null?null:l.to-t))}}return r}function Ii(e,t){if(t.full)return null;var i=jt(e,t.from.line)&&w(e,t.from.line).markedSpans,r=jt(e,t.to.line)&&w(e,t.to.line).markedSpans;if(!i&&!r)return null;var n=t.from.ch,l=t.to.ch,o=M(t.from,t.to)==0,a=va(i,n,o),s=ga(r,l,o),u=t.text.length==1,f=W(t.text).length+(u?n:0);if(a)for(var h=0;h<a.length;++h){var d=a[h];if(d.to==null){var c=$t(s,d.marker);c?u&&(d.to=c.to==null?null:c.to+f):d.to=n}}if(s)for(var p=0;p<s.length;++p){var v=s[p];if(v.to!=null&&(v.to+=f),v.from==null){var y=$t(a,v.marker);y||(v.from=f,u&&(a||(a=[])).push(v))}else v.from+=f,u&&(a||(a=[])).push(v)}a&&(a=Jn(a)),s&&s!=a&&(s=Jn(s));var m=[a];if(!u){var x=t.text.length-2,b;if(x>0&&a)for(var C=0;C<a.length;++C)a[C].to==null&&(b||(b=[])).push(new Ir(a[C].marker,null,null));for(var L=0;L<x;++L)m.push(b);m.push(s)}return m}function Jn(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function ya(e,t,i){var r=null;if(e.iter(t.line,i.line+1,function(c){if(c.markedSpans)for(var p=0;p<c.markedSpans.length;++p){var v=c.markedSpans[p].marker;v.readOnly&&(!r||ee(r,v)==-1)&&(r||(r=[])).push(v)}}),!r)return null;for(var n=[{from:t,to:i}],l=0;l<r.length;++l)for(var o=r[l],a=o.find(0),s=0;s<n.length;++s){var u=n[s];if(!(M(u.to,a.from)<0||M(u.from,a.to)>0)){var f=[s,1],h=M(u.from,a.from),d=M(u.to,a.to);(h<0||!o.inclusiveLeft&&!h)&&f.push({from:u.from,to:a.from}),(d>0||!o.inclusiveRight&&!d)&&f.push({from:a.to,to:u.to}),n.splice.apply(n,f),s+=f.length-3}}return n}function jn(e){var t=e.markedSpans;if(t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function Vn(e,t){if(t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function Br(e){return e.inclusiveLeft?-1:0}function Rr(e){return e.inclusiveRight?1:0}function Bi(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var r=e.find(),n=t.find(),l=M(r.from,n.from)||Br(e)-Br(t);if(l)return-l;var o=M(r.to,n.to)||Rr(e)-Rr(t);return o||t.id-e.id}function $n(e,t){var i=Pe&&e.markedSpans,r;if(i)for(var n=void 0,l=0;l<i.length;++l)n=i[l],n.marker.collapsed&&(t?n.from:n.to)==null&&(!r||Bi(r,n.marker)<0)&&(r=n.marker);return r}function el(e){return $n(e,!0)}function zr(e){return $n(e,!1)}function ma(e,t){var i=Pe&&e.markedSpans,r;if(i)for(var n=0;n<i.length;++n){var l=i[n];l.marker.collapsed&&(l.from==null||l.from<t)&&(l.to==null||l.to>t)&&(!r||Bi(r,l.marker)<0)&&(r=l.marker)}return r}function tl(e,t,i,r,n){var l=w(e,t),o=Pe&&l.markedSpans;if(o)for(var a=0;a<o.length;++a){var s=o[a];if(s.marker.collapsed){var u=s.marker.find(0),f=M(u.from,i)||Br(s.marker)-Br(n),h=M(u.to,r)||Rr(s.marker)-Rr(n);if(!(f>=0&&h<=0||f<=0&&h>=0)&&(f<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.to,i)>=0:M(u.to,i)>0)||f>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.from,r)<=0:M(u.from,r)<0)))return!0}}}function Ae(e){for(var t;t=el(e);)e=t.find(-1,!0).line;return e}function ba(e){for(var t;t=zr(e);)e=t.find(1,!0).line;return e}function xa(e){for(var t,i;t=zr(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Ri(e,t){var i=w(e,t),r=Ae(i);return i==r?t:H(r)}function rl(e,t){if(t>e.lastLine())return t;var i=w(e,t),r;if(!_e(e,i))return t;for(;r=zr(i);)i=r.find(1,!0).line;return H(i)+1}function _e(e,t){var i=Pe&&t.markedSpans;if(i){for(var r=void 0,n=0;n<i.length;++n)if(r=i[n],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&zi(e,t,r))return!0}}}function zi(e,t,i){if(i.to==null){var r=i.marker.find(1,!0);return zi(e,r.line,$t(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var n=void 0,l=0;l<t.markedSpans.length;++l)if(n=t.markedSpans[l],n.marker.collapsed&&!n.marker.widgetNode&&n.from==i.to&&(n.to==null||n.to!=i.from)&&(n.marker.inclusiveLeft||i.marker.inclusiveRight)&&zi(e,t,n))return!0}function Ee(e){e=Ae(e);for(var t=0,i=e.parent,r=0;r<i.lines.length;++r){var n=i.lines[r];if(n==e)break;t+=n.height}for(var l=i.parent;l;i=l,l=i.parent)for(var o=0;o<l.children.length;++o){var a=l.children[o];if(a==i)break;t+=a.height}return t}function Gr(e){if(e.height==0)return 0;for(var t=e.text.length,i,r=e;i=el(r);){var n=i.find(0,!0);r=n.from.line,t+=n.from.ch-n.to.ch}for(r=e;i=zr(r);){var l=i.find(0,!0);t-=r.text.length-l.from.ch,r=l.to.line,t+=r.text.length-l.to.ch}return t}function Gi(e){var t=e.display,i=e.doc;t.maxLine=w(i,i.first),t.maxLineLength=Gr(t.maxLine),t.maxLineChanged=!0,i.iter(function(r){var n=Gr(r);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var St=function(e,t,i){this.text=e,Vn(this,t),this.height=i?i(this):1};St.prototype.lineNo=function(){return H(this)},xt(St);function Ca(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),jn(e),Vn(e,i);var n=r?r(e):1;n!=e.height&&De(e,n)}function wa(e){e.parent=null,jn(e)}var Sa={},La={};function il(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?La:Sa;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function nl(e,t){var i=bt("span",null,null,ie?"padding-right: .1px":null),r={pre:bt("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var l=n?t.rest[n-1]:t.line,o=void 0;r.pos=0,r.addToken=Ta,ta(e.display.measure)&&(o=Fe(l,e.doc.direction))&&(r.addToken=Da(r.addToken,o)),r.map=[];var a=t!=e.display.externalMeasured&&H(l);Na(l,r,Kn(e,l,a)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=pi(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=pi(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ea(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ie){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return G(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=pi(r.pre.className,r.textClass||"")),r}function ka(e){var t=k("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ta(e,t,i,r,n,l,o){if(t){var a=e.splitSpaces?Ma(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,f;if(!s.test(t))e.col+=t.length,f=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,f),A&&E<9&&(u=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var d=s.exec(t),c=d?d.index-h:t.length-h;if(c){var p=document.createTextNode(a.slice(h,h+c));A&&E<9?f.appendChild(k("span",[p])):f.appendChild(p),e.map.push(e.pos,e.pos+c,p),e.col+=c,e.pos+=c}if(!d)break;h+=c+1;var v=void 0;if(d[0]==" "){var y=e.cm.options.tabSize,m=y-e.col%y;v=f.appendChild(k("span",mi(m),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text"," "),e.col+=m}else d[0]=="\r"||d[0]==`
@@ -1,2 +1,2 @@
1
- import{g as q}from"./index-bfe4aca1.js";import{a as w}from"./codemirror-209aaaaa.js";function G(A,_){for(var u=0;u<_.length;u++){const b=_[u];if(typeof b!="string"&&!Array.isArray(b)){for(const s in b)if(s!=="default"&&!(s in A)){const r=Object.getOwnPropertyDescriptor(b,s);r&&Object.defineProperty(A,s,r.get?r:{enumerable:!0,get:()=>b[s]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(A,_){(function(u){u(w)})(function(u){var b={},s=/[^\s\u00a0]/,r=u.Pos,B=u.cmpPos;function D(t){var l=t.search(s);return l==-1?0:l}u.commands.toggleComment=function(t){t.toggleComment()},u.defineExtension("toggleComment",function(t){t||(t=b);for(var l=this,n=1/0,e=this.listSelections(),f=null,m=e.length-1;m>=0;m--){var a=e[m].from(),i=e[m].to();a.line>=n||(i.line>=n&&(i=r(n,0)),n=a.line,f==null?l.uncomment(a,i,t)?f="un":(l.lineComment(a,i,t),f="line"):f=="un"?l.uncomment(a,i,t):l.lineComment(a,i,t))}});function F(t,l,n){return/\bstring\b/.test(t.getTokenTypeAt(r(l.line,0)))&&!/^[\'\"\`]/.test(n)}function M(t,l){var n=t.getMode();return n.useInnerComments===!1||!n.innerMode?n:t.getModeAt(l)}u.defineExtension("lineComment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=e.getLine(t.line);if(!(m==null||F(e,t,m))){var a=n.lineComment||f.lineComment;if(!a){(n.blockCommentStart||f.blockCommentStart)&&(n.fullLines=!0,e.blockComment(t,l,n));return}var i=Math.min(l.ch!=0||l.line==t.line?l.line+1:l.line,e.lastLine()+1),C=n.padding==null?" ":n.padding,g=n.commentBlankLines||t.line==l.line;e.operation(function(){if(n.indent){for(var d=null,c=t.line;c<i;++c){var v=e.getLine(c),h=v.slice(0,D(v));(d==null||d.length>h.length)&&(d=h)}for(var c=t.line;c<i;++c){var v=e.getLine(c),o=d.length;!g&&!s.test(v)||(v.slice(0,o)!=d&&(o=D(v)),e.replaceRange(d+a+C,r(c,0),r(c,o)))}}else for(var c=t.line;c<i;++c)(g||s.test(e.getLine(c)))&&e.replaceRange(a+C,r(c,0))})}}),u.defineExtension("blockComment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=n.blockCommentStart||f.blockCommentStart,a=n.blockCommentEnd||f.blockCommentEnd;if(!m||!a){(n.lineComment||f.lineComment)&&n.fullLines!=!1&&e.lineComment(t,l,n);return}if(!/\bcomment\b/.test(e.getTokenTypeAt(r(t.line,0)))){var i=Math.min(l.line,e.lastLine());i!=t.line&&l.ch==0&&s.test(e.getLine(i))&&--i;var C=n.padding==null?" ":n.padding;t.line>i||e.operation(function(){if(n.fullLines!=!1){var g=s.test(e.getLine(i));e.replaceRange(C+a,r(i)),e.replaceRange(m+C,r(t.line,0));var d=n.blockCommentLead||f.blockCommentLead;if(d!=null)for(var c=t.line+1;c<=i;++c)(c!=i||g)&&e.replaceRange(d+C,r(c,0))}else{var v=B(e.getCursor("to"),l)==0,h=!e.somethingSelected();e.replaceRange(a,l),v&&e.setSelection(h?l:e.getCursor("from"),l),e.replaceRange(m,t)}})}}),u.defineExtension("uncomment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=Math.min(l.ch!=0||l.line==t.line?l.line:l.line-1,e.lastLine()),a=Math.min(t.line,m),i=n.lineComment||f.lineComment,C=[],g=n.padding==null?" ":n.padding,d;e:{if(!i)break e;for(var c=a;c<=m;++c){var v=e.getLine(c),h=v.indexOf(i);if(h>-1&&!/comment/.test(e.getTokenTypeAt(r(c,h+1)))&&(h=-1),h==-1&&s.test(v)||h>-1&&s.test(v.slice(0,h)))break e;C.push(v)}if(e.operation(function(){for(var k=a;k<=m;++k){var x=C[k-a],p=x.indexOf(i),L=p+i.length;p<0||(x.slice(L,L+g.length)==g&&(L+=g.length),d=!0,e.replaceRange("",r(k,p),r(k,L)))}}),d)return!0}var o=n.blockCommentStart||f.blockCommentStart,S=n.blockCommentEnd||f.blockCommentEnd;if(!o||!S)return!1;var P=n.blockCommentLead||f.blockCommentLead,E=e.getLine(a),T=E.indexOf(o);if(T==-1)return!1;var j=m==a?E:e.getLine(m),O=j.indexOf(S,m==a?T+o.length:0),N=r(a,T+1),W=r(m,O+1);if(O==-1||!/comment/.test(e.getTokenTypeAt(N))||!/comment/.test(e.getTokenTypeAt(W))||e.getRange(N,W,`
1
+ import{g as q}from"./index-f32c771c.js";import{a as w}from"./codemirror-3e55eb16.js";function G(A,_){for(var u=0;u<_.length;u++){const b=_[u];if(typeof b!="string"&&!Array.isArray(b)){for(const s in b)if(s!=="default"&&!(s in A)){const r=Object.getOwnPropertyDescriptor(b,s);r&&Object.defineProperty(A,s,r.get?r:{enumerable:!0,get:()=>b[s]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(A,_){(function(u){u(w)})(function(u){var b={},s=/[^\s\u00a0]/,r=u.Pos,B=u.cmpPos;function D(t){var l=t.search(s);return l==-1?0:l}u.commands.toggleComment=function(t){t.toggleComment()},u.defineExtension("toggleComment",function(t){t||(t=b);for(var l=this,n=1/0,e=this.listSelections(),f=null,m=e.length-1;m>=0;m--){var a=e[m].from(),i=e[m].to();a.line>=n||(i.line>=n&&(i=r(n,0)),n=a.line,f==null?l.uncomment(a,i,t)?f="un":(l.lineComment(a,i,t),f="line"):f=="un"?l.uncomment(a,i,t):l.lineComment(a,i,t))}});function F(t,l,n){return/\bstring\b/.test(t.getTokenTypeAt(r(l.line,0)))&&!/^[\'\"\`]/.test(n)}function M(t,l){var n=t.getMode();return n.useInnerComments===!1||!n.innerMode?n:t.getModeAt(l)}u.defineExtension("lineComment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=e.getLine(t.line);if(!(m==null||F(e,t,m))){var a=n.lineComment||f.lineComment;if(!a){(n.blockCommentStart||f.blockCommentStart)&&(n.fullLines=!0,e.blockComment(t,l,n));return}var i=Math.min(l.ch!=0||l.line==t.line?l.line+1:l.line,e.lastLine()+1),C=n.padding==null?" ":n.padding,g=n.commentBlankLines||t.line==l.line;e.operation(function(){if(n.indent){for(var d=null,c=t.line;c<i;++c){var v=e.getLine(c),h=v.slice(0,D(v));(d==null||d.length>h.length)&&(d=h)}for(var c=t.line;c<i;++c){var v=e.getLine(c),o=d.length;!g&&!s.test(v)||(v.slice(0,o)!=d&&(o=D(v)),e.replaceRange(d+a+C,r(c,0),r(c,o)))}}else for(var c=t.line;c<i;++c)(g||s.test(e.getLine(c)))&&e.replaceRange(a+C,r(c,0))})}}),u.defineExtension("blockComment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=n.blockCommentStart||f.blockCommentStart,a=n.blockCommentEnd||f.blockCommentEnd;if(!m||!a){(n.lineComment||f.lineComment)&&n.fullLines!=!1&&e.lineComment(t,l,n);return}if(!/\bcomment\b/.test(e.getTokenTypeAt(r(t.line,0)))){var i=Math.min(l.line,e.lastLine());i!=t.line&&l.ch==0&&s.test(e.getLine(i))&&--i;var C=n.padding==null?" ":n.padding;t.line>i||e.operation(function(){if(n.fullLines!=!1){var g=s.test(e.getLine(i));e.replaceRange(C+a,r(i)),e.replaceRange(m+C,r(t.line,0));var d=n.blockCommentLead||f.blockCommentLead;if(d!=null)for(var c=t.line+1;c<=i;++c)(c!=i||g)&&e.replaceRange(d+C,r(c,0))}else{var v=B(e.getCursor("to"),l)==0,h=!e.somethingSelected();e.replaceRange(a,l),v&&e.setSelection(h?l:e.getCursor("from"),l),e.replaceRange(m,t)}})}}),u.defineExtension("uncomment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=Math.min(l.ch!=0||l.line==t.line?l.line:l.line-1,e.lastLine()),a=Math.min(t.line,m),i=n.lineComment||f.lineComment,C=[],g=n.padding==null?" ":n.padding,d;e:{if(!i)break e;for(var c=a;c<=m;++c){var v=e.getLine(c),h=v.indexOf(i);if(h>-1&&!/comment/.test(e.getTokenTypeAt(r(c,h+1)))&&(h=-1),h==-1&&s.test(v)||h>-1&&s.test(v.slice(0,h)))break e;C.push(v)}if(e.operation(function(){for(var k=a;k<=m;++k){var x=C[k-a],p=x.indexOf(i),L=p+i.length;p<0||(x.slice(L,L+g.length)==g&&(L+=g.length),d=!0,e.replaceRange("",r(k,p),r(k,L)))}}),d)return!0}var o=n.blockCommentStart||f.blockCommentStart,S=n.blockCommentEnd||f.blockCommentEnd;if(!o||!S)return!1;var P=n.blockCommentLead||f.blockCommentLead,E=e.getLine(a),T=E.indexOf(o);if(T==-1)return!1;var j=m==a?E:e.getLine(m),O=j.indexOf(S,m==a?T+o.length:0),N=r(a,T+1),W=r(m,O+1);if(O==-1||!/comment/.test(e.getTokenTypeAt(N))||!/comment/.test(e.getTokenTypeAt(W))||e.getRange(N,W,`
2
2
  `).indexOf(S)>-1)return!1;var y=E.lastIndexOf(o,t.ch),R=y==-1?-1:E.slice(0,t.ch).indexOf(S,y+o.length);if(y!=-1&&R!=-1&&R+S.length!=t.ch)return!1;R=j.indexOf(S,l.ch);var $=j.slice(l.ch).lastIndexOf(o,R-l.ch);return y=R==-1||$==-1?-1:l.ch+$,R!=-1&&y!=-1&&y!=l.ch?!1:(e.operation(function(){e.replaceRange("",r(m,O-(g&&j.slice(O-g.length,O)==g?g.length:0)),r(m,O+S.length));var k=T+o.length;if(g&&E.slice(k,k+g.length)==g&&(k+=g.length),e.replaceRange("",r(a,T),r(a,k)),P)for(var x=a+1;x<=m;++x){var p=e.getLine(x),L=p.indexOf(P);if(!(L==-1||s.test(p.slice(0,L)))){var I=L+P.length;g&&p.slice(I,I+g.length)==g&&(I+=g.length),e.replaceRange("",r(x,L),r(x,I))}}}),!0)})})})();var z=H.exports;const J=q(z),U=G({__proto__:null,default:J},[z]);export{U as c};
@@ -1 +1 @@
1
- import{a as h}from"./codemirror-209aaaaa.js";var m={exports:{}},p;function x(){return p||(p=1,function(y,E){(function(n){n(h)})(function(n){function r(f,o,e){var u=f.getWrapperElement(),l;return l=u.appendChild(document.createElement("div")),e?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof o=="string"?l.innerHTML=o:l.appendChild(o),n.addClass(u,"dialog-opened"),l}function d(f,o){f.state.currentNotificationClose&&f.state.currentNotificationClose(),f.state.currentNotificationClose=o}n.defineExtension("openDialog",function(f,o,e){e||(e={}),d(this,null);var u=r(this,f,e.bottom),l=!1,c=this;function i(t){if(typeof t=="string")a.value=t;else{if(l)return;l=!0,n.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),c.focus(),e.onClose&&e.onClose(u)}}var a=u.getElementsByTagName("input")[0],s;return a?(a.focus(),e.value&&(a.value=e.value,e.selectValueOnOpen!==!1&&a.select()),e.onInput&&n.on(a,"input",function(t){e.onInput(t,a.value,i)}),e.onKeyUp&&n.on(a,"keyup",function(t){e.onKeyUp(t,a.value,i)}),n.on(a,"keydown",function(t){e&&e.onKeyDown&&e.onKeyDown(t,a.value,i)||((t.keyCode==27||e.closeOnEnter!==!1&&t.keyCode==13)&&(a.blur(),n.e_stop(t),i()),t.keyCode==13&&o(a.value,t))}),e.closeOnBlur!==!1&&n.on(u,"focusout",function(t){t.relatedTarget!==null&&i()})):(s=u.getElementsByTagName("button")[0])&&(n.on(s,"click",function(){i(),c.focus()}),e.closeOnBlur!==!1&&n.on(s,"blur",i),s.focus()),i}),n.defineExtension("openConfirm",function(f,o,e){d(this,null);var u=r(this,f,e&&e.bottom),l=u.getElementsByTagName("button"),c=!1,i=this,a=1;function s(){c||(c=!0,n.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),i.focus())}l[0].focus();for(var t=0;t<l.length;++t){var v=l[t];(function(g){n.on(v,"click",function(N){n.e_preventDefault(N),s(),g&&g(i)})})(o[t]),n.on(v,"blur",function(){--a,setTimeout(function(){a<=0&&s()},200)}),n.on(v,"focus",function(){++a})}}),n.defineExtension("openNotification",function(f,o){d(this,i);var e=r(this,f,o&&o.bottom),u=!1,l,c=o&&typeof o.duration!="undefined"?o.duration:5e3;function i(){u||(u=!0,clearTimeout(l),n.rmClass(e.parentNode,"dialog-opened"),e.parentNode.removeChild(e))}return n.on(e,"click",function(a){n.e_preventDefault(a),i()}),c&&(l=setTimeout(i,c)),i})})}()),m.exports}export{x as r};
1
+ import{a as h}from"./codemirror-3e55eb16.js";var m={exports:{}},p;function x(){return p||(p=1,function(y,E){(function(n){n(h)})(function(n){function r(f,o,e){var u=f.getWrapperElement(),l;return l=u.appendChild(document.createElement("div")),e?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof o=="string"?l.innerHTML=o:l.appendChild(o),n.addClass(u,"dialog-opened"),l}function d(f,o){f.state.currentNotificationClose&&f.state.currentNotificationClose(),f.state.currentNotificationClose=o}n.defineExtension("openDialog",function(f,o,e){e||(e={}),d(this,null);var u=r(this,f,e.bottom),l=!1,c=this;function i(t){if(typeof t=="string")a.value=t;else{if(l)return;l=!0,n.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),c.focus(),e.onClose&&e.onClose(u)}}var a=u.getElementsByTagName("input")[0],s;return a?(a.focus(),e.value&&(a.value=e.value,e.selectValueOnOpen!==!1&&a.select()),e.onInput&&n.on(a,"input",function(t){e.onInput(t,a.value,i)}),e.onKeyUp&&n.on(a,"keyup",function(t){e.onKeyUp(t,a.value,i)}),n.on(a,"keydown",function(t){e&&e.onKeyDown&&e.onKeyDown(t,a.value,i)||((t.keyCode==27||e.closeOnEnter!==!1&&t.keyCode==13)&&(a.blur(),n.e_stop(t),i()),t.keyCode==13&&o(a.value,t))}),e.closeOnBlur!==!1&&n.on(u,"focusout",function(t){t.relatedTarget!==null&&i()})):(s=u.getElementsByTagName("button")[0])&&(n.on(s,"click",function(){i(),c.focus()}),e.closeOnBlur!==!1&&n.on(s,"blur",i),s.focus()),i}),n.defineExtension("openConfirm",function(f,o,e){d(this,null);var u=r(this,f,e&&e.bottom),l=u.getElementsByTagName("button"),c=!1,i=this,a=1;function s(){c||(c=!0,n.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),i.focus())}l[0].focus();for(var t=0;t<l.length;++t){var v=l[t];(function(g){n.on(v,"click",function(N){n.e_preventDefault(N),s(),g&&g(i)})})(o[t]),n.on(v,"blur",function(){--a,setTimeout(function(){a<=0&&s()},200)}),n.on(v,"focus",function(){++a})}}),n.defineExtension("openNotification",function(f,o){d(this,i);var e=r(this,f,o&&o.bottom),u=!1,l,c=o&&typeof o.duration!="undefined"?o.duration:5e3;function i(){u||(u=!0,clearTimeout(l),n.rmClass(e.parentNode,"dialog-opened"),e.parentNode.removeChild(e))}return n.on(e,"click",function(a){n.e_preventDefault(a),i()}),c&&(l=setTimeout(i,c)),i})})}()),m.exports}export{x as r};
@@ -1 +1 @@
1
- import{g as f}from"./index-bfe4aca1.js";import{r as s}from"./dialog-d8e24f8a.js";function g(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=s();const l=f(n),u=g({__proto__:null,default:l},[n]);export{u as d};
1
+ import{g as f}from"./index-f32c771c.js";import{r as s}from"./dialog-a3340072.js";function g(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=s();const l=f(n),u=g({__proto__:null,default:l},[n]);export{u as d};
@@ -1 +1 @@
1
- import{g as A}from"./index-bfe4aca1.js";import{a as U}from"./codemirror-209aaaaa.js";function z(w,x){for(var i=0;i<x.length;i++){const d=x[i];if(typeof d!="string"&&!Array.isArray(d)){for(const p in d)if(p!=="default"&&!(p in w)){const F=Object.getOwnPropertyDescriptor(d,p);F&&Object.defineProperty(w,p,F.get?F:{enumerable:!0,get:()=>d[p]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}},T={exports:{}},b;function j(){return b||(b=1,function(w,x){(function(i){i(U)})(function(i){function d(e,r,f,a){if(f&&f.call){var s=f;f=null}else var s=c(e,f,"rangeFinder");typeof r=="number"&&(r=i.Pos(r,0));var O=c(e,f,"minFoldSize");function k(l){var o=s(e,r);if(!o||o.to.line-o.from.line<O)return null;if(a==="fold")return o;for(var g=e.findMarksAt(o.from),v=0;v<g.length;++v)if(g[v].__isFold){if(!l)return null;o.cleared=!0,g[v].clear()}return o}var u=k(!0);if(c(e,f,"scanUp"))for(;!u&&r.line>e.firstLine();)r=i.Pos(r.line-1,0),u=k(!1);if(!(!u||u.cleared||a==="unfold")){var t=p(e,f,u);i.on(t,"mousedown",function(l){n.clear(),i.e_preventDefault(l)});var n=e.markText(u.from,u.to,{replacedWith:t,clearOnEnter:c(e,f,"clearOnEnter"),__isFold:!0});n.on("clear",function(l,o){i.signal(e,"unfold",e,l,o)}),i.signal(e,"fold",e,u.from,u.to)}}function p(e,r,f){var a=c(e,r,"widget");if(typeof a=="function"&&(a=a(f.from,f.to)),typeof a=="string"){var s=document.createTextNode(a);a=document.createElement("span"),a.appendChild(s),a.className="CodeMirror-foldmarker"}else a&&(a=a.cloneNode(!0));return a}i.newFoldFunction=function(e,r){return function(f,a){d(f,a,{rangeFinder:e,widget:r})}},i.defineExtension("foldCode",function(e,r,f){d(this,e,r,f)}),i.defineExtension("isFolded",function(e){for(var r=this.findMarksAt(e),f=0;f<r.length;++f)if(r[f].__isFold)return!0}),i.commands.toggleFold=function(e){e.foldCode(e.getCursor())},i.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},i.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},i.commands.foldAll=function(e){e.operation(function(){for(var r=e.firstLine(),f=e.lastLine();r<=f;r++)e.foldCode(i.Pos(r,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(e){e.operation(function(){for(var r=e.firstLine(),f=e.lastLine();r<=f;r++)e.foldCode(i.Pos(r,0),{scanUp:!1},"unfold")})},i.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(r,f){for(var a=0;a<e.length;++a){var s=e[a](r,f);if(s)return s}}}),i.registerHelper("fold","auto",function(e,r){for(var f=e.getHelpers(r,"fold"),a=0;a<f.length;a++){var s=f[a](e,r);if(s)return s}});var F={rangeFinder:i.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};i.defineOption("foldOptions",null);function c(e,r,f){if(r&&r[f]!==void 0)return r[f];var a=e.options.foldOptions;return a&&a[f]!==void 0?a[f]:F[f]}i.defineExtension("foldOption",function(e,r){return c(this,e,r)})})}()),T.exports}(function(w,x){(function(i){i(U,j())})(function(i){i.defineOption("foldGutter",!1,function(t,n,l){l&&l!=i.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",s),t.off("changes",O),t.off("viewportChange",k),t.off("fold",u),t.off("unfold",u),t.off("swapDoc",O)),n&&(t.state.foldGutter=new p(F(n)),a(t),t.on("gutterClick",s),t.on("changes",O),t.on("viewportChange",k),t.on("fold",u),t.on("unfold",u),t.on("swapDoc",O))});var d=i.Pos;function p(t){this.options=t,this.from=this.to=0}function F(t){return t===!0&&(t={}),t.gutter==null&&(t.gutter="CodeMirror-foldgutter"),t.indicatorOpen==null&&(t.indicatorOpen="CodeMirror-foldgutter-open"),t.indicatorFolded==null&&(t.indicatorFolded="CodeMirror-foldgutter-folded"),t}function c(t,n){for(var l=t.findMarks(d(n,0),d(n+1,0)),o=0;o<l.length;++o)if(l[o].__isFold){var g=l[o].find(-1);if(g&&g.line===n)return l[o]}}function e(t){if(typeof t=="string"){var n=document.createElement("div");return n.className=t+" CodeMirror-guttermarker-subtle",n}else return t.cloneNode(!0)}function r(t,n,l){var o=t.state.foldGutter.options,g=n-1,v=t.foldOption(o,"minFoldSize"),_=t.foldOption(o,"rangeFinder"),G=typeof o.indicatorFolded=="string"&&f(o.indicatorFolded),E=typeof o.indicatorOpen=="string"&&f(o.indicatorOpen);t.eachLine(n,l,function(S){++g;var y=null,h=S.gutterMarkers;if(h&&(h=h[o.gutter]),c(t,g)){if(G&&h&&G.test(h.className))return;y=e(o.indicatorFolded)}else{var P=d(g,0),m=_&&_(t,P);if(m&&m.to.line-m.from.line>=v){if(E&&h&&E.test(h.className))return;y=e(o.indicatorOpen)}}!y&&!h||t.setGutterMarker(S,o.gutter,y)})}function f(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}function a(t){var n=t.getViewport(),l=t.state.foldGutter;l&&(t.operation(function(){r(t,n.from,n.to)}),l.from=n.from,l.to=n.to)}function s(t,n,l){var o=t.state.foldGutter;if(o){var g=o.options;if(l==g.gutter){var v=c(t,n);v?v.clear():t.foldCode(d(n,0),g)}}}function O(t){var n=t.state.foldGutter;if(n){var l=n.options;n.from=n.to=0,clearTimeout(n.changeUpdate),n.changeUpdate=setTimeout(function(){a(t)},l.foldOnChangeTimeSpan||600)}}function k(t){var n=t.state.foldGutter;if(n){var l=n.options;clearTimeout(n.changeUpdate),n.changeUpdate=setTimeout(function(){var o=t.getViewport();n.from==n.to||o.from-n.to>20||n.from-o.to>20?a(t):t.operation(function(){o.from<n.from&&(r(t,o.from,n.from),n.from=o.from),o.to>n.to&&(r(t,n.to,o.to),n.to=o.to)})},l.updateViewportTimeSpan||400)}}function u(t,n){var l=t.state.foldGutter;if(l){var o=n.line;o>=l.from&&o<l.to&&r(t,o,o+1)}}})})();var N=L.exports;const D=A(N),C=z({__proto__:null,default:D},[N]);export{C as f};
1
+ import{g as A}from"./index-f32c771c.js";import{a as U}from"./codemirror-3e55eb16.js";function z(w,x){for(var i=0;i<x.length;i++){const d=x[i];if(typeof d!="string"&&!Array.isArray(d)){for(const p in d)if(p!=="default"&&!(p in w)){const F=Object.getOwnPropertyDescriptor(d,p);F&&Object.defineProperty(w,p,F.get?F:{enumerable:!0,get:()=>d[p]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}},T={exports:{}},b;function j(){return b||(b=1,function(w,x){(function(i){i(U)})(function(i){function d(e,r,f,a){if(f&&f.call){var s=f;f=null}else var s=c(e,f,"rangeFinder");typeof r=="number"&&(r=i.Pos(r,0));var O=c(e,f,"minFoldSize");function k(l){var o=s(e,r);if(!o||o.to.line-o.from.line<O)return null;if(a==="fold")return o;for(var g=e.findMarksAt(o.from),v=0;v<g.length;++v)if(g[v].__isFold){if(!l)return null;o.cleared=!0,g[v].clear()}return o}var u=k(!0);if(c(e,f,"scanUp"))for(;!u&&r.line>e.firstLine();)r=i.Pos(r.line-1,0),u=k(!1);if(!(!u||u.cleared||a==="unfold")){var t=p(e,f,u);i.on(t,"mousedown",function(l){n.clear(),i.e_preventDefault(l)});var n=e.markText(u.from,u.to,{replacedWith:t,clearOnEnter:c(e,f,"clearOnEnter"),__isFold:!0});n.on("clear",function(l,o){i.signal(e,"unfold",e,l,o)}),i.signal(e,"fold",e,u.from,u.to)}}function p(e,r,f){var a=c(e,r,"widget");if(typeof a=="function"&&(a=a(f.from,f.to)),typeof a=="string"){var s=document.createTextNode(a);a=document.createElement("span"),a.appendChild(s),a.className="CodeMirror-foldmarker"}else a&&(a=a.cloneNode(!0));return a}i.newFoldFunction=function(e,r){return function(f,a){d(f,a,{rangeFinder:e,widget:r})}},i.defineExtension("foldCode",function(e,r,f){d(this,e,r,f)}),i.defineExtension("isFolded",function(e){for(var r=this.findMarksAt(e),f=0;f<r.length;++f)if(r[f].__isFold)return!0}),i.commands.toggleFold=function(e){e.foldCode(e.getCursor())},i.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},i.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},i.commands.foldAll=function(e){e.operation(function(){for(var r=e.firstLine(),f=e.lastLine();r<=f;r++)e.foldCode(i.Pos(r,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(e){e.operation(function(){for(var r=e.firstLine(),f=e.lastLine();r<=f;r++)e.foldCode(i.Pos(r,0),{scanUp:!1},"unfold")})},i.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(r,f){for(var a=0;a<e.length;++a){var s=e[a](r,f);if(s)return s}}}),i.registerHelper("fold","auto",function(e,r){for(var f=e.getHelpers(r,"fold"),a=0;a<f.length;a++){var s=f[a](e,r);if(s)return s}});var F={rangeFinder:i.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};i.defineOption("foldOptions",null);function c(e,r,f){if(r&&r[f]!==void 0)return r[f];var a=e.options.foldOptions;return a&&a[f]!==void 0?a[f]:F[f]}i.defineExtension("foldOption",function(e,r){return c(this,e,r)})})}()),T.exports}(function(w,x){(function(i){i(U,j())})(function(i){i.defineOption("foldGutter",!1,function(t,n,l){l&&l!=i.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",s),t.off("changes",O),t.off("viewportChange",k),t.off("fold",u),t.off("unfold",u),t.off("swapDoc",O)),n&&(t.state.foldGutter=new p(F(n)),a(t),t.on("gutterClick",s),t.on("changes",O),t.on("viewportChange",k),t.on("fold",u),t.on("unfold",u),t.on("swapDoc",O))});var d=i.Pos;function p(t){this.options=t,this.from=this.to=0}function F(t){return t===!0&&(t={}),t.gutter==null&&(t.gutter="CodeMirror-foldgutter"),t.indicatorOpen==null&&(t.indicatorOpen="CodeMirror-foldgutter-open"),t.indicatorFolded==null&&(t.indicatorFolded="CodeMirror-foldgutter-folded"),t}function c(t,n){for(var l=t.findMarks(d(n,0),d(n+1,0)),o=0;o<l.length;++o)if(l[o].__isFold){var g=l[o].find(-1);if(g&&g.line===n)return l[o]}}function e(t){if(typeof t=="string"){var n=document.createElement("div");return n.className=t+" CodeMirror-guttermarker-subtle",n}else return t.cloneNode(!0)}function r(t,n,l){var o=t.state.foldGutter.options,g=n-1,v=t.foldOption(o,"minFoldSize"),_=t.foldOption(o,"rangeFinder"),G=typeof o.indicatorFolded=="string"&&f(o.indicatorFolded),E=typeof o.indicatorOpen=="string"&&f(o.indicatorOpen);t.eachLine(n,l,function(S){++g;var y=null,h=S.gutterMarkers;if(h&&(h=h[o.gutter]),c(t,g)){if(G&&h&&G.test(h.className))return;y=e(o.indicatorFolded)}else{var P=d(g,0),m=_&&_(t,P);if(m&&m.to.line-m.from.line>=v){if(E&&h&&E.test(h.className))return;y=e(o.indicatorOpen)}}!y&&!h||t.setGutterMarker(S,o.gutter,y)})}function f(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}function a(t){var n=t.getViewport(),l=t.state.foldGutter;l&&(t.operation(function(){r(t,n.from,n.to)}),l.from=n.from,l.to=n.to)}function s(t,n,l){var o=t.state.foldGutter;if(o){var g=o.options;if(l==g.gutter){var v=c(t,n);v?v.clear():t.foldCode(d(n,0),g)}}}function O(t){var n=t.state.foldGutter;if(n){var l=n.options;n.from=n.to=0,clearTimeout(n.changeUpdate),n.changeUpdate=setTimeout(function(){a(t)},l.foldOnChangeTimeSpan||600)}}function k(t){var n=t.state.foldGutter;if(n){var l=n.options;clearTimeout(n.changeUpdate),n.changeUpdate=setTimeout(function(){var o=t.getViewport();n.from==n.to||o.from-n.to>20||n.from-o.to>20?a(t):t.operation(function(){o.from<n.from&&(r(t,o.from,n.from),n.from=o.from),o.to>n.to&&(r(t,n.to,o.to),n.to=o.to)})},l.updateViewportTimeSpan||400)}}function u(t,n){var l=t.state.foldGutter;if(l){var o=n.line;o>=l.from&&o<l.to&&r(t,o,o+1)}}})})();var N=L.exports;const D=A(N),C=z({__proto__:null,default:D},[N]);export{C as f};
@@ -1 +1 @@
1
- import{o as h}from"./index-bfe4aca1.js";import{a as O}from"./codemirror-209aaaaa.js";import{r as j}from"./index-4c243b0e.js";import{f as _}from"./forEachState-6d514dbd.js";function V(n,i){for(var e=0;e<i.length;e++){const r=i[e];if(typeof r!="string"&&!Array.isArray(r)){for(const t in r)if(t!=="default"&&!(t in n)){const a=Object.getOwnPropertyDescriptor(r,t);a&&Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var y={},v={};Object.defineProperty(v,"__esModule",{value:!0});function D(n,i,e){var r=N(e,g(i.string));if(r){var t=i.type!==null&&/"|\w/.test(i.string[0])?i.start:i.end;return{list:r,from:{line:n.line,ch:t},to:{line:n.line,ch:i.end}}}}v.default=D;function N(n,i){if(!i)return d(n,function(a){return!a.isDeprecated});var e=n.map(function(a){return{proximity:P(g(a.text),i),entry:a}}),r=d(d(e,function(a){return a.proximity<=2}),function(a){return!a.entry.isDeprecated}),t=r.sort(function(a,l){return(a.entry.isDeprecated?1:0)-(l.entry.isDeprecated?1:0)||a.proximity-l.proximity||a.entry.text.length-l.entry.text.length});return t.map(function(a){return a.entry})}function d(n,i){var e=n.filter(i);return e.length===0?n:e}function g(n){return n.toLowerCase().replace(/\W/g,"")}function P(n,i){var e=T(i,n);return n.length>i.length&&(e-=n.length-i.length-1,e+=n.indexOf(i)===0?0:.5),e}function T(n,i){var e,r,t=[],a=n.length,l=i.length;for(e=0;e<=a;e++)t[e]=[e];for(r=1;r<=l;r++)t[0][r]=r;for(e=1;e<=a;e++)for(r=1;r<=l;r++){var u=n[e-1]===i[r-1]?0:1;t[e][r]=Math.min(t[e-1][r]+1,t[e][r-1]+1,t[e-1][r-1]+u),e>1&&r>1&&n[e-1]===i[r-2]&&n[e-2]===i[r-1]&&(t[e][r]=Math.min(t[e][r],t[e-2][r-2]+u))}return t[a][l]}var m=h&&h.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(y,"__esModule",{value:!0});var c=m(O),o=j,G=m(_),p=m(v);c.default.registerHelper("hint","graphql-variables",function(n,i){var e=n.getCursor(),r=n.getTokenAt(e),t=M(e,r,i);return t&&t.list&&t.list.length>0&&(t.from=c.default.Pos(t.from.line,t.from.ch),t.to=c.default.Pos(t.to.line,t.to.ch),c.default.signal(n,"hasCompletion",n,t,r)),t});function M(n,i,e){var r=i.state.kind==="Invalid"?i.state.prevState:i.state,t=r.kind,a=r.step;if(t==="Document"&&a===0)return p.default(n,i,[{text:"{"}]);var l=e.variableToType;if(l){var u=S(l,i.state);if(t==="Document"||t==="Variable"&&a===0){var b=Object.keys(l);return p.default(n,i,b.map(function(f){return{text:'"'+f+'": ',type:l[f]}}))}if((t==="ObjectValue"||t==="ObjectField"&&a===0)&&u.fields){var x=Object.keys(u.fields).map(function(f){return u.fields[f]});return p.default(n,i,x.map(function(f){return{text:'"'+f.name+'": ',type:f.type,description:f.description}}))}if(t==="StringValue"||t==="NumberValue"||t==="BooleanValue"||t==="NullValue"||t==="ListValue"&&a===1||t==="ObjectField"&&a===2||t==="Variable"&&a===2){var s=u.type?o.getNamedType(u.type):void 0;if(s instanceof o.GraphQLInputObjectType)return p.default(n,i,[{text:"{"}]);if(s instanceof o.GraphQLEnumType){var L=s.getValues();return p.default(n,i,L.map(function(f){return{text:'"'+f.name+'"',type:s,description:f.description}}))}else if(s===o.GraphQLBoolean)return p.default(n,i,[{text:"true",type:o.GraphQLBoolean,description:"Not false."},{text:"false",type:o.GraphQLBoolean,description:"Not true."}])}}}function S(n,i){var e={type:null,fields:null};return G.default(i,function(r){if(r.kind==="Variable")e.type=n[r.name];else if(r.kind==="ListValue"){var t=e.type?o.getNullableType(e.type):void 0;e.type=t instanceof o.GraphQLList?t.ofType:null}else if(r.kind==="ObjectValue"){var a=e.type?o.getNamedType(e.type):void 0;e.fields=a instanceof o.GraphQLInputObjectType?a.getFields():null}else if(r.kind==="ObjectField"){var l=r.name&&e.fields?e.fields[r.name]:null;e.type=l&&l.type}}),e}const $=V({__proto__:null,default:y},[y]);export{$ as h};
1
+ import{o as h}from"./index-f32c771c.js";import{a as O}from"./codemirror-3e55eb16.js";import{r as j}from"./index-5b7876a6.js";import{f as _}from"./forEachState-6d514dbd.js";function V(n,i){for(var e=0;e<i.length;e++){const r=i[e];if(typeof r!="string"&&!Array.isArray(r)){for(const t in r)if(t!=="default"&&!(t in n)){const a=Object.getOwnPropertyDescriptor(r,t);a&&Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var y={},v={};Object.defineProperty(v,"__esModule",{value:!0});function D(n,i,e){var r=N(e,g(i.string));if(r){var t=i.type!==null&&/"|\w/.test(i.string[0])?i.start:i.end;return{list:r,from:{line:n.line,ch:t},to:{line:n.line,ch:i.end}}}}v.default=D;function N(n,i){if(!i)return d(n,function(a){return!a.isDeprecated});var e=n.map(function(a){return{proximity:P(g(a.text),i),entry:a}}),r=d(d(e,function(a){return a.proximity<=2}),function(a){return!a.entry.isDeprecated}),t=r.sort(function(a,l){return(a.entry.isDeprecated?1:0)-(l.entry.isDeprecated?1:0)||a.proximity-l.proximity||a.entry.text.length-l.entry.text.length});return t.map(function(a){return a.entry})}function d(n,i){var e=n.filter(i);return e.length===0?n:e}function g(n){return n.toLowerCase().replace(/\W/g,"")}function P(n,i){var e=T(i,n);return n.length>i.length&&(e-=n.length-i.length-1,e+=n.indexOf(i)===0?0:.5),e}function T(n,i){var e,r,t=[],a=n.length,l=i.length;for(e=0;e<=a;e++)t[e]=[e];for(r=1;r<=l;r++)t[0][r]=r;for(e=1;e<=a;e++)for(r=1;r<=l;r++){var u=n[e-1]===i[r-1]?0:1;t[e][r]=Math.min(t[e-1][r]+1,t[e][r-1]+1,t[e-1][r-1]+u),e>1&&r>1&&n[e-1]===i[r-2]&&n[e-2]===i[r-1]&&(t[e][r]=Math.min(t[e][r],t[e-2][r-2]+u))}return t[a][l]}var m=h&&h.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(y,"__esModule",{value:!0});var c=m(O),o=j,G=m(_),p=m(v);c.default.registerHelper("hint","graphql-variables",function(n,i){var e=n.getCursor(),r=n.getTokenAt(e),t=M(e,r,i);return t&&t.list&&t.list.length>0&&(t.from=c.default.Pos(t.from.line,t.from.ch),t.to=c.default.Pos(t.to.line,t.to.ch),c.default.signal(n,"hasCompletion",n,t,r)),t});function M(n,i,e){var r=i.state.kind==="Invalid"?i.state.prevState:i.state,t=r.kind,a=r.step;if(t==="Document"&&a===0)return p.default(n,i,[{text:"{"}]);var l=e.variableToType;if(l){var u=S(l,i.state);if(t==="Document"||t==="Variable"&&a===0){var b=Object.keys(l);return p.default(n,i,b.map(function(f){return{text:'"'+f+'": ',type:l[f]}}))}if((t==="ObjectValue"||t==="ObjectField"&&a===0)&&u.fields){var x=Object.keys(u.fields).map(function(f){return u.fields[f]});return p.default(n,i,x.map(function(f){return{text:'"'+f.name+'": ',type:f.type,description:f.description}}))}if(t==="StringValue"||t==="NumberValue"||t==="BooleanValue"||t==="NullValue"||t==="ListValue"&&a===1||t==="ObjectField"&&a===2||t==="Variable"&&a===2){var s=u.type?o.getNamedType(u.type):void 0;if(s instanceof o.GraphQLInputObjectType)return p.default(n,i,[{text:"{"}]);if(s instanceof o.GraphQLEnumType){var L=s.getValues();return p.default(n,i,L.map(function(f){return{text:'"'+f.name+'"',type:s,description:f.description}}))}else if(s===o.GraphQLBoolean)return p.default(n,i,[{text:"true",type:o.GraphQLBoolean,description:"Not false."},{text:"false",type:o.GraphQLBoolean,description:"Not true."}])}}}function S(n,i){var e={type:null,fields:null};return G.default(i,function(r){if(r.kind==="Variable")e.type=n[r.name];else if(r.kind==="ListValue"){var t=e.type?o.getNullableType(e.type):void 0;e.type=t instanceof o.GraphQLList?t.ofType:null}else if(r.kind==="ObjectValue"){var a=e.type?o.getNamedType(e.type):void 0;e.fields=a instanceof o.GraphQLInputObjectType?a.getFields():null}else if(r.kind==="ObjectField"){var l=r.name&&e.fields?e.fields[r.name]:null;e.type=l&&l.type}}),e}const $=V({__proto__:null,default:y},[y]);export{$ as h};
@@ -1 +1 @@
1
- import{o as c}from"./index-bfe4aca1.js";import{a as m}from"./codemirror-209aaaaa.js";import"./show-hint-a374ab23.js";import{r as d}from"./index-273ac92b.js";function _(e,l){for(var n=0;n<l.length;n++){const o=l[n];if(typeof o!="string"&&!Array.isArray(o)){for(const t in o)if(t!=="default"&&!(t in e)){const a=Object.getOwnPropertyDescriptor(o,t);a&&Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>o[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var u={},h=c&&c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(u,"__esModule",{value:!0});var s=h(m),f=d;s.default.registerHelper("hint","graphql",function(e,l){var n=l.schema;if(n){var o=e.getCursor(),t=e.getTokenAt(o),a=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end,p=new f.Position(o.line,a),g=f.getAutocompleteSuggestions(n,e.getValue(),p,t,l.externalFragments),r={list:g.map(function(i){return{text:i.label,type:i.type,description:i.documentation,isDeprecated:i.isDeprecated,deprecationReason:i.deprecationReason}}),from:{line:o.line,ch:a},to:{line:o.line,ch:t.end}};return r&&r.list&&r.list.length>0&&(r.from=s.default.Pos(r.from.line,r.from.ch),r.to=s.default.Pos(r.to.line,r.to.ch),s.default.signal(e,"hasCompletion",e,r,t)),r}});const j=_({__proto__:null,default:u},[u]);export{j as h};
1
+ import{o as c}from"./index-f32c771c.js";import{a as m}from"./codemirror-3e55eb16.js";import"./show-hint-61147df4.js";import{r as d}from"./index-21441f59.js";function _(e,l){for(var n=0;n<l.length;n++){const o=l[n];if(typeof o!="string"&&!Array.isArray(o)){for(const t in o)if(t!=="default"&&!(t in e)){const a=Object.getOwnPropertyDescriptor(o,t);a&&Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>o[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var u={},h=c&&c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(u,"__esModule",{value:!0});var s=h(m),f=d;s.default.registerHelper("hint","graphql",function(e,l){var n=l.schema;if(n){var o=e.getCursor(),t=e.getTokenAt(o),a=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end,p=new f.Position(o.line,a),g=f.getAutocompleteSuggestions(n,e.getValue(),p,t,l.externalFragments),r={list:g.map(function(i){return{text:i.label,type:i.type,description:i.documentation,isDeprecated:i.isDeprecated,deprecationReason:i.deprecationReason}}),from:{line:o.line,ch:a},to:{line:o.line,ch:t.end}};return r&&r.list&&r.list.length>0&&(r.from=s.default.Pos(r.from.line,r.from.ch),r.to=s.default.Pos(r.to.line,r.to.ch),s.default.signal(e,"hasCompletion",e,r,t)),r}});const j=_({__proto__:null,default:u},[u]);export{j as h};
@@ -1,4 +1,4 @@
1
- import{b as be}from"./index-bfe4aca1.js";import{S as $,T as z,A as J,bE as I,c3 as s,c4 as S,F as M,c5 as ye,Z as se,ax as R,V as ke,w as Fe,bg as Ie,bA as Ne,m as Oe,c6 as K,at as D,Y as _e,bC as Ae,a8 as oe,$ as ce,a0 as w,aj as Z,C as le,c as U,a as ee,K as q,c7 as ue,X as Me,U as ae,d as je,c8 as H,a9 as Le,c9 as Re,ca as Ce,cb as he,cc as xe,cd as Ve,ce as Pe,cf as we,cg as Ue,ch as Ge,ci as Be,cj as Qe,ck as Ye,cl as $e,cm as ze,cn as Je,co as Ke,cp as qe,cq as He,cr as We,cs as Xe,ct as Ze,cu as en,cv as nn,cw as tn,cx as rn,cy as an}from"./GraphiQLSandbox-e1707399.js";function de(e){let t;return fe(e,n=>{switch(n.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=n;break}}),t}function W(e,t,n){return n===$.name&&e.getQueryType()===t?$:n===z.name&&e.getQueryType()===t?z:n===J.name&&I(t)?J:"getFields"in t?t.getFields()[n]:null}function fe(e,t){const n=[];let i=e;for(;i&&i.kind;)n.push(i),i=i.prevState;for(let r=n.length-1;r>=0;r--)t(n[r])}function N(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=e[t[r]];return i}function y(e,t){return sn(t,pe(e.string))}function sn(e,t){if(!t)return Y(e,i=>!i.isDeprecated);const n=e.map(i=>({proximity:on(pe(i.label),t),entry:i}));return Y(Y(n,i=>i.proximity<=2),i=>!i.entry.isDeprecated).sort((i,r)=>(i.entry.isDeprecated?1:0)-(r.entry.isDeprecated?1:0)||i.proximity-r.proximity||i.entry.label.length-r.entry.label.length).map(i=>i.entry)}function Y(e,t){const n=e.filter(t);return n.length===0?e:n}function pe(e){return e.toLowerCase().replace(/\W/g,"")}function on(e,t){let n=cn(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function cn(e,t){let n,i;const r=[],a=e.length,l=t.length;for(n=0;n<=a;n++)r[n]=[n];for(i=1;i<=l;i++)r[0][i]=i;for(n=1;n<=a;n++)for(i=1;i<=l;i++){const c=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+c),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+c))}return r[a][l]}const ne={command:"editor.action.triggerSuggest",title:"Suggestions"},ln=e=>{const t=[];return e&&Z(le(e),{FragmentDefinition(n){t.push(n)}}),t};function un(e,t,n,i,r,a){var l;const c=Object.assign(Object.assign({},a),{schema:e}),u=i||ie(t,n),o=u.state.kind==="Invalid"?u.state.prevState:u.state;if(!o)return[];const d=o.kind,f=o.step,v=re(e,u.state);if(d===s.DOCUMENT)return y(u,[{label:"query",kind:S.Function},{label:"mutation",kind:S.Function},{label:"subscription",kind:S.Function},{label:"fragment",kind:S.Function},{label:"{",kind:S.Constructor}]);if(d===s.IMPLEMENTS||d===s.NAMED_TYPE&&((l=o.prevState)===null||l===void 0?void 0:l.kind)===s.IMPLEMENTS)return Tn(u,o,e,t,v);if(d===s.SELECTION_SET||d===s.FIELD||d===s.ALIASED_FIELD)return fn(u,v,c);if(d===s.ARGUMENTS||d===s.ARGUMENT&&f===0){const p=v.argDefs;if(p)return y(u,p.map(T=>{var g;return{label:T.name,insertText:T.name+": ",command:ne,detail:String(T.type),documentation:(g=T.description)!==null&&g!==void 0?g:void 0,kind:S.Variable,type:T.type}}))}if((d===s.OBJECT_VALUE||d===s.OBJECT_FIELD&&f===0)&&v.objectFieldDefs){const p=N(v.objectFieldDefs),T=d===s.OBJECT_VALUE?S.Value:S.Field;return y(u,p.map(g=>{var k;return{label:g.name,detail:String(g.type),documentation:(k=g.description)!==null&&k!==void 0?k:void 0,kind:T,type:g.type}}))}if(d===s.ENUM_VALUE||d===s.LIST_VALUE&&f===1||d===s.OBJECT_FIELD&&f===2||d===s.ARGUMENT&&f===2)return pn(u,v,t,e);if(d===s.VARIABLE&&f===1){const p=M(v.inputType),T=te(t,e,u);return y(u,T.filter(g=>g.detail===(p==null?void 0:p.name)))}return d===s.TYPE_CONDITION&&f===1||d===s.NAMED_TYPE&&o.prevState!=null&&o.prevState.kind===s.TYPE_CONDITION?mn(u,v,e):d===s.FRAGMENT_SPREAD&&f===1?gn(u,v,e,t,Array.isArray(r)?r:ln(r)):d===s.VARIABLE_DEFINITION&&f===2||d===s.LIST_TYPE&&f===1||d===s.NAMED_TYPE&&o.prevState&&(o.prevState.kind===s.VARIABLE_DEFINITION||o.prevState.kind===s.LIST_TYPE||o.prevState.kind===s.NON_NULL_TYPE)?vn(u,e):d===s.DIRECTIVE?Dn(u,o,e):[]}const P=` {
1
+ import{b as be}from"./index-f32c771c.js";import{S as $,T as z,A as J,bE as I,c3 as s,c4 as S,F as M,c5 as ye,Z as se,ax as R,V as ke,w as Fe,bg as Ie,bA as Ne,m as Oe,c6 as K,at as D,Y as _e,bC as Ae,a8 as oe,$ as ce,a0 as w,aj as Z,C as le,c as U,a as ee,K as q,c7 as ue,X as Me,U as ae,d as je,c8 as H,a9 as Le,c9 as Re,ca as Ce,cb as he,cc as xe,cd as Ve,ce as Pe,cf as we,cg as Ue,ch as Ge,ci as Be,cj as Qe,ck as Ye,cl as $e,cm as ze,cn as Je,co as Ke,cp as qe,cq as He,cr as We,cs as Xe,ct as Ze,cu as en,cv as nn,cw as tn,cx as rn,cy as an}from"./GraphiQLSandbox-53d3feeb.js";function de(e){let t;return fe(e,n=>{switch(n.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=n;break}}),t}function W(e,t,n){return n===$.name&&e.getQueryType()===t?$:n===z.name&&e.getQueryType()===t?z:n===J.name&&I(t)?J:"getFields"in t?t.getFields()[n]:null}function fe(e,t){const n=[];let i=e;for(;i&&i.kind;)n.push(i),i=i.prevState;for(let r=n.length-1;r>=0;r--)t(n[r])}function N(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=e[t[r]];return i}function y(e,t){return sn(t,pe(e.string))}function sn(e,t){if(!t)return Y(e,i=>!i.isDeprecated);const n=e.map(i=>({proximity:on(pe(i.label),t),entry:i}));return Y(Y(n,i=>i.proximity<=2),i=>!i.entry.isDeprecated).sort((i,r)=>(i.entry.isDeprecated?1:0)-(r.entry.isDeprecated?1:0)||i.proximity-r.proximity||i.entry.label.length-r.entry.label.length).map(i=>i.entry)}function Y(e,t){const n=e.filter(t);return n.length===0?e:n}function pe(e){return e.toLowerCase().replace(/\W/g,"")}function on(e,t){let n=cn(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function cn(e,t){let n,i;const r=[],a=e.length,l=t.length;for(n=0;n<=a;n++)r[n]=[n];for(i=1;i<=l;i++)r[0][i]=i;for(n=1;n<=a;n++)for(i=1;i<=l;i++){const c=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+c),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+c))}return r[a][l]}const ne={command:"editor.action.triggerSuggest",title:"Suggestions"},ln=e=>{const t=[];return e&&Z(le(e),{FragmentDefinition(n){t.push(n)}}),t};function un(e,t,n,i,r,a){var l;const c=Object.assign(Object.assign({},a),{schema:e}),u=i||ie(t,n),o=u.state.kind==="Invalid"?u.state.prevState:u.state;if(!o)return[];const d=o.kind,f=o.step,v=re(e,u.state);if(d===s.DOCUMENT)return y(u,[{label:"query",kind:S.Function},{label:"mutation",kind:S.Function},{label:"subscription",kind:S.Function},{label:"fragment",kind:S.Function},{label:"{",kind:S.Constructor}]);if(d===s.IMPLEMENTS||d===s.NAMED_TYPE&&((l=o.prevState)===null||l===void 0?void 0:l.kind)===s.IMPLEMENTS)return Tn(u,o,e,t,v);if(d===s.SELECTION_SET||d===s.FIELD||d===s.ALIASED_FIELD)return fn(u,v,c);if(d===s.ARGUMENTS||d===s.ARGUMENT&&f===0){const p=v.argDefs;if(p)return y(u,p.map(T=>{var g;return{label:T.name,insertText:T.name+": ",command:ne,detail:String(T.type),documentation:(g=T.description)!==null&&g!==void 0?g:void 0,kind:S.Variable,type:T.type}}))}if((d===s.OBJECT_VALUE||d===s.OBJECT_FIELD&&f===0)&&v.objectFieldDefs){const p=N(v.objectFieldDefs),T=d===s.OBJECT_VALUE?S.Value:S.Field;return y(u,p.map(g=>{var k;return{label:g.name,detail:String(g.type),documentation:(k=g.description)!==null&&k!==void 0?k:void 0,kind:T,type:g.type}}))}if(d===s.ENUM_VALUE||d===s.LIST_VALUE&&f===1||d===s.OBJECT_FIELD&&f===2||d===s.ARGUMENT&&f===2)return pn(u,v,t,e);if(d===s.VARIABLE&&f===1){const p=M(v.inputType),T=te(t,e,u);return y(u,T.filter(g=>g.detail===(p==null?void 0:p.name)))}return d===s.TYPE_CONDITION&&f===1||d===s.NAMED_TYPE&&o.prevState!=null&&o.prevState.kind===s.TYPE_CONDITION?mn(u,v,e):d===s.FRAGMENT_SPREAD&&f===1?gn(u,v,e,t,Array.isArray(r)?r:ln(r)):d===s.VARIABLE_DEFINITION&&f===2||d===s.LIST_TYPE&&f===1||d===s.NAMED_TYPE&&o.prevState&&(o.prevState.kind===s.VARIABLE_DEFINITION||o.prevState.kind===s.LIST_TYPE||o.prevState.kind===s.NON_NULL_TYPE)?vn(u,e):d===s.DIRECTIVE?Dn(u,o,e):[]}const P=` {
2
2
  $1
3
3
  }`,dn=e=>{const t=e.type;return I(t)||U(t)&&I(t.ofType)||ee(t)&&(I(t.ofType)||U(t.ofType)&&I(t.ofType.ofType))?P:null};function fn(e,t,n){var i;if(t.parentType){const r=t.parentType;let a=[];return"getFields"in r&&(a=N(r.getFields())),I(r)&&a.push(J),r===((i=n==null?void 0:n.schema)===null||i===void 0?void 0:i.getQueryType())&&a.push($,z),y(e,a.map((l,c)=>{var u;const o={sortText:String(c)+l.name,label:l.name,detail:String(l.type),documentation:(u=l.description)!==null&&u!==void 0?u:void 0,deprecated:!!l.deprecationReason,isDeprecated:!!l.deprecationReason,deprecationReason:l.deprecationReason,kind:S.Field,type:l.type},d=dn(l);return d&&(o.insertText=l.name+d,o.insertTextFormat=ye.Snippet,o.command=ne),o}))}return[]}function pn(e,t,n,i){const r=M(t.inputType),a=te(n,i,e).filter(l=>l.detail===r.name);if(r instanceof se){const l=r.getValues();return y(e,l.map(c=>{var u;return{label:c.name,detail:String(r),documentation:(u=c.description)!==null&&u!==void 0?u:void 0,deprecated:!!c.deprecationReason,isDeprecated:!!c.deprecationReason,deprecationReason:c.deprecationReason,kind:S.EnumMember,type:r}}).concat(a))}else if(r===R)return y(e,a.concat([{label:"true",detail:String(R),documentation:"Not false.",kind:S.Variable,type:R},{label:"false",detail:String(R),documentation:"Not true.",kind:S.Variable,type:R}]));return a}function Tn(e,t,n,i,r){if(t.needsSeperator)return[];const a=n.getTypeMap(),l=N(a).filter(ke),c=l.map(({name:p})=>p),u=new Set;G(i,(p,T)=>{var g,k,O,b,_;if(T.name&&(T.kind===s.INTERFACE_DEF&&!c.includes(T.name)&&u.add(T.name),T.kind===s.NAMED_TYPE&&((g=T.prevState)===null||g===void 0?void 0:g.kind)===s.IMPLEMENTS)){if(r.interfaceDef){if((k=r.interfaceDef)===null||k===void 0?void 0:k.getInterfaces().find(({name:Q})=>Q===T.name))return;const B=n.getType(T.name),L=(O=r.interfaceDef)===null||O===void 0?void 0:O.toConfig();r.interfaceDef=new w(Object.assign(Object.assign({},L),{interfaces:[...L.interfaces,B||new w({name:T.name,fields:{}})]}))}else if(r.objectTypeDef){if((b=r.objectTypeDef)===null||b===void 0?void 0:b.getInterfaces().find(({name:Q})=>Q===T.name))return;const B=n.getType(T.name),L=(_=r.objectTypeDef)===null||_===void 0?void 0:_.toConfig();r.objectTypeDef=new ce(Object.assign(Object.assign({},L),{interfaces:[...L.interfaces,B||new w({name:T.name,fields:{}})]}))}}});const o=r.interfaceDef||r.objectTypeDef,f=((o==null?void 0:o.getInterfaces())||[]).map(({name:p})=>p),v=l.concat([...u].map(p=>({name:p}))).filter(({name:p})=>p!==(o==null?void 0:o.name)&&!f.includes(p));return y(e,v.map(p=>{const T={label:p.name,kind:S.Interface,type:p};return p!=null&&p.description&&(T.documentation=p.description),T}))}function mn(e,t,n,i){let r;if(t.parentType)if(Fe(t.parentType)){const a=Ie(t.parentType),l=n.getPossibleTypes(a),c=Object.create(null);l.forEach(u=>{u.getInterfaces().forEach(o=>{c[o.name]=o})}),r=l.concat(N(c))}else r=[t.parentType];else{const a=n.getTypeMap();r=N(a).filter(I)}return y(e,r.map(a=>{const l=M(a);return{label:String(a),documentation:l&&l.description||"",kind:S.Field}}))}function gn(e,t,n,i,r){if(!i)return[];const a=n.getTypeMap(),l=de(e.state),c=Te(i);r&&r.length>0&&c.push(...r);const u=c.filter(o=>a[o.typeCondition.name.value]&&!(l&&l.kind===s.FRAGMENT_DEFINITION&&l.name===o.name.value)&&I(t.parentType)&&I(a[o.typeCondition.name.value])&&Ne(n,t.parentType,a[o.typeCondition.name.value]));return y(e,u.map(o=>({label:o.name.value,detail:String(a[o.typeCondition.name.value]),documentation:`fragment ${o.name.value} on ${o.typeCondition.name.value}`,kind:S.Field,type:a[o.typeCondition.name.value]})))}const En=(e,t)=>{var n,i,r,a,l,c,u,o,d,f;if(((n=e.prevState)===null||n===void 0?void 0:n.kind)===t)return e.prevState;if(((r=(i=e.prevState)===null||i===void 0?void 0:i.prevState)===null||r===void 0?void 0:r.kind)===t)return e.prevState.prevState;if(((c=(l=(a=e.prevState)===null||a===void 0?void 0:a.prevState)===null||l===void 0?void 0:l.prevState)===null||c===void 0?void 0:c.kind)===t)return e.prevState.prevState.prevState;if(((f=(d=(o=(u=e.prevState)===null||u===void 0?void 0:u.prevState)===null||o===void 0?void 0:o.prevState)===null||d===void 0?void 0:d.prevState)===null||f===void 0?void 0:f.kind)===t)return e.prevState.prevState.prevState.prevState};function te(e,t,n){let i=null,r;const a=Object.create({});return G(e,(l,c)=>{if((c==null?void 0:c.kind)===s.VARIABLE&&c.name&&(i=c.name),(c==null?void 0:c.kind)===s.NAMED_TYPE&&i){const u=En(c,s.TYPE);u!=null&&u.type&&(r=t.getType(u==null?void 0:u.type))}i&&r&&(a[i]||(a[i]={detail:r.toString(),insertText:n.string==="$"?i:"$"+i,label:i,type:r,kind:S.Variable},i=null,r=null))}),N(a)}function Te(e){const t=[];return G(e,(n,i)=>{i.kind===s.FRAGMENT_DEFINITION&&i.name&&i.type&&t.push({kind:s.FRAGMENT_DEFINITION,name:{kind:q.NAME,value:i.name},selectionSet:{kind:s.SELECTION_SET,selections:[]},typeCondition:{kind:s.NAMED_TYPE,name:{kind:q.NAME,value:i.type}}})}),t}function vn(e,t,n){const i=t.getTypeMap(),r=N(i).filter(Oe);return y(e,r.map(a=>({label:a.name,documentation:a.description,kind:S.Variable})))}function Dn(e,t,n,i){if(t.prevState&&t.prevState.kind){const r=n.getDirectives().filter(a=>me(t.prevState,a));return y(e,r.map(a=>({label:a.name,documentation:a.description||"",kind:S.Function})))}return[]}function ie(e,t){let n=null,i=null,r=null;const a=G(e,(l,c,u,o)=>{if(o===t.line&&l.getCurrentPosition()>=t.character)return n=u,i=Object.assign({},c),r=l.current(),"BREAK"});return{start:a.start,end:a.end,string:r||a.string,state:i||a.state,style:n||a.style}}function G(e,t){const n=e.split(`
4
4
  `),i=ue();let r=i.startState(),a="",l=new K("");for(let c=0;c<n.length;c++){for(l=new K(n[c]);!l.eol()&&(a=i.token(l,r),t(l,r,a,c)!=="BREAK"););t(l,r,a,c),r.kind||(r=i.startState())}return{start:l.getStartOfToken(),end:l.getCurrentPosition(),string:l.current(),state:r,style:a}}function me(e,t){if(!e||!e.kind)return!1;const n=e.kind,i=t.locations;switch(n){case s.QUERY:return i.indexOf(D.QUERY)!==-1;case s.MUTATION:return i.indexOf(D.MUTATION)!==-1;case s.SUBSCRIPTION:return i.indexOf(D.SUBSCRIPTION)!==-1;case s.FIELD:case s.ALIASED_FIELD:return i.indexOf(D.FIELD)!==-1;case s.FRAGMENT_DEFINITION:return i.indexOf(D.FRAGMENT_DEFINITION)!==-1;case s.FRAGMENT_SPREAD:return i.indexOf(D.FRAGMENT_SPREAD)!==-1;case s.INLINE_FRAGMENT:return i.indexOf(D.INLINE_FRAGMENT)!==-1;case s.SCHEMA_DEF:return i.indexOf(D.SCHEMA)!==-1;case s.SCALAR_DEF:return i.indexOf(D.SCALAR)!==-1;case s.OBJECT_TYPE_DEF:return i.indexOf(D.OBJECT)!==-1;case s.FIELD_DEF:return i.indexOf(D.FIELD_DEFINITION)!==-1;case s.INTERFACE_DEF:return i.indexOf(D.INTERFACE)!==-1;case s.UNION_DEF:return i.indexOf(D.UNION)!==-1;case s.ENUM_DEF:return i.indexOf(D.ENUM)!==-1;case s.ENUM_VALUE:return i.indexOf(D.ENUM_VALUE)!==-1;case s.INPUT_DEF:return i.indexOf(D.INPUT_OBJECT)!==-1;case s.INPUT_VALUE_DEF:switch(e.prevState&&e.prevState.kind){case s.ARGUMENTS_DEF:return i.indexOf(D.ARGUMENT_DEFINITION)!==-1;case s.INPUT_DEF:return i.indexOf(D.INPUT_FIELD_DEFINITION)!==-1}}return!1}function re(e,t){let n,i,r,a,l,c,u,o,d,f,v;return fe(t,p=>{switch(p.kind){case s.QUERY:case"ShortQuery":f=e.getQueryType();break;case s.MUTATION:f=e.getMutationType();break;case s.SUBSCRIPTION:f=e.getSubscriptionType();break;case s.INLINE_FRAGMENT:case s.FRAGMENT_DEFINITION:p.type&&(f=e.getType(p.type));break;case s.FIELD:case s.ALIASED_FIELD:{!f||!p.name?l=null:(l=d?W(e,d,p.name):null,f=l?l.type:null);break}case s.SELECTION_SET:d=M(f);break;case s.DIRECTIVE:r=p.name?e.getDirective(p.name):null;break;case s.INTERFACE_DEF:p.name&&(u=null,v=new w({name:p.name,interfaces:[],fields:{}}));break;case s.OBJECT_TYPE_DEF:p.name&&(v=null,u=new ce({name:p.name,interfaces:[],fields:{}}));break;case s.ARGUMENTS:{if(!p.prevState)i=null;else switch(p.prevState.kind){case s.FIELD:i=l&&l.args;break;case s.DIRECTIVE:i=r&&r.args;break;case s.ALIASED_FIELD:{const b=p.prevState&&p.prevState.name;if(!b){i=null;break}const _=d?W(e,d,b):null;if(!_){i=null;break}i=_.args;break}default:i=null;break}break}case s.ARGUMENT:if(i){for(let b=0;b<i.length;b++)if(i[b].name===p.name){n=i[b];break}}c=n&&n.type;break;case s.ENUM_VALUE:const T=M(c);a=T instanceof se?T.getValues().find(b=>b.value===p.name):null;break;case s.LIST_VALUE:const g=Ae(c);c=g instanceof oe?g.ofType:null;break;case s.OBJECT_VALUE:const k=M(c);o=k instanceof _e?k.getFields():null;break;case s.OBJECT_FIELD:const O=p.name&&o?o[p.name]:null;c=O&&O.type;break;case s.NAMED_TYPE:p.name&&(f=e.getType(p.name));break}}),{argDef:n,argDefs:i,directiveDef:r,enumValue:a,fieldDef:l,inputType:c,objectFieldDefs:o,parentType:d,type:f,interfaceDef:v,objectTypeDef:u}}function A(e,t){e.push(t)}function X(e,t){ee(t)?(X(e,t.ofType),A(e,"!")):U(t)?(A(e,"["),X(e,t.ofType),A(e,"]")):A(e,t.name)}function F(e,t){const n=[];return t&&A(n,"```graphql\n"),X(n,e),t&&A(n,"\n```"),n.join("")}const Sn={Int:"integer",String:"string",Float:"number",ID:"string",Boolean:"boolean",DateTime:"string"};function V(e,t){var n;let i=!1,r=Object.create(null);const a=Object.create(null);if("defaultValue"in e&&e.defaultValue!==void 0&&(r.default=e.defaultValue),Me(e)&&(r.type="string",r.enum=e.getValues().map(l=>l.name)),ae(e)&&(r.type=(n=Sn[e.name])!==null&&n!==void 0?n:"any"),U(e)){r.type="array";const{definition:l,definitions:c}=V(e.ofType,t);l.$ref?r.items={$ref:l.$ref}:r.items=l,c&&Object.keys(c).forEach(u=>{a[u]=c[u]})}if(ee(e)){i=!0;const{definition:l,definitions:c}=V(e.ofType,t);r=l,c&&Object.keys(c).forEach(u=>{a[u]=c[u]})}if(je(e)){r.$ref=`#/definitions/${e.name}`;const l=e.getFields(),c={type:"object",properties:{},required:[]};e.description?(c.description=e.description+`
@@ -1,4 +1,4 @@
1
- import{G as O,a as L,b as S,c as B,s as Kn,d as _,e as Fe,o as G,f as Xr,g as Zr,h as Xe,j as q,k as $r,l as Re,K as w,v as fe,p as Z,t as Ze,m as xn,n as ve,q as _n,r as Yn,u as Hn,w as $e,x as W,y as K,z as je,S as Be,T as Ke,A as xe,B as Wn,C as Ue,D as en,E as _e,F as zn,H as ne,I as Jn,J as Xn,L as ea,M as Ge,N as Zn,O as $n,P as Ie,Q as ue,R as Ce,U as he,V as z,W as J,X,Y as Te,Z as Ve,_ as Ye,$ as Ae,a0 as Ne,a1 as we,a2 as er,a3 as nr,a4 as rr,a5 as ar,a6 as tr,a7 as se,a8 as Se,a9 as Pe,aa as na,ab as He,ac as ra,ad as ir,ae as Ee,af as nn,ag as ur,ah as aa,ai as rn,aj as an,ak as ta,al as cr,am as or,an as ia,ao as ua,ap as tn,aq as sr,ar as lr,as as ca,at as oa,au as sa,av as la,aw as fa,ax as va,ay as pa,az as da,aA as ma,aB as ha,aC as Ea,aD as ba,aE as ga,aF as Da,aG as ya,aH as Oa,aI as Ra,aJ as Ia,aK as Ta,aL as Va,aM as Aa,aN as Na,aO as wa,aP as Sa,aQ as Pa,aR as Ma,aS as La,aT as Fa,aU as ja,aV as Ua,aW as Ga,aX as Ca,aY as ka,aZ as qa,a_ as Qa,a$ as Ba,b0 as Ka,b1 as xa,b2 as _a,b3 as Ya,b4 as Ha,b5 as Wa,b6 as za,b7 as Ja,b8 as Xa,b9 as Za,ba as $a,bb as et,bc as nt,bd as rt,be as at,bf as tt,bg as it,bh as ut,bi as ct,bj as ot,bk as st,bl as lt,bm as ft,bn as vt,bo as pt,bp as dt,bq as mt,br as ht,bs as Et,bt,bu as gt,bv as Dt,bw as yt,bx as Ot,by as Rt,bz as It,bA as Tt,bB as Vt,bC as At,bD as Nt,bE as wt,bF as St,bG as Pt,bH as Mt,bI as Lt,bJ as Ft,bK as jt,bL as Ut,bM as Gt,bN as Ct,bO as kt,bP as qt,bQ as Qt,bR as Bt,bS as Kt,bT as xt,bU as _t,bV as Yt,bW as Ht,bX as Wt,bY as zt,bZ as Jt,b_ as Xt,b$ as Zt,c0 as $t,c1 as ei,c2 as ni}from"./GraphiQLSandbox-e1707399.js";import{b as ri}from"./index-bfe4aca1.js";var ai="15.8.0",ti=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function j(e){return typeof(e==null?void 0:e.then)=="function"}function ii(e){var n;return function(a,t,i){n||(n=new WeakMap);var u=n.get(a),c;if(u){if(c=u.get(t),c){var s=c.get(i);if(s!==void 0)return s}}else u=new WeakMap,n.set(a,u);c||(c=new WeakMap,u.set(t,c));var f=e(a,t,i);return c.set(i,f),f}}function ui(e,n,r){return e.reduce(function(a,t){return j(a)?a.then(function(i){return n(i,t)}):n(a,t)},r)}function ci(e){var n=Object.keys(e),r=n.map(function(a){return e[a]});return Promise.all(r).then(function(a){return a.reduce(function(t,i,u){return t[n[u]]=i,t},Object.create(null))})}function ee(e,n,r){return{prev:e,key:n,typename:r}}function F(e){for(var n=[],r=e;r;)n.push(r.key),r=r.prev;return n.reverse()}function un(e,n){if(n.operation==="query"){var r=e.getQueryType();if(!r)throw new O("Schema does not define the required query root type.",n);return r}if(n.operation==="mutation"){var a=e.getMutationType();if(!a)throw new O("Schema is not configured for mutations.",n);return a}if(n.operation==="subscription"){var t=e.getSubscriptionType();if(!t)throw new O("Schema is not configured for subscriptions.",n);return t}throw new O("Can only have query, mutation and subscription operations.",n)}function fr(e){return e.map(function(n){return typeof n=="number"?"["+n.toString()+"]":"."+n}).join("")}function vr(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oi;return ce(e,n,r)}function oi(e,n,r){var a="Invalid value "+S(n);throw e.length>0&&(a+=' at "value'.concat(fr(e),'"')),r.message=a+": "+r.message,r}function ce(e,n,r,a){if(L(n)){if(e!=null)return ce(e,n.ofType,r,a);r(F(a),e,new O('Expected non-nullable type "'.concat(S(n),'" not to be null.')));return}if(e==null)return null;if(B(n)){var t=n.ofType,i=Kn(e,function(N,U){var k=ee(a,U,void 0);return ce(N,t,r,k)});return i!=null?i:[ce(e,t,r,a)]}if(_(n)){if(!Fe(e)){r(F(a),e,new O('Expected type "'.concat(n.name,'" to be an object.')));return}for(var u={},c=n.getFields(),s=0,f=G(c);s<f.length;s++){var o=f[s],l=e[o.name];if(l===void 0){if(o.defaultValue!==void 0)u[o.name]=o.defaultValue;else if(L(o.type)){var v=S(o.type);r(F(a),e,new O('Field "'.concat(o.name,'" of required type "').concat(v,'" was not provided.')))}continue}u[o.name]=ce(l,o.type,r,ee(a,o.name,n.name))}for(var m=0,E=Object.keys(e);m<E.length;m++){var g=E[m];if(!c[g]){var R=Xr(g,Object.keys(n.getFields()));r(F(a),e,new O('Field "'.concat(g,'" is not defined by type "').concat(n.name,'".')+Zr(R)))}}return u}if(Xe(n)){var D;try{D=n.parseValue(e)}catch(N){N instanceof O?r(F(a),e,N):r(F(a),e,new O('Expected type "'.concat(n.name,'". ')+N.message,void 0,void 0,void 0,void 0,N));return}return D===void 0&&r(F(a),e,new O('Expected type "'.concat(n.name,'".'))),D}q(0,"Unexpected input type: "+S(n))}function si(e,n,r,a){var t=[],i=a==null?void 0:a.maxErrors;try{var u=li(e,n,r,function(c){if(i!=null&&t.length>=i)throw new O("Too many errors processing variables, error limit reached. Execution aborted.");t.push(c)});if(t.length===0)return{coerced:u}}catch(c){t.push(c)}return{errors:t}}function li(e,n,r,a){for(var t={},i=function(f){var o=n[f],l=o.variable.name.value,v=Ze(e,o.type);if(!xn(v)){var m=Z(o.type);return a(new O('Variable "$'.concat(l,'" expected value of type "').concat(m,'" which cannot be used as an input type.'),o.type)),"continue"}if(!pr(r,l)){if(o.defaultValue)t[l]=fe(o.defaultValue,v);else if(L(v)){var E=S(v);a(new O('Variable "$'.concat(l,'" of required type "').concat(E,'" was not provided.'),o))}return"continue"}var g=r[l];if(g===null&&L(v)){var R=S(v);return a(new O('Variable "$'.concat(l,'" of non-null type "').concat(R,'" must not be null.'),o)),"continue"}t[l]=vr(g,v,function(D,N,U){var k='Variable "$'.concat(l,'" got invalid value ')+S(N);D.length>0&&(k+=' at "'.concat(l).concat(fr(D),'"')),a(new O(k+"; "+U.message,o,void 0,void 0,void 0,U.originalError))})},u=0;u<n.length;u++)var c=i(u);return t}function cn(e,n,r){for(var a,t={},i=(a=n.arguments)!==null&&a!==void 0?a:[],u=Re(i,function(D){return D.name.value}),c=0,s=e.args;c<s.length;c++){var f=s[c],o=f.name,l=f.type,v=u[o];if(!v){if(f.defaultValue!==void 0)t[o]=f.defaultValue;else if(L(l))throw new O('Argument "'.concat(o,'" of required type "').concat(S(l),'" ')+"was not provided.",n);continue}var m=v.value,E=m.kind===w.NULL;if(m.kind===w.VARIABLE){var g=m.name.value;if(r==null||!pr(r,g)){if(f.defaultValue!==void 0)t[o]=f.defaultValue;else if(L(l))throw new O('Argument "'.concat(o,'" of required type "').concat(S(l),'" ')+'was provided the variable "$'.concat(g,'" which was not provided a runtime value.'),m);continue}E=r[g]==null}if(E&&L(l))throw new O('Argument "'.concat(o,'" of non-null type "').concat(S(l),'" ')+"must not be null.",m);var R=fe(m,l,r);if(R===void 0)throw new O('Argument "'.concat(o,'" has invalid value ').concat(Z(m),"."),m);t[o]=R}return t}function pe(e,n,r){var a=n.directives&&$r(n.directives,function(t){return t.name.value===e.name});if(a)return cn(e,a,r)}function pr(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function on(e,n,r,a,t,i,u,c){return arguments.length===1?We(e):We({schema:e,document:n,rootValue:r,contextValue:a,variableValues:t,operationName:i,fieldResolver:u,typeResolver:c})}function dr(e){var n=We(e);if(j(n))throw new Error("GraphQL execution failed to complete synchronously.");return n}function We(e){var n=e.schema,r=e.document,a=e.rootValue,t=e.contextValue,i=e.variableValues,u=e.operationName,c=e.fieldResolver,s=e.typeResolver;hr(n,r,i);var f=Er(n,r,a,t,i,u,c,s);if(Array.isArray(f))return{errors:f};var o=fi(f,f.operation,a);return mr(f,o)}function mr(e,n){return j(n)?n.then(function(r){return mr(e,r)}):e.errors.length===0?{data:n}:{errors:e.errors,data:n}}function hr(e,n,r){n||ve(0,"Must provide document."),_n(e),r==null||Fe(r)||ve(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function Er(e,n,r,a,t,i,u,c){for(var s,f,o,l=Object.create(null),v=0,m=n.definitions;v<m.length;v++){var E=m[v];switch(E.kind){case w.OPERATION_DEFINITION:if(i==null){if(o!==void 0)return[new O("Must provide operation name if query contains multiple operations.")];o=E}else((s=E.name)===null||s===void 0?void 0:s.value)===i&&(o=E);break;case w.FRAGMENT_DEFINITION:l[E.name.value]=E;break}}if(!o)return i!=null?[new O('Unknown operation named "'.concat(i,'".'))]:[new O("Must provide an operation.")];var g=(f=o.variableDefinitions)!==null&&f!==void 0?f:[],R=si(e,g,t!=null?t:{},{maxErrors:50});return R.errors?R.errors:{schema:e,fragments:l,rootValue:r,contextValue:a,operation:o,variableValues:R.coerced,fieldResolver:u!=null?u:Or,typeResolver:c!=null?c:yr,errors:[]}}function fi(e,n,r){var a=un(e.schema,n),t=de(e,a,n.selectionSet,Object.create(null),Object.create(null)),i=void 0;try{var u=n.operation==="mutation"?vi(e,a,r,i,t):br(e,a,r,i,t);return j(u)?u.then(void 0,function(c){return e.errors.push(c),Promise.resolve(null)}):u}catch(c){return e.errors.push(c),null}}function vi(e,n,r,a,t){return ui(Object.keys(t),function(i,u){var c=t[u],s=ee(a,u,n.name),f=gr(e,n,r,c,s);return f===void 0?i:j(f)?f.then(function(o){return i[u]=o,i}):(i[u]=f,i)},Object.create(null))}function br(e,n,r,a,t){for(var i=Object.create(null),u=!1,c=0,s=Object.keys(t);c<s.length;c++){var f=s[c],o=t[f],l=ee(a,f,n.name),v=gr(e,n,r,o,l);v!==void 0&&(i[f]=v,j(v)&&(u=!0))}return u?ci(i):i}function de(e,n,r,a,t){for(var i=0,u=r.selections;i<u.length;i++){var c=u[i];switch(c.kind){case w.FIELD:{if(!qe(e,c))continue;var s=pi(c);a[s]||(a[s]=[]),a[s].push(c);break}case w.INLINE_FRAGMENT:{if(!qe(e,c)||!In(e,c,n))continue;de(e,n,c.selectionSet,a,t);break}case w.FRAGMENT_SPREAD:{var f=c.name.value;if(t[f]||!qe(e,c))continue;t[f]=!0;var o=e.fragments[f];if(!o||!In(e,o,n))continue;de(e,n,o.selectionSet,a,t);break}}}return a}function qe(e,n){var r=pe(Yn,n,e.variableValues);if((r==null?void 0:r.if)===!0)return!1;var a=pe(Hn,n,e.variableValues);return(a==null?void 0:a.if)!==!1}function In(e,n,r){var a=n.typeCondition;if(!a)return!0;var t=Ze(e.schema,a);return t===r?!0:$e(t)?e.schema.isSubType(t,r):!1}function pi(e){return e.alias?e.alias.value:e.name.value}function gr(e,n,r,a,t){var i,u=a[0],c=u.name.value,s=Rr(e.schema,n,c);if(s){var f=s.type,o=(i=s.resolve)!==null&&i!==void 0?i:e.fieldResolver,l=Dr(e,s,a,n,t);try{var v=cn(s,a[0],e.variableValues),m=e.contextValue,E=o(r,v,m,l),g;return j(E)?g=E.then(function(D){return me(e,f,a,l,t,D)}):g=me(e,f,a,l,t,E),j(g)?g.then(void 0,function(D){var N=W(D,a,F(t));return Me(N,f,e)}):g}catch(D){var R=W(D,a,F(t));return Me(R,f,e)}}}function Dr(e,n,r,a,t){return{fieldName:n.name,fieldNodes:r,returnType:n.type,parentType:a,path:t,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Me(e,n,r){if(L(n))throw e;return r.errors.push(e),null}function me(e,n,r,a,t,i){if(i instanceof Error)throw i;if(L(n)){var u=me(e,n.ofType,r,a,t,i);if(u===null)throw new Error("Cannot return null for non-nullable field ".concat(a.parentType.name,".").concat(a.fieldName,"."));return u}if(i==null)return null;if(B(n))return di(e,n,r,a,t,i);if(Xe(n))return mi(n,i);if($e(n))return hi(e,n,r,a,t,i);if(K(n))return ze(e,n,r,a,t,i);q(0,"Cannot complete value of unexpected output type: "+S(n))}function di(e,n,r,a,t,i){var u=n.ofType,c=!1,s=Kn(i,function(f,o){var l=ee(t,o,void 0);try{var v;return j(f)?v=f.then(function(E){return me(e,u,r,a,l,E)}):v=me(e,u,r,a,l,f),j(v)?(c=!0,v.then(void 0,function(E){var g=W(E,r,F(l));return Me(g,u,e)})):v}catch(E){var m=W(E,r,F(l));return Me(m,u,e)}});if(s==null)throw new O('Expected Iterable, but did not find one for field "'.concat(a.parentType.name,".").concat(a.fieldName,'".'));return c?Promise.all(s):s}function mi(e,n){var r=e.serialize(n);if(r===void 0)throw new Error('Expected a value of type "'.concat(S(e),'" but ')+"received: ".concat(S(n)));return r}function hi(e,n,r,a,t,i){var u,c=(u=n.resolveType)!==null&&u!==void 0?u:e.typeResolver,s=e.contextValue,f=c(i,s,a,n);return j(f)?f.then(function(o){return ze(e,Tn(o,e,n,r,a,i),r,a,t,i)}):ze(e,Tn(f,e,n,r,a,i),r,a,t,i)}function Tn(e,n,r,a,t,i){if(e==null)throw new O('Abstract type "'.concat(r.name,'" must resolve to an Object type at runtime for field "').concat(t.parentType.name,".").concat(t.fieldName,'". Either the "').concat(r.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),a);var u=je(e)?e.name:e;if(typeof u!="string")throw new O('Abstract type "'.concat(r.name,'" must resolve to an Object type at runtime for field "').concat(t.parentType.name,".").concat(t.fieldName,'" with ')+"value ".concat(S(i),', received "').concat(S(e),'".'));var c=n.schema.getType(u);if(c==null)throw new O('Abstract type "'.concat(r.name,'" was resolve to a type "').concat(u,'" that does not exist inside schema.'),a);if(!K(c))throw new O('Abstract type "'.concat(r.name,'" was resolve to a non-object type "').concat(u,'".'),a);if(!n.schema.isSubType(r,c))throw new O('Runtime Object type "'.concat(c.name,'" is not a possible type for "').concat(r.name,'".'),a);return c}function ze(e,n,r,a,t,i){if(n.isTypeOf){var u=n.isTypeOf(i,e.contextValue,a);if(j(u))return u.then(function(c){if(!c)throw Vn(n,i,r);return An(e,n,r,t,i)});if(!u)throw Vn(n,i,r)}return An(e,n,r,t,i)}function Vn(e,n,r){return new O('Expected value of type "'.concat(e.name,'" but got: ').concat(S(n),"."),r)}function An(e,n,r,a,t){var i=Ei(e,n,r);return br(e,n,t,a,i)}var Ei=ii(bi);function bi(e,n,r){for(var a=Object.create(null),t=Object.create(null),i=0;i<r.length;i++){var u=r[i];u.selectionSet&&(a=de(e,n,u.selectionSet,a,t))}return a}var yr=function(n,r,a,t){if(Fe(n)&&typeof n.__typename=="string")return n.__typename;for(var i=a.schema.getPossibleTypes(t),u=[],c=0;c<i.length;c++){var s=i[c];if(s.isTypeOf){var f=s.isTypeOf(n,r,a);if(j(f))u[c]=f;else if(f)return s.name}}if(u.length)return Promise.all(u).then(function(o){for(var l=0;l<o.length;l++)if(o[l])return i[l].name})},Or=function(n,r,a,t){if(Fe(n)||typeof n=="function"){var i=n[t.fieldName];return typeof i=="function"?n[t.fieldName](r,a,t):i}};function Rr(e,n,r){return r===Be.name&&e.getQueryType()===n?Be:r===Ke.name&&e.getQueryType()===n?Ke:r===xe.name?xe:n.getFields()[r]}function gi(e,n,r,a,t,i,u,c){var s=arguments;return new Promise(function(f){return f(s.length===1?Le(e):Le({schema:e,source:n,rootValue:r,contextValue:a,variableValues:t,operationName:i,fieldResolver:u,typeResolver:c}))})}function Di(e,n,r,a,t,i,u,c){var s=arguments.length===1?Le(e):Le({schema:e,source:n,rootValue:r,contextValue:a,variableValues:t,operationName:i,fieldResolver:u,typeResolver:c});if(j(s))throw new Error("GraphQL execution failed to complete synchronously.");return s}function Le(e){var n=e.schema,r=e.source,a=e.rootValue,t=e.contextValue,i=e.variableValues,u=e.operationName,c=e.fieldResolver,s=e.typeResolver,f=Wn(n);if(f.length>0)return{errors:f};var o;try{o=Ue(r)}catch(v){return{errors:[v]}}var l=en(n,o);return l.length>0?{errors:l}:on({schema:n,document:o,rootValue:a,contextValue:t,variableValues:i,operationName:u,fieldResolver:c,typeResolver:s})}function Ir(e){return typeof(e==null?void 0:e[_e])=="function"}function yi(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Oi(e,n,r){var a=e[_e],t=a.call(e),i,u;typeof t.return=="function"&&(i=t.return,u=function(l){var v=function(){return Promise.reject(l)};return i.call(t).then(v,v)});function c(o){return o.done?o:Nn(o.value,n).then(wn,u)}var s;if(r){var f=r;s=function(l){return Nn(l,f).then(wn,u)}}return yi({next:function(){return t.next().then(c,s)},return:function(){return i?i.call(t).then(c,s):Promise.resolve({value:void 0,done:!0})},throw:function(l){return typeof t.throw=="function"?t.throw(l).then(c,s):Promise.reject(l).catch(u)}},_e,function(){return this})}function Nn(e,n){return new Promise(function(r){return r(n(e))})}function wn(e){return{value:e,done:!1}}function Ri(e,n,r,a,t,i,u,c){return arguments.length===1?Sn(e):Sn({schema:e,document:n,rootValue:r,contextValue:a,variableValues:t,operationName:i,fieldResolver:u,subscribeFieldResolver:c})}function Tr(e){if(e instanceof O)return{errors:[e]};throw e}function Sn(e){var n=e.schema,r=e.document,a=e.rootValue,t=e.contextValue,i=e.variableValues,u=e.operationName,c=e.fieldResolver,s=e.subscribeFieldResolver,f=Vr(n,r,a,t,i,u,s),o=function(v){return on({schema:n,document:r,rootValue:v,contextValue:t,variableValues:i,operationName:u,fieldResolver:c})};return f.then(function(l){return Ir(l)?Oi(l,o,Tr):l})}function Vr(e,n,r,a,t,i,u){return hr(e,n,t),new Promise(function(c){var s=Er(e,n,r,a,t,i,u);c(Array.isArray(s)?{errors:s}:Ii(s))}).catch(Tr)}function Ii(e){var n=e.schema,r=e.operation,a=e.variableValues,t=e.rootValue,i=un(n,r),u=de(e,i,r.selectionSet,Object.create(null),Object.create(null)),c=Object.keys(u),s=c[0],f=u[s],o=f[0],l=o.name.value,v=Rr(n,i,l);if(!v)throw new O('The subscription field "'.concat(l,'" is not defined.'),f);var m=ee(void 0,s,i.name),E=Dr(e,v,f,i,m);return new Promise(function(g){var R,D=cn(v,f[0],a),N=e.contextValue,U=(R=v.subscribe)!==null&&R!==void 0?R:e.fieldResolver;g(U(t,D,N,E))}).then(function(g){if(g instanceof Error)throw W(g,f,F(m));if(!Ir(g))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat(S(g),"."));return g},function(g){throw W(g,f,F(m))})}function Ti(e){return{Field:function(r){var a=zn(e.getType());a&&ne(a)&&e.reportError(new O('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(r.name.value,'".'),r))}}}function Vi(e){var n;e||ve(0,"Received null or undefined error.");var r=(n=e.message)!==null&&n!==void 0?n:"An unknown error occurred.",a=e.locations,t=e.path,i=e.extensions;return i&&Object.keys(i).length>0?{message:r,locations:a,path:t,extensions:i}:{message:r,locations:a,path:t}}function Ai(e,n){for(var r=null,a=0,t=e.definitions;a<t.length;a++){var i=t[a];if(i.kind===w.OPERATION_DEFINITION){var u;if(n==null){if(r)return null;r=i}else if(((u=i.name)===null||u===void 0?void 0:u.value)===n)return i}}return r}function Pn(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Ni(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Pn(Object(r),!0).forEach(function(a){wi(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function wi(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Si(e,n){var r=Ni({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},n),a=Ue(Jn(r)),t=dr({schema:e,document:a});return!t.errors&&t.data||q(0),t.data}function Mn(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function I(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Mn(Object(r),!0).forEach(function(a){Pi(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Pi(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Mi(e,n,r){Xn(e),n!=null&&n.kind===w.DOCUMENT||ve(0,"Must provide valid Document AST."),(r==null?void 0:r.assumeValid)!==!0&&(r==null?void 0:r.assumeValidSDL)!==!0&&ea(n,e);var a=e.toConfig(),t=Ar(a,n,r);return a===t?e:new Ge(t)}function Ar(e,n,r){for(var a,t,i,u,c=[],s=Object.create(null),f=[],o,l=[],v=0,m=n.definitions;v<m.length;v++){var E=m[v];if(E.kind===w.SCHEMA_DEFINITION)o=E;else if(E.kind===w.SCHEMA_EXTENSION)l.push(E);else if(Zn(E))c.push(E);else if($n(E)){var g=E.name.value,R=s[g];s[g]=R?R.concat([E]):[E]}else E.kind===w.DIRECTIVE_DEFINITION&&f.push(E)}if(Object.keys(s).length===0&&c.length===0&&f.length===0&&l.length===0&&o==null)return e;for(var D=Object.create(null),N=0,U=e.types;N<U.length;N++){var k=U[N];D[k.name]=Cr(k)}for(var $=0;$<c.length;$++){var ke,vn=c[$],pn=vn.name.value;D[pn]=(ke=Ln[pn])!==null&&ke!==void 0?ke:Yr(vn)}var Ur=I(I({query:e.query&&Y(e.query),mutation:e.mutation&&Y(e.mutation),subscription:e.subscription&&Y(e.subscription)},o&&hn([o])),hn(l));return I(I({description:(a=o)===null||a===void 0||(t=a.description)===null||t===void 0?void 0:t.value},Ur),{},{types:G(D),directives:[].concat(e.directives.map(Gr),f.map(_r)),extensions:void 0,astNode:(i=o)!==null&&i!==void 0?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(l),assumeValid:(u=r==null?void 0:r.assumeValid)!==null&&u!==void 0?u:!1});function re(p){return B(p)?new Se(re(p.ofType)):L(p)?new Pe(re(p.ofType)):Y(p)}function Y(p){return D[p.name]}function Gr(p){var b=p.toConfig();return new Ie(I(I({},b),{},{args:ue(b.args,mn)}))}function Cr(p){if(ne(p)||Ce(p))return p;if(he(p))return Qr(p);if(K(p))return Br(p);if(z(p))return Kr(p);if(J(p))return xr(p);if(X(p))return qr(p);if(_(p))return kr(p);q(0,"Unexpected type: "+S(p))}function kr(p){var b,d=p.toConfig(),h=(b=s[d.name])!==null&&b!==void 0?b:[];return new Te(I(I({},d),{},{fields:function(){return I(I({},ue(d.fields,function(T){return I(I({},T),{},{type:re(T.type)})})),bn(h))},extensionASTNodes:d.extensionASTNodes.concat(h)}))}function qr(p){var b,d=p.toConfig(),h=(b=s[p.name])!==null&&b!==void 0?b:[];return new Ve(I(I({},d),{},{values:I(I({},d.values),gn(h)),extensionASTNodes:d.extensionASTNodes.concat(h)}))}function Qr(p){for(var b,d=p.toConfig(),h=(b=s[d.name])!==null&&b!==void 0?b:[],y=d.specifiedByUrl,T=0;T<h.length;T++){var V,A=h[T];y=(V=Fn(A))!==null&&V!==void 0?V:y}return new Ye(I(I({},d),{},{specifiedByUrl:y,extensionASTNodes:d.extensionASTNodes.concat(h)}))}function Br(p){var b,d=p.toConfig(),h=(b=s[d.name])!==null&&b!==void 0?b:[];return new Ae(I(I({},d),{},{interfaces:function(){return[].concat(p.getInterfaces().map(Y),De(h))},fields:function(){return I(I({},ue(d.fields,dn)),ge(h))},extensionASTNodes:d.extensionASTNodes.concat(h)}))}function Kr(p){var b,d=p.toConfig(),h=(b=s[d.name])!==null&&b!==void 0?b:[];return new Ne(I(I({},d),{},{interfaces:function(){return[].concat(p.getInterfaces().map(Y),De(h))},fields:function(){return I(I({},ue(d.fields,dn)),ge(h))},extensionASTNodes:d.extensionASTNodes.concat(h)}))}function xr(p){var b,d=p.toConfig(),h=(b=s[d.name])!==null&&b!==void 0?b:[];return new we(I(I({},d),{},{types:function(){return[].concat(p.getTypes().map(Y),Dn(h))},extensionASTNodes:d.extensionASTNodes.concat(h)}))}function dn(p){return I(I({},p),{},{type:re(p.type),args:ue(p.args,mn)})}function mn(p){return I(I({},p),{},{type:re(p.type)})}function hn(p){for(var b={},d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.operationTypes)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V];b[A.operation]=be(A.type)}return b}function be(p){var b,d=p.name.value,h=(b=Ln[d])!==null&&b!==void 0?b:D[d];if(h===void 0)throw new Error('Unknown type: "'.concat(d,'".'));return h}function ae(p){return p.kind===w.LIST_TYPE?new Se(ae(p.type)):p.kind===w.NON_NULL_TYPE?new Pe(ae(p.type)):be(p)}function _r(p){var b=p.locations.map(function(d){var h=d.value;return h});return new Ie({name:p.name.value,description:H(p,r),locations:b,isRepeatable:p.repeatable,args:En(p.arguments),astNode:p})}function ge(p){for(var b=Object.create(null),d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.fields)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V];b[A.name.value]={type:ae(A.type),description:H(A,r),args:En(A.arguments),deprecationReason:ye(A),astNode:A}}return b}function En(p){for(var b=p!=null?p:[],d=Object.create(null),h=0;h<b.length;h++){var y=b[h],T=ae(y.type);d[y.name.value]={type:T,description:H(y,r),defaultValue:fe(y.defaultValue,T),deprecationReason:ye(y),astNode:y}}return d}function bn(p){for(var b=Object.create(null),d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.fields)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V],te=ae(A.type);b[A.name.value]={type:te,description:H(A,r),defaultValue:fe(A.defaultValue,te),deprecationReason:ye(A),astNode:A}}return b}function gn(p){for(var b=Object.create(null),d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.values)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V];b[A.name.value]={description:H(A,r),deprecationReason:ye(A),astNode:A}}return b}function De(p){for(var b=[],d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.interfaces)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V];b.push(be(A))}return b}function Dn(p){for(var b=[],d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.types)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V];b.push(be(A))}return b}function Yr(p){var b,d=p.name.value,h=H(p,r),y=(b=s[d])!==null&&b!==void 0?b:[];switch(p.kind){case w.OBJECT_TYPE_DEFINITION:{var T=y,V=[p].concat(T);return new Ae({name:d,description:h,interfaces:function(){return De(V)},fields:function(){return ge(V)},astNode:p,extensionASTNodes:T})}case w.INTERFACE_TYPE_DEFINITION:{var A=y,te=[p].concat(A);return new Ne({name:d,description:h,interfaces:function(){return De(te)},fields:function(){return ge(te)},astNode:p,extensionASTNodes:A})}case w.ENUM_TYPE_DEFINITION:{var yn=y,Hr=[p].concat(yn);return new Ve({name:d,description:h,values:gn(Hr),astNode:p,extensionASTNodes:yn})}case w.UNION_TYPE_DEFINITION:{var On=y,Wr=[p].concat(On);return new we({name:d,description:h,types:function(){return Dn(Wr)},astNode:p,extensionASTNodes:On})}case w.SCALAR_TYPE_DEFINITION:{var zr=y;return new Ye({name:d,description:h,specifiedByUrl:Fn(p),astNode:p,extensionASTNodes:zr})}case w.INPUT_OBJECT_TYPE_DEFINITION:{var Rn=y,Jr=[p].concat(Rn);return new Te({name:d,description:h,fields:function(){return bn(Jr)},astNode:p,extensionASTNodes:Rn})}}q(0,"Unexpected type definition node: "+S(p))}}var Ln=Re(er.concat(nr),function(e){return e.name});function ye(e){var n=pe(rr,e);return n==null?void 0:n.reason}function Fn(e){var n=pe(ar,e);return n==null?void 0:n.url}function H(e,n){if(e.description)return e.description.value;if((n==null?void 0:n.commentDescriptions)===!0){var r=Li(e);if(r!==void 0)return tr(`
1
+ import{G as O,a as L,b as S,c as B,s as Kn,d as _,e as Fe,o as G,f as Xr,g as Zr,h as Xe,j as q,k as $r,l as Re,K as w,v as fe,p as Z,t as Ze,m as xn,n as ve,q as _n,r as Yn,u as Hn,w as $e,x as W,y as K,z as je,S as Be,T as Ke,A as xe,B as Wn,C as Ue,D as en,E as _e,F as zn,H as ne,I as Jn,J as Xn,L as ea,M as Ge,N as Zn,O as $n,P as Ie,Q as ue,R as Ce,U as he,V as z,W as J,X,Y as Te,Z as Ve,_ as Ye,$ as Ae,a0 as Ne,a1 as we,a2 as er,a3 as nr,a4 as rr,a5 as ar,a6 as tr,a7 as se,a8 as Se,a9 as Pe,aa as na,ab as He,ac as ra,ad as ir,ae as Ee,af as nn,ag as ur,ah as aa,ai as rn,aj as an,ak as ta,al as cr,am as or,an as ia,ao as ua,ap as tn,aq as sr,ar as lr,as as ca,at as oa,au as sa,av as la,aw as fa,ax as va,ay as pa,az as da,aA as ma,aB as ha,aC as Ea,aD as ba,aE as ga,aF as Da,aG as ya,aH as Oa,aI as Ra,aJ as Ia,aK as Ta,aL as Va,aM as Aa,aN as Na,aO as wa,aP as Sa,aQ as Pa,aR as Ma,aS as La,aT as Fa,aU as ja,aV as Ua,aW as Ga,aX as Ca,aY as ka,aZ as qa,a_ as Qa,a$ as Ba,b0 as Ka,b1 as xa,b2 as _a,b3 as Ya,b4 as Ha,b5 as Wa,b6 as za,b7 as Ja,b8 as Xa,b9 as Za,ba as $a,bb as et,bc as nt,bd as rt,be as at,bf as tt,bg as it,bh as ut,bi as ct,bj as ot,bk as st,bl as lt,bm as ft,bn as vt,bo as pt,bp as dt,bq as mt,br as ht,bs as Et,bt,bu as gt,bv as Dt,bw as yt,bx as Ot,by as Rt,bz as It,bA as Tt,bB as Vt,bC as At,bD as Nt,bE as wt,bF as St,bG as Pt,bH as Mt,bI as Lt,bJ as Ft,bK as jt,bL as Ut,bM as Gt,bN as Ct,bO as kt,bP as qt,bQ as Qt,bR as Bt,bS as Kt,bT as xt,bU as _t,bV as Yt,bW as Ht,bX as Wt,bY as zt,bZ as Jt,b_ as Xt,b$ as Zt,c0 as $t,c1 as ei,c2 as ni}from"./GraphiQLSandbox-53d3feeb.js";import{b as ri}from"./index-f32c771c.js";var ai="15.8.0",ti=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function j(e){return typeof(e==null?void 0:e.then)=="function"}function ii(e){var n;return function(a,t,i){n||(n=new WeakMap);var u=n.get(a),c;if(u){if(c=u.get(t),c){var s=c.get(i);if(s!==void 0)return s}}else u=new WeakMap,n.set(a,u);c||(c=new WeakMap,u.set(t,c));var f=e(a,t,i);return c.set(i,f),f}}function ui(e,n,r){return e.reduce(function(a,t){return j(a)?a.then(function(i){return n(i,t)}):n(a,t)},r)}function ci(e){var n=Object.keys(e),r=n.map(function(a){return e[a]});return Promise.all(r).then(function(a){return a.reduce(function(t,i,u){return t[n[u]]=i,t},Object.create(null))})}function ee(e,n,r){return{prev:e,key:n,typename:r}}function F(e){for(var n=[],r=e;r;)n.push(r.key),r=r.prev;return n.reverse()}function un(e,n){if(n.operation==="query"){var r=e.getQueryType();if(!r)throw new O("Schema does not define the required query root type.",n);return r}if(n.operation==="mutation"){var a=e.getMutationType();if(!a)throw new O("Schema is not configured for mutations.",n);return a}if(n.operation==="subscription"){var t=e.getSubscriptionType();if(!t)throw new O("Schema is not configured for subscriptions.",n);return t}throw new O("Can only have query, mutation and subscription operations.",n)}function fr(e){return e.map(function(n){return typeof n=="number"?"["+n.toString()+"]":"."+n}).join("")}function vr(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oi;return ce(e,n,r)}function oi(e,n,r){var a="Invalid value "+S(n);throw e.length>0&&(a+=' at "value'.concat(fr(e),'"')),r.message=a+": "+r.message,r}function ce(e,n,r,a){if(L(n)){if(e!=null)return ce(e,n.ofType,r,a);r(F(a),e,new O('Expected non-nullable type "'.concat(S(n),'" not to be null.')));return}if(e==null)return null;if(B(n)){var t=n.ofType,i=Kn(e,function(N,U){var k=ee(a,U,void 0);return ce(N,t,r,k)});return i!=null?i:[ce(e,t,r,a)]}if(_(n)){if(!Fe(e)){r(F(a),e,new O('Expected type "'.concat(n.name,'" to be an object.')));return}for(var u={},c=n.getFields(),s=0,f=G(c);s<f.length;s++){var o=f[s],l=e[o.name];if(l===void 0){if(o.defaultValue!==void 0)u[o.name]=o.defaultValue;else if(L(o.type)){var v=S(o.type);r(F(a),e,new O('Field "'.concat(o.name,'" of required type "').concat(v,'" was not provided.')))}continue}u[o.name]=ce(l,o.type,r,ee(a,o.name,n.name))}for(var m=0,E=Object.keys(e);m<E.length;m++){var g=E[m];if(!c[g]){var R=Xr(g,Object.keys(n.getFields()));r(F(a),e,new O('Field "'.concat(g,'" is not defined by type "').concat(n.name,'".')+Zr(R)))}}return u}if(Xe(n)){var D;try{D=n.parseValue(e)}catch(N){N instanceof O?r(F(a),e,N):r(F(a),e,new O('Expected type "'.concat(n.name,'". ')+N.message,void 0,void 0,void 0,void 0,N));return}return D===void 0&&r(F(a),e,new O('Expected type "'.concat(n.name,'".'))),D}q(0,"Unexpected input type: "+S(n))}function si(e,n,r,a){var t=[],i=a==null?void 0:a.maxErrors;try{var u=li(e,n,r,function(c){if(i!=null&&t.length>=i)throw new O("Too many errors processing variables, error limit reached. Execution aborted.");t.push(c)});if(t.length===0)return{coerced:u}}catch(c){t.push(c)}return{errors:t}}function li(e,n,r,a){for(var t={},i=function(f){var o=n[f],l=o.variable.name.value,v=Ze(e,o.type);if(!xn(v)){var m=Z(o.type);return a(new O('Variable "$'.concat(l,'" expected value of type "').concat(m,'" which cannot be used as an input type.'),o.type)),"continue"}if(!pr(r,l)){if(o.defaultValue)t[l]=fe(o.defaultValue,v);else if(L(v)){var E=S(v);a(new O('Variable "$'.concat(l,'" of required type "').concat(E,'" was not provided.'),o))}return"continue"}var g=r[l];if(g===null&&L(v)){var R=S(v);return a(new O('Variable "$'.concat(l,'" of non-null type "').concat(R,'" must not be null.'),o)),"continue"}t[l]=vr(g,v,function(D,N,U){var k='Variable "$'.concat(l,'" got invalid value ')+S(N);D.length>0&&(k+=' at "'.concat(l).concat(fr(D),'"')),a(new O(k+"; "+U.message,o,void 0,void 0,void 0,U.originalError))})},u=0;u<n.length;u++)var c=i(u);return t}function cn(e,n,r){for(var a,t={},i=(a=n.arguments)!==null&&a!==void 0?a:[],u=Re(i,function(D){return D.name.value}),c=0,s=e.args;c<s.length;c++){var f=s[c],o=f.name,l=f.type,v=u[o];if(!v){if(f.defaultValue!==void 0)t[o]=f.defaultValue;else if(L(l))throw new O('Argument "'.concat(o,'" of required type "').concat(S(l),'" ')+"was not provided.",n);continue}var m=v.value,E=m.kind===w.NULL;if(m.kind===w.VARIABLE){var g=m.name.value;if(r==null||!pr(r,g)){if(f.defaultValue!==void 0)t[o]=f.defaultValue;else if(L(l))throw new O('Argument "'.concat(o,'" of required type "').concat(S(l),'" ')+'was provided the variable "$'.concat(g,'" which was not provided a runtime value.'),m);continue}E=r[g]==null}if(E&&L(l))throw new O('Argument "'.concat(o,'" of non-null type "').concat(S(l),'" ')+"must not be null.",m);var R=fe(m,l,r);if(R===void 0)throw new O('Argument "'.concat(o,'" has invalid value ').concat(Z(m),"."),m);t[o]=R}return t}function pe(e,n,r){var a=n.directives&&$r(n.directives,function(t){return t.name.value===e.name});if(a)return cn(e,a,r)}function pr(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function on(e,n,r,a,t,i,u,c){return arguments.length===1?We(e):We({schema:e,document:n,rootValue:r,contextValue:a,variableValues:t,operationName:i,fieldResolver:u,typeResolver:c})}function dr(e){var n=We(e);if(j(n))throw new Error("GraphQL execution failed to complete synchronously.");return n}function We(e){var n=e.schema,r=e.document,a=e.rootValue,t=e.contextValue,i=e.variableValues,u=e.operationName,c=e.fieldResolver,s=e.typeResolver;hr(n,r,i);var f=Er(n,r,a,t,i,u,c,s);if(Array.isArray(f))return{errors:f};var o=fi(f,f.operation,a);return mr(f,o)}function mr(e,n){return j(n)?n.then(function(r){return mr(e,r)}):e.errors.length===0?{data:n}:{errors:e.errors,data:n}}function hr(e,n,r){n||ve(0,"Must provide document."),_n(e),r==null||Fe(r)||ve(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function Er(e,n,r,a,t,i,u,c){for(var s,f,o,l=Object.create(null),v=0,m=n.definitions;v<m.length;v++){var E=m[v];switch(E.kind){case w.OPERATION_DEFINITION:if(i==null){if(o!==void 0)return[new O("Must provide operation name if query contains multiple operations.")];o=E}else((s=E.name)===null||s===void 0?void 0:s.value)===i&&(o=E);break;case w.FRAGMENT_DEFINITION:l[E.name.value]=E;break}}if(!o)return i!=null?[new O('Unknown operation named "'.concat(i,'".'))]:[new O("Must provide an operation.")];var g=(f=o.variableDefinitions)!==null&&f!==void 0?f:[],R=si(e,g,t!=null?t:{},{maxErrors:50});return R.errors?R.errors:{schema:e,fragments:l,rootValue:r,contextValue:a,operation:o,variableValues:R.coerced,fieldResolver:u!=null?u:Or,typeResolver:c!=null?c:yr,errors:[]}}function fi(e,n,r){var a=un(e.schema,n),t=de(e,a,n.selectionSet,Object.create(null),Object.create(null)),i=void 0;try{var u=n.operation==="mutation"?vi(e,a,r,i,t):br(e,a,r,i,t);return j(u)?u.then(void 0,function(c){return e.errors.push(c),Promise.resolve(null)}):u}catch(c){return e.errors.push(c),null}}function vi(e,n,r,a,t){return ui(Object.keys(t),function(i,u){var c=t[u],s=ee(a,u,n.name),f=gr(e,n,r,c,s);return f===void 0?i:j(f)?f.then(function(o){return i[u]=o,i}):(i[u]=f,i)},Object.create(null))}function br(e,n,r,a,t){for(var i=Object.create(null),u=!1,c=0,s=Object.keys(t);c<s.length;c++){var f=s[c],o=t[f],l=ee(a,f,n.name),v=gr(e,n,r,o,l);v!==void 0&&(i[f]=v,j(v)&&(u=!0))}return u?ci(i):i}function de(e,n,r,a,t){for(var i=0,u=r.selections;i<u.length;i++){var c=u[i];switch(c.kind){case w.FIELD:{if(!qe(e,c))continue;var s=pi(c);a[s]||(a[s]=[]),a[s].push(c);break}case w.INLINE_FRAGMENT:{if(!qe(e,c)||!In(e,c,n))continue;de(e,n,c.selectionSet,a,t);break}case w.FRAGMENT_SPREAD:{var f=c.name.value;if(t[f]||!qe(e,c))continue;t[f]=!0;var o=e.fragments[f];if(!o||!In(e,o,n))continue;de(e,n,o.selectionSet,a,t);break}}}return a}function qe(e,n){var r=pe(Yn,n,e.variableValues);if((r==null?void 0:r.if)===!0)return!1;var a=pe(Hn,n,e.variableValues);return(a==null?void 0:a.if)!==!1}function In(e,n,r){var a=n.typeCondition;if(!a)return!0;var t=Ze(e.schema,a);return t===r?!0:$e(t)?e.schema.isSubType(t,r):!1}function pi(e){return e.alias?e.alias.value:e.name.value}function gr(e,n,r,a,t){var i,u=a[0],c=u.name.value,s=Rr(e.schema,n,c);if(s){var f=s.type,o=(i=s.resolve)!==null&&i!==void 0?i:e.fieldResolver,l=Dr(e,s,a,n,t);try{var v=cn(s,a[0],e.variableValues),m=e.contextValue,E=o(r,v,m,l),g;return j(E)?g=E.then(function(D){return me(e,f,a,l,t,D)}):g=me(e,f,a,l,t,E),j(g)?g.then(void 0,function(D){var N=W(D,a,F(t));return Me(N,f,e)}):g}catch(D){var R=W(D,a,F(t));return Me(R,f,e)}}}function Dr(e,n,r,a,t){return{fieldName:n.name,fieldNodes:r,returnType:n.type,parentType:a,path:t,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Me(e,n,r){if(L(n))throw e;return r.errors.push(e),null}function me(e,n,r,a,t,i){if(i instanceof Error)throw i;if(L(n)){var u=me(e,n.ofType,r,a,t,i);if(u===null)throw new Error("Cannot return null for non-nullable field ".concat(a.parentType.name,".").concat(a.fieldName,"."));return u}if(i==null)return null;if(B(n))return di(e,n,r,a,t,i);if(Xe(n))return mi(n,i);if($e(n))return hi(e,n,r,a,t,i);if(K(n))return ze(e,n,r,a,t,i);q(0,"Cannot complete value of unexpected output type: "+S(n))}function di(e,n,r,a,t,i){var u=n.ofType,c=!1,s=Kn(i,function(f,o){var l=ee(t,o,void 0);try{var v;return j(f)?v=f.then(function(E){return me(e,u,r,a,l,E)}):v=me(e,u,r,a,l,f),j(v)?(c=!0,v.then(void 0,function(E){var g=W(E,r,F(l));return Me(g,u,e)})):v}catch(E){var m=W(E,r,F(l));return Me(m,u,e)}});if(s==null)throw new O('Expected Iterable, but did not find one for field "'.concat(a.parentType.name,".").concat(a.fieldName,'".'));return c?Promise.all(s):s}function mi(e,n){var r=e.serialize(n);if(r===void 0)throw new Error('Expected a value of type "'.concat(S(e),'" but ')+"received: ".concat(S(n)));return r}function hi(e,n,r,a,t,i){var u,c=(u=n.resolveType)!==null&&u!==void 0?u:e.typeResolver,s=e.contextValue,f=c(i,s,a,n);return j(f)?f.then(function(o){return ze(e,Tn(o,e,n,r,a,i),r,a,t,i)}):ze(e,Tn(f,e,n,r,a,i),r,a,t,i)}function Tn(e,n,r,a,t,i){if(e==null)throw new O('Abstract type "'.concat(r.name,'" must resolve to an Object type at runtime for field "').concat(t.parentType.name,".").concat(t.fieldName,'". Either the "').concat(r.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),a);var u=je(e)?e.name:e;if(typeof u!="string")throw new O('Abstract type "'.concat(r.name,'" must resolve to an Object type at runtime for field "').concat(t.parentType.name,".").concat(t.fieldName,'" with ')+"value ".concat(S(i),', received "').concat(S(e),'".'));var c=n.schema.getType(u);if(c==null)throw new O('Abstract type "'.concat(r.name,'" was resolve to a type "').concat(u,'" that does not exist inside schema.'),a);if(!K(c))throw new O('Abstract type "'.concat(r.name,'" was resolve to a non-object type "').concat(u,'".'),a);if(!n.schema.isSubType(r,c))throw new O('Runtime Object type "'.concat(c.name,'" is not a possible type for "').concat(r.name,'".'),a);return c}function ze(e,n,r,a,t,i){if(n.isTypeOf){var u=n.isTypeOf(i,e.contextValue,a);if(j(u))return u.then(function(c){if(!c)throw Vn(n,i,r);return An(e,n,r,t,i)});if(!u)throw Vn(n,i,r)}return An(e,n,r,t,i)}function Vn(e,n,r){return new O('Expected value of type "'.concat(e.name,'" but got: ').concat(S(n),"."),r)}function An(e,n,r,a,t){var i=Ei(e,n,r);return br(e,n,t,a,i)}var Ei=ii(bi);function bi(e,n,r){for(var a=Object.create(null),t=Object.create(null),i=0;i<r.length;i++){var u=r[i];u.selectionSet&&(a=de(e,n,u.selectionSet,a,t))}return a}var yr=function(n,r,a,t){if(Fe(n)&&typeof n.__typename=="string")return n.__typename;for(var i=a.schema.getPossibleTypes(t),u=[],c=0;c<i.length;c++){var s=i[c];if(s.isTypeOf){var f=s.isTypeOf(n,r,a);if(j(f))u[c]=f;else if(f)return s.name}}if(u.length)return Promise.all(u).then(function(o){for(var l=0;l<o.length;l++)if(o[l])return i[l].name})},Or=function(n,r,a,t){if(Fe(n)||typeof n=="function"){var i=n[t.fieldName];return typeof i=="function"?n[t.fieldName](r,a,t):i}};function Rr(e,n,r){return r===Be.name&&e.getQueryType()===n?Be:r===Ke.name&&e.getQueryType()===n?Ke:r===xe.name?xe:n.getFields()[r]}function gi(e,n,r,a,t,i,u,c){var s=arguments;return new Promise(function(f){return f(s.length===1?Le(e):Le({schema:e,source:n,rootValue:r,contextValue:a,variableValues:t,operationName:i,fieldResolver:u,typeResolver:c}))})}function Di(e,n,r,a,t,i,u,c){var s=arguments.length===1?Le(e):Le({schema:e,source:n,rootValue:r,contextValue:a,variableValues:t,operationName:i,fieldResolver:u,typeResolver:c});if(j(s))throw new Error("GraphQL execution failed to complete synchronously.");return s}function Le(e){var n=e.schema,r=e.source,a=e.rootValue,t=e.contextValue,i=e.variableValues,u=e.operationName,c=e.fieldResolver,s=e.typeResolver,f=Wn(n);if(f.length>0)return{errors:f};var o;try{o=Ue(r)}catch(v){return{errors:[v]}}var l=en(n,o);return l.length>0?{errors:l}:on({schema:n,document:o,rootValue:a,contextValue:t,variableValues:i,operationName:u,fieldResolver:c,typeResolver:s})}function Ir(e){return typeof(e==null?void 0:e[_e])=="function"}function yi(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Oi(e,n,r){var a=e[_e],t=a.call(e),i,u;typeof t.return=="function"&&(i=t.return,u=function(l){var v=function(){return Promise.reject(l)};return i.call(t).then(v,v)});function c(o){return o.done?o:Nn(o.value,n).then(wn,u)}var s;if(r){var f=r;s=function(l){return Nn(l,f).then(wn,u)}}return yi({next:function(){return t.next().then(c,s)},return:function(){return i?i.call(t).then(c,s):Promise.resolve({value:void 0,done:!0})},throw:function(l){return typeof t.throw=="function"?t.throw(l).then(c,s):Promise.reject(l).catch(u)}},_e,function(){return this})}function Nn(e,n){return new Promise(function(r){return r(n(e))})}function wn(e){return{value:e,done:!1}}function Ri(e,n,r,a,t,i,u,c){return arguments.length===1?Sn(e):Sn({schema:e,document:n,rootValue:r,contextValue:a,variableValues:t,operationName:i,fieldResolver:u,subscribeFieldResolver:c})}function Tr(e){if(e instanceof O)return{errors:[e]};throw e}function Sn(e){var n=e.schema,r=e.document,a=e.rootValue,t=e.contextValue,i=e.variableValues,u=e.operationName,c=e.fieldResolver,s=e.subscribeFieldResolver,f=Vr(n,r,a,t,i,u,s),o=function(v){return on({schema:n,document:r,rootValue:v,contextValue:t,variableValues:i,operationName:u,fieldResolver:c})};return f.then(function(l){return Ir(l)?Oi(l,o,Tr):l})}function Vr(e,n,r,a,t,i,u){return hr(e,n,t),new Promise(function(c){var s=Er(e,n,r,a,t,i,u);c(Array.isArray(s)?{errors:s}:Ii(s))}).catch(Tr)}function Ii(e){var n=e.schema,r=e.operation,a=e.variableValues,t=e.rootValue,i=un(n,r),u=de(e,i,r.selectionSet,Object.create(null),Object.create(null)),c=Object.keys(u),s=c[0],f=u[s],o=f[0],l=o.name.value,v=Rr(n,i,l);if(!v)throw new O('The subscription field "'.concat(l,'" is not defined.'),f);var m=ee(void 0,s,i.name),E=Dr(e,v,f,i,m);return new Promise(function(g){var R,D=cn(v,f[0],a),N=e.contextValue,U=(R=v.subscribe)!==null&&R!==void 0?R:e.fieldResolver;g(U(t,D,N,E))}).then(function(g){if(g instanceof Error)throw W(g,f,F(m));if(!Ir(g))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat(S(g),"."));return g},function(g){throw W(g,f,F(m))})}function Ti(e){return{Field:function(r){var a=zn(e.getType());a&&ne(a)&&e.reportError(new O('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(r.name.value,'".'),r))}}}function Vi(e){var n;e||ve(0,"Received null or undefined error.");var r=(n=e.message)!==null&&n!==void 0?n:"An unknown error occurred.",a=e.locations,t=e.path,i=e.extensions;return i&&Object.keys(i).length>0?{message:r,locations:a,path:t,extensions:i}:{message:r,locations:a,path:t}}function Ai(e,n){for(var r=null,a=0,t=e.definitions;a<t.length;a++){var i=t[a];if(i.kind===w.OPERATION_DEFINITION){var u;if(n==null){if(r)return null;r=i}else if(((u=i.name)===null||u===void 0?void 0:u.value)===n)return i}}return r}function Pn(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Ni(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Pn(Object(r),!0).forEach(function(a){wi(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function wi(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Si(e,n){var r=Ni({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},n),a=Ue(Jn(r)),t=dr({schema:e,document:a});return!t.errors&&t.data||q(0),t.data}function Mn(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function I(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Mn(Object(r),!0).forEach(function(a){Pi(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Pi(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Mi(e,n,r){Xn(e),n!=null&&n.kind===w.DOCUMENT||ve(0,"Must provide valid Document AST."),(r==null?void 0:r.assumeValid)!==!0&&(r==null?void 0:r.assumeValidSDL)!==!0&&ea(n,e);var a=e.toConfig(),t=Ar(a,n,r);return a===t?e:new Ge(t)}function Ar(e,n,r){for(var a,t,i,u,c=[],s=Object.create(null),f=[],o,l=[],v=0,m=n.definitions;v<m.length;v++){var E=m[v];if(E.kind===w.SCHEMA_DEFINITION)o=E;else if(E.kind===w.SCHEMA_EXTENSION)l.push(E);else if(Zn(E))c.push(E);else if($n(E)){var g=E.name.value,R=s[g];s[g]=R?R.concat([E]):[E]}else E.kind===w.DIRECTIVE_DEFINITION&&f.push(E)}if(Object.keys(s).length===0&&c.length===0&&f.length===0&&l.length===0&&o==null)return e;for(var D=Object.create(null),N=0,U=e.types;N<U.length;N++){var k=U[N];D[k.name]=Cr(k)}for(var $=0;$<c.length;$++){var ke,vn=c[$],pn=vn.name.value;D[pn]=(ke=Ln[pn])!==null&&ke!==void 0?ke:Yr(vn)}var Ur=I(I({query:e.query&&Y(e.query),mutation:e.mutation&&Y(e.mutation),subscription:e.subscription&&Y(e.subscription)},o&&hn([o])),hn(l));return I(I({description:(a=o)===null||a===void 0||(t=a.description)===null||t===void 0?void 0:t.value},Ur),{},{types:G(D),directives:[].concat(e.directives.map(Gr),f.map(_r)),extensions:void 0,astNode:(i=o)!==null&&i!==void 0?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(l),assumeValid:(u=r==null?void 0:r.assumeValid)!==null&&u!==void 0?u:!1});function re(p){return B(p)?new Se(re(p.ofType)):L(p)?new Pe(re(p.ofType)):Y(p)}function Y(p){return D[p.name]}function Gr(p){var b=p.toConfig();return new Ie(I(I({},b),{},{args:ue(b.args,mn)}))}function Cr(p){if(ne(p)||Ce(p))return p;if(he(p))return Qr(p);if(K(p))return Br(p);if(z(p))return Kr(p);if(J(p))return xr(p);if(X(p))return qr(p);if(_(p))return kr(p);q(0,"Unexpected type: "+S(p))}function kr(p){var b,d=p.toConfig(),h=(b=s[d.name])!==null&&b!==void 0?b:[];return new Te(I(I({},d),{},{fields:function(){return I(I({},ue(d.fields,function(T){return I(I({},T),{},{type:re(T.type)})})),bn(h))},extensionASTNodes:d.extensionASTNodes.concat(h)}))}function qr(p){var b,d=p.toConfig(),h=(b=s[p.name])!==null&&b!==void 0?b:[];return new Ve(I(I({},d),{},{values:I(I({},d.values),gn(h)),extensionASTNodes:d.extensionASTNodes.concat(h)}))}function Qr(p){for(var b,d=p.toConfig(),h=(b=s[d.name])!==null&&b!==void 0?b:[],y=d.specifiedByUrl,T=0;T<h.length;T++){var V,A=h[T];y=(V=Fn(A))!==null&&V!==void 0?V:y}return new Ye(I(I({},d),{},{specifiedByUrl:y,extensionASTNodes:d.extensionASTNodes.concat(h)}))}function Br(p){var b,d=p.toConfig(),h=(b=s[d.name])!==null&&b!==void 0?b:[];return new Ae(I(I({},d),{},{interfaces:function(){return[].concat(p.getInterfaces().map(Y),De(h))},fields:function(){return I(I({},ue(d.fields,dn)),ge(h))},extensionASTNodes:d.extensionASTNodes.concat(h)}))}function Kr(p){var b,d=p.toConfig(),h=(b=s[d.name])!==null&&b!==void 0?b:[];return new Ne(I(I({},d),{},{interfaces:function(){return[].concat(p.getInterfaces().map(Y),De(h))},fields:function(){return I(I({},ue(d.fields,dn)),ge(h))},extensionASTNodes:d.extensionASTNodes.concat(h)}))}function xr(p){var b,d=p.toConfig(),h=(b=s[d.name])!==null&&b!==void 0?b:[];return new we(I(I({},d),{},{types:function(){return[].concat(p.getTypes().map(Y),Dn(h))},extensionASTNodes:d.extensionASTNodes.concat(h)}))}function dn(p){return I(I({},p),{},{type:re(p.type),args:ue(p.args,mn)})}function mn(p){return I(I({},p),{},{type:re(p.type)})}function hn(p){for(var b={},d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.operationTypes)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V];b[A.operation]=be(A.type)}return b}function be(p){var b,d=p.name.value,h=(b=Ln[d])!==null&&b!==void 0?b:D[d];if(h===void 0)throw new Error('Unknown type: "'.concat(d,'".'));return h}function ae(p){return p.kind===w.LIST_TYPE?new Se(ae(p.type)):p.kind===w.NON_NULL_TYPE?new Pe(ae(p.type)):be(p)}function _r(p){var b=p.locations.map(function(d){var h=d.value;return h});return new Ie({name:p.name.value,description:H(p,r),locations:b,isRepeatable:p.repeatable,args:En(p.arguments),astNode:p})}function ge(p){for(var b=Object.create(null),d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.fields)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V];b[A.name.value]={type:ae(A.type),description:H(A,r),args:En(A.arguments),deprecationReason:ye(A),astNode:A}}return b}function En(p){for(var b=p!=null?p:[],d=Object.create(null),h=0;h<b.length;h++){var y=b[h],T=ae(y.type);d[y.name.value]={type:T,description:H(y,r),defaultValue:fe(y.defaultValue,T),deprecationReason:ye(y),astNode:y}}return d}function bn(p){for(var b=Object.create(null),d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.fields)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V],te=ae(A.type);b[A.name.value]={type:te,description:H(A,r),defaultValue:fe(A.defaultValue,te),deprecationReason:ye(A),astNode:A}}return b}function gn(p){for(var b=Object.create(null),d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.values)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V];b[A.name.value]={description:H(A,r),deprecationReason:ye(A),astNode:A}}return b}function De(p){for(var b=[],d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.interfaces)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V];b.push(be(A))}return b}function Dn(p){for(var b=[],d=0;d<p.length;d++)for(var h,y=p[d],T=(h=y.types)!==null&&h!==void 0?h:[],V=0;V<T.length;V++){var A=T[V];b.push(be(A))}return b}function Yr(p){var b,d=p.name.value,h=H(p,r),y=(b=s[d])!==null&&b!==void 0?b:[];switch(p.kind){case w.OBJECT_TYPE_DEFINITION:{var T=y,V=[p].concat(T);return new Ae({name:d,description:h,interfaces:function(){return De(V)},fields:function(){return ge(V)},astNode:p,extensionASTNodes:T})}case w.INTERFACE_TYPE_DEFINITION:{var A=y,te=[p].concat(A);return new Ne({name:d,description:h,interfaces:function(){return De(te)},fields:function(){return ge(te)},astNode:p,extensionASTNodes:A})}case w.ENUM_TYPE_DEFINITION:{var yn=y,Hr=[p].concat(yn);return new Ve({name:d,description:h,values:gn(Hr),astNode:p,extensionASTNodes:yn})}case w.UNION_TYPE_DEFINITION:{var On=y,Wr=[p].concat(On);return new we({name:d,description:h,types:function(){return Dn(Wr)},astNode:p,extensionASTNodes:On})}case w.SCALAR_TYPE_DEFINITION:{var zr=y;return new Ye({name:d,description:h,specifiedByUrl:Fn(p),astNode:p,extensionASTNodes:zr})}case w.INPUT_OBJECT_TYPE_DEFINITION:{var Rn=y,Jr=[p].concat(Rn);return new Te({name:d,description:h,fields:function(){return bn(Jr)},astNode:p,extensionASTNodes:Rn})}}q(0,"Unexpected type definition node: "+S(p))}}var Ln=Re(er.concat(nr),function(e){return e.name});function ye(e){var n=pe(rr,e);return n==null?void 0:n.reason}function Fn(e){var n=pe(ar,e);return n==null?void 0:n.url}function H(e,n){if(e.description)return e.description.value;if((n==null?void 0:n.commentDescriptions)===!0){var r=Li(e);if(r!==void 0)return tr(`
2
2
  `+r)}}function Li(e){var n=e.loc;if(n){for(var r=[],a=n.startToken.prev;a!=null&&a.kind===se.COMMENT&&a.next&&a.prev&&a.line+1===a.next.line&&a.line!==a.prev.line;){var t=String(a.value);r.push(t),a=a.prev}return r.length>0?r.reverse().join(`
3
3
  `):void 0}}function Nr(e,n){e!=null&&e.kind===w.DOCUMENT||ve(0,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&na(e);var r={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},a=Ar(r,e,n);if(a.astNode==null)for(var t=0,i=a.types;t<i.length;t++){var u=i[t];switch(u.name){case"Query":a.query=u;break;case"Mutation":a.mutation=u;break;case"Subscription":a.subscription=u;break}}for(var c=a.directives,s=function(l){var v=He[l];c.every(function(m){return m.name!==v.name})&&c.push(v)},f=0;f<He.length;f++)s(f);return new Ge(a)}function Fi(e,n){var r=Ue(e,{noLocation:n==null?void 0:n.noLocation,allowLegacySDLEmptyFields:n==null?void 0:n.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:n==null?void 0:n.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:n==null?void 0:n.experimentalFragmentVariables});return Nr(r,{commentDescriptions:n==null?void 0:n.commentDescriptions,assumeValidSDL:n==null?void 0:n.assumeValidSDL,assumeValid:n==null?void 0:n.assumeValid})}function jn(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?jn(Object(r),!0).forEach(function(a){ji(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jn(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ji(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Ui(e){var n=e.toConfig(),r=ra(Qe(n.types),function(v){return v.name},l);return new Ge(P(P({},n),{},{types:G(r),directives:Qe(n.directives).map(u),query:i(n.query),mutation:i(n.mutation),subscription:i(n.subscription)}));function a(v){return B(v)?new Se(a(v.ofType)):L(v)?new Pe(a(v.ofType)):t(v)}function t(v){return r[v.name]}function i(v){return v&&t(v)}function u(v){var m=v.toConfig();return new Ie(P(P({},m),{},{locations:sn(m.locations,function(E){return E}),args:c(m.args)}))}function c(v){return Oe(v,function(m){return P(P({},m),{},{type:a(m.type)})})}function s(v){return Oe(v,function(m){return P(P({},m),{},{type:a(m.type),args:c(m.args)})})}function f(v){return Oe(v,function(m){return P(P({},m),{},{type:a(m.type)})})}function o(v){return Qe(v).map(t)}function l(v){if(he(v)||ne(v))return v;if(K(v)){var m=v.toConfig();return new Ae(P(P({},m),{},{interfaces:function(){return o(m.interfaces)},fields:function(){return s(m.fields)}}))}if(z(v)){var E=v.toConfig();return new Ne(P(P({},E),{},{interfaces:function(){return o(E.interfaces)},fields:function(){return s(E.fields)}}))}if(J(v)){var g=v.toConfig();return new we(P(P({},g),{},{types:function(){return o(g.types)}}))}if(X(v)){var R=v.toConfig();return new Ve(P(P({},R),{},{values:Oe(R.values)}))}if(_(v)){var D=v.toConfig();return new Te(P(P({},D),{},{fields:function(){return f(D.fields)}}))}q(0,"Unexpected type: "+S(v))}}function Oe(e,n){for(var r=Object.create(null),a=sn(Object.keys(e),function(c){return c}),t=0;t<a.length;t++){var i=a[t],u=e[i];r[i]=n?n(u):u}return r}function Qe(e){return sn(e,function(n){return n.name})}function sn(e,n){return e.slice().sort(function(r,a){var t=n(r),i=n(a);return ir(t,i)})}function Gi(e,n){return wr(e,function(r){return!rn(r)},ki,n)}function Ci(e,n){return wr(e,rn,ne,n)}function ki(e){return!Ce(e)&&!ne(e)}function wr(e,n,r,a){var t=e.getDirectives().filter(n),i=G(e.getTypeMap()).filter(r);return[qi(e)].concat(t.map(function(u){return Wi(u,a)}),i.map(function(u){return Sr(u,a)})).filter(Boolean).join(`
4
4
 
@@ -2560,7 +2560,7 @@ PERFORMANCE OF THIS SOFTWARE.
2560
2560
  & .ant-tabs-extra-content {
2561
2561
  margin-left: 32px;
2562
2562
  }
2563
- `;function QueryTabs({query:s,children:j,sidebar:et=null,onTabChange:tt}){const{setChartRendererReady:rt,setQueryStatus:nt,setQueryError:at,setResultSetExists:it,setQueryLoading:ot,setBuildInProgress:st,setSlowQuery:lt,setSlowQueryFromCache:ct,setQueryRequestId:ut}=useChartRendererStateMethods(),[dt,ft]=reactExports.useState(),[ht,mt]=reactExports.useState(""),[vt,pt]=reactExports.useState(!1),[gt,yt]=useLocalStorage("queryTabs",{activeId:"1",tabs:[{id:"1",query:s||{}}]}),[$t,xt]=reactExports.useState({});reactExports.useEffect(()=>{window.__cubejsPlayground={...window.__cubejsPlayground,forQuery(Et){return{onChartRendererReady(){rt(Et,!0)},onQueryStart:()=>{ot(Et,!0)},onQueryLoad:({resultSet:Ot,error:Mt})=>{var At;let Dt;if(Ot){const{loadResponse:Nt}=Ot.serialize(),{requestId:kt,external:It,dbType:Tt,extDbType:jt,usedPreAggregations:Bt={}}=Nt.results[0]||{};kt&&ut(Et,kt),ct(Et,!!Nt.slowQuery),Nt.slowQuery&&lt(Et,!1),it(Et,!0),Dt=Object.keys(Bt).length>0,event(Dt?"load_request_success_aggregated:frontend":"load_request_success:frontend",{dbType:Tt,...Dt?{external:It}:null,...It?{extDbType:jt}:null});const qt=Ot.serialize(),[Lt]=qt.loadResponse.results,Ft=(At=Object.values(Lt.usedPreAggregations||{})[0])==null?void 0:At.type,Ut=Lt.transformedQuery;nt(Et,{resultSet:Ot,error:Mt,isAggregated:Dt,preAggregationType:Ft,transformedQuery:Ut,extDbType:jt,external:It})}Mt&&(nt(Et,null),at(Et,Mt)),(Ot||Mt)&&ot(Et,!1)},onQueryProgress:Ot=>{var Dt,At;st(Et,!!((Dt=Ot==null?void 0:Ot.stage)!=null&&Dt.stage.includes("pre-aggregation")));const Mt=((At=Ot==null?void 0:Ot.stage)==null?void 0:At.stage.includes("Executing query"))&&(Ot.stage.timeElapsed||0)>=5e3;lt(Et,Mt),Mt&&ct(Et,!1)},onQueryDrilldown:(Ot,Mt)=>{xt({query:Ot,pivotConfig:Mt})}}}}},[]),reactExports.useEffect(()=>{if(vt)return;const Et=gt.tabs.find(Ot=>Ot.id===gt.activeId);if(s&&!equals(validateQuery(Et==null?void 0:Et.query),validateQuery(s))){const Ot=St();yt({activeId:Ot,tabs:[...gt.tabs,{id:Ot,query:s}]})}pt(!0)},[vt]),reactExports.useEffect(()=>{if(vt&&gt.activeId){const Et=gt.tabs.find(Ot=>Ot.id===gt.activeId);Et&&(tt==null||tt(Et))}},[vt,gt.activeId]);const{activeId:Ct,tabs:bt}=gt;function St(){const Et=bt.map(({id:Ot})=>Ot);for(let Ot=1;Ot<=bt.length+1;Ot++)if(!Et.includes(Ot.toString()))return Ot.toString();return(bt.length+1).toString()}function _t(Et){yt({...gt,tabs:bt.map(Ot=>Ct===Ot.id?{...Ot,...Et}:Ot)})}function wt(Et,Ot){yt({...gt,tabs:bt.map(Mt=>Et===Mt.id?{...Mt,name:Ot}:Mt)})}function Rt(Et){yt({activeId:Et,tabs:bt})}function Pt(){xt({})}return!vt||!gt.activeId?null:jsx(StyledTabs,{"data-testid":"query-tabs",activeKey:Ct,type:"editable-card",tabBarExtraContent:{right:et},hideAdd:!1,onChange:Rt,onEdit:Et=>{if(typeof Et=="string"){let Ot=Number.MAX_VALUE;const Mt=bt.filter(({id:Dt},At)=>(Dt===Et&&(Ot=At),Dt!==Et));yt({activeId:Mt[Math.min(Ot,Mt.length-1)].id,tabs:Mt})}else{const Ot=St();yt({activeId:Ot,tabs:[...bt,{id:Ot,query:{}}]})}},children:bt.map(Et=>jsxs(TabPane,{"data-testid":`query-tab-${Et.id}`,closable:bt.length>1,tab:dt===Et.id?jsx(Input$2,{autoFocus:!0,size:"small",value:ht,onKeyDown:Ot=>{Ot.key==="Enter"&&(ft(void 0),ht.trim()&&(wt(Et.id,ht.trim()),mt(""))),Ot.stopPropagation()},onChange:Ot=>mt(Ot.target.value),onBlur:()=>{ht.trim()&&(wt(Et.id,ht.trim()),mt("")),ft(void 0)}}):jsx("span",{style:{userSelect:"none"},onDoubleClick:()=>{mt(Et.name||`Query ${Et.id}`),ft(Et.id)},children:Et.name?Et.name:`Query ${Et.id}`}),children:[j(Et,_t),$t.query?jsx(DrilldownModal,{query:$t.query,pivotConfig:$t.pivotConfig,onClose:Pt}):null]},Et.id))})}var define={},lzString={exports:{}};lzString.exports;(function(s){var j=function(){var et=String.fromCharCode,tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",nt={};function at(ot,st){if(!nt[ot]){nt[ot]={};for(var lt=0;lt<ot.length;lt++)nt[ot][ot.charAt(lt)]=lt}return nt[ot][st]}var it={compressToBase64:function(ot){if(ot==null)return"";var st=it._compress(ot,6,function(lt){return tt.charAt(lt)});switch(st.length%4){default:case 0:return st;case 1:return st+"===";case 2:return st+"==";case 3:return st+"="}},decompressFromBase64:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,32,function(st){return at(tt,ot.charAt(st))})},compressToUTF16:function(ot){return ot==null?"":it._compress(ot,15,function(st){return et(st+32)})+" "},decompressFromUTF16:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,16384,function(st){return ot.charCodeAt(st)-32})},compressToUint8Array:function(ot){for(var st=it.compress(ot),lt=new Uint8Array(st.length*2),ct=0,ut=st.length;ct<ut;ct++){var dt=st.charCodeAt(ct);lt[ct*2]=dt>>>8,lt[ct*2+1]=dt%256}return lt},decompressFromUint8Array:function(ot){if(ot==null)return it.decompress(ot);for(var st=new Array(ot.length/2),lt=0,ct=st.length;lt<ct;lt++)st[lt]=ot[lt*2]*256+ot[lt*2+1];var ut=[];return st.forEach(function(dt){ut.push(et(dt))}),it.decompress(ut.join(""))},compressToEncodedURIComponent:function(ot){return ot==null?"":it._compress(ot,6,function(st){return rt.charAt(st)})},decompressFromEncodedURIComponent:function(ot){return ot==null?"":ot==""?null:(ot=ot.replace(/ /g,"+"),it._decompress(ot.length,32,function(st){return at(rt,ot.charAt(st))}))},compress:function(ot){return it._compress(ot,16,function(st){return et(st)})},_compress:function(ot,st,lt){if(ot==null)return"";var ct,ut,dt={},ft={},ht="",mt="",vt="",pt=2,gt=3,yt=2,$t=[],xt=0,Ct=0,bt;for(bt=0;bt<ot.length;bt+=1)if(ht=ot.charAt(bt),Object.prototype.hasOwnProperty.call(dt,ht)||(dt[ht]=gt++,ft[ht]=!0),mt=vt+ht,Object.prototype.hasOwnProperty.call(dt,mt))vt=mt;else{if(Object.prototype.hasOwnProperty.call(ft,vt)){if(vt.charCodeAt(0)<256){for(ct=0;ct<yt;ct++)xt=xt<<1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++;for(ut=vt.charCodeAt(0),ct=0;ct<8;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}else{for(ut=1,ct=0;ct<yt;ct++)xt=xt<<1|ut,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=0;for(ut=vt.charCodeAt(0),ct=0;ct<16;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}pt--,pt==0&&(pt=Math.pow(2,yt),yt++),delete ft[vt]}else for(ut=dt[vt],ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;pt--,pt==0&&(pt=Math.pow(2,yt),yt++),dt[mt]=gt++,vt=String(ht)}if(vt!==""){if(Object.prototype.hasOwnProperty.call(ft,vt)){if(vt.charCodeAt(0)<256){for(ct=0;ct<yt;ct++)xt=xt<<1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++;for(ut=vt.charCodeAt(0),ct=0;ct<8;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}else{for(ut=1,ct=0;ct<yt;ct++)xt=xt<<1|ut,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=0;for(ut=vt.charCodeAt(0),ct=0;ct<16;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}pt--,pt==0&&(pt=Math.pow(2,yt),yt++),delete ft[vt]}else for(ut=dt[vt],ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;pt--,pt==0&&(pt=Math.pow(2,yt),yt++)}for(ut=2,ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;for(;;)if(xt=xt<<1,Ct==st-1){$t.push(lt(xt));break}else Ct++;return $t.join("")},decompress:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,32768,function(st){return ot.charCodeAt(st)})},_decompress:function(ot,st,lt){var ct=[],ut=4,dt=4,ft=3,ht="",mt=[],vt,pt,gt,yt,$t,xt,Ct,bt={val:lt(0),position:st,index:1};for(vt=0;vt<3;vt+=1)ct[vt]=vt;for(gt=0,$t=Math.pow(2,2),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;switch(gt){case 0:for(gt=0,$t=Math.pow(2,8),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;Ct=et(gt);break;case 1:for(gt=0,$t=Math.pow(2,16),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;Ct=et(gt);break;case 2:return""}for(ct[3]=Ct,pt=Ct,mt.push(Ct);;){if(bt.index>ot)return"";for(gt=0,$t=Math.pow(2,ft),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;switch(Ct=gt){case 0:for(gt=0,$t=Math.pow(2,8),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;ct[dt++]=et(gt),Ct=dt-1,ut--;break;case 1:for(gt=0,$t=Math.pow(2,16),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;ct[dt++]=et(gt),Ct=dt-1,ut--;break;case 2:return mt.join("")}if(ut==0&&(ut=Math.pow(2,ft),ft++),ct[Ct])ht=ct[Ct];else if(Ct===dt)ht=pt+pt.charAt(0);else return null;mt.push(ht),ct[dt++]=pt+ht.charAt(0),ut--,pt=ht,ut==0&&(ut=Math.pow(2,ft),ft++)}}};return it}();s!=null&&(s.exports=j)})(lzString);var lzStringExports=lzString.exports;Object.defineProperty(define,"__esModule",{value:!0});var getParameters_1=define.getParameters=void 0,LZString=lzStringExports;function compress(s){return LZString.compressToBase64(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function getParameters(s){return compress(JSON.stringify(s))}getParameters_1=define.getParameters=getParameters;function handleChunkLoadError(s){if(!s.message.includes("Failed to fetch dynamically"))throw s;const j=Number(localStorage.getItem("lastLocationReload")||"0");Date.now()-Number(j)>=6e4&&(window.location.reload(),localStorage.setItem("lastLocationReload",Date.now().toString()))}function loadable(s,j){const et=reactExports.lazy(async()=>{try{return await s()}catch(tt){handleChunkLoadError(tt)}return{default:()=>reactExports.createElement("div",null,null)}});return et.loaded=!1,et.load=async(tt,rt)=>{if(et.loaded){rt==null||rt();return}tt==null||tt();try{await s()}catch(nt){handleChunkLoadError(nt)}tt==null||tt(),et.loaded=!0,rt==null||rt()},j&&setTimeout(()=>{et.loaded||et.load()},j),et}const GraphQLIcon=()=>jsx(Icon$1,{component:()=>jsx("svg",{version:"1.1",height:"1em",width:"1em",x:"0px",y:"0px",viewBox:"0 0 400 400",enableBackground:"new 0 0 400 400",fill:"currentColor",children:jsxs("g",{children:[jsx("rect",{x:"122",y:"-0.4",transform:"matrix(-0.866 -0.5 0.5 -0.866 163.3196 363.3136)",width:"16.6",height:"320.3"}),jsx("rect",{x:"39.8",y:"272.2",width:"320.3",height:"16.6"}),jsx("rect",{x:"37.9",y:"312.2",transform:"matrix(-0.866 -0.5 0.5 -0.866 83.0693 663.3409)",width:"185",height:"16.6"}),jsx("rect",{x:"177.1",y:"71.1",transform:"matrix(-0.866 -0.5 0.5 -0.866 463.3409 283.0693)",width:"185",height:"16.6"}),jsx("rect",{x:"122.1",y:"-13",transform:"matrix(-0.5 -0.866 0.866 -0.5 126.7903 232.1221)",width:"16.6",height:"185"}),jsx("rect",{x:"109.6",y:"151.6",transform:"matrix(-0.5 -0.866 0.866 -0.5 266.0828 473.3766)",width:"320.3",height:"16.6"}),jsx("rect",{x:"52.5",y:"107.5",width:"16.6",height:"185"}),jsx("rect",{x:"330.9",y:"107.5",width:"16.6",height:"185"}),jsx("rect",{x:"262.4",y:"240.1",transform:"matrix(-0.5 -0.866 0.866 -0.5 126.7953 714.2875)",width:"14.5",height:"160.9"}),jsx("path",{d:"M369.5,297.9c-9.6,16.7-31,22.4-47.7,12.8c-16.7-9.6-22.4-31-12.8-47.7c9.6-16.7,31-22.4,47.7-12.8 C373.5,259.9,379.2,281.2,369.5,297.9"}),jsx("path",{d:"M90.9,137c-9.6,16.7-31,22.4-47.7,12.8c-16.7-9.6-22.4-31-12.8-47.7c9.6-16.7,31-22.4,47.7-12.8 C94.8,99,100.5,120.3,90.9,137"}),jsx("path",{d:"M30.5,297.9c-9.6-16.7-3.9-38,12.8-47.7c16.7-9.6,38-3.9,47.7,12.8c9.6,16.7,3.9,38-12.8,47.7 C61.4,320.3,40.1,314.6,30.5,297.9"}),jsx("path",{d:"M309.1,137c-9.6-16.7-3.9-38,12.8-47.7c16.7-9.6,38-3.9,47.7,12.8c9.6,16.7,3.9,38-12.8,47.7 C340.1,159.4,318.7,153.7,309.1,137"}),jsx("path",{d:"M200,395.8c-19.3,0-34.9-15.6-34.9-34.9c0-19.3,15.6-34.9,34.9-34.9c19.3,0,34.9,15.6,34.9,34.9 C234.9,380.1,219.3,395.8,200,395.8"}),jsx("path",{d:"M200,74c-19.3,0-34.9-15.6-34.9-34.9c0-19.3,15.6-34.9,34.9-34.9c19.3,0,34.9,15.6,34.9,34.9 C234.9,58.4,219.3,74,200,74"})]})})}),GraphiQLSandbox=loadable(()=>__vitePreload(()=>import("./GraphiQLSandbox-e1707399.js").then(s=>s.cz),["assets/GraphiQLSandbox-e1707399.js","assets/GraphiQLSandbox-8134e867.css"])),SqlQueryTab=loadable(()=>__vitePreload(()=>import("./SqlQueryTab-5c44a6c7.js"),["assets/SqlQueryTab-5c44a6c7.js","assets/sqlFormatter-f7d64f52.js"])),CachePane=loadable(()=>__vitePreload(()=>import("./CachePane-3d9352e4.js"),["assets/CachePane-3d9352e4.js","assets/sqlFormatter-f7d64f52.js"])),frameworkToTemplate={react:"create-react-app",angular:"angular-cli",vue:"vue-cli"},StyledCard$1=styled(StyledCard$2)`
2563
+ `;function QueryTabs({query:s,children:j,sidebar:et=null,onTabChange:tt}){const{setChartRendererReady:rt,setQueryStatus:nt,setQueryError:at,setResultSetExists:it,setQueryLoading:ot,setBuildInProgress:st,setSlowQuery:lt,setSlowQueryFromCache:ct,setQueryRequestId:ut}=useChartRendererStateMethods(),[dt,ft]=reactExports.useState(),[ht,mt]=reactExports.useState(""),[vt,pt]=reactExports.useState(!1),[gt,yt]=useLocalStorage("queryTabs",{activeId:"1",tabs:[{id:"1",query:s||{}}]}),[$t,xt]=reactExports.useState({});reactExports.useEffect(()=>{window.__cubejsPlayground={...window.__cubejsPlayground,forQuery(Et){return{onChartRendererReady(){rt(Et,!0)},onQueryStart:()=>{ot(Et,!0)},onQueryLoad:({resultSet:Ot,error:Mt})=>{var At;let Dt;if(Ot){const{loadResponse:Nt}=Ot.serialize(),{requestId:kt,external:It,dbType:Tt,extDbType:jt,usedPreAggregations:Bt={}}=Nt.results[0]||{};kt&&ut(Et,kt),ct(Et,!!Nt.slowQuery),Nt.slowQuery&&lt(Et,!1),it(Et,!0),Dt=Object.keys(Bt).length>0,event(Dt?"load_request_success_aggregated:frontend":"load_request_success:frontend",{dbType:Tt,...Dt?{external:It}:null,...It?{extDbType:jt}:null});const qt=Ot.serialize(),[Lt]=qt.loadResponse.results,Ft=(At=Object.values(Lt.usedPreAggregations||{})[0])==null?void 0:At.type,Ut=Lt.transformedQuery;nt(Et,{resultSet:Ot,error:Mt,isAggregated:Dt,preAggregationType:Ft,transformedQuery:Ut,extDbType:jt,external:It})}Mt&&(nt(Et,null),at(Et,Mt)),(Ot||Mt)&&ot(Et,!1)},onQueryProgress:Ot=>{var Dt,At;st(Et,!!((Dt=Ot==null?void 0:Ot.stage)!=null&&Dt.stage.includes("pre-aggregation")));const Mt=((At=Ot==null?void 0:Ot.stage)==null?void 0:At.stage.includes("Executing query"))&&(Ot.stage.timeElapsed||0)>=5e3;lt(Et,Mt),Mt&&ct(Et,!1)},onQueryDrilldown:(Ot,Mt)=>{xt({query:Ot,pivotConfig:Mt})}}}}},[]),reactExports.useEffect(()=>{if(vt)return;const Et=gt.tabs.find(Ot=>Ot.id===gt.activeId);if(s&&!equals(validateQuery(Et==null?void 0:Et.query),validateQuery(s))){const Ot=St();yt({activeId:Ot,tabs:[...gt.tabs,{id:Ot,query:s}]})}pt(!0)},[vt]),reactExports.useEffect(()=>{if(vt&&gt.activeId){const Et=gt.tabs.find(Ot=>Ot.id===gt.activeId);Et&&(tt==null||tt(Et))}},[vt,gt.activeId]);const{activeId:Ct,tabs:bt}=gt;function St(){const Et=bt.map(({id:Ot})=>Ot);for(let Ot=1;Ot<=bt.length+1;Ot++)if(!Et.includes(Ot.toString()))return Ot.toString();return(bt.length+1).toString()}function _t(Et){yt({...gt,tabs:bt.map(Ot=>Ct===Ot.id?{...Ot,...Et}:Ot)})}function wt(Et,Ot){yt({...gt,tabs:bt.map(Mt=>Et===Mt.id?{...Mt,name:Ot}:Mt)})}function Rt(Et){yt({activeId:Et,tabs:bt})}function Pt(){xt({})}return!vt||!gt.activeId?null:jsx(StyledTabs,{"data-testid":"query-tabs",activeKey:Ct,type:"editable-card",tabBarExtraContent:{right:et},hideAdd:!1,onChange:Rt,onEdit:Et=>{if(typeof Et=="string"){let Ot=Number.MAX_VALUE;const Mt=bt.filter(({id:Dt},At)=>(Dt===Et&&(Ot=At),Dt!==Et));yt({activeId:Mt[Math.min(Ot,Mt.length-1)].id,tabs:Mt})}else{const Ot=St();yt({activeId:Ot,tabs:[...bt,{id:Ot,query:{}}]})}},children:bt.map(Et=>jsxs(TabPane,{"data-testid":`query-tab-${Et.id}`,closable:bt.length>1,tab:dt===Et.id?jsx(Input$2,{autoFocus:!0,size:"small",value:ht,onKeyDown:Ot=>{Ot.key==="Enter"&&(ft(void 0),ht.trim()&&(wt(Et.id,ht.trim()),mt(""))),Ot.stopPropagation()},onChange:Ot=>mt(Ot.target.value),onBlur:()=>{ht.trim()&&(wt(Et.id,ht.trim()),mt("")),ft(void 0)}}):jsx("span",{style:{userSelect:"none"},onDoubleClick:()=>{mt(Et.name||`Query ${Et.id}`),ft(Et.id)},children:Et.name?Et.name:`Query ${Et.id}`}),children:[j(Et,_t),$t.query?jsx(DrilldownModal,{query:$t.query,pivotConfig:$t.pivotConfig,onClose:Pt}):null]},Et.id))})}var define={},lzString={exports:{}};lzString.exports;(function(s){var j=function(){var et=String.fromCharCode,tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",nt={};function at(ot,st){if(!nt[ot]){nt[ot]={};for(var lt=0;lt<ot.length;lt++)nt[ot][ot.charAt(lt)]=lt}return nt[ot][st]}var it={compressToBase64:function(ot){if(ot==null)return"";var st=it._compress(ot,6,function(lt){return tt.charAt(lt)});switch(st.length%4){default:case 0:return st;case 1:return st+"===";case 2:return st+"==";case 3:return st+"="}},decompressFromBase64:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,32,function(st){return at(tt,ot.charAt(st))})},compressToUTF16:function(ot){return ot==null?"":it._compress(ot,15,function(st){return et(st+32)})+" "},decompressFromUTF16:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,16384,function(st){return ot.charCodeAt(st)-32})},compressToUint8Array:function(ot){for(var st=it.compress(ot),lt=new Uint8Array(st.length*2),ct=0,ut=st.length;ct<ut;ct++){var dt=st.charCodeAt(ct);lt[ct*2]=dt>>>8,lt[ct*2+1]=dt%256}return lt},decompressFromUint8Array:function(ot){if(ot==null)return it.decompress(ot);for(var st=new Array(ot.length/2),lt=0,ct=st.length;lt<ct;lt++)st[lt]=ot[lt*2]*256+ot[lt*2+1];var ut=[];return st.forEach(function(dt){ut.push(et(dt))}),it.decompress(ut.join(""))},compressToEncodedURIComponent:function(ot){return ot==null?"":it._compress(ot,6,function(st){return rt.charAt(st)})},decompressFromEncodedURIComponent:function(ot){return ot==null?"":ot==""?null:(ot=ot.replace(/ /g,"+"),it._decompress(ot.length,32,function(st){return at(rt,ot.charAt(st))}))},compress:function(ot){return it._compress(ot,16,function(st){return et(st)})},_compress:function(ot,st,lt){if(ot==null)return"";var ct,ut,dt={},ft={},ht="",mt="",vt="",pt=2,gt=3,yt=2,$t=[],xt=0,Ct=0,bt;for(bt=0;bt<ot.length;bt+=1)if(ht=ot.charAt(bt),Object.prototype.hasOwnProperty.call(dt,ht)||(dt[ht]=gt++,ft[ht]=!0),mt=vt+ht,Object.prototype.hasOwnProperty.call(dt,mt))vt=mt;else{if(Object.prototype.hasOwnProperty.call(ft,vt)){if(vt.charCodeAt(0)<256){for(ct=0;ct<yt;ct++)xt=xt<<1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++;for(ut=vt.charCodeAt(0),ct=0;ct<8;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}else{for(ut=1,ct=0;ct<yt;ct++)xt=xt<<1|ut,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=0;for(ut=vt.charCodeAt(0),ct=0;ct<16;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}pt--,pt==0&&(pt=Math.pow(2,yt),yt++),delete ft[vt]}else for(ut=dt[vt],ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;pt--,pt==0&&(pt=Math.pow(2,yt),yt++),dt[mt]=gt++,vt=String(ht)}if(vt!==""){if(Object.prototype.hasOwnProperty.call(ft,vt)){if(vt.charCodeAt(0)<256){for(ct=0;ct<yt;ct++)xt=xt<<1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++;for(ut=vt.charCodeAt(0),ct=0;ct<8;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}else{for(ut=1,ct=0;ct<yt;ct++)xt=xt<<1|ut,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=0;for(ut=vt.charCodeAt(0),ct=0;ct<16;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1}pt--,pt==0&&(pt=Math.pow(2,yt),yt++),delete ft[vt]}else for(ut=dt[vt],ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;pt--,pt==0&&(pt=Math.pow(2,yt),yt++)}for(ut=2,ct=0;ct<yt;ct++)xt=xt<<1|ut&1,Ct==st-1?(Ct=0,$t.push(lt(xt)),xt=0):Ct++,ut=ut>>1;for(;;)if(xt=xt<<1,Ct==st-1){$t.push(lt(xt));break}else Ct++;return $t.join("")},decompress:function(ot){return ot==null?"":ot==""?null:it._decompress(ot.length,32768,function(st){return ot.charCodeAt(st)})},_decompress:function(ot,st,lt){var ct=[],ut=4,dt=4,ft=3,ht="",mt=[],vt,pt,gt,yt,$t,xt,Ct,bt={val:lt(0),position:st,index:1};for(vt=0;vt<3;vt+=1)ct[vt]=vt;for(gt=0,$t=Math.pow(2,2),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;switch(gt){case 0:for(gt=0,$t=Math.pow(2,8),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;Ct=et(gt);break;case 1:for(gt=0,$t=Math.pow(2,16),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;Ct=et(gt);break;case 2:return""}for(ct[3]=Ct,pt=Ct,mt.push(Ct);;){if(bt.index>ot)return"";for(gt=0,$t=Math.pow(2,ft),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;switch(Ct=gt){case 0:for(gt=0,$t=Math.pow(2,8),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;ct[dt++]=et(gt),Ct=dt-1,ut--;break;case 1:for(gt=0,$t=Math.pow(2,16),xt=1;xt!=$t;)yt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=st,bt.val=lt(bt.index++)),gt|=(yt>0?1:0)*xt,xt<<=1;ct[dt++]=et(gt),Ct=dt-1,ut--;break;case 2:return mt.join("")}if(ut==0&&(ut=Math.pow(2,ft),ft++),ct[Ct])ht=ct[Ct];else if(Ct===dt)ht=pt+pt.charAt(0);else return null;mt.push(ht),ct[dt++]=pt+ht.charAt(0),ut--,pt=ht,ut==0&&(ut=Math.pow(2,ft),ft++)}}};return it}();s!=null&&(s.exports=j)})(lzString);var lzStringExports=lzString.exports;Object.defineProperty(define,"__esModule",{value:!0});var getParameters_1=define.getParameters=void 0,LZString=lzStringExports;function compress(s){return LZString.compressToBase64(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function getParameters(s){return compress(JSON.stringify(s))}getParameters_1=define.getParameters=getParameters;function handleChunkLoadError(s){if(!s.message.includes("Failed to fetch dynamically"))throw s;const j=Number(localStorage.getItem("lastLocationReload")||"0");Date.now()-Number(j)>=6e4&&(window.location.reload(),localStorage.setItem("lastLocationReload",Date.now().toString()))}function loadable(s,j){const et=reactExports.lazy(async()=>{try{return await s()}catch(tt){handleChunkLoadError(tt)}return{default:()=>reactExports.createElement("div",null,null)}});return et.loaded=!1,et.load=async(tt,rt)=>{if(et.loaded){rt==null||rt();return}tt==null||tt();try{await s()}catch(nt){handleChunkLoadError(nt)}tt==null||tt(),et.loaded=!0,rt==null||rt()},j&&setTimeout(()=>{et.loaded||et.load()},j),et}const GraphQLIcon=()=>jsx(Icon$1,{component:()=>jsx("svg",{version:"1.1",height:"1em",width:"1em",x:"0px",y:"0px",viewBox:"0 0 400 400",enableBackground:"new 0 0 400 400",fill:"currentColor",children:jsxs("g",{children:[jsx("rect",{x:"122",y:"-0.4",transform:"matrix(-0.866 -0.5 0.5 -0.866 163.3196 363.3136)",width:"16.6",height:"320.3"}),jsx("rect",{x:"39.8",y:"272.2",width:"320.3",height:"16.6"}),jsx("rect",{x:"37.9",y:"312.2",transform:"matrix(-0.866 -0.5 0.5 -0.866 83.0693 663.3409)",width:"185",height:"16.6"}),jsx("rect",{x:"177.1",y:"71.1",transform:"matrix(-0.866 -0.5 0.5 -0.866 463.3409 283.0693)",width:"185",height:"16.6"}),jsx("rect",{x:"122.1",y:"-13",transform:"matrix(-0.5 -0.866 0.866 -0.5 126.7903 232.1221)",width:"16.6",height:"185"}),jsx("rect",{x:"109.6",y:"151.6",transform:"matrix(-0.5 -0.866 0.866 -0.5 266.0828 473.3766)",width:"320.3",height:"16.6"}),jsx("rect",{x:"52.5",y:"107.5",width:"16.6",height:"185"}),jsx("rect",{x:"330.9",y:"107.5",width:"16.6",height:"185"}),jsx("rect",{x:"262.4",y:"240.1",transform:"matrix(-0.5 -0.866 0.866 -0.5 126.7953 714.2875)",width:"14.5",height:"160.9"}),jsx("path",{d:"M369.5,297.9c-9.6,16.7-31,22.4-47.7,12.8c-16.7-9.6-22.4-31-12.8-47.7c9.6-16.7,31-22.4,47.7-12.8 C373.5,259.9,379.2,281.2,369.5,297.9"}),jsx("path",{d:"M90.9,137c-9.6,16.7-31,22.4-47.7,12.8c-16.7-9.6-22.4-31-12.8-47.7c9.6-16.7,31-22.4,47.7-12.8 C94.8,99,100.5,120.3,90.9,137"}),jsx("path",{d:"M30.5,297.9c-9.6-16.7-3.9-38,12.8-47.7c16.7-9.6,38-3.9,47.7,12.8c9.6,16.7,3.9,38-12.8,47.7 C61.4,320.3,40.1,314.6,30.5,297.9"}),jsx("path",{d:"M309.1,137c-9.6-16.7-3.9-38,12.8-47.7c16.7-9.6,38-3.9,47.7,12.8c9.6,16.7,3.9,38-12.8,47.7 C340.1,159.4,318.7,153.7,309.1,137"}),jsx("path",{d:"M200,395.8c-19.3,0-34.9-15.6-34.9-34.9c0-19.3,15.6-34.9,34.9-34.9c19.3,0,34.9,15.6,34.9,34.9 C234.9,380.1,219.3,395.8,200,395.8"}),jsx("path",{d:"M200,74c-19.3,0-34.9-15.6-34.9-34.9c0-19.3,15.6-34.9,34.9-34.9c19.3,0,34.9,15.6,34.9,34.9 C234.9,58.4,219.3,74,200,74"})]})})}),GraphiQLSandbox=loadable(()=>__vitePreload(()=>import("./GraphiQLSandbox-53d3feeb.js").then(s=>s.cz),["assets/GraphiQLSandbox-53d3feeb.js","assets/GraphiQLSandbox-8134e867.css"])),SqlQueryTab=loadable(()=>__vitePreload(()=>import("./SqlQueryTab-3e2bdfa2.js"),["assets/SqlQueryTab-3e2bdfa2.js","assets/sqlFormatter-f7d64f52.js"])),CachePane=loadable(()=>__vitePreload(()=>import("./CachePane-9673c7ae.js"),["assets/CachePane-9673c7ae.js","assets/sqlFormatter-f7d64f52.js"])),frameworkToTemplate={react:"create-react-app",angular:"angular-cli",vue:"vue-cli"},StyledCard$1=styled(StyledCard$2)`
2564
2564
  min-height: 420px;
2565
2565
 
2566
2566
  .ant-card-head {
@@ -1 +1 @@
1
- import{o as v}from"./index-bfe4aca1.js";import{r as T}from"./index-4c243b0e.js";import{a as D}from"./codemirror-209aaaaa.js";import{g as E,S as N}from"./SchemaReference-b5aba4ba.js";import"./info-addon-a373c333.js";function C(a,e){for(var i=0;i<e.length;i++){const r=e[i];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in a)){const d=Object.getOwnPropertyDescriptor(r,n);d&&Object.defineProperty(a,n,d.get?d:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var m={},p=v&&v.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(m,"__esModule",{value:!0});var s=T,x=p(D),y=p(E),f=N;x.default.registerHelper("info","graphql",function(a,e){if(!(!e.schema||!a.state)){var i=a.state,r=i.kind,n=i.step,d=y.default(e.schema,a.state);if(r==="Field"&&n===0&&d.fieldDef||r==="AliasedField"&&n===2&&d.fieldDef){var t=document.createElement("div");return R(t,d,e),u(t,e,d.fieldDef),t}else if(r==="Directive"&&n===1&&d.directiveDef){var t=document.createElement("div");return _(t,d,e),u(t,e,d.directiveDef),t}else if(r==="Argument"&&n===0&&d.argDef){var t=document.createElement("div");return b(t,d,e),u(t,e,d.argDef),t}else if(r==="EnumValue"&&d.enumValue&&d.enumValue.description){var t=document.createElement("div");return j(t,d,e),u(t,e,d.enumValue),t}else if(r==="NamedType"&&d.type&&d.type.description){var t=document.createElement("div");return c(t,d,e,d.type),u(t,e,d.type),t}}});function R(a,e,i){g(a,e,i),o(a,e,i,e.type)}function g(a,e,i){var r,n=((r=e.fieldDef)===null||r===void 0?void 0:r.name)||"";n.slice(0,2)!=="__"&&(c(a,e,i,e.parentType),l(a,".")),l(a,n,"field-name",i,f.getFieldReference(e))}function _(a,e,i){var r,n="@"+(((r=e.directiveDef)===null||r===void 0?void 0:r.name)||"");l(a,n,"directive-name",i,f.getDirectiveReference(e))}function b(a,e,i){var r;e.directiveDef?_(a,e,i):e.fieldDef&&g(a,e,i);var n=((r=e.argDef)===null||r===void 0?void 0:r.name)||"";l(a,"("),l(a,n,"arg-name",i,f.getArgumentReference(e)),o(a,e,i,e.inputType),l(a,")")}function o(a,e,i,r){l(a,": "),c(a,e,i,r)}function j(a,e,i){var r,n=((r=e.enumValue)===null||r===void 0?void 0:r.name)||"";c(a,e,i,e.inputType),l(a,"."),l(a,n,"enum-value",i,f.getEnumValueReference(e))}function c(a,e,i,r){r instanceof s.GraphQLNonNull?(c(a,e,i,r.ofType),l(a,"!")):r instanceof s.GraphQLList?(l(a,"["),c(a,e,i,r.ofType),l(a,"]")):l(a,(r==null?void 0:r.name)||"","type-name",i,f.getTypeReference(e,r))}function u(a,e,i){var r=i.description;if(r){var n=document.createElement("div");n.className="info-description",e.renderDescription?n.innerHTML=e.renderDescription(r):n.appendChild(document.createTextNode(r)),a.appendChild(n)}A(a,e,i)}function A(a,e,i){var r=i.deprecationReason;if(r){var n=document.createElement("div");n.className="info-deprecation",e.renderDescription?n.innerHTML=e.renderDescription(r):n.appendChild(document.createTextNode(r));var d=document.createElement("span");d.className="info-deprecation-label",d.appendChild(document.createTextNode("Deprecated: ")),n.insertBefore(d,n.firstChild),a.appendChild(n)}}function l(a,e,i,r,n){if(i===void 0&&(i=""),r===void 0&&(r={onClick:null}),n===void 0&&(n=null),i){var d=r.onClick,t=void 0;d?(t=document.createElement("a"),t.href="javascript:void 0",t.addEventListener("click",function(h){d(n,h)})):t=document.createElement("span"),t.className=i,t.appendChild(document.createTextNode(e)),a.appendChild(t)}else a.appendChild(document.createTextNode(e))}const S=C({__proto__:null,default:m},[m]);export{S as i};
1
+ import{o as v}from"./index-f32c771c.js";import{r as T}from"./index-5b7876a6.js";import{a as D}from"./codemirror-3e55eb16.js";import{g as E,S as N}from"./SchemaReference-ef4fa07a.js";import"./info-addon-ccdc82e5.js";function C(a,e){for(var i=0;i<e.length;i++){const r=e[i];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in a)){const d=Object.getOwnPropertyDescriptor(r,n);d&&Object.defineProperty(a,n,d.get?d:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var m={},p=v&&v.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(m,"__esModule",{value:!0});var s=T,x=p(D),y=p(E),f=N;x.default.registerHelper("info","graphql",function(a,e){if(!(!e.schema||!a.state)){var i=a.state,r=i.kind,n=i.step,d=y.default(e.schema,a.state);if(r==="Field"&&n===0&&d.fieldDef||r==="AliasedField"&&n===2&&d.fieldDef){var t=document.createElement("div");return R(t,d,e),u(t,e,d.fieldDef),t}else if(r==="Directive"&&n===1&&d.directiveDef){var t=document.createElement("div");return _(t,d,e),u(t,e,d.directiveDef),t}else if(r==="Argument"&&n===0&&d.argDef){var t=document.createElement("div");return b(t,d,e),u(t,e,d.argDef),t}else if(r==="EnumValue"&&d.enumValue&&d.enumValue.description){var t=document.createElement("div");return j(t,d,e),u(t,e,d.enumValue),t}else if(r==="NamedType"&&d.type&&d.type.description){var t=document.createElement("div");return c(t,d,e,d.type),u(t,e,d.type),t}}});function R(a,e,i){g(a,e,i),o(a,e,i,e.type)}function g(a,e,i){var r,n=((r=e.fieldDef)===null||r===void 0?void 0:r.name)||"";n.slice(0,2)!=="__"&&(c(a,e,i,e.parentType),l(a,".")),l(a,n,"field-name",i,f.getFieldReference(e))}function _(a,e,i){var r,n="@"+(((r=e.directiveDef)===null||r===void 0?void 0:r.name)||"");l(a,n,"directive-name",i,f.getDirectiveReference(e))}function b(a,e,i){var r;e.directiveDef?_(a,e,i):e.fieldDef&&g(a,e,i);var n=((r=e.argDef)===null||r===void 0?void 0:r.name)||"";l(a,"("),l(a,n,"arg-name",i,f.getArgumentReference(e)),o(a,e,i,e.inputType),l(a,")")}function o(a,e,i,r){l(a,": "),c(a,e,i,r)}function j(a,e,i){var r,n=((r=e.enumValue)===null||r===void 0?void 0:r.name)||"";c(a,e,i,e.inputType),l(a,"."),l(a,n,"enum-value",i,f.getEnumValueReference(e))}function c(a,e,i,r){r instanceof s.GraphQLNonNull?(c(a,e,i,r.ofType),l(a,"!")):r instanceof s.GraphQLList?(l(a,"["),c(a,e,i,r.ofType),l(a,"]")):l(a,(r==null?void 0:r.name)||"","type-name",i,f.getTypeReference(e,r))}function u(a,e,i){var r=i.description;if(r){var n=document.createElement("div");n.className="info-description",e.renderDescription?n.innerHTML=e.renderDescription(r):n.appendChild(document.createTextNode(r)),a.appendChild(n)}A(a,e,i)}function A(a,e,i){var r=i.deprecationReason;if(r){var n=document.createElement("div");n.className="info-deprecation",e.renderDescription?n.innerHTML=e.renderDescription(r):n.appendChild(document.createTextNode(r));var d=document.createElement("span");d.className="info-deprecation-label",d.appendChild(document.createTextNode("Deprecated: ")),n.insertBefore(d,n.firstChild),a.appendChild(n)}}function l(a,e,i,r,n){if(i===void 0&&(i=""),r===void 0&&(r={onClick:null}),n===void 0&&(n=null),i){var d=r.onClick,t=void 0;d?(t=document.createElement("a"),t.href="javascript:void 0",t.addEventListener("click",function(h){d(n,h)})):t=document.createElement("span"),t.className=i,t.appendChild(document.createTextNode(e)),a.appendChild(t)}else a.appendChild(document.createTextNode(e))}const S=C({__proto__:null,default:m},[m]);export{S as i};
@@ -1 +1 @@
1
- import{o as c}from"./index-bfe4aca1.js";import{a as h}from"./codemirror-209aaaaa.js";function T(e,o){for(var r=0;r<o.length;r++){const t=o[r];if(typeof t!="string"&&!Array.isArray(t)){for(const n in t)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var m={},y=c&&c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(m,"__esModule",{value:!0});var u=y(h);u.default.defineOption("info",!1,function(e,o,r){if(r&&r!==u.default.Init){var t=e.state.info.onMouseOver;u.default.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(o){var n=e.state.info=M(o);n.onMouseOver=_.bind(null,e),u.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}});function M(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function O(e){var o=e.state.info.options;return o&&o.hoverTime||500}function _(e,o){var r=e.state.info,t=o.target||o.srcElement;if(t instanceof HTMLElement&&!(t.nodeName!=="SPAN"||r.hoverTimeout!==void 0)){var n=t.getBoundingClientRect(),i=function(){clearTimeout(r.hoverTimeout),r.hoverTimeout=setTimeout(f,p)},a=function(){u.default.off(document,"mousemove",i),u.default.off(e.getWrapperElement(),"mouseout",a),clearTimeout(r.hoverTimeout),r.hoverTimeout=void 0},f=function(){u.default.off(document,"mousemove",i),u.default.off(e.getWrapperElement(),"mouseout",a),r.hoverTimeout=void 0,E(e,n)},p=O(e);r.hoverTimeout=setTimeout(f,p),u.default.on(document,"mousemove",i),u.default.on(e.getWrapperElement(),"mouseout",a)}}function E(e,o){var r=e.coordsChar({left:(o.left+o.right)/2,top:(o.top+o.bottom)/2}),t=e.state.info,n=t.options,i=n.render||e.getHelper(r,"info");if(i){var a=e.getTokenAt(r,!0);if(a){var f=i(a,n,e,r);f&&w(e,o,f)}}}function w(e,o,r){var t=document.createElement("div");t.className="CodeMirror-info",t.appendChild(r),document.body.appendChild(t);var n=t.getBoundingClientRect(),i=window.getComputedStyle(t),a=n.right-n.left+parseFloat(i.marginLeft)+parseFloat(i.marginRight),f=n.bottom-n.top+parseFloat(i.marginTop)+parseFloat(i.marginBottom),p=o.bottom;f>window.innerHeight-o.bottom-15&&o.top>window.innerHeight-o.bottom&&(p=o.top-f),p<0&&(p=o.bottom);var s=Math.max(0,window.innerWidth-a-15);s>o.left&&(s=o.left),t.style.opacity="1",t.style.top=p+"px",t.style.left=s+"px";var d,v=function(){clearTimeout(d)},l=function(){clearTimeout(d),d=setTimeout(g,200)},g=function(){u.default.off(t,"mouseover",v),u.default.off(t,"mouseout",l),u.default.off(e.getWrapperElement(),"mouseout",l),t.style.opacity?(t.style.opacity="0",setTimeout(function(){t.parentNode&&t.parentNode.removeChild(t)},600)):t.parentNode&&t.parentNode.removeChild(t)};u.default.on(t,"mouseover",v),u.default.on(t,"mouseout",l),u.default.on(e.getWrapperElement(),"mouseout",l)}const W=T({__proto__:null,default:m},[m]);export{W as i};
1
+ import{o as c}from"./index-f32c771c.js";import{a as h}from"./codemirror-3e55eb16.js";function T(e,o){for(var r=0;r<o.length;r++){const t=o[r];if(typeof t!="string"&&!Array.isArray(t)){for(const n in t)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var m={},y=c&&c.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(m,"__esModule",{value:!0});var u=y(h);u.default.defineOption("info",!1,function(e,o,r){if(r&&r!==u.default.Init){var t=e.state.info.onMouseOver;u.default.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(o){var n=e.state.info=M(o);n.onMouseOver=_.bind(null,e),u.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}});function M(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function O(e){var o=e.state.info.options;return o&&o.hoverTime||500}function _(e,o){var r=e.state.info,t=o.target||o.srcElement;if(t instanceof HTMLElement&&!(t.nodeName!=="SPAN"||r.hoverTimeout!==void 0)){var n=t.getBoundingClientRect(),i=function(){clearTimeout(r.hoverTimeout),r.hoverTimeout=setTimeout(f,p)},a=function(){u.default.off(document,"mousemove",i),u.default.off(e.getWrapperElement(),"mouseout",a),clearTimeout(r.hoverTimeout),r.hoverTimeout=void 0},f=function(){u.default.off(document,"mousemove",i),u.default.off(e.getWrapperElement(),"mouseout",a),r.hoverTimeout=void 0,E(e,n)},p=O(e);r.hoverTimeout=setTimeout(f,p),u.default.on(document,"mousemove",i),u.default.on(e.getWrapperElement(),"mouseout",a)}}function E(e,o){var r=e.coordsChar({left:(o.left+o.right)/2,top:(o.top+o.bottom)/2}),t=e.state.info,n=t.options,i=n.render||e.getHelper(r,"info");if(i){var a=e.getTokenAt(r,!0);if(a){var f=i(a,n,e,r);f&&w(e,o,f)}}}function w(e,o,r){var t=document.createElement("div");t.className="CodeMirror-info",t.appendChild(r),document.body.appendChild(t);var n=t.getBoundingClientRect(),i=window.getComputedStyle(t),a=n.right-n.left+parseFloat(i.marginLeft)+parseFloat(i.marginRight),f=n.bottom-n.top+parseFloat(i.marginTop)+parseFloat(i.marginBottom),p=o.bottom;f>window.innerHeight-o.bottom-15&&o.top>window.innerHeight-o.bottom&&(p=o.top-f),p<0&&(p=o.bottom);var s=Math.max(0,window.innerWidth-a-15);s>o.left&&(s=o.left),t.style.opacity="1",t.style.top=p+"px",t.style.left=s+"px";var d,v=function(){clearTimeout(d)},l=function(){clearTimeout(d),d=setTimeout(g,200)},g=function(){u.default.off(t,"mouseover",v),u.default.off(t,"mouseout",l),u.default.off(e.getWrapperElement(),"mouseout",l),t.style.opacity?(t.style.opacity="0",setTimeout(function(){t.parentNode&&t.parentNode.removeChild(t)},600)):t.parentNode&&t.parentNode.removeChild(t)};u.default.on(t,"mouseover",v),u.default.on(t,"mouseout",l),u.default.on(e.getWrapperElement(),"mouseout",l)}const W=T({__proto__:null,default:m},[m]);export{W as i};