import{S as oe,i as le,s as ue,I as He,C as J,l as H,m as Q,n as M,h as d,p as V,K as ne,J as $e,b as I,U as A,V as de,ac as Qe,L as Je,M as We,N as Xe,z as Ie,f as N,t as T,G as Pt,O as re,a5 as Vt,Z as fe,P as ae,W as we,X as et,r as U,u as G,v as ge,a as j,w as R,c as q,x as L,y as x,a0 as tn,B as F,a1 as nn,j as rn,D as sn,k as an,Q as ee,R as te,T as me,E as he,q as Se,_ as Bt,$ as Ut,e as ye,g as Ee,d as be}from"./index-de1c04e4.js";import{w as Oe,d as pt}from"./paths-b0dcd44a.js";import{N as Ne,g as on,a as ln,M as un,C as cn,S as rt}from"./Switch-356716ae.js";import{A as Gt,_ as ut,b as fn,t as hn}from"./pages-d34b2ec3.js";import{C as dn}from"./ChevronDown-ebec7262.js";import{a as pn,T as mn,I as gn,C as jt,A as Ae,b as Me}from"./PreviousNextPage-213c9a22.js";import"./prism-json-f6ca42ec.js";import{B as je,A as _n,T as En}from"./ArgsList-13f0c384.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ze=function(){return Ze=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Ze.apply(this,arguments)};function st(t,e){if(!Boolean(t))throw new Error(e)}function bn(t){return typeof t=="object"&&t!==null}function vn(t,e){if(!Boolean(t))throw new Error(e!=null?e:"Unexpected invariant triggered.")}const Nn=/\r\n|[\n\r]/g;function ct(t,e){let n=0,i=1;for(const r of t.body.matchAll(Nn)){if(typeof r.index=="number"||vn(!1),r.index>=e)break;n=r.index+r[0].length,i+=1}return{line:i,column:e+1-n}}function Tn(t){return qt(t.source,ct(t.source,t.start))}function qt(t,e){const n=t.locationOffset.column-1,i="".padStart(n)+t.body,r=e.line-1,s=t.locationOffset.line-1,o=e.line+s,a=e.line===1?n:0,l=e.column+a,u=`${t.name}:${o}:${l}
`,c=i.split(/\r\n|[\n\r]/g),O=c[r];if(O.length>120){const b=Math.floor(l/80),p=l%80,v=[];for(let w=0;w<O.length;w+=80)v.push(O.slice(w,w+80));return u+mt([[`${o} |`,v[0]],...v.slice(1,b+1).map(w=>["|",w]),["|","^".padStart(p)],["|",v[b+1]]])}return u+mt([[`${o-1} |`,c[r-1]],[`${o} |`,O],["|","^".padStart(l)],[`${o+1} |`,c[r+1]]])}function mt(t){const e=t.filter(([i,r])=>r!==void 0),n=Math.max(...e.map(([i])=>i.length));return e.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(`
`)}function yn(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class dt extends Error{constructor(e,...n){var i,r,s;const{nodes:o,source:a,positions:l,path:u,originalError:c,extensions:O}=yn(n);super(e),this.name="GraphQLError",this.path=u!=null?u:void 0,this.originalError=c!=null?c:void 0,this.nodes=gt(Array.isArray(o)?o:o?[o]:void 0);const b=gt((i=this.nodes)===null||i===void 0?void 0:i.map(v=>v.loc).filter(v=>v!=null));this.source=a!=null?a:b==null||(r=b[0])===null||r===void 0?void 0:r.source,this.positions=l!=null?l:b==null?void 0:b.map(v=>v.start),this.locations=l&&a?l.map(v=>ct(a,v)):b==null?void 0:b.map(v=>ct(v.source,v.start));const p=bn(c==null?void 0:c.extensions)?c==null?void 0:c.extensions:void 0;this.extensions=(s=O!=null?O:p)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,dt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+=`

`+Tn(n.loc));else if(this.source&&this.locations)for(const n of this.locations)e+=`

`+qt(this.source,n);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function gt(t){return t===void 0||t.length===0?void 0:t}function ie(t,e,n){return new dt(`Syntax Error: ${n}`,{source:t,positions:[e]})}class In{constructor(e,n,i){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class zt{constructor(e,n,i,r,s,o){this.kind=e,this.start=n,this.end=i,this.line=r,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}var Ce;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(Ce||(Ce={}));var ft;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ft||(ft={}));var C;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(C||(C={}));function An(t){return t===9||t===32}function Pe(t){return t>=48&&t<=57}function Yt(t){return t>=97&&t<=122||t>=65&&t<=90}function Ht(t){return Yt(t)||t===95}function kn(t){return Yt(t)||Pe(t)||t===95}function Dn(t){var e;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let o=0;o<t.length;++o){var s;const a=t[o],l=On(a);l!==a.length&&(i=(s=i)!==null&&s!==void 0?s:o,r=o,o!==0&&l<n&&(n=l))}return t.map((o,a)=>a===0?o:o.slice(n)).slice((e=i)!==null&&e!==void 0?e:0,r+1)}function On(t){let e=0;for(;e<t.length&&An(t.charCodeAt(e));)++e;return e}var h;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(h||(h={}));class wn{constructor(e){const n=new zt(h.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==h.EOF)do if(e.next)e=e.next;else{const n=Sn(this,e.end);e.next=n,n.prev=e,e=n}while(e.kind===h.COMMENT);return e}}function Cn(t){return t===h.BANG||t===h.DOLLAR||t===h.AMP||t===h.PAREN_L||t===h.PAREN_R||t===h.SPREAD||t===h.COLON||t===h.EQUALS||t===h.AT||t===h.BRACKET_L||t===h.BRACKET_R||t===h.BRACE_L||t===h.PIPE||t===h.BRACE_R}function Re(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function tt(t,e){return Qt(t.charCodeAt(e))&&Jt(t.charCodeAt(e+1))}function Qt(t){return t>=55296&&t<=56319}function Jt(t){return t>=56320&&t<=57343}function ke(t,e){const n=t.source.body.codePointAt(e);if(n===void 0)return h.EOF;if(n>=32&&n<=126){const i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Z(t,e,n,i,r){const s=t.line,o=1+n-t.lineStart;return new zt(e,n,i,s,o,r)}function Sn(t,e){const n=t.source.body,i=n.length;let r=e;for(;r<i;){const s=n.charCodeAt(r);switch(s){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++t.line,t.lineStart=r;continue;case 13:n.charCodeAt(r+1)===10?r+=2:++r,++t.line,t.lineStart=r;continue;case 35:return $n(t,r);case 33:return Z(t,h.BANG,r,r+1);case 36:return Z(t,h.DOLLAR,r,r+1);case 38:return Z(t,h.AMP,r,r+1);case 40:return Z(t,h.PAREN_L,r,r+1);case 41:return Z(t,h.PAREN_R,r,r+1);case 46:if(n.charCodeAt(r+1)===46&&n.charCodeAt(r+2)===46)return Z(t,h.SPREAD,r,r+3);break;case 58:return Z(t,h.COLON,r,r+1);case 61:return Z(t,h.EQUALS,r,r+1);case 64:return Z(t,h.AT,r,r+1);case 91:return Z(t,h.BRACKET_L,r,r+1);case 93:return Z(t,h.BRACKET_R,r,r+1);case 123:return Z(t,h.BRACE_L,r,r+1);case 124:return Z(t,h.PIPE,r,r+1);case 125:return Z(t,h.BRACE_R,r,r+1);case 34:return n.charCodeAt(r+1)===34&&n.charCodeAt(r+2)===34?Pn(t,r):Ln(t,r)}if(Pe(s)||s===45)return Rn(t,r,s);if(Ht(s))return Vn(t,r);throw ie(t.source,r,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Re(s)||tt(n,r)?`Unexpected character: ${ke(t,r)}.`:`Invalid character: ${ke(t,r)}.`)}return Z(t,h.EOF,i,i)}function $n(t,e){const n=t.source.body,i=n.length;let r=e+1;for(;r<i;){const s=n.charCodeAt(r);if(s===10||s===13)break;if(Re(s))++r;else if(tt(n,r))r+=2;else break}return Z(t,h.COMMENT,e,r,n.slice(e+1,r))}function Rn(t,e,n){const i=t.source.body;let r=e,s=n,o=!1;if(s===45&&(s=i.charCodeAt(++r)),s===48){if(s=i.charCodeAt(++r),Pe(s))throw ie(t.source,r,`Invalid number, unexpected digit after 0: ${ke(t,r)}.`)}else r=at(t,r,s),s=i.charCodeAt(r);if(s===46&&(o=!0,s=i.charCodeAt(++r),r=at(t,r,s),s=i.charCodeAt(r)),(s===69||s===101)&&(o=!0,s=i.charCodeAt(++r),(s===43||s===45)&&(s=i.charCodeAt(++r)),r=at(t,r,s),s=i.charCodeAt(r)),s===46||Ht(s))throw ie(t.source,r,`Invalid number, expected digit but got: ${ke(t,r)}.`);return Z(t,o?h.FLOAT:h.INT,e,r,i.slice(e,r))}function at(t,e,n){if(!Pe(n))throw ie(t.source,e,`Invalid number, expected digit but got: ${ke(t,e)}.`);const i=t.source.body;let r=e+1;for(;Pe(i.charCodeAt(r));)++r;return r}function Ln(t,e){const n=t.source.body,i=n.length;let r=e+1,s=r,o="";for(;r<i;){const a=n.charCodeAt(r);if(a===34)return o+=n.slice(s,r),Z(t,h.STRING,e,r+1,o);if(a===92){o+=n.slice(s,r);const l=n.charCodeAt(r+1)===117?n.charCodeAt(r+2)===123?xn(t,r):Fn(t,r):Mn(t,r);o+=l.value,r+=l.size,s=r;continue}if(a===10||a===13)break;if(Re(a))++r;else if(tt(n,r))r+=2;else throw ie(t.source,r,`Invalid character within String: ${ke(t,r)}.`)}throw ie(t.source,r,"Unterminated string.")}function xn(t,e){const n=t.source.body;let i=0,r=3;for(;r<12;){const s=n.charCodeAt(e+r++);if(s===125){if(r<5||!Re(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|Fe(s),i<0)break}throw ie(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+r)}".`)}function Fn(t,e){const n=t.source.body,i=_t(n,e+2);if(Re(i))return{value:String.fromCodePoint(i),size:6};if(Qt(i)&&n.charCodeAt(e+6)===92&&n.charCodeAt(e+7)===117){const r=_t(n,e+8);if(Jt(r))return{value:String.fromCodePoint(i,r),size:12}}throw ie(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+6)}".`)}function _t(t,e){return Fe(t.charCodeAt(e))<<12|Fe(t.charCodeAt(e+1))<<8|Fe(t.charCodeAt(e+2))<<4|Fe(t.charCodeAt(e+3))}function Fe(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function Mn(t,e){const n=t.source.body;switch(n.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw ie(t.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function Pn(t,e){const n=t.source.body,i=n.length;let r=t.lineStart,s=e+3,o=s,a="";const l=[];for(;s<i;){const u=n.charCodeAt(s);if(u===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){a+=n.slice(o,s),l.push(a);const c=Z(t,h.BLOCK_STRING,e,s+3,Dn(l).join(`
`));return t.line+=l.length-1,t.lineStart=r,c}if(u===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){a+=n.slice(o,s),o=s+1,s+=4;continue}if(u===10||u===13){a+=n.slice(o,s),l.push(a),u===13&&n.charCodeAt(s+1)===10?s+=2:++s,a="",o=s,r=s;continue}if(Re(u))++s;else if(tt(n,s))s+=2;else throw ie(t.source,s,`Invalid character within String: ${ke(t,s)}.`)}throw ie(t.source,s,"Unterminated string.")}function Vn(t,e){const n=t.source.body,i=n.length;let r=e+1;for(;r<i;){const s=n.charCodeAt(r);if(kn(s))++r;else break}return Z(t,h.NAME,e,r,n.slice(e,r))}const Bn=10,Wt=2;function Un(t){return nt(t,[])}function nt(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return Gn(t,e);default:return String(t)}}function Gn(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const n=[...e,t];if(jn(t)){const i=t.toJSON();if(i!==t)return typeof i=="string"?i:nt(i,n)}else if(Array.isArray(t))return zn(t,n);return qn(t,n)}function jn(t){return typeof t.toJSON=="function"}function qn(t,e){const n=Object.entries(t);if(n.length===0)return"{}";if(e.length>Wt)return"["+Yn(t)+"]";const i=n.map(([r,s])=>r+": "+nt(s,e));return"{ "+i.join(", ")+" }"}function zn(t,e){if(t.length===0)return"[]";if(e.length>Wt)return"[Array]";const n=Math.min(Bn,t.length),i=t.length-n,r=[];for(let s=0;s<n;++s)r.push(nt(t[s],e));return i===1?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function Yn(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}const Hn=function(e,n){return e instanceof n};class Xt{constructor(e,n="GraphQL request",i={line:1,column:1}){typeof e=="string"||st(!1,`Body must be a string. Received: ${Un(e)}.`),this.body=e,this.name=n,this.locationOffset=i,this.locationOffset.line>0||st(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||st(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Qn(t){return Hn(t,Xt)}function Jn(t,e){return new Wn(t,e).parseDocument()}class Wn{constructor(e,n={}){const i=Qn(e)?e:new Xt(e);this._lexer=new wn(i),this._options=n,this._tokenCounter=0}parseName(){const e=this.expectToken(h.NAME);return this.node(e,{kind:C.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:C.DOCUMENT,definitions:this.many(h.SOF,this.parseDefinition,h.EOF)})}parseDefinition(){if(this.peek(h.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(n.kind===h.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw ie(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(h.BRACE_L))return this.node(e,{kind:C.OPERATION_DEFINITION,operation:Ce.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let i;return this.peek(h.NAME)&&(i=this.parseName()),this.node(e,{kind:C.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(h.NAME);switch(e.value){case"query":return Ce.QUERY;case"mutation":return Ce.MUTATION;case"subscription":return Ce.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(h.PAREN_L,this.parseVariableDefinition,h.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:C.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(h.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(h.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(h.DOLLAR),this.node(e,{kind:C.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:C.SELECTION_SET,selections:this.many(h.BRACE_L,this.parseSelection,h.BRACE_R)})}parseSelection(){return this.peek(h.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,n=this.parseName();let i,r;return this.expectOptionalToken(h.COLON)?(i=n,r=this.parseName()):r=n,this.node(e,{kind:C.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(h.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(h.PAREN_L,n,h.PAREN_R)}parseArgument(e=!1){const n=this._lexer.token,i=this.parseName();return this.expectToken(h.COLON),this.node(n,{kind:C.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(h.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(h.NAME)?this.node(e,{kind:C.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:C.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:C.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:C.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const n=this._lexer.token;switch(n.kind){case h.BRACKET_L:return this.parseList(e);case h.BRACE_L:return this.parseObject(e);case h.INT:return this.advanceLexer(),this.node(n,{kind:C.INT,value:n.value});case h.FLOAT:return this.advanceLexer(),this.node(n,{kind:C.FLOAT,value:n.value});case h.STRING:case h.BLOCK_STRING:return this.parseStringLiteral();case h.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:C.BOOLEAN,value:!0});case"false":return this.node(n,{kind:C.BOOLEAN,value:!1});case"null":return this.node(n,{kind:C.NULL});default:return this.node(n,{kind:C.ENUM,value:n.value})}case h.DOLLAR:if(e)if(this.expectToken(h.DOLLAR),this._lexer.token.kind===h.NAME){const i=this._lexer.token.value;throw ie(this._lexer.source,n.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:C.STRING,value:e.value,block:e.kind===h.BLOCK_STRING})}parseList(e){const n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:C.LIST,values:this.any(h.BRACKET_L,n,h.BRACKET_R)})}parseObject(e){const n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:C.OBJECT,fields:this.any(h.BRACE_L,n,h.BRACE_R)})}parseObjectField(e){const n=this._lexer.token,i=this.parseName();return this.expectToken(h.COLON),this.node(n,{kind:C.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){const n=[];for(;this.peek(h.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const n=this._lexer.token;return this.expectToken(h.AT),this.node(n,{kind:C.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let n;if(this.expectOptionalToken(h.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(h.BRACKET_R),n=this.node(e,{kind:C.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(h.BANG)?this.node(e,{kind:C.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:C.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(h.STRING)||this.peek(h.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),r=this.many(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);return this.node(e,{kind:C.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,n=this.parseOperationType();this.expectToken(h.COLON);const i=this.parseNamedType();return this.node(e,{kind:C.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:C.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:C.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(h.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseFieldDefinition,h.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(h.COLON);const s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:C.FIELD_DEFINITION,description:n,name:i,arguments:r,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(h.PAREN_L,this.parseInputValueDef,h.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(h.COLON);const r=this.parseTypeReference();let s;this.expectOptionalToken(h.EQUALS)&&(s=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:C.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:C.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),r=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:C.UNION_TYPE_DEFINITION,description:n,name:i,directives:r,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(h.EQUALS)?this.delimitedMany(h.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),r=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:C.ENUM_TYPE_DEFINITION,description:n,name:i,directives:r,values:s})}parseEnumValuesDefinition(){return this.optionalMany(h.BRACE_L,this.parseEnumValueDefinition,h.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:C.ENUM_VALUE_DEFINITION,description:n,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw ie(this._lexer.source,this._lexer.token.start,`${qe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),r=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:C.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:r,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseInputValueDef,h.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===h.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.optionalMany(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:C.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(e,{kind:C.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(e,{kind:C.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(e,{kind:C.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:C.UNION_TYPE_EXTENSION,name:n,directives:i,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:C.ENUM_TYPE_EXTENSION,name:n,directives:i,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:C.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(h.AT);const i=this.parseName(),r=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:C.DIRECTIVE_DEFINITION,description:n,name:i,arguments:r,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(h.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(ft,n.value))return n;throw this.unexpected(e)}node(e,n){return this._options.noLocation!==!0&&(n.loc=new In(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){const n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw ie(this._lexer.source,n.start,`Expected ${Zt(e)}, found ${qe(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const n=this._lexer.token;if(n.kind===h.NAME&&n.value===e)this.advanceLexer();else throw ie(this._lexer.source,n.start,`Expected "${e}", found ${qe(n)}.`)}expectOptionalKeyword(e){const n=this._lexer.token;return n.kind===h.NAME&&n.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const n=e!=null?e:this._lexer.token;return ie(this._lexer.source,n.start,`Unexpected ${qe(n)}.`)}any(e,n,i){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(i);)r.push(n.call(this));return r}optionalMany(e,n,i){if(this.expectOptionalToken(e)){const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(e,n,i){this.expectToken(e);const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(e,n){this.expectOptionalToken(e);const i=[];do i.push(n.call(this));while(this.expectOptionalToken(e));return i}advanceLexer(){const{maxTokens:e}=this._options,n=this._lexer.advance();if(e!==void 0&&n.kind!==h.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw ie(this._lexer.source,n.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function qe(t){const e=t.value;return Zt(t.kind)+(e!=null?` "${e}"`:"")}function Zt(t){return Cn(t)?`"${t}"`:t}var Ye=new Map,ht=new Map,Kt=!0,Ke=!1;function en(t){return t.replace(/[\s,]+/g," ").trim()}function Xn(t){return en(t.source.body.substring(t.start,t.end))}function Zn(t){var e=new Set,n=[];return t.definitions.forEach(function(i){if(i.kind==="FragmentDefinition"){var r=i.name.value,s=Xn(i.loc),o=ht.get(r);o&&!o.has(s)?Kt&&console.warn("Warning: fragment with name "+r+` already exists.
graphql-tag enforces all fragment names across your application to be unique; read more about
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):o||ht.set(r,o=new Set),o.add(s),e.has(s)||(e.add(s),n.push(i))}else n.push(i)}),Ze(Ze({},t),{definitions:n})}function Kn(t){var e=new Set(t.definitions);e.forEach(function(i){i.loc&&delete i.loc,Object.keys(i).forEach(function(r){var s=i[r];s&&typeof s=="object"&&e.add(s)})});var n=t.loc;return n&&(delete n.startToken,delete n.endToken),t}function ei(t){var e=en(t);if(!Ye.has(e)){var n=Jn(t,{experimentalFragmentVariables:Ke,allowLegacyFragmentVariables:Ke});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");Ye.set(e,Kn(Zn(n)))}return Ye.get(e)}function De(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];typeof t=="string"&&(t=[t]);var i=t[0];return e.forEach(function(r,s){r&&r.kind==="Document"?i+=r.loc.source.body:i+=r,i+=t[s+1]}),ei(i)}function ti(){Ye.clear(),ht.clear()}function ni(){Kt=!1}function ii(){Ke=!0}function ri(){Ke=!1}var Le={gql:De,resetCaches:ti,disableFragmentWarnings:ni,enableExperimentalFragmentVariables:ii,disableExperimentalFragmentVariables:ri};(function(t){t.gql=Le.gql,t.resetCaches=Le.resetCaches,t.disableFragmentWarnings=Le.disableFragmentWarnings,t.enableExperimentalFragmentVariables=Le.enableExperimentalFragmentVariables,t.disableExperimentalFragmentVariables=Le.disableExperimentalFragmentVariables})(De||(De={}));De.default=De;function si(t,e={},n=!0){return Gt(t,ai(n)(e))}const ai=t=>{const e=new Set;return({clientVarName:n="client",transformVariableName:i=s=>s,thenCode:r})=>({Name:{leave:s=>s.value},Variable:{leave:s=>i(s.name)},NamedType:{leave:({name:s})=>(e.add(s),s)},ListType:{leave:({type:s})=>s+"[]"},NonNullType:{leave:({type:s})=>s},Directive:{leave:({name:s,arguments:o})=>""},IntValue:{leave:({value:s})=>s},FloatValue:{leave:({value:s})=>s},StringValue:{leave:({value:s,block:o},a)=>JSON.stringify(s)},BooleanValue:{leave:({value:s})=>s?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:s})=>`'${s}'`},ListValue:{leave:({values:s})=>"["+_e(s.slice(),", ")+"]"},ObjectValue:{leave:({fields:s})=>"{"+_e(s.slice(),", ")+"}"},ObjectField:{leave:({name:s,value:o})=>s+": "+o},Document:{leave:s=>_e(s.definitions.slice(),`

`)+`
`},OperationDefinition:{leave:s=>{const o=s.selectionSet;let a=_e((s.variableDefinitions||[]).slice(),`
`);return(s.variableDefinitions||[]).length&&(a=`import { ${[...e].join(", ")} } from "@cognite/fdm-client";

// arguments
`+a,a+=`

`),a+=`${n}.${s.operation}(`+o+")",r&&(a+=`.then(${r})`),a}},VariableDefinition:{leave:({variable:s,type:o,defaultValue:a,directives:l})=>"let "+s.replace("$","")+`: ${o}`},SelectionSet:{leave:({selections:s})=>Et(s.slice())},Field:{leave:({alias:s,name:o,arguments:a,directives:l,selectionSet:u})=>{if(a.length===0&&!_e(u?[u]:[]))return o+": true";if(a.length===0)return console.log(o,a,u),t&&!(u!=null&&u.includes("{ ...everything }"))?`${o}: { ...everything }`:o+": "+_e(u?[u]:[]);const c=_e([Et((a||[]).slice()),",",u||""]);return o+": "+bt("[",c,"]")}},Argument:{leave:({name:s,value:o=""})=>typeof o=="string"?s+": "+i(o.replace("$","")):(console.error(`unhandled type, received ${JSON.stringify(o)} as Argument`),"")},FragmentSpread:{leave:({name:s,directives:o})=>"..."+s+","},InlineFragment:{leave:({typeCondition:s,directives:o,selectionSet:a})=>(console.log({selectionSet:a,directives:o,typeCondition:s}),_e(["",bt("on_",s),":",a]," "))},FragmentDefinition:{leave:({name:s,typeCondition:o,variableDefinitions:a,directives:l,selectionSet:u})=>`const ${s} = `+u}})};function _e(t,e=""){var n;return(n=t==null?void 0:t.filter(i=>i).join(e))!=null?n:""}function Et(t){return t&&t.length!==0?`{
`+oi(_e(t,`,
`))+`
}`:""}function bt(t,e,n=""){return e?t+e+n:""}function oi(t){return t&&"  "+t.replace(/\n/g,`
  `)}function li(t,e={},n=!0){return Gt(t,ui(n)(e))}const ui=t=>{const e=new Set;return({queryName:n="query",transformVariableName:i=s=>s,thenCode:r})=>({Name:{leave:s=>s.value},Variable:{leave:s=>i(s.name)},NamedType:{leave:({name:s})=>(e.add(s),s)},ListType:{leave:({type:s})=>`list[${s}]`},NonNullType:{leave:({type:s})=>s},Directive:{leave:({name:s,arguments:o})=>""},IntValue:{leave:({value:s})=>s},FloatValue:{leave:({value:s})=>s},StringValue:{leave:({value:s,block:o},a)=>JSON.stringify(s)},BooleanValue:{leave:({value:s})=>s?"True":"False"},NullValue:{leave:()=>"None"},EnumValue:{leave:({value:s})=>`'${s}'`},ListValue:{leave:({values:s})=>"["+pe(s.slice(),", ")+"]"},ObjectValue:{leave:({fields:s})=>"{"+pe(s.slice(),", ")+"}"},ObjectField:{leave:({name:s,value:o})=>`'${s}': `+o},Document:{leave:s=>pe(s.definitions.slice(),`

`)+`
`},OperationDefinition:{leave:s=>{var l;const o=s.selectionSet;let a=pe((s.variableDefinitions||[]).slice(),`
`);return(l=s.variableDefinitions)!=null&&l.length&&(a=`from schema import ${Array.from(e).map(u=>u).join(", ")}

# arguments
${a}`,a+=`

`),a+=`query = client.start_query()

`,a+=o.split(`
`).map(u=>`${i(n)}.${u}`).join(`
`),a+=`

response = client.run_query(query)`,a.replaceAll("{...everything}","()")}},VariableDefinition:{leave:({variable:s,type:o,defaultValue:a,directives:l})=>s.replace("$","")+`: ${o}`},SelectionSet:{leave:({selections:s})=>pe(s.slice(),`
`)},Field:{leave:({alias:s,name:o,arguments:a,directives:l,selectionSet:u})=>{if(a.length===0&&!pe(u?[u]:[]))return i(o)+"()";if(a.length===0)return console.log(o,a,u),t&&!(u!=null&&u.includes("{...everything}"))?`${i(o)}{...everything}`:pe(u?u.split(`
`).map(O=>`${i(o)}.${O}`):[],`
`);const c=i(o)+ci((a||[]).slice());return pe([c,...(u||"").split(`
`).map(O=>`${i(o)}.${O}`)],`
`)}},Argument:{leave:({name:s,value:o=""})=>typeof o=="string"?s+"="+i(o.replace("$","")):(console.error(`unhandled type, received ${JSON.stringify(o)} as Argument`),"")},FragmentSpread:{leave:({name:s,directives:o})=>"__as__("+s+")"},InlineFragment:{leave:({typeCondition:s,directives:o,selectionSet:a})=>pe(["",fi("__as__(",s),")",a]," ")},FragmentDefinition:{leave:({name:s,typeCondition:o,variableDefinitions:a,directives:l,selectionSet:u})=>`${s} = `+u}})};function pe(t,e=""){var n;return(n=t==null?void 0:t.filter(i=>i).join(e))!=null?n:""}function ci(t){return t&&t.length!==0?"("+pe(t,", ")+")":""}function fi(t,e,n=""){return e?t+e+n:""}const hi=8,di=2,pi=3,xe=Oe(),ze=t=>{const e={queryType:t.type,maxDepth:t.depth,nullGenerationStrategy:t.nullGenerationStrategy,factories:ut.reduce(fn(hn.QUERY_GENERATION_FACTORIES),(n,i,r)=>({...n,[r]:()=>i}),{})};try{const n=on(t.field,e),i=ln(t.field,e),r=mi(n),s=gi(n);return{value:n!=null?n:null,response:i,jsQuery:r,pythonQuery:s,depth:t.depth,field:t.field,type:t.type,nullGenerationStrategy:t.nullGenerationStrategy}}catch(n){throw n instanceof un?new Error(`
Cannot generate a random value for scalar '${n.type.name}'. 
The random generator is not able to randomly generate a value for non-standard GraphQL scalars. 
You have to provide a custom factory by providing this in your magidoc config:
{
  website: {
    options: {
      queryGenerationFactories: {
        '${n.type.name}': '<an-example-of-scalar-value>'
      }
    }
  }
}

To learn more about how to generate a custom scalar value, see: https://magidoc-org.github.io/magidoc/cli/magidoc-configuration#querygenerationfactories
`):n}},Te={subscribe:xe.subscribe,increaseDepth:()=>xe.update(t=>t&&t.depth<hi?ze({...t,depth:t.depth+1}):t),decreaseDepth:()=>xe.update(t=>t&&t.depth>di?ze({...t,depth:t.depth-1}):t),toggleNullGenerationStrategy:()=>xe.update(t=>ze({...t,nullGenerationStrategy:t.nullGenerationStrategy===Ne.NEVER_NULL?Ne.ALWAYS_NULL:Ne.NEVER_NULL})),setField:(t,e)=>xe.update(n=>{var i;return ze({field:t,type:e,depth:pi,nullGenerationStrategy:(i=n==null?void 0:n.nullGenerationStrategy)!=null?i:Ne.NEVER_NULL})})},mi=t=>{if(t){const{query:e,variables:n}=t;return{query:si(De(e),{}),variables:n}}return null},gi=t=>{if(t){const{query:e,variables:n}=t;return{query:li(De(e),{transformVariableName:i=>i.replace(/[A-Z]/g,r=>`_${r.toLowerCase()}`)}),variables:n}}return null};function _i(t){let e;return{c(){e=U(t[1])},l(n){e=G(n,t[1])},m(n,i){I(n,e,i)},p(n,i){i&2&&ge(e,n[1])},d(n){n&&d(e)}}}function Ei(t){let e,n,i,r,s,o,a;const l=t[15].default,u=He(l,t,t[14],null),c=u||_i(t);let O=[{tabindex:"-1"},{role:"presentation"},t[12]],b={};for(let p=0;p<O.length;p+=1)b=J(b,O[p]);return{c(){e=H("li"),n=H("a"),c&&c.c(),this.h()},l(p){e=Q(p,"LI",{tabindex:!0,role:!0});var v=M(e);n=Q(v,"A",{role:!0,tabindex:!0,"aria-selected":!0,"aria-disabled":!0,id:!0,href:!0,style:!0});var w=M(n);c&&c.l(w),w.forEach(d),v.forEach(d),this.h()},h(){V(n,"role","tab"),V(n,"tabindex",i=t[3]?"-1":t[4]),V(n,"aria-selected",t[6]),V(n,"aria-disabled",t[3]),V(n,"id",t[5]),V(n,"href",t[2]),V(n,"style",r=t[7]?"width: auto":void 0),ne(n,"bx--tabs__nav-link",!0),$e(e,b),ne(e,"bx--tabs__nav-item",!0),ne(e,"bx--tabs__nav-item--disabled",t[3]),ne(e,"bx--tabs__nav-item--selected",t[6])},m(p,v){I(p,e,v),A(e,n),c&&c.m(n,null),t[20](n),s=!0,o||(a=[de(e,"click",Qe(t[16])),de(e,"click",Qe(t[21])),de(e,"mouseover",t[17]),de(e,"mouseenter",t[18]),de(e,"mouseleave",t[19]),de(e,"keydown",t[22])],o=!0)},p(p,[v]){u?u.p&&(!s||v&16384)&&Je(u,l,p,p[14],s?Xe(l,p[14],v,null):We(p[14]),null):c&&c.p&&(!s||v&2)&&c.p(p,s?v:-1),(!s||v&24&&i!==(i=p[3]?"-1":p[4]))&&V(n,"tabindex",i),(!s||v&64)&&V(n,"aria-selected",p[6]),(!s||v&8)&&V(n,"aria-disabled",p[3]),(!s||v&32)&&V(n,"id",p[5]),(!s||v&4)&&V(n,"href",p[2]),(!s||v&128&&r!==(r=p[7]?"width: auto":void 0))&&V(n,"style",r),$e(e,b=Ie(O,[{tabindex:"-1"},{role:"presentation"},v&4096&&p[12]])),ne(e,"bx--tabs__nav-item",!0),ne(e,"bx--tabs__nav-item--disabled",p[3]),ne(e,"bx--tabs__nav-item--selected",p[6])},i(p){s||(N(c,p),s=!0)},o(p){T(c,p),s=!1},d(p){p&&d(e),c&&c.d(p),t[20](null),o=!1,Pt(a)}}}function bi(t,e,n){let i;const r=["label","href","disabled","tabindex","id","ref"];let s=re(e,r),o,a,{$$slots:l={},$$scope:u}=e,{label:c=""}=e,{href:O="#"}=e,{disabled:b=!1}=e,{tabindex:p="0"}=e,{id:v="ccs-"+Math.random().toString(36)}=e,{ref:w=null}=e;const{selectedTab:S,useAutoWidth:$,add:y,update:D,change:g}=Vt("Tabs");fe(t,S,_=>n(13,o=_)),fe(t,$,_=>n(7,a=_)),y({id:v,label:c,disabled:b});function f(_){we.call(this,t,_)}function k(_){we.call(this,t,_)}function W(_){we.call(this,t,_)}function B(_){we.call(this,t,_)}function z(_){et[_?"unshift":"push"](()=>{w=_,n(0,w)})}const m=()=>{b||D(v)},E=({key:_})=>{b||(_==="ArrowRight"?g(1):_==="ArrowLeft"?g(-1):(_===" "||_==="Enter")&&D(v))};return t.$$set=_=>{e=J(J({},e),ae(_)),n(12,s=re(e,r)),"label"in _&&n(1,c=_.label),"href"in _&&n(2,O=_.href),"disabled"in _&&n(3,b=_.disabled),"tabindex"in _&&n(4,p=_.tabindex),"id"in _&&n(5,v=_.id),"ref"in _&&n(0,w=_.ref),"$$scope"in _&&n(14,u=_.$$scope)},t.$$.update=()=>{t.$$.dirty&8224&&n(6,i=o===v)},[w,c,O,b,p,v,i,a,S,$,D,g,s,o,u,l,f,k,W,B,z,m,E]}class vi extends oe{constructor(e){super(),le(this,e,bi,Ei,ue,{label:1,href:2,disabled:3,tabindex:4,id:5,ref:0})}}const ot=vi;function Ni(t){let e,n,i,r;const s=t[12].default,o=He(s,t,t[11],null);let a=[{role:"tabpanel"},{"aria-labelledby":t[1]},{"aria-hidden":n=!t[2]},{hidden:i=t[2]?void 0:""},{id:t[0]},t[6]],l={};for(let u=0;u<a.length;u+=1)l=J(l,a[u]);return{c(){e=H("div"),o&&o.c(),this.h()},l(u){e=Q(u,"DIV",{role:!0,"aria-labelledby":!0,"aria-hidden":!0,id:!0});var c=M(e);o&&o.l(c),c.forEach(d),this.h()},h(){$e(e,l),ne(e,"bx--tab-content",!0)},m(u,c){I(u,e,c),o&&o.m(e,null),r=!0},p(u,[c]){o&&o.p&&(!r||c&2048)&&Je(o,s,u,u[11],r?Xe(s,u[11],c,null):We(u[11]),null),$e(e,l=Ie(a,[{role:"tabpanel"},(!r||c&2)&&{"aria-labelledby":u[1]},(!r||c&4&&n!==(n=!u[2]))&&{"aria-hidden":n},(!r||c&4&&i!==(i=u[2]?void 0:""))&&{hidden:i},(!r||c&1)&&{id:u[0]},c&64&&u[6]])),ne(e,"bx--tab-content",!0)},i(u){r||(N(o,u),r=!0)},o(u){T(o,u),r=!1},d(u){u&&d(e),o&&o.d(u)}}}function Ti(t,e,n){let i,r,s;const o=["id"];let a=re(e,o),l,u,c,{$$slots:O={},$$scope:b}=e,{id:p="ccs-"+Math.random().toString(36)}=e;const{selectedContent:v,addContent:w,tabs:S,contentById:$}=Vt("Tabs");return fe(t,v,y=>n(10,c=y)),fe(t,S,y=>n(8,l=y)),fe(t,$,y=>n(9,u=y)),w({id:p}),t.$$set=y=>{e=J(J({},e),ae(y)),n(6,a=re(e,o)),"id"in y&&n(0,p=y.id),"$$scope"in y&&n(11,b=y.$$scope)},t.$$.update=()=>{t.$$.dirty&1025&&n(2,i=c===p),t.$$.dirty&513&&n(7,r=u[p].index),t.$$.dirty&384&&n(1,s=l[r].id)},[p,s,i,v,S,$,a,r,l,u,c,b,O]}class yi extends oe{constructor(e){super(),le(this,e,Ti,Ni,ue,{id:0})}}const lt=yi,Ii=t=>({}),vt=t=>({});function Nt(t){let e=t[3].label+"",n;return{c(){n=U(e)},l(i){n=G(i,e)},m(i,r){I(i,n,r)},p(i,r){r[0]&8&&e!==(e=i[3].label+"")&&ge(n,e)},d(i){i&&d(n)}}}function Ai(t){let e,n,i,r,s,o,a,l,u,c,O,b,p=t[3]&&Nt(t);s=new dn({props:{"aria-hidden":"true",title:t[1]}});const v=t[20].default,w=He(v,t,t[19],null);let S=[{role:"navigation"},t[10]],$={};for(let g=0;g<S.length;g+=1)$=J($,S[g]);const y=t[20].content,D=He(y,t,t[19],vt);return{c(){e=H("div"),n=H("div"),i=H("a"),p&&p.c(),r=j(),R(s.$$.fragment),a=j(),l=H("ul"),w&&w.c(),u=j(),D&&D.c(),this.h()},l(g){e=Q(g,"DIV",{role:!0});var f=M(e);n=Q(f,"DIV",{role:!0,tabindex:!0,"aria-label":!0});var k=M(n);i=Q(k,"A",{tabindex:!0,href:!0});var W=M(i);p&&p.l(W),W.forEach(d),r=q(k),L(s.$$.fragment,k),k.forEach(d),a=q(f),l=Q(f,"UL",{role:!0});var B=M(l);w&&w.l(B),B.forEach(d),f.forEach(d),u=q(g),D&&D.l(g),this.h()},h(){V(i,"tabindex","-1"),V(i,"href",t[2]),ne(i,"bx--tabs-trigger-text",!0),V(n,"role","listbox"),V(n,"tabindex","0"),V(n,"aria-label",o=t[11]["aria-label"]||"listbox"),ne(n,"bx--tabs-trigger",!0),V(l,"role","tablist"),ne(l,"bx--tabs__nav",!0),ne(l,"bx--tabs__nav--hidden",t[5]),$e(e,$),ne(e,"bx--tabs",!0),ne(e,"bx--tabs--container",t[0]==="container")},m(g,f){I(g,e,f),A(e,n),A(n,i),p&&p.m(i,null),A(n,r),x(s,n,null),A(e,a),A(e,l),w&&w.m(l,null),t[26](l),I(g,u,f),D&&D.m(g,f),c=!0,O||(b=[de(i,"click",Qe(t[22])),de(i,"click",tn(Qe(t[23]))),de(n,"click",t[24]),de(n,"keypress",t[21]),de(n,"keypress",t[25])],O=!0)},p(g,f){g[3]?p?p.p(g,f):(p=Nt(g),p.c(),p.m(i,null)):p&&(p.d(1),p=null),(!c||f[0]&4)&&V(i,"href",g[2]);const k={};f[0]&2&&(k.title=g[1]),s.$set(k),(!c||f[0]&2048&&o!==(o=g[11]["aria-label"]||"listbox"))&&V(n,"aria-label",o),w&&w.p&&(!c||f[0]&524288)&&Je(w,v,g,g[19],c?Xe(v,g[19],f,null):We(g[19]),null),f[0]&32&&ne(l,"bx--tabs__nav--hidden",g[5]),$e(e,$=Ie(S,[{role:"navigation"},f[0]&1024&&g[10]])),ne(e,"bx--tabs",!0),ne(e,"bx--tabs--container",g[0]==="container"),D&&D.p&&(!c||f[0]&524288)&&Je(D,y,g,g[19],c?Xe(y,g[19],f,Ii):We(g[19]),vt)},i(g){c||(N(s.$$.fragment,g),N(w,g),N(D,g),c=!0)},o(g){T(s.$$.fragment,g),T(w,g),T(D,g),c=!1},d(g){g&&d(e),p&&p.d(),F(s),w&&w.d(g),t[26](null),g&&d(u),D&&D.d(g),O=!1,Pt(b)}}}function ki(t,e,n){let i,r;const s=["selected","type","autoWidth","iconDescription","triggerHref"];let o=re(e,s),a,l,u,c,{$$slots:O={},$$scope:b}=e,{selected:p=0}=e,{type:v="default"}=e,{autoWidth:w=!1}=e,{iconDescription:S="Show menu options"}=e,{triggerHref:$="#"}=e;const y=nn(),D=Oe([]);fe(t,D,P=>n(18,u=P));const g=pt(D,P=>P.reduce((X,ve)=>({...X,[ve.id]:ve}),{}));fe(t,g,P=>n(28,c=P));const f=Oe(w),k=Oe(void 0);fe(t,k,P=>n(16,a=P));const W=Oe([]);fe(t,W,P=>n(17,l=P));const B=pt(W,P=>P.reduce((X,ve)=>({...X,[ve.id]:ve}),{})),z=Oe(void 0);let m=null;rn("Tabs",{tabs:D,contentById:B,selectedTab:k,selectedContent:z,useAutoWidth:f,add:P=>{D.update(X=>[...X,{...P,index:X.length}])},addContent:P=>{W.update(X=>[...X,{...P,index:X.length}])},update:P=>{n(14,_=c[P].index)},change:async P=>{let X=_+P;X<0?X=u.length-1:X>=u.length&&(X=0);let ve=u[X].disabled;for(;ve;)X=X+P,X<0?X=u.length-1:X>=u.length&&(X=0),ve=u[X].disabled;n(14,_=X),await sn();const it=m==null?void 0:m.querySelectorAll("[role='tab']")[_];it==null||it.focus()}}),an(()=>{n(12,p=_),Y>-1&&Y!==_&&y("change",_),Y=_});let E=!0,_=p,Y=-1;function K(P){we.call(this,t,P)}function ce(P){we.call(this,t,P)}const se=()=>{n(5,E=!E)},Be=()=>{n(5,E=!E)},Ue=()=>{n(5,E=!E)};function Ge(P){et[P?"unshift":"push"](()=>{m=P,n(4,m)})}return t.$$set=P=>{n(11,e=J(J({},e),ae(P))),n(10,o=re(e,s)),"selected"in P&&n(12,p=P.selected),"type"in P&&n(0,v=P.type),"autoWidth"in P&&n(13,w=P.autoWidth),"iconDescription"in P&&n(1,S=P.iconDescription),"triggerHref"in P&&n(2,$=P.triggerHref),"$$scope"in P&&n(19,b=P.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&4096&&n(14,_=p),t.$$.dirty[0]&278528&&n(3,i=u[_]||void 0),t.$$.dirty[0]&147456&&n(15,r=l[_]||void 0),t.$$.dirty[0]&32776&&(i&&k.set(i.id),r&&z.set(r.id)),t.$$.dirty[0]&65536&&a&&n(5,E=!0),t.$$.dirty[0]&8192&&f.set(w)},e=ae(e),[v,S,$,i,m,E,D,g,k,W,o,e,p,w,_,r,a,l,u,b,O,K,ce,se,Be,Ue,Ge]}class Di extends oe{constructor(e){super(),le(this,e,ki,Ai,ue,{selected:12,type:0,autoWidth:13,iconDescription:1,triggerHref:2},null,[-1,-1])}}const Oi=Di;function Tt(t){let e,n;return{c(){e=ee("title"),n=U(t[1])},l(i){e=te(i,"title",{});var r=M(e);n=G(r,t[1]),r.forEach(d)},m(i,r){I(i,e,r),A(e,n)},p(i,r){r&2&&ge(n,i[1])},d(i){i&&d(e)}}}function wi(t){let e,n,i,r=t[1]&&Tt(t),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:t[0]},{height:t[0]},t[2],t[3]],o={};for(let a=0;a<s.length;a+=1)o=J(o,s[a]);return{c(){e=ee("svg"),r&&r.c(),n=ee("path"),i=ee("path"),this.h()},l(a){e=te(a,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var l=M(e);r&&r.l(l),n=te(l,"path",{d:!0}),M(n).forEach(d),i=te(l,"path",{d:!0}),M(i).forEach(d),l.forEach(d),this.h()},h(){V(n,"d","M10 16H22V18H10zM10 10H22V12H10z"),V(i,"d","M16,30,9.8242,26.7071A10.9815,10.9815,0,0,1,4,17V4A2.0022,2.0022,0,0,1,6,2H26a2.0022,2.0022,0,0,1,2,2V17a10.9815,10.9815,0,0,1-5.8242,9.7069ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z"),me(e,o)},m(a,l){I(a,e,l),r&&r.m(e,null),A(e,n),A(e,i)},p(a,[l]){a[1]?r?r.p(a,l):(r=Tt(a),r.c(),r.m(e,n)):r&&(r.d(1),r=null),me(e,o=Ie(s,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},l&1&&{width:a[0]},l&1&&{height:a[0]},l&4&&a[2],l&8&&a[3]]))},i:he,o:he,d(a){a&&d(e),r&&r.d()}}}function Ci(t,e,n){let i,r;const s=["size","title"];let o=re(e,s),{size:a=16}=e,{title:l=void 0}=e;return t.$$set=u=>{n(5,e=J(J({},e),ae(u))),n(3,o=re(e,s)),"size"in u&&n(0,a=u.size),"title"in u&&n(1,l=u.title)},t.$$.update=()=>{n(4,i=e["aria-label"]||e["aria-labelledby"]||l),n(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ae(e),[a,l,r,o,i]}class yt extends oe{constructor(e){super(),le(this,e,Ci,wi,ue,{size:0,title:1})}}function It(t){let e,n;return{c(){e=ee("title"),n=U(t[1])},l(i){e=te(i,"title",{});var r=M(e);n=G(r,t[1]),r.forEach(d)},m(i,r){I(i,e,r),A(e,n)},p(i,r){r&2&&ge(n,i[1])},d(i){i&&d(e)}}}function Si(t){let e,n,i,r,s=t[1]&&It(t),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:t[0]},{height:t[0]},t[2],t[3]],a={};for(let l=0;l<o.length;l+=1)a=J(a,o[l]);return{c(){e=ee("svg"),s&&s.c(),n=ee("path"),i=ee("path"),r=ee("path"),this.h()},l(l){e=te(l,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var u=M(e);s&&s.l(u),n=te(u,"path",{fill:!0,d:!0,"data-icon-path":!0}),M(n).forEach(d),i=te(u,"path",{fill:!0,d:!0}),M(i).forEach(d),r=te(u,"path",{d:!0}),M(r).forEach(d),u.forEach(d),this.h()},h(){V(n,"fill","none"),V(n,"d","M9 16H23V18H9z"),V(n,"data-icon-path","inner-path"),V(i,"fill","none"),V(i,"d","M9 10H23V12H9z"),V(r,"d","M26,2H6A2.0023,2.0023,0,0,0,4,4V17a10.9814,10.9814,0,0,0,5.8242,9.707L16,30l6.1758-3.293A10.9814,10.9814,0,0,0,28,17V4A2.0023,2.0023,0,0,0,26,2ZM23,18H9V16H23Zm0-6H9V10H23Z"),me(e,a)},m(l,u){I(l,e,u),s&&s.m(e,null),A(e,n),A(e,i),A(e,r)},p(l,[u]){l[1]?s?s.p(l,u):(s=It(l),s.c(),s.m(e,n)):s&&(s.d(1),s=null),me(e,a=Ie(o,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},u&1&&{width:l[0]},u&1&&{height:l[0]},u&4&&l[2],u&8&&l[3]]))},i:he,o:he,d(l){l&&d(e),s&&s.d()}}}function $i(t,e,n){let i,r;const s=["size","title"];let o=re(e,s),{size:a=16}=e,{title:l=void 0}=e;return t.$$set=u=>{n(5,e=J(J({},e),ae(u))),n(3,o=re(e,s)),"size"in u&&n(0,a=u.size),"title"in u&&n(1,l=u.title)},t.$$.update=()=>{n(4,i=e["aria-label"]||e["aria-labelledby"]||l),n(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ae(e),[a,l,r,o,i]}class At extends oe{constructor(e){super(),le(this,e,$i,Si,ue,{size:0,title:1})}}function kt(t){let e,n;return{c(){e=ee("title"),n=U(t[1])},l(i){e=te(i,"title",{});var r=M(e);n=G(r,t[1]),r.forEach(d)},m(i,r){I(i,e,r),A(e,n)},p(i,r){r&2&&ge(n,i[1])},d(i){i&&d(e)}}}function Ri(t){let e,n,i=t[1]&&kt(t),r=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:t[0]},{height:t[0]},t[2],t[3]],s={};for(let o=0;o<r.length;o+=1)s=J(s,r[o]);return{c(){e=ee("svg"),i&&i.c(),n=ee("path"),this.h()},l(o){e=te(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var a=M(e);i&&i.l(a),n=te(a,"path",{d:!0}),M(n).forEach(d),a.forEach(d),this.h()},h(){V(n,"d","M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"),me(e,s)},m(o,a){I(o,e,a),i&&i.m(e,null),A(e,n)},p(o,[a]){o[1]?i?i.p(o,a):(i=kt(o),i.c(),i.m(e,n)):i&&(i.d(1),i=null),me(e,s=Ie(r,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},a&1&&{width:o[0]},a&1&&{height:o[0]},a&4&&o[2],a&8&&o[3]]))},i:he,o:he,d(o){o&&d(e),i&&i.d()}}}function Li(t,e,n){let i,r;const s=["size","title"];let o=re(e,s),{size:a=16}=e,{title:l=void 0}=e;return t.$$set=u=>{n(5,e=J(J({},e),ae(u))),n(3,o=re(e,s)),"size"in u&&n(0,a=u.size),"title"in u&&n(1,l=u.title)},t.$$.update=()=>{n(4,i=e["aria-label"]||e["aria-labelledby"]||l),n(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ae(e),[a,l,r,o,i]}class xi extends oe{constructor(e){super(),le(this,e,Li,Ri,ue,{size:0,title:1})}}function Dt(t){let e,n;return{c(){e=ee("title"),n=U(t[1])},l(i){e=te(i,"title",{});var r=M(e);n=G(r,t[1]),r.forEach(d)},m(i,r){I(i,e,r),A(e,n)},p(i,r){r&2&&ge(n,i[1])},d(i){i&&d(e)}}}function Fi(t){let e,n,i,r=t[1]&&Dt(t),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:t[0]},{height:t[0]},t[2],t[3]],o={};for(let a=0;a<s.length;a+=1)o=J(o,s[a]);return{c(){e=ee("svg"),r&&r.c(),n=ee("path"),i=ee("path"),this.h()},l(a){e=te(a,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var l=M(e);r&&r.l(l),n=te(l,"path",{d:!0}),M(n).forEach(d),i=te(l,"path",{d:!0}),M(i).forEach(d),l.forEach(d),this.h()},h(){V(n,"d","M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"),V(i,"d","M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"),me(e,o)},m(a,l){I(a,e,l),r&&r.m(e,null),A(e,n),A(e,i)},p(a,[l]){a[1]?r?r.p(a,l):(r=Dt(a),r.c(),r.m(e,n)):r&&(r.d(1),r=null),me(e,o=Ie(s,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},l&1&&{width:a[0]},l&1&&{height:a[0]},l&4&&a[2],l&8&&a[3]]))},i:he,o:he,d(a){a&&d(e),r&&r.d()}}}function Mi(t,e,n){let i,r;const s=["size","title"];let o=re(e,s),{size:a=16}=e,{title:l=void 0}=e;return t.$$set=u=>{n(5,e=J(J({},e),ae(u))),n(3,o=re(e,s)),"size"in u&&n(0,a=u.size),"title"in u&&n(1,l=u.title)},t.$$.update=()=>{n(4,i=e["aria-label"]||e["aria-labelledby"]||l),n(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ae(e),[a,l,r,o,i]}class Pi extends oe{constructor(e){super(),le(this,e,Mi,Fi,ue,{size:0,title:1})}}function Ot(t){let e,n;return{c(){e=ee("title"),n=U(t[1])},l(i){e=te(i,"title",{});var r=M(e);n=G(r,t[1]),r.forEach(d)},m(i,r){I(i,e,r),A(e,n)},p(i,r){r&2&&ge(n,i[1])},d(i){i&&d(e)}}}function Vi(t){let e,n,i=t[1]&&Ot(t),r=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:t[0]},{height:t[0]},t[2],t[3]],s={};for(let o=0;o<r.length;o+=1)s=J(s,r[o]);return{c(){e=ee("svg"),i&&i.c(),n=ee("path"),this.h()},l(o){e=te(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var a=M(e);i&&i.l(a),n=te(a,"path",{d:!0}),M(n).forEach(d),a.forEach(d),this.h()},h(){V(n,"d","M8 15H24V17H8z"),me(e,s)},m(o,a){I(o,e,a),i&&i.m(e,null),A(e,n)},p(o,[a]){o[1]?i?i.p(o,a):(i=Ot(o),i.c(),i.m(e,n)):i&&(i.d(1),i=null),me(e,s=Ie(r,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},a&1&&{width:o[0]},a&1&&{height:o[0]},a&4&&o[2],a&8&&o[3]]))},i:he,o:he,d(o){o&&d(e),i&&i.d()}}}function Bi(t,e,n){let i,r;const s=["size","title"];let o=re(e,s),{size:a=16}=e,{title:l=void 0}=e;return t.$$set=u=>{n(5,e=J(J({},e),ae(u))),n(3,o=re(e,s)),"size"in u&&n(0,a=u.size),"title"in u&&n(1,l=u.title)},t.$$.update=()=>{n(4,i=e["aria-label"]||e["aria-labelledby"]||l),n(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ae(e),[a,l,r,o,i]}class Ui extends oe{constructor(e){super(),le(this,e,Bi,Vi,ue,{size:0,title:1})}}function Gi(t){let e,n,i,r,s,o,a,l,u,c,O,b,p=t[4].depth+"",v,w,S,$;return i=new pn({props:{source:t[0],language:t[1],maxHeight:"20rem",minHeight:"12rem"}}),o=new je({props:{kind:"ghost",icon:Pi,iconDescription:t[3],tooltipPosition:"left",size:"field"}}),o.$on("click",t[5]),l=new je({props:{kind:"ghost",icon:t[4].nullGenerationStrategy===Ne.NEVER_NULL?At:yt,iconDescription:t[4].nullGenerationStrategy===Ne.NEVER_NULL?"Never null fields":"Always null fields",tooltipPosition:"left",size:"field"}}),l.$on("click",t[6]),c=new je({props:{kind:"ghost",icon:xi,iconDescription:"Increase query depth",tooltipPosition:"left",size:"field"}}),c.$on("click",t[7]),S=new je({props:{kind:"ghost",icon:Ui,iconDescription:"Decrease query depth",tooltipPosition:"left",size:"field"}}),S.$on("click",t[8]),{c(){e=H("div"),n=H("div"),R(i.$$.fragment),r=j(),s=H("div"),R(o.$$.fragment),a=j(),R(l.$$.fragment),u=j(),R(c.$$.fragment),O=j(),b=H("p"),v=U(p),w=j(),R(S.$$.fragment),this.h()},l(y){e=Q(y,"DIV",{class:!0});var D=M(e);n=Q(D,"DIV",{class:!0});var g=M(n);L(i.$$.fragment,g),g.forEach(d),r=q(D),s=Q(D,"DIV",{class:!0});var f=M(s);L(o.$$.fragment,f),a=q(f),L(l.$$.fragment,f),u=q(f),L(c.$$.fragment,f),O=q(f),b=Q(f,"P",{style:!0});var k=M(b);v=G(k,p),k.forEach(d),w=q(f),L(S.$$.fragment,f),f.forEach(d),D.forEach(d),this.h()},h(){V(n,"class","code-section svelte-1gk78cu"),Se(b,"text-align","center"),V(s,"class","button-bar svelte-1gk78cu"),V(e,"class","wrapper svelte-1gk78cu")},m(y,D){I(y,e,D),A(e,n),x(i,n,null),A(e,r),A(e,s),x(o,s,null),A(s,a),x(l,s,null),A(s,u),x(c,s,null),A(s,O),A(s,b),A(b,v),A(s,w),x(S,s,null),$=!0},p(y,[D]){const g={};D&1&&(g.source=y[0]),D&2&&(g.language=y[1]),i.$set(g);const f={};D&8&&(f.iconDescription=y[3]),o.$set(f);const k={};D&16&&(k.icon=y[4].nullGenerationStrategy===Ne.NEVER_NULL?At:yt),D&16&&(k.iconDescription=y[4].nullGenerationStrategy===Ne.NEVER_NULL?"Never null fields":"Always null fields"),l.$set(k),(!$||D&16)&&p!==(p=y[4].depth+"")&&ge(v,p)},i(y){$||(N(i.$$.fragment,y),N(o.$$.fragment,y),N(l.$$.fragment,y),N(c.$$.fragment,y),N(S.$$.fragment,y),$=!0)},o(y){T(i.$$.fragment,y),T(o.$$.fragment,y),T(l.$$.fragment,y),T(c.$$.fragment,y),T(S.$$.fragment,y),$=!1},d(y){y&&d(e),F(i),F(o),F(l),F(c),F(S)}}}function ji(t,e,n){let i;fe(t,Te,b=>n(4,i=b));let{code:r}=e,{language:s}=e,o="Copy query",{copy:a=async b=>{try{n(3,o="Copied!"),await navigator.clipboard.writeText(b),setTimeout(()=>{n(3,o="Copy query")},1500)}catch(p){console.log(p)}}}=e;const l=()=>a(r),u=()=>Te.toggleNullGenerationStrategy(),c=()=>Te.increaseDepth(),O=()=>Te.decreaseDepth();return t.$$set=b=>{"code"in b&&n(0,r=b.code),"language"in b&&n(1,s=b.language),"copy"in b&&n(2,a=b.copy)},[r,s,a,o,i,l,u,c,O]}class Ve extends oe{constructor(e){super(),le(this,e,ji,Gi,ue,{code:0,language:1,copy:2})}}function qi(t){let e,n,i,r,s,o;return e=new ot({props:{label:"Query"}}),i=new ot({props:{label:"Variables"}}),s=new ot({props:{label:"Response"}}),{c(){R(e.$$.fragment),n=j(),R(i.$$.fragment),r=j(),R(s.$$.fragment)},l(a){L(e.$$.fragment,a),n=q(a),L(i.$$.fragment,a),r=q(a),L(s.$$.fragment,a)},m(a,l){x(e,a,l),I(a,n,l),x(i,a,l),I(a,r,l),x(s,a,l),o=!0},p:he,i(a){o||(N(e.$$.fragment,a),N(i.$$.fragment,a),N(s.$$.fragment,a),o=!0)},o(a){T(e.$$.fragment,a),T(i.$$.fragment,a),T(s.$$.fragment,a),o=!1},d(a){F(e,a),a&&d(n),F(i,a),a&&d(r),F(s,a)}}}function wt(t){var i,r;let e,n;return e=new Ve({props:{code:(r=(i=t[1].value)==null?void 0:i.query)!=null?r:"# No query generated. Try increasing the depth",language:"graphql"}}),{c(){R(e.$$.fragment)},l(s){L(e.$$.fragment,s)},m(s,o){x(e,s,o),n=!0},p(s,o){var l,u;const a={};o&2&&(a.code=(u=(l=s[1].value)==null?void 0:l.query)!=null?u:"# No query generated. Try increasing the depth"),e.$set(a)},i(s){n||(N(e.$$.fragment,s),n=!0)},o(s){T(e.$$.fragment,s),n=!1},d(s){F(e,s)}}}function zi(t){let e,n,i=t[0]===0&&wt(t);return{c(){i&&i.c(),e=ye()},l(r){i&&i.l(r),e=ye()},m(r,s){i&&i.m(r,s),I(r,e,s),n=!0},p(r,s){r[0]===0?i?(i.p(r,s),s&1&&N(i,1)):(i=wt(r),i.c(),N(i,1),i.m(e.parentNode,e)):i&&(Ee(),T(i,1,1,()=>{i=null}),be())},i(r){n||(N(i),n=!0)},o(r){T(i),n=!1},d(r){i&&i.d(r),r&&d(e)}}}function Ct(t){var i,r;let e,n;return e=new Ve({props:{code:(i=t[1].value)!=null&&i.variables?JSON.stringify(((r=t[1].value)==null?void 0:r.variables)||{},null,2):"",language:"json"}}),{c(){R(e.$$.fragment)},l(s){L(e.$$.fragment,s)},m(s,o){x(e,s,o),n=!0},p(s,o){var l,u;const a={};o&2&&(a.code=(l=s[1].value)!=null&&l.variables?JSON.stringify(((u=s[1].value)==null?void 0:u.variables)||{},null,2):""),e.$set(a)},i(s){n||(N(e.$$.fragment,s),n=!0)},o(s){T(e.$$.fragment,s),n=!1},d(s){F(e,s)}}}function Yi(t){let e,n,i=t[0]===1&&Ct(t);return{c(){i&&i.c(),e=ye()},l(r){i&&i.l(r),e=ye()},m(r,s){i&&i.m(r,s),I(r,e,s),n=!0},p(r,s){r[0]===1?i?(i.p(r,s),s&1&&N(i,1)):(i=Ct(r),i.c(),N(i,1),i.m(e.parentNode,e)):i&&(Ee(),T(i,1,1,()=>{i=null}),be())},i(r){n||(N(i),n=!0)},o(r){T(i),n=!1},d(r){i&&i.d(r),r&&d(e)}}}function St(t){let e,n;return e=new Ve({props:{code:t[1].response?JSON.stringify(t[1].response||{},null,2):"",language:"json"}}),{c(){R(e.$$.fragment)},l(i){L(e.$$.fragment,i)},m(i,r){x(e,i,r),n=!0},p(i,r){const s={};r&2&&(s.code=i[1].response?JSON.stringify(i[1].response||{},null,2):""),e.$set(s)},i(i){n||(N(e.$$.fragment,i),n=!0)},o(i){T(e.$$.fragment,i),n=!1},d(i){F(e,i)}}}function Hi(t){let e,n,i=t[0]===2&&St(t);return{c(){i&&i.c(),e=ye()},l(r){i&&i.l(r),e=ye()},m(r,s){i&&i.m(r,s),I(r,e,s),n=!0},p(r,s){r[0]===2?i?(i.p(r,s),s&1&&N(i,1)):(i=St(r),i.c(),N(i,1),i.m(e.parentNode,e)):i&&(Ee(),T(i,1,1,()=>{i=null}),be())},i(r){n||(N(i),n=!0)},o(r){T(i),n=!1},d(r){i&&i.d(r),r&&d(e)}}}function Qi(t){let e,n,i,r,s,o;return e=new lt({props:{style:"padding:0",$$slots:{default:[zi]},$$scope:{ctx:t}}}),i=new lt({props:{style:"padding:0",$$slots:{default:[Yi]},$$scope:{ctx:t}}}),s=new lt({props:{style:"padding:0",$$slots:{default:[Hi]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment),n=j(),R(i.$$.fragment),r=j(),R(s.$$.fragment)},l(a){L(e.$$.fragment,a),n=q(a),L(i.$$.fragment,a),r=q(a),L(s.$$.fragment,a)},m(a,l){x(e,a,l),I(a,n,l),x(i,a,l),I(a,r,l),x(s,a,l),o=!0},p(a,l){const u={};l&35&&(u.$$scope={dirty:l,ctx:a}),e.$set(u);const c={};l&35&&(c.$$scope={dirty:l,ctx:a}),i.$set(c);const O={};l&35&&(O.$$scope={dirty:l,ctx:a}),s.$set(O)},i(a){o||(N(e.$$.fragment,a),N(i.$$.fragment,a),N(s.$$.fragment,a),o=!0)},o(a){T(e.$$.fragment,a),T(i.$$.fragment,a),T(s.$$.fragment,a),o=!1},d(a){F(e,a),a&&d(n),F(i,a),a&&d(r),F(s,a)}}}function Ji(t){let e,n,i;function r(o){t[4](o)}let s={autoWidth:!0,$$slots:{content:[Qi],default:[qi]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.selected=t[0]),e=new Oi({props:s}),et.push(()=>Bt(e,"selected",r)),{c(){R(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){x(e,o,a),i=!0},p(o,[a]){const l={};a&35&&(l.$$scope={dirty:a,ctx:o}),!n&&a&1&&(n=!0,l.selected=o[0],Ut(()=>n=!1)),e.$set(l)},i(o){i||(N(e.$$.fragment,o),i=!0)},o(o){T(e.$$.fragment,o),i=!1},d(o){F(e,o)}}}function Wi(t,e,n){let i;fe(t,Te,l=>n(1,i=l));let{type:r}=e,{field:s}=e,o=0;function a(l){o=l,n(0,o)}return t.$$set=l=>{"type"in l&&n(2,r=l.type),"field"in l&&n(3,s=l.field)},t.$$.update=()=>{t.$$.dirty&12&&Te.setField(s,r)},[o,i,r,s,a]}class Xi extends oe{constructor(e){super(),le(this,e,Wi,Ji,ue,{type:2,field:3})}}function Zi(t){let e=ut.capitalize(t[0].toLowerCase())+"",n;return{c(){n=U(e)},l(i){n=G(i,e)},m(i,r){I(i,n,r)},p(i,r){r&1&&e!==(e=ut.capitalize(i[0].toLowerCase())+"")&&ge(n,e)},d(i){i&&d(n)}}}function Ki(t){let e,n;return e=new mn({props:{type:"green",$$slots:{default:[Zi]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},l(i){L(e.$$.fragment,i)},m(i,r){x(e,i,r),n=!0},p(i,[r]){const s={};r&3&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){n||(N(e.$$.fragment,i),n=!0)},o(i){T(e.$$.fragment,i),n=!1},d(i){F(e,i)}}}function er(t,e,n){let{type:i}=e;return t.$$set=r=>{"type"in r&&n(0,i=r.type)},[i]}class tr extends oe{constructor(e){super(),le(this,e,er,Ki,ue,{type:0})}}function $t(t){let e,n;return e=new gn({props:{hideCloseButton:!0,lowContrast:!0,kind:"warning",$$slots:{default:[nr]},$$scope:{ctx:t}}}),{c(){R(e.$$.fragment)},l(i){L(e.$$.fragment,i)},m(i,r){x(e,i,r),n=!0},p(i,r){const s={};r&3&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){n||(N(e.$$.fragment,i),n=!0)},o(i){T(e.$$.fragment,i),n=!1},d(i){F(e,i)}}}function nr(t){let e,n;return e=new jt({props:{source:`**Deprecated**: ${String(t[0])}`}}),{c(){R(e.$$.fragment)},l(i){L(e.$$.fragment,i)},m(i,r){x(e,i,r),n=!0},p(i,r){const s={};r&1&&(s.source=`**Deprecated**: ${String(i[0])}`),e.$set(s)},i(i){n||(N(e.$$.fragment,i),n=!0)},o(i){T(e.$$.fragment,i),n=!1},d(i){F(e,i)}}}function ir(t){let e,n,i=t[0]&&$t(t);return{c(){i&&i.c(),e=ye()},l(r){i&&i.l(r),e=ye()},m(r,s){i&&i.m(r,s),I(r,e,s),n=!0},p(r,[s]){r[0]?i?(i.p(r,s),s&1&&N(i,1)):(i=$t(r),i.c(),N(i,1),i.m(e.parentNode,e)):i&&(Ee(),T(i,1,1,()=>{i=null}),be())},i(r){n||(N(i),n=!0)},o(r){T(i),n=!1},d(r){i&&i.d(r),r&&d(e)}}}function rr(t,e,n){let{deprecationReason:i}=e;return t.$$set=r=>{"deprecationReason"in r&&n(0,i=r.deprecationReason)},[i]}class sr extends oe{constructor(e){super(),le(this,e,rr,ir,ue,{deprecationReason:0})}}function ar(t){let e=t[1].name+"",n,i,r;return i=new tr({props:{type:t[0]}}),{c(){n=U(e),R(i.$$.fragment)},l(s){n=G(s,e),L(i.$$.fragment,s)},m(s,o){I(s,n,o),x(i,s,o),r=!0},p(s,o){(!r||o&2)&&e!==(e=s[1].name+"")&&ge(n,e);const a={};o&1&&(a.type=s[0]),i.$set(a)},i(s){r||(N(i.$$.fragment,s),r=!0)},o(s){T(i.$$.fragment,s),r=!1},d(s){s&&d(n),F(i,s)}}}function Rt(t){let e,n,i,r;return e=new Ae({props:{id:"arguments",depth:2,$$slots:{default:[or]},$$scope:{ctx:t}}}),i=new _n({props:{data:t[1].args}}),{c(){R(e.$$.fragment),n=j(),R(i.$$.fragment)},l(s){L(e.$$.fragment,s),n=q(s),L(i.$$.fragment,s)},m(s,o){x(e,s,o),I(s,n,o),x(i,s,o),r=!0},p(s,o){const a={};o&32&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const l={};o&2&&(l.data=s[1].args),i.$set(l)},i(s){r||(N(e.$$.fragment,s),N(i.$$.fragment,s),r=!0)},o(s){T(e.$$.fragment,s),T(i.$$.fragment,s),r=!1},d(s){F(e,s),s&&d(n),F(i,s)}}}function or(t){let e;return{c(){e=U("Arguments")},l(n){e=G(n,"Arguments")},m(n,i){I(n,e,i)},d(n){n&&d(e)}}}function Lt(t){let e,n,i,r,s,o,a;return e=new Ae({props:{id:"response",depth:2,$$slots:{default:[lr]},$$scope:{ctx:t}}}),s=new En({props:{type:t[1].type}}),{c(){R(e.$$.fragment),n=j(),i=H("p"),r=U("Returns "),R(s.$$.fragment),o=U(".")},l(l){L(e.$$.fragment,l),n=q(l),i=Q(l,"P",{});var u=M(i);r=G(u,"Returns "),L(s.$$.fragment,u),o=G(u,"."),u.forEach(d)},m(l,u){x(e,l,u),I(l,n,u),I(l,i,u),A(i,r),x(s,i,null),A(i,o),a=!0},p(l,u){const c={};u&32&&(c.$$scope={dirty:u,ctx:l}),e.$set(c);const O={};u&2&&(O.type=l[1].type),s.$set(O)},i(l){a||(N(e.$$.fragment,l),N(s.$$.fragment,l),a=!0)},o(l){T(e.$$.fragment,l),T(s.$$.fragment,l),a=!1},d(l){F(e,l),l&&d(n),l&&d(i),F(s)}}}function lr(t){let e;return{c(){e=U("Response")},l(n){e=G(n,"Response")},m(n,i){I(n,e,i)},d(n){n&&d(e)}}}function ur(t){let e,n,i,r,s,o;return e=new rt({props:{text:"GraphQL"}}),i=new rt({props:{text:"JS (Autogenerated SDK)"}}),s=new rt({props:{text:"Python (Autogenerated SDK)"}}),{c(){R(e.$$.fragment),n=j(),R(i.$$.fragment),r=j(),R(s.$$.fragment)},l(a){L(e.$$.fragment,a),n=q(a),L(i.$$.fragment,a),r=q(a),L(s.$$.fragment,a)},m(a,l){x(e,a,l),I(a,n,l),x(i,a,l),I(a,r,l),x(s,a,l),o=!0},p:he,i(a){o||(N(e.$$.fragment,a),N(i.$$.fragment,a),N(s.$$.fragment,a),o=!0)},o(a){T(e.$$.fragment,a),T(i.$$.fragment,a),T(s.$$.fragment,a),o=!1},d(a){F(e,a),a&&d(n),F(i,a),a&&d(r),F(s,a)}}}function xt(t){let e,n;return e=new Xi({props:{type:t[0],field:t[1]}}),{c(){R(e.$$.fragment)},l(i){L(e.$$.fragment,i)},m(i,r){x(e,i,r),n=!0},p(i,r){const s={};r&1&&(s.type=i[0]),r&2&&(s.field=i[1]),e.$set(s)},i(i){n||(N(e.$$.fragment,i),n=!0)},o(i){T(e.$$.fragment,i),n=!1},d(i){F(e,i)}}}function Ft(t){var B,z;let e,n,i,r,s,o,a,l,u,c,O,b,p,v,w,S,$,y,D,g,f,k,W;return e=new Ae({props:{id:"installing",depth:4,$$slots:{default:[cr]},$$scope:{ctx:t}}}),l=new Ae({props:{id:"installing",depth:4,$$slots:{default:[fr]},$$scope:{ctx:t}}}),b=new Me({props:{$$slots:{default:[hr]},$$scope:{ctx:t}}}),v=new Me({props:{$$slots:{default:[dr]},$$scope:{ctx:t}}}),D=new Me({props:{$$slots:{default:[pr]},$$scope:{ctx:t}}}),k=new Ve({props:{code:(z=(B=t[3].jsQuery)==null?void 0:B.query)!=null?z:"# No query generated. Try increasing the depth",language:"typescript"}}),{c(){R(e.$$.fragment),n=j(),i=H("p"),r=U(`To use queries in JavaScript / TypeScript directly in your code,
            make sure you have already built the `),s=H("a"),o=U("Autogenerated JS SDK via the CLI"),a=j(),R(l.$$.fragment),u=j(),c=H("p"),O=U("In the below code, we assume the "),R(b.$$.fragment),p=U(`
            is already authenticated instance of `),R(v.$$.fragment),w=U(`
            .`),S=j(),$=H("p"),y=U("As well, the code below assumes that you have already imported "),R(D.$$.fragment),g=U(`. This is a built in functionality to help you fetch all immediate
            "scalar" values (non-nested values). Hence feel free to adjust the
            "depth" on the right hand side to see how nested values looks.`),f=j(),R(k.$$.fragment),this.h()},l(m){L(e.$$.fragment,m),n=q(m),i=Q(m,"P",{style:!0});var E=M(i);r=G(E,`To use queries in JavaScript / TypeScript directly in your code,
            make sure you have already built the `),s=Q(E,"A",{href:!0});var _=M(s);o=G(_,"Autogenerated JS SDK via the CLI"),_.forEach(d),E.forEach(d),a=q(m),L(l.$$.fragment,m),u=q(m),c=Q(m,"P",{style:!0});var Y=M(c);O=G(Y,"In the below code, we assume the "),L(b.$$.fragment,Y),p=G(Y,`
            is already authenticated instance of `),L(v.$$.fragment,Y),w=G(Y,`
            .`),Y.forEach(d),S=q(m),$=Q(m,"P",{style:!0});var K=M($);y=G(K,"As well, the code below assumes that you have already imported "),L(D.$$.fragment,K),g=G(K,`. This is a built in functionality to help you fetch all immediate
            "scalar" values (non-nested values). Hence feel free to adjust the
            "depth" on the right hand side to see how nested values looks.`),K.forEach(d),f=q(m),L(k.$$.fragment,m),this.h()},h(){V(s,"href","/getting-started#javascript--typescript-autogenerated-sdk"),Se(i,"margin-bottom","12px"),Se(c,"margin-bottom","12px"),Se($,"margin-bottom","12px")},m(m,E){x(e,m,E),I(m,n,E),I(m,i,E),A(i,r),A(i,s),A(s,o),I(m,a,E),x(l,m,E),I(m,u,E),I(m,c,E),A(c,O),x(b,c,null),A(c,p),x(v,c,null),A(c,w),I(m,S,E),I(m,$,E),A($,y),x(D,$,null),A($,g),I(m,f,E),x(k,m,E),W=!0},p(m,E){var Ue,Ge;const _={};E&32&&(_.$$scope={dirty:E,ctx:m}),e.$set(_);const Y={};E&32&&(Y.$$scope={dirty:E,ctx:m}),l.$set(Y);const K={};E&32&&(K.$$scope={dirty:E,ctx:m}),b.$set(K);const ce={};E&32&&(ce.$$scope={dirty:E,ctx:m}),v.$set(ce);const se={};E&32&&(se.$$scope={dirty:E,ctx:m}),D.$set(se);const Be={};E&8&&(Be.code=(Ge=(Ue=m[3].jsQuery)==null?void 0:Ue.query)!=null?Ge:"# No query generated. Try increasing the depth"),k.$set(Be)},i(m){W||(N(e.$$.fragment,m),N(l.$$.fragment,m),N(b.$$.fragment,m),N(v.$$.fragment,m),N(D.$$.fragment,m),N(k.$$.fragment,m),W=!0)},o(m){T(e.$$.fragment,m),T(l.$$.fragment,m),T(b.$$.fragment,m),T(v.$$.fragment,m),T(D.$$.fragment,m),T(k.$$.fragment,m),W=!1},d(m){F(e,m),m&&d(n),m&&d(i),m&&d(a),F(l,m),m&&d(u),m&&d(c),F(b),F(v),m&&d(S),m&&d($),F(D),m&&d(f),F(k,m)}}}function cr(t){let e;return{c(){e=U("Setting up the SDK")},l(n){e=G(n,"Setting up the SDK")},m(n,i){I(n,e,i)},d(n){n&&d(e)}}}function fr(t){let e;return{c(){e=U("Running the query")},l(n){e=G(n,"Running the query")},m(n,i){I(n,e,i)},d(n){n&&d(e)}}}function hr(t){let e;return{c(){e=U("client")},l(n){e=G(n,"client")},m(n,i){I(n,e,i)},d(n){n&&d(e)}}}function dr(t){let e;return{c(){e=U("FDMQueryClient")},l(n){e=G(n,"FDMQueryClient")},m(n,i){I(n,e,i)},d(n){n&&d(e)}}}function pr(t){let e;return{c(){e=U("everything")},l(n){e=G(n,"everything")},m(n,i){I(n,e,i)},d(n){n&&d(e)}}}function Mt(t){var D,g;let e,n,i,r,s,o,a,l,u,c,O,b,p,v,w,S,$,y;return e=new Ae({props:{id:"installing",depth:4,$$slots:{default:[mr]},$$scope:{ctx:t}}}),l=new Ae({props:{id:"installing",depth:4,$$slots:{default:[gr]},$$scope:{ctx:t}}}),b=new Me({props:{$$slots:{default:[_r]},$$scope:{ctx:t}}}),v=new Me({props:{$$slots:{default:[Er]},$$scope:{ctx:t}}}),$=new Ve({props:{code:(g=(D=t[3].pythonQuery)==null?void 0:D.query)!=null?g:"# No query generated. Try increasing the depth",language:"python"}}),{c(){R(e.$$.fragment),n=j(),i=H("p"),r=U(`To use queries in Python directly in your code, make sure you have
            already built the `),s=H("a"),o=U("Autogenerated Python SDK via the CLI"),a=j(),R(l.$$.fragment),u=j(),c=H("p"),O=U("In the below code, we assume the "),R(b.$$.fragment),p=U(`
            is already authenticated instance of `),R(v.$$.fragment),w=U(`
            .`),S=j(),R($.$$.fragment),this.h()},l(f){L(e.$$.fragment,f),n=q(f),i=Q(f,"P",{style:!0});var k=M(i);r=G(k,`To use queries in Python directly in your code, make sure you have
            already built the `),s=Q(k,"A",{href:!0});var W=M(s);o=G(W,"Autogenerated Python SDK via the CLI"),W.forEach(d),k.forEach(d),a=q(f),L(l.$$.fragment,f),u=q(f),c=Q(f,"P",{style:!0});var B=M(c);O=G(B,"In the below code, we assume the "),L(b.$$.fragment,B),p=G(B,`
            is already authenticated instance of `),L(v.$$.fragment,B),w=G(B,`
            .`),B.forEach(d),S=q(f),L($.$$.fragment,f),this.h()},h(){V(s,"href","/getting-started#python-autogenerated-sdk"),Se(i,"margin-bottom","12px"),Se(c,"margin-bottom","12px")},m(f,k){x(e,f,k),I(f,n,k),I(f,i,k),A(i,r),A(i,s),A(s,o),I(f,a,k),x(l,f,k),I(f,u,k),I(f,c,k),A(c,O),x(b,c,null),A(c,p),x(v,c,null),A(c,w),I(f,S,k),x($,f,k),y=!0},p(f,k){var _,Y;const W={};k&32&&(W.$$scope={dirty:k,ctx:f}),e.$set(W);const B={};k&32&&(B.$$scope={dirty:k,ctx:f}),l.$set(B);const z={};k&32&&(z.$$scope={dirty:k,ctx:f}),b.$set(z);const m={};k&32&&(m.$$scope={dirty:k,ctx:f}),v.$set(m);const E={};k&8&&(E.code=(Y=(_=f[3].pythonQuery)==null?void 0:_.query)!=null?Y:"# No query generated. Try increasing the depth"),$.$set(E)},i(f){y||(N(e.$$.fragment,f),N(l.$$.fragment,f),N(b.$$.fragment,f),N(v.$$.fragment,f),N($.$$.fragment,f),y=!0)},o(f){T(e.$$.fragment,f),T(l.$$.fragment,f),T(b.$$.fragment,f),T(v.$$.fragment,f),T($.$$.fragment,f),y=!1},d(f){F(e,f),f&&d(n),f&&d(i),f&&d(a),F(l,f),f&&d(u),f&&d(c),F(b),F(v),f&&d(S),F($,f)}}}function mr(t){let e;return{c(){e=U("Setting up the SDK")},l(n){e=G(n,"Setting up the SDK")},m(n,i){I(n,e,i)},d(n){n&&d(e)}}}function gr(t){let e;return{c(){e=U("Running the query")},l(n){e=G(n,"Running the query")},m(n,i){I(n,e,i)},d(n){n&&d(e)}}}function _r(t){let e;return{c(){e=U("client")},l(n){e=G(n,"client")},m(n,i){I(n,e,i)},d(n){n&&d(e)}}}function Er(t){let e;return{c(){e=U("FDMQueryClient")},l(n){e=G(n,"FDMQueryClient")},m(n,i){I(n,e,i)},d(n){n&&d(e)}}}function br(t){let e,n,i,r,s,o,a,l,u,c,O,b,p,v,w,S,$,y,D;n=new sr({props:{deprecationReason:t[1].deprecationReason}}),r=new Ae({props:{id:"title",depth:1,$$slots:{default:[ar]},$$scope:{ctx:t}}}),l=new jt({props:{source:t[1].description}});let g=t[1].args.length>0&&Rt(t),f=t[1].type&&Lt(t);function k(E){t[4](E)}let W={$$slots:{default:[ur]},$$scope:{ctx:t}};t[2]!==void 0&&(W.selectedIndex=t[2]),p=new cn({props:W}),et.push(()=>Bt(p,"selectedIndex",k));let B=t[2]===0&&xt(t),z=t[2]===1&&Ft(t),m=t[2]===2&&Mt(t);return{c(){e=H("section"),R(n.$$.fragment),i=j(),R(r.$$.fragment),s=j(),o=H("div"),a=H("div"),R(l.$$.fragment),u=j(),g&&g.c(),c=j(),f&&f.c(),O=j(),b=H("div"),R(p.$$.fragment),w=j(),S=H("div"),B&&B.c(),$=j(),z&&z.c(),y=j(),m&&m.c(),this.h()},l(E){e=Q(E,"SECTION",{});var _=M(e);L(n.$$.fragment,_),i=q(_),L(r.$$.fragment,_),s=q(_),o=Q(_,"DIV",{class:!0});var Y=M(o);a=Q(Y,"DIV",{class:!0});var K=M(a);L(l.$$.fragment,K),u=q(K),g&&g.l(K),c=q(K),f&&f.l(K),K.forEach(d),O=q(Y),b=Q(Y,"DIV",{class:!0});var ce=M(b);L(p.$$.fragment,ce),w=q(ce),S=Q(ce,"DIV",{});var se=M(S);B&&B.l(se),$=q(se),z&&z.l(se),y=q(se),m&&m.l(se),se.forEach(d),ce.forEach(d),Y.forEach(d),_.forEach(d),this.h()},h(){V(a,"class","content svelte-1xxaho6"),V(b,"class","sample svelte-1xxaho6"),V(o,"class","wrapper svelte-1xxaho6")},m(E,_){I(E,e,_),x(n,e,null),A(e,i),x(r,e,null),A(e,s),A(e,o),A(o,a),x(l,a,null),A(a,u),g&&g.m(a,null),A(a,c),f&&f.m(a,null),A(o,O),A(o,b),x(p,b,null),A(b,w),A(b,S),B&&B.m(S,null),A(S,$),z&&z.m(S,null),A(S,y),m&&m.m(S,null),D=!0},p(E,[_]){const Y={};_&2&&(Y.deprecationReason=E[1].deprecationReason),n.$set(Y);const K={};_&35&&(K.$$scope={dirty:_,ctx:E}),r.$set(K);const ce={};_&2&&(ce.source=E[1].description),l.$set(ce),E[1].args.length>0?g?(g.p(E,_),_&2&&N(g,1)):(g=Rt(E),g.c(),N(g,1),g.m(a,c)):g&&(Ee(),T(g,1,1,()=>{g=null}),be()),E[1].type?f?(f.p(E,_),_&2&&N(f,1)):(f=Lt(E),f.c(),N(f,1),f.m(a,null)):f&&(Ee(),T(f,1,1,()=>{f=null}),be());const se={};_&32&&(se.$$scope={dirty:_,ctx:E}),!v&&_&4&&(v=!0,se.selectedIndex=E[2],Ut(()=>v=!1)),p.$set(se),E[2]===0?B?(B.p(E,_),_&4&&N(B,1)):(B=xt(E),B.c(),N(B,1),B.m(S,$)):B&&(Ee(),T(B,1,1,()=>{B=null}),be()),E[2]===1?z?(z.p(E,_),_&4&&N(z,1)):(z=Ft(E),z.c(),N(z,1),z.m(S,y)):z&&(Ee(),T(z,1,1,()=>{z=null}),be()),E[2]===2?m?(m.p(E,_),_&4&&N(m,1)):(m=Mt(E),m.c(),N(m,1),m.m(S,null)):m&&(Ee(),T(m,1,1,()=>{m=null}),be())},i(E){D||(N(n.$$.fragment,E),N(r.$$.fragment,E),N(l.$$.fragment,E),N(g),N(f),N(p.$$.fragment,E),N(B),N(z),N(m),D=!0)},o(E){T(n.$$.fragment,E),T(r.$$.fragment,E),T(l.$$.fragment,E),T(g),T(f),T(p.$$.fragment,E),T(B),T(z),T(m),D=!1},d(E){E&&d(e),F(n),F(r),F(l),g&&g.d(),f&&f.d(),F(p),B&&B.d(),z&&z.d(),m&&m.d()}}}function vr(t,e,n){let i;fe(t,Te,l=>n(3,i=l));let{type:r}=e,{field:s}=e,o=0;function a(l){o=l,n(2,o)}return t.$$set=l=>{"type"in l&&n(0,r=l.type),"field"in l&&n(1,s=l.field)},t.$$.update=()=>{t.$$.dirty&3&&Te.setField(s,r)},[r,s,o,i,a]}class wr extends oe{constructor(e){super(),le(this,e,vr,br,ue,{type:0,field:1})}}export{wr as F};
