diff --git a/cli/package.json b/cli/package.json index 4c80f2d551..dd38ae3dae 100644 --- a/cli/package.json +++ b/cli/package.json @@ -82,7 +82,7 @@ "tar": "7.4.3", "trieve-ts-sdk": "0.0.80", "undici": "6.21.2", - "zod": "3.24.2" + "zod": "^3.24.2" }, "devDependencies": { "@types/bun": "1.2.3", diff --git a/composition-go/index.global.js b/composition-go/index.global.js index 23dc37e43d..1381ca2d59 100644 --- a/composition-go/index.global.js +++ b/composition-go/index.global.js @@ -15,17 +15,17 @@ class URL { return urlCanParse(url, base || ''); } } -"use strict";var shim=(()=>{var SH=Object.create;var Ud=Object.defineProperty,DH=Object.defineProperties,bH=Object.getOwnPropertyDescriptor,AH=Object.getOwnPropertyDescriptors,RH=Object.getOwnPropertyNames,Fm=Object.getOwnPropertySymbols,PH=Object.getPrototypeOf,qy=Object.prototype.hasOwnProperty,UR=Object.prototype.propertyIsEnumerable;var cn=Math.pow,xy=(e,t,n)=>t in e?Ud(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||(t={}))qy.call(t,n)&&xy(e,n,t[n]);if(Fm)for(var n of Fm(t))UR.call(t,n)&&xy(e,n,t[n]);return e},Q=(e,t)=>DH(e,AH(t));var kR=(e,t)=>{var n={};for(var r in e)qy.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Fm)for(var r of Fm(e))t.indexOf(r)<0&&UR.call(e,r)&&(n[r]=e[r]);return n};var Qu=(e,t)=>()=>(e&&(t=e(e=0)),t);var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wm=(e,t)=>{for(var n in t)Ud(e,n,{get:t[n],enumerable:!0})},MR=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of RH(t))!qy.call(e,i)&&i!==n&&Ud(e,i,{get:()=>t[i],enumerable:!(r=bH(t,i))||r.enumerable});return e};var ys=(e,t,n)=>(n=e!=null?SH(PH(e)):{},MR(t||!e||!e.__esModule?Ud(n,"default",{value:e,enumerable:!0}):n,e)),Lm=e=>MR(Ud({},"__esModule",{value:!0}),e);var _=(e,t,n)=>(xy(e,typeof t!="symbol"?t+"":t,n),n),Vy=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var jy=(e,t,n)=>(Vy(e,t,"read from private field"),n?n.call(e):t.get(e)),Yu=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ky=(e,t,n,r)=>(Vy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var cl=(e,t,n)=>(Vy(e,t,"access private method"),n);var Ai=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{c(n.next(l))}catch(d){i(d)}},o=l=>{try{c(n.throw(l))}catch(d){i(d)}},c=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);c((n=n.apply(e,t)).next())});var m=Qu(()=>{"use strict"});var S={};wm(S,{_debugEnd:()=>DP,_debugProcess:()=>SP,_events:()=>jP,_eventsCount:()=>KP,_exiting:()=>sP,_fatalExceptions:()=>gP,_getActiveHandles:()=>lP,_getActiveRequests:()=>cP,_kill:()=>fP,_linkedBinding:()=>iP,_maxListeners:()=>VP,_preload_modules:()=>MP,_rawDebug:()=>nP,_startProfilerIdleNotifier:()=>bP,_stopProfilerIdleNotifier:()=>AP,_tickCallback:()=>OP,abort:()=>wP,addListener:()=>GP,allowedNodeEnvironmentFlags:()=>hP,arch:()=>KR,argv:()=>QR,argv0:()=>kP,assert:()=>yP,binding:()=>WR,chdir:()=>eP,config:()=>oP,cpuUsage:()=>Um,cwd:()=>ZR,debugPort:()=>UP,default:()=>ZP,dlopen:()=>uP,domain:()=>aP,emit:()=>HP,emitWarning:()=>zR,env:()=>$R,execArgv:()=>YR,execPath:()=>BP,exit:()=>TP,features:()=>IP,hasUncaughtExceptionCaptureCallback:()=>vP,hrtime:()=>Bm,kill:()=>NP,listeners:()=>XP,memoryUsage:()=>mP,moduleLoadList:()=>rP,nextTick:()=>qR,off:()=>QP,on:()=>gs,once:()=>$P,openStdin:()=>EP,pid:()=>LP,platform:()=>GR,ppid:()=>CP,prependListener:()=>zP,prependOnceListener:()=>WP,reallyExit:()=>dP,release:()=>tP,removeAllListeners:()=>JP,removeListener:()=>YP,resourceUsage:()=>pP,setSourceMapsEnabled:()=>xP,setUncaughtExceptionCaptureCallback:()=>_P,stderr:()=>PP,stdin:()=>FP,stdout:()=>RP,title:()=>jR,umask:()=>XR,uptime:()=>qP,version:()=>JR,versions:()=>HR});function Qy(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function FH(){!ll||!Ju||(ll=!1,Ju.length?Is=Ju.concat(Is):Cm=-1,Is.length&&xR())}function xR(){if(!ll){var e=setTimeout(FH,0);ll=!0;for(var t=Is.length;t;){for(Ju=Is,Is=[];++Cm1)for(var n=1;n{"use strict";m();T();N();Is=[],ll=!1,Cm=-1;VR.prototype.run=function(){this.fun.apply(null,this.array)};jR="browser",KR="x64",GR="browser",$R={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},QR=["/usr/bin/node"],YR=[],JR="v16.8.0",HR={},zR=function(e,t){console.warn((t?t+": ":"")+e)},WR=function(e){Qy("binding")},XR=function(e){return 0},ZR=function(){return"/"},eP=function(e){},tP={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};nP=Dr,rP=[];aP={},sP=!1,oP={};dP=Dr,fP=Dr,Um=function(){return{}},pP=Um,mP=Um,NP=Dr,TP=Dr,EP=Dr,hP={};IP={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},gP=Dr,_P=Dr;OP=Dr,SP=Dr,DP=Dr,bP=Dr,AP=Dr,RP=void 0,PP=void 0,FP=void 0,wP=Dr,LP=2,CP=1,BP="/bin/usr/node",UP=9229,kP="node",MP=[],xP=Dr,ou={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};ou.now===void 0&&(Gy=Date.now(),ou.timing&&ou.timing.navigationStart&&(Gy=ou.timing.navigationStart),ou.now=()=>Date.now()-Gy);$y=1e9;Bm.bigint=function(e){var t=Bm(e);return typeof BigInt=="undefined"?t[0]*$y+t[1]:BigInt(t[0]*$y)+BigInt(t[1])};VP=10,jP={},KP=0;GP=gs,$P=gs,QP=gs,YP=gs,JP=gs,HP=Dr,zP=gs,WP=gs;ZP={version:JR,versions:HR,arch:KR,platform:GR,release:tP,_rawDebug:nP,moduleLoadList:rP,binding:WR,_linkedBinding:iP,_events:jP,_eventsCount:KP,_maxListeners:VP,on:gs,addListener:GP,once:$P,off:QP,removeListener:YP,removeAllListeners:JP,emit:HP,prependListener:zP,prependOnceListener:WP,listeners:XP,domain:aP,_exiting:sP,config:oP,dlopen:uP,uptime:qP,_getActiveRequests:cP,_getActiveHandles:lP,reallyExit:dP,_kill:fP,cpuUsage:Um,resourceUsage:pP,memoryUsage:mP,kill:NP,exit:TP,openStdin:EP,allowedNodeEnvironmentFlags:hP,assert:yP,features:IP,_fatalExceptions:gP,setUncaughtExceptionCaptureCallback:_P,hasUncaughtExceptionCaptureCallback:vP,emitWarning:zR,nextTick:qR,_tickCallback:OP,_debugProcess:SP,_debugEnd:DP,_startProfilerIdleNotifier:bP,_stopProfilerIdleNotifier:AP,stdout:RP,stdin:FP,stderr:PP,abort:wP,umask:XR,chdir:eP,cwd:ZR,env:$R,title:jR,argv:QR,execArgv:YR,pid:LP,ppid:CP,execPath:BP,debugPort:UP,hrtime:Bm,argv0:kP,_preload_modules:MP,setSourceMapsEnabled:xP}});var N=Qu(()=>{"use strict";eF()});function wH(){if(tF)return kd;tF=!0,kd.byteLength=c,kd.toByteArray=d,kd.fromByteArray=I;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var U=v.indexOf("=");U===-1&&(U=A);var j=U===A?0:4-U%4;return[U,j]}function c(v){var A=o(v),U=A[0],j=A[1];return(U+j)*3/4-j}function l(v,A,U){return(A+U)*3/4-U}function d(v){var A,U=o(v),j=U[0],$=U[1],re=new n(l(v,j,$)),ee=0,me=$>0?j-4:j,ue;for(ue=0;ue>16&255,re[ee++]=A>>8&255,re[ee++]=A&255;return $===2&&(A=t[v.charCodeAt(ue)]<<2|t[v.charCodeAt(ue+1)]>>4,re[ee++]=A&255),$===1&&(A=t[v.charCodeAt(ue)]<<10|t[v.charCodeAt(ue+1)]<<4|t[v.charCodeAt(ue+2)]>>2,re[ee++]=A>>8&255,re[ee++]=A&255),re}function p(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function E(v,A,U){for(var j,$=[],re=A;reme?me:ee+re));return j===1?(A=v[U-1],$.push(e[A>>2]+e[A<<4&63]+"==")):j===2&&(A=(v[U-2]<<8)+v[U-1],$.push(e[A>>10]+e[A>>4&63]+e[A<<2&63]+"=")),$.join("")}return kd}function LH(){if(nF)return km;nF=!0;return km.read=function(e,t,n,r,i){var a,o,c=i*8-r-1,l=(1<>1,p=-7,E=n?i-1:0,I=n?-1:1,v=e[t+E];for(E+=I,a=v&(1<<-p)-1,v>>=-p,p+=c;p>0;a=a*256+e[t+E],E+=I,p-=8);for(o=a&(1<<-p)-1,a>>=-p,p+=r;p>0;o=o*256+e[t+E],E+=I,p-=8);if(a===0)a=1-d;else{if(a===l)return o?NaN:(v?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-d}return(v?-1:1)*o*Math.pow(2,a-r)},km.write=function(e,t,n,r,i,a){var o,c,l,d=a*8-i-1,p=(1<>1,I=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:a-1,A=r?1:-1,U=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+E>=1?t+=I/l:t+=I*Math.pow(2,1-E),t*l>=2&&(o++,l/=2),o+E>=p?(c=0,o=p):o+E>=1?(c=(t*l-1)*Math.pow(2,i),o=o+E):(c=t*Math.pow(2,E-1)*Math.pow(2,i),o=0));i>=8;e[n+v]=c&255,v+=A,c/=256,i-=8);for(o=o<0;e[n+v]=o&255,v+=A,o/=256,d-=8);e[n+v-A]|=U*128},km}function CH(){if(rF)return Hu;rF=!0;let e=wH(),t=LH(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Hu.Buffer=o,Hu.SlowBuffer=$,Hu.INSPECT_MAX_BYTES=50;let r=2147483647;Hu.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let P=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(P,y),P.foo()===42}catch(P){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(P){if(P>r)throw new RangeError('The value "'+P+'" is invalid for option "size"');let y=new Uint8Array(P);return Object.setPrototypeOf(y,o.prototype),y}function o(P,y,g){if(typeof P=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(P)}return c(P,y,g)}o.poolSize=8192;function c(P,y,g){if(typeof P=="string")return E(P,y);if(ArrayBuffer.isView(P))return v(P);if(P==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P);if(xt(P,ArrayBuffer)||P&&xt(P.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(xt(P,SharedArrayBuffer)||P&&xt(P.buffer,SharedArrayBuffer)))return A(P,y,g);if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let B=P.valueOf&&P.valueOf();if(B!=null&&B!==P)return o.from(B,y,g);let K=U(P);if(K)return K;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return o.from(P[Symbol.toPrimitive]("string"),y,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P)}o.from=function(P,y,g){return c(P,y,g)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(P){if(typeof P!="number")throw new TypeError('"size" argument must be of type number');if(P<0)throw new RangeError('The value "'+P+'" is invalid for option "size"')}function d(P,y,g){return l(P),P<=0?a(P):y!==void 0?typeof g=="string"?a(P).fill(y,g):a(P).fill(y):a(P)}o.alloc=function(P,y,g){return d(P,y,g)};function p(P){return l(P),a(P<0?0:j(P)|0)}o.allocUnsafe=function(P){return p(P)},o.allocUnsafeSlow=function(P){return p(P)};function E(P,y){if((typeof y!="string"||y==="")&&(y="utf8"),!o.isEncoding(y))throw new TypeError("Unknown encoding: "+y);let g=re(P,y)|0,B=a(g),K=B.write(P,y);return K!==g&&(B=B.slice(0,K)),B}function I(P){let y=P.length<0?0:j(P.length)|0,g=a(y);for(let B=0;B=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return P|0}function $(P){return+P!=P&&(P=0),o.alloc(+P)}o.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==o.prototype},o.compare=function(y,g){if(xt(y,Uint8Array)&&(y=o.from(y,y.offset,y.byteLength)),xt(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),!o.isBuffer(y)||!o.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===g)return 0;let B=y.length,K=g.length;for(let te=0,ce=Math.min(B,K);teK.length?(o.isBuffer(ce)||(ce=o.from(ce)),ce.copy(K,te)):Uint8Array.prototype.set.call(K,ce,te);else if(o.isBuffer(ce))ce.copy(K,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=ce.length}return K};function re(P,y){if(o.isBuffer(P))return P.length;if(ArrayBuffer.isView(P)||xt(P,ArrayBuffer))return P.byteLength;if(typeof P!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof P);let g=P.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&g===0)return 0;let K=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return cs(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return yr(P).length;default:if(K)return B?-1:cs(P).length;y=(""+y).toLowerCase(),K=!0}}o.byteLength=re;function ee(P,y,g){let B=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,y>>>=0,g<=y))return"";for(P||(P="utf8");;)switch(P){case"hex":return lr(this,y,g);case"utf8":case"utf-8":return an(this,y,g);case"ascii":return Tn(this,y,g);case"latin1":case"binary":return Ur(this,y,g);case"base64":return rn(this,y,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gn(this,y,g);default:if(B)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),B=!0}}o.prototype._isBuffer=!0;function me(P,y,g){let B=P[y];P[y]=P[g],P[g]=B}o.prototype.swap16=function(){let y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;gg&&(y+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(y,g,B,K,te){if(xt(y,Uint8Array)&&(y=o.from(y,y.offset,y.byteLength)),!o.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(g===void 0&&(g=0),B===void 0&&(B=y?y.length:0),K===void 0&&(K=0),te===void 0&&(te=this.length),g<0||B>y.length||K<0||te>this.length)throw new RangeError("out of range index");if(K>=te&&g>=B)return 0;if(K>=te)return-1;if(g>=B)return 1;if(g>>>=0,B>>>=0,K>>>=0,te>>>=0,this===y)return 0;let ce=te-K,Tt=B-g,En=Math.min(ce,Tt),un=this.slice(K,te),_n=y.slice(g,B);for(let sn=0;sn2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,Ir(g)&&(g=K?0:P.length-1),g<0&&(g=P.length+g),g>=P.length){if(K)return-1;g=P.length-1}else if(g<0)if(K)g=0;else return-1;if(typeof y=="string"&&(y=o.from(y,B)),o.isBuffer(y))return y.length===0?-1:Ae(P,y,g,B,K);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(P,y,g):Uint8Array.prototype.lastIndexOf.call(P,y,g):Ae(P,[y],g,B,K);throw new TypeError("val must be string, number or Buffer")}function Ae(P,y,g,B,K){let te=1,ce=P.length,Tt=y.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(P.length<2||y.length<2)return-1;te=2,ce/=2,Tt/=2,g/=2}function En(_n,sn){return te===1?_n[sn]:_n.readUInt16BE(sn*te)}let un;if(K){let _n=-1;for(un=g;unce&&(g=ce-Tt),un=g;un>=0;un--){let _n=!0;for(let sn=0;snK&&(B=K)):B=K;let te=y.length;B>te/2&&(B=te/2);let ce;for(ce=0;ce>>0,isFinite(B)?(B=B>>>0,K===void 0&&(K="utf8")):(K=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let te=this.length-g;if((B===void 0||B>te)&&(B=te),y.length>0&&(B<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");K||(K="utf8");let ce=!1;for(;;)switch(K){case"hex":return xe(this,y,g,B);case"utf8":case"utf-8":return Ze(this,y,g,B);case"ascii":case"latin1":case"binary":return Z(this,y,g,B);case"base64":return _e(this,y,g,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,y,g,B);default:if(ce)throw new TypeError("Unknown encoding: "+K);K=(""+K).toLowerCase(),ce=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function rn(P,y,g){return y===0&&g===P.length?e.fromByteArray(P):e.fromByteArray(P.slice(y,g))}function an(P,y,g){g=Math.min(P.length,g);let B=[],K=y;for(;K239?4:te>223?3:te>191?2:1;if(K+Tt<=g){let En,un,_n,sn;switch(Tt){case 1:te<128&&(ce=te);break;case 2:En=P[K+1],(En&192)===128&&(sn=(te&31)<<6|En&63,sn>127&&(ce=sn));break;case 3:En=P[K+1],un=P[K+2],(En&192)===128&&(un&192)===128&&(sn=(te&15)<<12|(En&63)<<6|un&63,sn>2047&&(sn<55296||sn>57343)&&(ce=sn));break;case 4:En=P[K+1],un=P[K+2],_n=P[K+3],(En&192)===128&&(un&192)===128&&(_n&192)===128&&(sn=(te&15)<<18|(En&63)<<12|(un&63)<<6|_n&63,sn>65535&&sn<1114112&&(ce=sn))}}ce===null?(ce=65533,Tt=1):ce>65535&&(ce-=65536,B.push(ce>>>10&1023|55296),ce=56320|ce&1023),B.push(ce),K+=Tt}return $t(B)}let wn=4096;function $t(P){let y=P.length;if(y<=wn)return String.fromCharCode.apply(String,P);let g="",B=0;for(;BB)&&(g=B);let K="";for(let te=y;teB&&(y=B),g<0?(g+=B,g<0&&(g=0)):g>B&&(g=B),gg)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(y,g,B){y=y>>>0,g=g>>>0,B||Ht(y,g,this.length);let K=this[y],te=1,ce=0;for(;++ce>>0,g=g>>>0,B||Ht(y,g,this.length);let K=this[y+--g],te=1;for(;g>0&&(te*=256);)K+=this[y+--g]*te;return K},o.prototype.readUint8=o.prototype.readUInt8=function(y,g){return y=y>>>0,g||Ht(y,1,this.length),this[y]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(y,g){return y=y>>>0,g||Ht(y,2,this.length),this[y]|this[y+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(y,g){return y=y>>>0,g||Ht(y,2,this.length),this[y]<<8|this[y+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(y,g){return y=y>>>0,g||Ht(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(y,g){return y=y>>>0,g||Ht(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},o.prototype.readBigUInt64LE=Fa(function(y){y=y>>>0,it(y,"offset");let g=this[y],B=this[y+7];(g===void 0||B===void 0)&&Pt(y,this.length-8);let K=g+this[++y]*cn(2,8)+this[++y]*cn(2,16)+this[++y]*cn(2,24),te=this[++y]+this[++y]*cn(2,8)+this[++y]*cn(2,16)+B*cn(2,24);return BigInt(K)+(BigInt(te)<>>0,it(y,"offset");let g=this[y],B=this[y+7];(g===void 0||B===void 0)&&Pt(y,this.length-8);let K=g*cn(2,24)+this[++y]*cn(2,16)+this[++y]*cn(2,8)+this[++y],te=this[++y]*cn(2,24)+this[++y]*cn(2,16)+this[++y]*cn(2,8)+B;return(BigInt(K)<>>0,g=g>>>0,B||Ht(y,g,this.length);let K=this[y],te=1,ce=0;for(;++ce=te&&(K-=Math.pow(2,8*g)),K},o.prototype.readIntBE=function(y,g,B){y=y>>>0,g=g>>>0,B||Ht(y,g,this.length);let K=g,te=1,ce=this[y+--K];for(;K>0&&(te*=256);)ce+=this[y+--K]*te;return te*=128,ce>=te&&(ce-=Math.pow(2,8*g)),ce},o.prototype.readInt8=function(y,g){return y=y>>>0,g||Ht(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},o.prototype.readInt16LE=function(y,g){y=y>>>0,g||Ht(y,2,this.length);let B=this[y]|this[y+1]<<8;return B&32768?B|4294901760:B},o.prototype.readInt16BE=function(y,g){y=y>>>0,g||Ht(y,2,this.length);let B=this[y+1]|this[y]<<8;return B&32768?B|4294901760:B},o.prototype.readInt32LE=function(y,g){return y=y>>>0,g||Ht(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},o.prototype.readInt32BE=function(y,g){return y=y>>>0,g||Ht(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},o.prototype.readBigInt64LE=Fa(function(y){y=y>>>0,it(y,"offset");let g=this[y],B=this[y+7];(g===void 0||B===void 0)&&Pt(y,this.length-8);let K=this[y+4]+this[y+5]*cn(2,8)+this[y+6]*cn(2,16)+(B<<24);return(BigInt(K)<>>0,it(y,"offset");let g=this[y],B=this[y+7];(g===void 0||B===void 0)&&Pt(y,this.length-8);let K=(g<<24)+this[++y]*cn(2,16)+this[++y]*cn(2,8)+this[++y];return(BigInt(K)<>>0,g||Ht(y,4,this.length),t.read(this,y,!0,23,4)},o.prototype.readFloatBE=function(y,g){return y=y>>>0,g||Ht(y,4,this.length),t.read(this,y,!1,23,4)},o.prototype.readDoubleLE=function(y,g){return y=y>>>0,g||Ht(y,8,this.length),t.read(this,y,!0,52,8)},o.prototype.readDoubleBE=function(y,g){return y=y>>>0,g||Ht(y,8,this.length),t.read(this,y,!1,52,8)};function Ln(P,y,g,B,K,te){if(!o.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>K||yP.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(y,g,B,K){if(y=+y,g=g>>>0,B=B>>>0,!K){let Tt=Math.pow(2,8*B)-1;Ln(this,y,g,B,Tt,0)}let te=1,ce=0;for(this[g]=y&255;++ce>>0,B=B>>>0,!K){let Tt=Math.pow(2,8*B)-1;Ln(this,y,g,B,Tt,0)}let te=B-1,ce=1;for(this[g+te]=y&255;--te>=0&&(ce*=256);)this[g+te]=y/ce&255;return g+B},o.prototype.writeUint8=o.prototype.writeUInt8=function(y,g,B){return y=+y,g=g>>>0,B||Ln(this,y,g,1,255,0),this[g]=y&255,g+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(y,g,B){return y=+y,g=g>>>0,B||Ln(this,y,g,2,65535,0),this[g]=y&255,this[g+1]=y>>>8,g+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(y,g,B){return y=+y,g=g>>>0,B||Ln(this,y,g,2,65535,0),this[g]=y>>>8,this[g+1]=y&255,g+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(y,g,B){return y=+y,g=g>>>0,B||Ln(this,y,g,4,4294967295,0),this[g+3]=y>>>24,this[g+2]=y>>>16,this[g+1]=y>>>8,this[g]=y&255,g+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(y,g,B){return y=+y,g=g>>>0,B||Ln(this,y,g,4,4294967295,0),this[g]=y>>>24,this[g+1]=y>>>16,this[g+2]=y>>>8,this[g+3]=y&255,g+4};function ae(P,y,g,B,K){Bt(y,B,K,P,g,7);let te=Number(y&BigInt(4294967295));P[g++]=te,te=te>>8,P[g++]=te,te=te>>8,P[g++]=te,te=te>>8,P[g++]=te;let ce=Number(y>>BigInt(32)&BigInt(4294967295));return P[g++]=ce,ce=ce>>8,P[g++]=ce,ce=ce>>8,P[g++]=ce,ce=ce>>8,P[g++]=ce,g}function De(P,y,g,B,K){Bt(y,B,K,P,g,7);let te=Number(y&BigInt(4294967295));P[g+7]=te,te=te>>8,P[g+6]=te,te=te>>8,P[g+5]=te,te=te>>8,P[g+4]=te;let ce=Number(y>>BigInt(32)&BigInt(4294967295));return P[g+3]=ce,ce=ce>>8,P[g+2]=ce,ce=ce>>8,P[g+1]=ce,ce=ce>>8,P[g]=ce,g+8}o.prototype.writeBigUInt64LE=Fa(function(y,g=0){return ae(this,y,g,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Fa(function(y,g=0){return De(this,y,g,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(y,g,B,K){if(y=+y,g=g>>>0,!K){let En=Math.pow(2,8*B-1);Ln(this,y,g,B,En-1,-En)}let te=0,ce=1,Tt=0;for(this[g]=y&255;++te>0)-Tt&255;return g+B},o.prototype.writeIntBE=function(y,g,B,K){if(y=+y,g=g>>>0,!K){let En=Math.pow(2,8*B-1);Ln(this,y,g,B,En-1,-En)}let te=B-1,ce=1,Tt=0;for(this[g+te]=y&255;--te>=0&&(ce*=256);)y<0&&Tt===0&&this[g+te+1]!==0&&(Tt=1),this[g+te]=(y/ce>>0)-Tt&255;return g+B},o.prototype.writeInt8=function(y,g,B){return y=+y,g=g>>>0,B||Ln(this,y,g,1,127,-128),y<0&&(y=255+y+1),this[g]=y&255,g+1},o.prototype.writeInt16LE=function(y,g,B){return y=+y,g=g>>>0,B||Ln(this,y,g,2,32767,-32768),this[g]=y&255,this[g+1]=y>>>8,g+2},o.prototype.writeInt16BE=function(y,g,B){return y=+y,g=g>>>0,B||Ln(this,y,g,2,32767,-32768),this[g]=y>>>8,this[g+1]=y&255,g+2},o.prototype.writeInt32LE=function(y,g,B){return y=+y,g=g>>>0,B||Ln(this,y,g,4,2147483647,-2147483648),this[g]=y&255,this[g+1]=y>>>8,this[g+2]=y>>>16,this[g+3]=y>>>24,g+4},o.prototype.writeInt32BE=function(y,g,B){return y=+y,g=g>>>0,B||Ln(this,y,g,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[g]=y>>>24,this[g+1]=y>>>16,this[g+2]=y>>>8,this[g+3]=y&255,g+4},o.prototype.writeBigInt64LE=Fa(function(y,g=0){return ae(this,y,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Fa(function(y,g=0){return De(this,y,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ie(P,y,g,B,K,te){if(g+B>P.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function Ce(P,y,g,B,K){return y=+y,g=g>>>0,K||Ie(P,y,g,4),t.write(P,y,g,B,23,4),g+4}o.prototype.writeFloatLE=function(y,g,B){return Ce(this,y,g,!0,B)},o.prototype.writeFloatBE=function(y,g,B){return Ce(this,y,g,!1,B)};function St(P,y,g,B,K){return y=+y,g=g>>>0,K||Ie(P,y,g,8),t.write(P,y,g,B,52,8),g+8}o.prototype.writeDoubleLE=function(y,g,B){return St(this,y,g,!0,B)},o.prototype.writeDoubleBE=function(y,g,B){return St(this,y,g,!1,B)},o.prototype.copy=function(y,g,B,K){if(!o.isBuffer(y))throw new TypeError("argument should be a Buffer");if(B||(B=0),!K&&K!==0&&(K=this.length),g>=y.length&&(g=y.length),g||(g=0),K>0&&K=this.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("sourceEnd out of bounds");K>this.length&&(K=this.length),y.length-g>>0,B=B===void 0?this.length:B>>>0,y||(y=0);let te;if(typeof y=="number")for(te=g;tecn(2,32)?K=qe(String(g)):typeof g=="bigint"&&(K=String(g),(g>cn(BigInt(2),BigInt(32))||g<-cn(BigInt(2),BigInt(32)))&&(K=qe(K)),K+="n"),B+=` It must be ${y}. Received ${K}`,B},RangeError);function qe(P){let y="",g=P.length,B=P[0]==="-"?1:0;for(;g>=B+4;g-=3)y=`_${P.slice(g-3,g)}${y}`;return`${P.slice(0,g)}${y}`}function He(P,y,g){it(y,"offset"),(P[y]===void 0||P[y+g]===void 0)&&Pt(y,P.length-(g+1))}function Bt(P,y,g,B,K,te){if(P>g||P3?y===0||y===BigInt(0)?Tt=`>= 0${ce} and < 2${ce} ** ${(te+1)*8}${ce}`:Tt=`>= -(2${ce} ** ${(te+1)*8-1}${ce}) and < 2 ** ${(te+1)*8-1}${ce}`:Tt=`>= ${y}${ce} and <= ${g}${ce}`,new Y.ERR_OUT_OF_RANGE("value",Tt,P)}He(B,K,te)}function it(P,y){if(typeof P!="number")throw new Y.ERR_INVALID_ARG_TYPE(y,"number",P)}function Pt(P,y,g){throw Math.floor(P)!==P?(it(P,g),new Y.ERR_OUT_OF_RANGE(g||"offset","an integer",P)):y<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${y}`,P)}let us=/[^+/0-9A-Za-z-_]/g;function Qr(P){if(P=P.split("=")[0],P=P.trim().replace(us,""),P.length<2)return"";for(;P.length%4!==0;)P=P+"=";return P}function cs(P,y){y=y||1/0;let g,B=P.length,K=null,te=[];for(let ce=0;ce55295&&g<57344){if(!K){if(g>56319){(y-=3)>-1&&te.push(239,191,189);continue}else if(ce+1===B){(y-=3)>-1&&te.push(239,191,189);continue}K=g;continue}if(g<56320){(y-=3)>-1&&te.push(239,191,189),K=g;continue}g=(K-55296<<10|g-56320)+65536}else K&&(y-=3)>-1&&te.push(239,191,189);if(K=null,g<128){if((y-=1)<0)break;te.push(g)}else if(g<2048){if((y-=2)<0)break;te.push(g>>6|192,g&63|128)}else if(g<65536){if((y-=3)<0)break;te.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((y-=4)<0)break;te.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return te}function Hc(P){let y=[];for(let g=0;g>8,K=g%256,te.push(K),te.push(B);return te}function yr(P){return e.toByteArray(Qr(P))}function si(P,y,g,B){let K;for(K=0;K=y.length||K>=P.length);++K)y[K+g]=P[K];return K}function xt(P,y){return P instanceof y||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===y.name}function Ir(P){return P!==P}let Bu=function(){let P="0123456789abcdef",y=new Array(256);for(let g=0;g<16;++g){let B=g*16;for(let K=0;K<16;++K)y[B+K]=P[g]+P[K]}return y}();function Fa(P){return typeof BigInt=="undefined"?Uu:P}function Uu(){throw new Error("BigInt not supported")}return Hu}var kd,tF,km,nF,Hu,rF,zu,D,Ape,Rpe,iF=Qu(()=>{"use strict";m();T();N();kd={},tF=!1;km={},nF=!1;Hu={},rF=!1;zu=CH();zu.Buffer;zu.SlowBuffer;zu.INSPECT_MAX_BYTES;zu.kMaxLength;D=zu.Buffer,Ape=zu.INSPECT_MAX_BYTES,Rpe=zu.kMaxLength});var T=Qu(()=>{"use strict";iF()});var aF=w(dl=>{"use strict";m();T();N();Object.defineProperty(dl,"__esModule",{value:!0});dl.versionInfo=dl.version=void 0;var BH="16.9.0";dl.version=BH;var UH=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});dl.versionInfo=UH});var qr=w(Yy=>{"use strict";m();T();N();Object.defineProperty(Yy,"__esModule",{value:!0});Yy.devAssert=kH;function kH(e,t){if(!!!e)throw new Error(t)}});var Mm=w(Jy=>{"use strict";m();T();N();Object.defineProperty(Jy,"__esModule",{value:!0});Jy.isPromise=MH;function MH(e){return typeof(e==null?void 0:e.then)=="function"}});var Ba=w(Hy=>{"use strict";m();T();N();Object.defineProperty(Hy,"__esModule",{value:!0});Hy.isObjectLike=xH;function xH(e){return typeof e=="object"&&e!==null}});var br=w(zy=>{"use strict";m();T();N();Object.defineProperty(zy,"__esModule",{value:!0});zy.invariant=qH;function qH(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var xm=w(Wy=>{"use strict";m();T();N();Object.defineProperty(Wy,"__esModule",{value:!0});Wy.getLocation=KH;var VH=br(),jH=/\r\n|[\n\r]/g;function KH(e,t){let n=0,r=1;for(let i of e.body.matchAll(jH)){if(typeof i.index=="number"||(0,VH.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var Xy=w(qm=>{"use strict";m();T();N();Object.defineProperty(qm,"__esModule",{value:!0});qm.printLocation=$H;qm.printSourceLocation=oF;var GH=xm();function $H(e){return oF(e.source,(0,GH.getLocation)(e.source,e.start))}function oF(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,c=t.line===1?n:0,l=t.column+c,d=`${e.name}:${o}:${l} -`,p=r.split(/\r\n|[\n\r]/g),E=p[i];if(E.length>120){let I=Math.floor(l/80),v=l%80,A=[];for(let U=0;U["|",U]),["|","^".padStart(v)],["|",A[I+1]]])}return d+sF([[`${o-1} |`,p[i-1]],[`${o} |`,E],["|","^".padStart(l)],[`${o+1} |`,p[i+1]]])}function sF(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` -`)}});var ze=w(fl=>{"use strict";m();T();N();Object.defineProperty(fl,"__esModule",{value:!0});fl.GraphQLError=void 0;fl.formatError=HH;fl.printError=JH;var QH=Ba(),uF=xm(),cF=Xy();function YH(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Zy=class e extends Error{constructor(t,...n){var r,i,a;let{nodes:o,source:c,positions:l,path:d,originalError:p,extensions:E}=YH(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=lF(Array.isArray(o)?o:o?[o]:void 0);let I=lF((r=this.nodes)===null||r===void 0?void 0:r.map(A=>A.loc).filter(A=>A!=null));this.source=c!=null?c:I==null||(i=I[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:I==null?void 0:I.map(A=>A.start),this.locations=l&&c?l.map(A=>(0,uF.getLocation)(c,A)):I==null?void 0:I.map(A=>(0,uF.getLocation)(A.source,A.start));let v=(0,QH.isObjectLike)(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(a=E!=null?E:v)!==null&&a!==void 0?a: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}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` +"use strict";var shim=(()=>{var XW=Object.create;var bp=Object.defineProperty,ZW=Object.defineProperties,e4=Object.getOwnPropertyDescriptor,t4=Object.getOwnPropertyDescriptors,n4=Object.getOwnPropertyNames,IE=Object.getOwnPropertySymbols,r4=Object.getPrototypeOf,G_=Object.prototype.hasOwnProperty,EP=Object.prototype.propertyIsEnumerable;var En=Math.pow,K_=(e,t,n)=>t in e?bp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))G_.call(t,n)&&K_(e,n,t[n]);if(IE)for(var n of IE(t))EP.call(t,n)&&K_(e,n,t[n]);return e},K=(e,t)=>ZW(e,t4(t));var hP=(e,t)=>{var n={};for(var r in e)G_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&IE)for(var r of IE(e))t.indexOf(r)<0&&EP.call(e,r)&&(n[r]=e[r]);return n};var ae=(e,t)=>()=>(e&&(t=e(e=0)),t);var C=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ap=(e,t)=>{for(var n in t)bp(e,n,{get:t[n],enumerable:!0})},yP=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of n4(t))!G_.call(e,i)&&i!==n&&bp(e,i,{get:()=>t[i],enumerable:!(r=e4(t,i))||r.enumerable});return e};var Q_=(e,t,n)=>(n=e!=null?XW(r4(e)):{},yP(t||!e||!e.__esModule?bp(n,"default",{value:e,enumerable:!0}):n,e)),Ae=e=>yP(bp({},"__esModule",{value:!0}),e);var v=(e,t,n)=>(K_(e,typeof t!="symbol"?t+"":t,n),n),Y_=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var J_=(e,t,n)=>(Y_(e,t,"read from private field"),n?n.call(e):t.get(e)),il=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},H_=(e,t,n,r)=>(Y_(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var bd=(e,t,n)=>(Y_(e,t,"access private method"),n);var Es=(e,t,n)=>new Promise((r,i)=>{var s=l=>{try{u(n.next(l))}catch(d){i(d)}},a=l=>{try{u(n.throw(l))}catch(d){i(d)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,a);u((n=n.apply(e,t)).next())});var p=ae(()=>{"use strict"});var S={};Ap(S,{_debugEnd:()=>oC,_debugProcess:()=>aC,_events:()=>vC,_eventsCount:()=>SC,_exiting:()=>qP,_fatalExceptions:()=>nC,_getActiveHandles:()=>GP,_getActiveRequests:()=>KP,_kill:()=>YP,_linkedBinding:()=>MP,_maxListeners:()=>_C,_preload_modules:()=>yC,_rawDebug:()=>kP,_startProfilerIdleNotifier:()=>uC,_stopProfilerIdleNotifier:()=>cC,_tickCallback:()=>sC,abort:()=>pC,addListener:()=>DC,allowedNodeEnvironmentFlags:()=>ZP,arch:()=>SP,argv:()=>bP,argv0:()=>hC,assert:()=>eC,binding:()=>LP,chdir:()=>UP,config:()=>$P,cpuUsage:()=>vE,cwd:()=>CP,debugPort:()=>EC,default:()=>CC,dlopen:()=>jP,domain:()=>VP,emit:()=>FC,emitWarning:()=>wP,env:()=>OP,execArgv:()=>AP,execPath:()=>TC,exit:()=>WP,features:()=>tC,hasUncaughtExceptionCaptureCallback:()=>iC,hrtime:()=>_E,kill:()=>zP,listeners:()=>PC,memoryUsage:()=>HP,moduleLoadList:()=>xP,nextTick:()=>gP,off:()=>bC,on:()=>fo,once:()=>OC,openStdin:()=>XP,pid:()=>mC,platform:()=>DP,ppid:()=>NC,prependListener:()=>wC,prependOnceListener:()=>LC,reallyExit:()=>QP,release:()=>BP,removeAllListeners:()=>RC,removeListener:()=>AC,resourceUsage:()=>JP,setSourceMapsEnabled:()=>IC,setUncaughtExceptionCaptureCallback:()=>rC,stderr:()=>dC,stdin:()=>fC,stdout:()=>lC,title:()=>vP,umask:()=>PP,uptime:()=>gC,version:()=>RP,versions:()=>FP});function X_(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function i4(){!Ad||!sl||(Ad=!1,sl.length?lo=sl.concat(lo):gE=-1,lo.length&&IP())}function IP(){if(!Ad){var e=setTimeout(i4,0);Ad=!0;for(var t=lo.length;t;){for(sl=lo,lo=[];++gE1)for(var n=1;n{"use strict";p();N();m();lo=[],Ad=!1,gE=-1;_P.prototype.run=function(){this.fun.apply(null,this.array)};vP="browser",SP="x64",DP="browser",OP={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},bP=["/usr/bin/node"],AP=[],RP="v16.8.0",FP={},wP=function(e,t){console.warn((t?t+": ":"")+e)},LP=function(e){X_("binding")},PP=function(e){return 0},CP=function(){return"/"},UP=function(e){},BP={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};kP=ei,xP=[];VP={},qP=!1,$P={};QP=ei,YP=ei,vE=function(){return{}},JP=vE,HP=vE,zP=ei,WP=ei,XP=ei,ZP={};tC={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},nC=ei,rC=ei;sC=ei,aC=ei,oC=ei,uC=ei,cC=ei,lC=void 0,dC=void 0,fC=void 0,pC=ei,mC=2,NC=1,TC="/bin/usr/node",EC=9229,hC="node",yC=[],IC=ei,uc={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};uc.now===void 0&&(z_=Date.now(),uc.timing&&uc.timing.navigationStart&&(z_=uc.timing.navigationStart),uc.now=()=>Date.now()-z_);W_=1e9;_E.bigint=function(e){var t=_E(e);return typeof BigInt=="undefined"?t[0]*W_+t[1]:BigInt(t[0]*W_)+BigInt(t[1])};_C=10,vC={},SC=0;DC=fo,OC=fo,bC=fo,AC=fo,RC=fo,FC=ei,wC=fo,LC=fo;CC={version:RP,versions:FP,arch:SP,platform:DP,release:BP,_rawDebug:kP,moduleLoadList:xP,binding:LP,_linkedBinding:MP,_events:vC,_eventsCount:SC,_maxListeners:_C,on:fo,addListener:DC,once:OC,off:bC,removeListener:AC,removeAllListeners:RC,emit:FC,prependListener:wC,prependOnceListener:LC,listeners:PC,domain:VP,_exiting:qP,config:$P,dlopen:jP,uptime:gC,_getActiveRequests:KP,_getActiveHandles:GP,reallyExit:QP,_kill:YP,cpuUsage:vE,resourceUsage:JP,memoryUsage:HP,kill:zP,exit:WP,openStdin:XP,allowedNodeEnvironmentFlags:ZP,assert:eC,features:tC,_fatalExceptions:nC,setUncaughtExceptionCaptureCallback:rC,hasUncaughtExceptionCaptureCallback:iC,emitWarning:wP,nextTick:gP,_tickCallback:sC,_debugProcess:aC,_debugEnd:oC,_startProfilerIdleNotifier:uC,_stopProfilerIdleNotifier:cC,stdout:lC,stdin:fC,stderr:dC,abort:pC,umask:PP,chdir:UP,cwd:CP,env:OP,title:vP,argv:bP,execArgv:AP,pid:mC,ppid:NC,execPath:TC,debugPort:EC,hrtime:_E,argv0:hC,_preload_modules:yC,setSourceMapsEnabled:IC}});var m=ae(()=>{"use strict";UC()});function s4(){if(BC)return Rp;BC=!0,Rp.byteLength=u,Rp.toByteArray=d,Rp.fromByteArray=h;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var U=_.indexOf("=");U===-1&&(U=A);var q=U===A?0:4-U%4;return[U,q]}function u(_){var A=a(_),U=A[0],q=A[1];return(U+q)*3/4-q}function l(_,A,U){return(A+U)*3/4-U}function d(_){var A,U=a(_),q=U[0],j=U[1],re=new n(l(_,q,j)),ee=0,me=j>0?q-4:q,ce;for(ce=0;ce>16&255,re[ee++]=A>>8&255,re[ee++]=A&255;return j===2&&(A=t[_.charCodeAt(ce)]<<2|t[_.charCodeAt(ce+1)]>>4,re[ee++]=A&255),j===1&&(A=t[_.charCodeAt(ce)]<<10|t[_.charCodeAt(ce+1)]<<4|t[_.charCodeAt(ce+2)]>>2,re[ee++]=A>>8&255,re[ee++]=A&255),re}function f(_){return e[_>>18&63]+e[_>>12&63]+e[_>>6&63]+e[_&63]}function E(_,A,U){for(var q,j=[],re=A;reme?me:ee+re));return q===1?(A=_[U-1],j.push(e[A>>2]+e[A<<4&63]+"==")):q===2&&(A=(_[U-2]<<8)+_[U-1],j.push(e[A>>10]+e[A>>4&63]+e[A<<2&63]+"=")),j.join("")}return Rp}function a4(){if(kC)return SE;kC=!0;return SE.read=function(e,t,n,r,i){var s,a,u=i*8-r-1,l=(1<>1,f=-7,E=n?i-1:0,h=n?-1:1,_=e[t+E];for(E+=h,s=_&(1<<-f)-1,_>>=-f,f+=u;f>0;s=s*256+e[t+E],E+=h,f-=8);for(a=s&(1<<-f)-1,s>>=-f,f+=r;f>0;a=a*256+e[t+E],E+=h,f-=8);if(s===0)s=1-d;else{if(s===l)return a?NaN:(_?-1:1)*(1/0);a=a+Math.pow(2,r),s=s-d}return(_?-1:1)*a*Math.pow(2,s-r)},SE.write=function(e,t,n,r,i,s){var a,u,l,d=s*8-i-1,f=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=r?0:s-1,A=r?1:-1,U=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+E>=1?t+=h/l:t+=h*Math.pow(2,1-E),t*l>=2&&(a++,l/=2),a+E>=f?(u=0,a=f):a+E>=1?(u=(t*l-1)*Math.pow(2,i),a=a+E):(u=t*Math.pow(2,E-1)*Math.pow(2,i),a=0));i>=8;e[n+_]=u&255,_+=A,u/=256,i-=8);for(a=a<0;e[n+_]=a&255,_+=A,a/=256,d-=8);e[n+_-A]|=U*128},SE}function o4(){if(xC)return al;xC=!0;let e=s4(),t=a4(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;al.Buffer=a,al.SlowBuffer=j,al.INSPECT_MAX_BYTES=50;let r=2147483647;al.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let w=new Uint8Array(1),I={foo:function(){return 42}};return Object.setPrototypeOf(I,Uint8Array.prototype),Object.setPrototypeOf(w,I),w.foo()===42}catch(w){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(w){if(w>r)throw new RangeError('The value "'+w+'" is invalid for option "size"');let I=new Uint8Array(w);return Object.setPrototypeOf(I,a.prototype),I}function a(w,I,g){if(typeof w=="number"){if(typeof I=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(w)}return u(w,I,g)}a.poolSize=8192;function u(w,I,g){if(typeof w=="string")return E(w,I);if(ArrayBuffer.isView(w))return _(w);if(w==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w);if(Jt(w,ArrayBuffer)||w&&Jt(w.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Jt(w,SharedArrayBuffer)||w&&Jt(w.buffer,SharedArrayBuffer)))return A(w,I,g);if(typeof w=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let k=w.valueOf&&w.valueOf();if(k!=null&&k!==w)return a.from(k,I,g);let Q=U(w);if(Q)return Q;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof w[Symbol.toPrimitive]=="function")return a.from(w[Symbol.toPrimitive]("string"),I,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w)}a.from=function(w,I,g){return u(w,I,g)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(w){if(typeof w!="number")throw new TypeError('"size" argument must be of type number');if(w<0)throw new RangeError('The value "'+w+'" is invalid for option "size"')}function d(w,I,g){return l(w),w<=0?s(w):I!==void 0?typeof g=="string"?s(w).fill(I,g):s(w).fill(I):s(w)}a.alloc=function(w,I,g){return d(w,I,g)};function f(w){return l(w),s(w<0?0:q(w)|0)}a.allocUnsafe=function(w){return f(w)},a.allocUnsafeSlow=function(w){return f(w)};function E(w,I){if((typeof I!="string"||I==="")&&(I="utf8"),!a.isEncoding(I))throw new TypeError("Unknown encoding: "+I);let g=re(w,I)|0,k=s(g),Q=k.write(w,I);return Q!==g&&(k=k.slice(0,Q)),k}function h(w){let I=w.length<0?0:q(w.length)|0,g=s(I);for(let k=0;k=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return w|0}function j(w){return+w!=w&&(w=0),a.alloc(+w)}a.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==a.prototype},a.compare=function(I,g){if(Jt(I,Uint8Array)&&(I=a.from(I,I.offset,I.byteLength)),Jt(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),!a.isBuffer(I)||!a.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===g)return 0;let k=I.length,Q=g.length;for(let ie=0,pe=Math.min(k,Q);ieQ.length?(a.isBuffer(pe)||(pe=a.from(pe)),pe.copy(Q,ie)):Uint8Array.prototype.set.call(Q,pe,ie);else if(a.isBuffer(pe))pe.copy(Q,ie);else throw new TypeError('"list" argument must be an Array of Buffers');ie+=pe.length}return Q};function re(w,I){if(a.isBuffer(w))return w.length;if(ArrayBuffer.isView(w)||Jt(w,ArrayBuffer))return w.byteLength;if(typeof w!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof w);let g=w.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&g===0)return 0;let Q=!1;for(;;)switch(I){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return eo(w).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return Kr(w).length;default:if(Q)return k?-1:eo(w).length;I=(""+I).toLowerCase(),Q=!0}}a.byteLength=re;function ee(w,I,g){let k=!1;if((I===void 0||I<0)&&(I=0),I>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,I>>>=0,g<=I))return"";for(w||(w="utf8");;)switch(w){case"hex":return Lr(this,I,g);case"utf8":case"utf-8":return pn(this,I,g);case"ascii":return Sn(this,I,g);case"latin1":case"binary":return Ti(this,I,g);case"base64":return fn(this,I,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Cn(this,I,g);default:if(k)throw new TypeError("Unknown encoding: "+w);w=(w+"").toLowerCase(),k=!0}}a.prototype._isBuffer=!0;function me(w,I,g){let k=w[I];w[I]=w[g],w[g]=k}a.prototype.swap16=function(){let I=this.length;if(I%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;gg&&(I+=" ... "),""},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(I,g,k,Q,ie){if(Jt(I,Uint8Array)&&(I=a.from(I,I.offset,I.byteLength)),!a.isBuffer(I))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(g===void 0&&(g=0),k===void 0&&(k=I?I.length:0),Q===void 0&&(Q=0),ie===void 0&&(ie=this.length),g<0||k>I.length||Q<0||ie>this.length)throw new RangeError("out of range index");if(Q>=ie&&g>=k)return 0;if(Q>=ie)return-1;if(g>=k)return 1;if(g>>>=0,k>>>=0,Q>>>=0,ie>>>=0,this===I)return 0;let pe=ie-Q,St=k-g,Dn=Math.min(pe,St),Tn=this.slice(Q,ie),Un=I.slice(g,k);for(let mn=0;mn2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,Gr(g)&&(g=Q?0:w.length-1),g<0&&(g=w.length+g),g>=w.length){if(Q)return-1;g=w.length-1}else if(g<0)if(Q)g=0;else return-1;if(typeof I=="string"&&(I=a.from(I,k)),a.isBuffer(I))return I.length===0?-1:be(w,I,g,k,Q);if(typeof I=="number")return I=I&255,typeof Uint8Array.prototype.indexOf=="function"?Q?Uint8Array.prototype.indexOf.call(w,I,g):Uint8Array.prototype.lastIndexOf.call(w,I,g):be(w,[I],g,k,Q);throw new TypeError("val must be string, number or Buffer")}function be(w,I,g,k,Q){let ie=1,pe=w.length,St=I.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(w.length<2||I.length<2)return-1;ie=2,pe/=2,St/=2,g/=2}function Dn(Un,mn){return ie===1?Un[mn]:Un.readUInt16BE(mn*ie)}let Tn;if(Q){let Un=-1;for(Tn=g;Tnpe&&(g=pe-St),Tn=g;Tn>=0;Tn--){let Un=!0;for(let mn=0;mnQ&&(k=Q)):k=Q;let ie=I.length;k>ie/2&&(k=ie/2);let pe;for(pe=0;pe>>0,isFinite(k)?(k=k>>>0,Q===void 0&&(Q="utf8")):(Q=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ie=this.length-g;if((k===void 0||k>ie)&&(k=ie),I.length>0&&(k<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");let pe=!1;for(;;)switch(Q){case"hex":return xe(this,I,g,k);case"utf8":case"utf-8":return at(this,I,g,k);case"ascii":case"latin1":case"binary":return te(this,I,g,k);case"base64":return Se(this,I,g,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,I,g,k);default:if(pe)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),pe=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fn(w,I,g){return I===0&&g===w.length?e.fromByteArray(w):e.fromByteArray(w.slice(I,g))}function pn(w,I,g){g=Math.min(w.length,g);let k=[],Q=I;for(;Q239?4:ie>223?3:ie>191?2:1;if(Q+St<=g){let Dn,Tn,Un,mn;switch(St){case 1:ie<128&&(pe=ie);break;case 2:Dn=w[Q+1],(Dn&192)===128&&(mn=(ie&31)<<6|Dn&63,mn>127&&(pe=mn));break;case 3:Dn=w[Q+1],Tn=w[Q+2],(Dn&192)===128&&(Tn&192)===128&&(mn=(ie&15)<<12|(Dn&63)<<6|Tn&63,mn>2047&&(mn<55296||mn>57343)&&(pe=mn));break;case 4:Dn=w[Q+1],Tn=w[Q+2],Un=w[Q+3],(Dn&192)===128&&(Tn&192)===128&&(Un&192)===128&&(mn=(ie&15)<<18|(Dn&63)<<12|(Tn&63)<<6|Un&63,mn>65535&&mn<1114112&&(pe=mn))}}pe===null?(pe=65533,St=1):pe>65535&&(pe-=65536,k.push(pe>>>10&1023|55296),pe=56320|pe&1023),k.push(pe),Q+=St}return Zt(k)}let Hn=4096;function Zt(w){let I=w.length;if(I<=Hn)return String.fromCharCode.apply(String,w);let g="",k=0;for(;kk)&&(g=k);let Q="";for(let ie=I;iek&&(I=k),g<0?(g+=k,g<0&&(g=0)):g>k&&(g=k),gg)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(I,g,k){I=I>>>0,g=g>>>0,k||rn(I,g,this.length);let Q=this[I],ie=1,pe=0;for(;++pe>>0,g=g>>>0,k||rn(I,g,this.length);let Q=this[I+--g],ie=1;for(;g>0&&(ie*=256);)Q+=this[I+--g]*ie;return Q},a.prototype.readUint8=a.prototype.readUInt8=function(I,g){return I=I>>>0,g||rn(I,1,this.length),this[I]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(I,g){return I=I>>>0,g||rn(I,2,this.length),this[I]|this[I+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(I,g){return I=I>>>0,g||rn(I,2,this.length),this[I]<<8|this[I+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(I,g){return I=I>>>0,g||rn(I,4,this.length),(this[I]|this[I+1]<<8|this[I+2]<<16)+this[I+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(I,g){return I=I>>>0,g||rn(I,4,this.length),this[I]*16777216+(this[I+1]<<16|this[I+2]<<8|this[I+3])},a.prototype.readBigUInt64LE=ga(function(I){I=I>>>0,ft(I,"offset");let g=this[I],k=this[I+7];(g===void 0||k===void 0)&&Vt(I,this.length-8);let Q=g+this[++I]*En(2,8)+this[++I]*En(2,16)+this[++I]*En(2,24),ie=this[++I]+this[++I]*En(2,8)+this[++I]*En(2,16)+k*En(2,24);return BigInt(Q)+(BigInt(ie)<>>0,ft(I,"offset");let g=this[I],k=this[I+7];(g===void 0||k===void 0)&&Vt(I,this.length-8);let Q=g*En(2,24)+this[++I]*En(2,16)+this[++I]*En(2,8)+this[++I],ie=this[++I]*En(2,24)+this[++I]*En(2,16)+this[++I]*En(2,8)+k;return(BigInt(Q)<>>0,g=g>>>0,k||rn(I,g,this.length);let Q=this[I],ie=1,pe=0;for(;++pe=ie&&(Q-=Math.pow(2,8*g)),Q},a.prototype.readIntBE=function(I,g,k){I=I>>>0,g=g>>>0,k||rn(I,g,this.length);let Q=g,ie=1,pe=this[I+--Q];for(;Q>0&&(ie*=256);)pe+=this[I+--Q]*ie;return ie*=128,pe>=ie&&(pe-=Math.pow(2,8*g)),pe},a.prototype.readInt8=function(I,g){return I=I>>>0,g||rn(I,1,this.length),this[I]&128?(255-this[I]+1)*-1:this[I]},a.prototype.readInt16LE=function(I,g){I=I>>>0,g||rn(I,2,this.length);let k=this[I]|this[I+1]<<8;return k&32768?k|4294901760:k},a.prototype.readInt16BE=function(I,g){I=I>>>0,g||rn(I,2,this.length);let k=this[I+1]|this[I]<<8;return k&32768?k|4294901760:k},a.prototype.readInt32LE=function(I,g){return I=I>>>0,g||rn(I,4,this.length),this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24},a.prototype.readInt32BE=function(I,g){return I=I>>>0,g||rn(I,4,this.length),this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]},a.prototype.readBigInt64LE=ga(function(I){I=I>>>0,ft(I,"offset");let g=this[I],k=this[I+7];(g===void 0||k===void 0)&&Vt(I,this.length-8);let Q=this[I+4]+this[I+5]*En(2,8)+this[I+6]*En(2,16)+(k<<24);return(BigInt(Q)<>>0,ft(I,"offset");let g=this[I],k=this[I+7];(g===void 0||k===void 0)&&Vt(I,this.length-8);let Q=(g<<24)+this[++I]*En(2,16)+this[++I]*En(2,8)+this[++I];return(BigInt(Q)<>>0,g||rn(I,4,this.length),t.read(this,I,!0,23,4)},a.prototype.readFloatBE=function(I,g){return I=I>>>0,g||rn(I,4,this.length),t.read(this,I,!1,23,4)},a.prototype.readDoubleLE=function(I,g){return I=I>>>0,g||rn(I,8,this.length),t.read(this,I,!0,52,8)},a.prototype.readDoubleBE=function(I,g){return I=I>>>0,g||rn(I,8,this.length),t.read(this,I,!1,52,8)};function zn(w,I,g,k,Q,ie){if(!a.isBuffer(w))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>Q||Iw.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(I,g,k,Q){if(I=+I,g=g>>>0,k=k>>>0,!Q){let St=Math.pow(2,8*k)-1;zn(this,I,g,k,St,0)}let ie=1,pe=0;for(this[g]=I&255;++pe>>0,k=k>>>0,!Q){let St=Math.pow(2,8*k)-1;zn(this,I,g,k,St,0)}let ie=k-1,pe=1;for(this[g+ie]=I&255;--ie>=0&&(pe*=256);)this[g+ie]=I/pe&255;return g+k},a.prototype.writeUint8=a.prototype.writeUInt8=function(I,g,k){return I=+I,g=g>>>0,k||zn(this,I,g,1,255,0),this[g]=I&255,g+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(I,g,k){return I=+I,g=g>>>0,k||zn(this,I,g,2,65535,0),this[g]=I&255,this[g+1]=I>>>8,g+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(I,g,k){return I=+I,g=g>>>0,k||zn(this,I,g,2,65535,0),this[g]=I>>>8,this[g+1]=I&255,g+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(I,g,k){return I=+I,g=g>>>0,k||zn(this,I,g,4,4294967295,0),this[g+3]=I>>>24,this[g+2]=I>>>16,this[g+1]=I>>>8,this[g]=I&255,g+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(I,g,k){return I=+I,g=g>>>0,k||zn(this,I,g,4,4294967295,0),this[g]=I>>>24,this[g+1]=I>>>16,this[g+2]=I>>>8,this[g+3]=I&255,g+4};function ue(w,I,g,k,Q){Qt(I,k,Q,w,g,7);let ie=Number(I&BigInt(4294967295));w[g++]=ie,ie=ie>>8,w[g++]=ie,ie=ie>>8,w[g++]=ie,ie=ie>>8,w[g++]=ie;let pe=Number(I>>BigInt(32)&BigInt(4294967295));return w[g++]=pe,pe=pe>>8,w[g++]=pe,pe=pe>>8,w[g++]=pe,pe=pe>>8,w[g++]=pe,g}function Re(w,I,g,k,Q){Qt(I,k,Q,w,g,7);let ie=Number(I&BigInt(4294967295));w[g+7]=ie,ie=ie>>8,w[g+6]=ie,ie=ie>>8,w[g+5]=ie,ie=ie>>8,w[g+4]=ie;let pe=Number(I>>BigInt(32)&BigInt(4294967295));return w[g+3]=pe,pe=pe>>8,w[g+2]=pe,pe=pe>>8,w[g+1]=pe,pe=pe>>8,w[g]=pe,g+8}a.prototype.writeBigUInt64LE=ga(function(I,g=0){return ue(this,I,g,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=ga(function(I,g=0){return Re(this,I,g,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(I,g,k,Q){if(I=+I,g=g>>>0,!Q){let Dn=Math.pow(2,8*k-1);zn(this,I,g,k,Dn-1,-Dn)}let ie=0,pe=1,St=0;for(this[g]=I&255;++ie>0)-St&255;return g+k},a.prototype.writeIntBE=function(I,g,k,Q){if(I=+I,g=g>>>0,!Q){let Dn=Math.pow(2,8*k-1);zn(this,I,g,k,Dn-1,-Dn)}let ie=k-1,pe=1,St=0;for(this[g+ie]=I&255;--ie>=0&&(pe*=256);)I<0&&St===0&&this[g+ie+1]!==0&&(St=1),this[g+ie]=(I/pe>>0)-St&255;return g+k},a.prototype.writeInt8=function(I,g,k){return I=+I,g=g>>>0,k||zn(this,I,g,1,127,-128),I<0&&(I=255+I+1),this[g]=I&255,g+1},a.prototype.writeInt16LE=function(I,g,k){return I=+I,g=g>>>0,k||zn(this,I,g,2,32767,-32768),this[g]=I&255,this[g+1]=I>>>8,g+2},a.prototype.writeInt16BE=function(I,g,k){return I=+I,g=g>>>0,k||zn(this,I,g,2,32767,-32768),this[g]=I>>>8,this[g+1]=I&255,g+2},a.prototype.writeInt32LE=function(I,g,k){return I=+I,g=g>>>0,k||zn(this,I,g,4,2147483647,-2147483648),this[g]=I&255,this[g+1]=I>>>8,this[g+2]=I>>>16,this[g+3]=I>>>24,g+4},a.prototype.writeInt32BE=function(I,g,k){return I=+I,g=g>>>0,k||zn(this,I,g,4,2147483647,-2147483648),I<0&&(I=4294967295+I+1),this[g]=I>>>24,this[g+1]=I>>>16,this[g+2]=I>>>8,this[g+3]=I&255,g+4},a.prototype.writeBigInt64LE=ga(function(I,g=0){return ue(this,I,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=ga(function(I,g=0){return Re(this,I,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _e(w,I,g,k,Q,ie){if(g+k>w.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function Be(w,I,g,k,Q){return I=+I,g=g>>>0,Q||_e(w,I,g,4),t.write(w,I,g,k,23,4),g+4}a.prototype.writeFloatLE=function(I,g,k){return Be(this,I,g,!0,k)},a.prototype.writeFloatBE=function(I,g,k){return Be(this,I,g,!1,k)};function Pt(w,I,g,k,Q){return I=+I,g=g>>>0,Q||_e(w,I,g,8),t.write(w,I,g,k,52,8),g+8}a.prototype.writeDoubleLE=function(I,g,k){return Pt(this,I,g,!0,k)},a.prototype.writeDoubleBE=function(I,g,k){return Pt(this,I,g,!1,k)},a.prototype.copy=function(I,g,k,Q){if(!a.isBuffer(I))throw new TypeError("argument should be a Buffer");if(k||(k=0),!Q&&Q!==0&&(Q=this.length),g>=I.length&&(g=I.length),g||(g=0),Q>0&&Q=this.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),I.length-g>>0,k=k===void 0?this.length:k>>>0,I||(I=0);let ie;if(typeof I=="number")for(ie=g;ieEn(2,32)?Q=$e(String(g)):typeof g=="bigint"&&(Q=String(g),(g>En(BigInt(2),BigInt(32))||g<-En(BigInt(2),BigInt(32)))&&(Q=$e(Q)),Q+="n"),k+=` It must be ${I}. Received ${Q}`,k},RangeError);function $e(w){let I="",g=w.length,k=w[0]==="-"?1:0;for(;g>=k+4;g-=3)I=`_${w.slice(g-3,g)}${I}`;return`${w.slice(0,g)}${I}`}function et(w,I,g){ft(I,"offset"),(w[I]===void 0||w[I+g]===void 0)&&Vt(I,w.length-(g+1))}function Qt(w,I,g,k,Q,ie){if(w>g||w3?I===0||I===BigInt(0)?St=`>= 0${pe} and < 2${pe} ** ${(ie+1)*8}${pe}`:St=`>= -(2${pe} ** ${(ie+1)*8-1}${pe}) and < 2 ** ${(ie+1)*8-1}${pe}`:St=`>= ${I}${pe} and <= ${g}${pe}`,new J.ERR_OUT_OF_RANGE("value",St,w)}et(k,Q,ie)}function ft(w,I){if(typeof w!="number")throw new J.ERR_INVALID_ARG_TYPE(I,"number",w)}function Vt(w,I,g){throw Math.floor(w)!==w?(ft(w,g),new J.ERR_OUT_OF_RANGE(g||"offset","an integer",w)):I<0?new J.ERR_BUFFER_OUT_OF_BOUNDS:new J.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${I}`,w)}let Za=/[^+/0-9A-Za-z-_]/g;function Fi(w){if(w=w.split("=")[0],w=w.trim().replace(Za,""),w.length<2)return"";for(;w.length%4!==0;)w=w+"=";return w}function eo(w,I){I=I||1/0;let g,k=w.length,Q=null,ie=[];for(let pe=0;pe55295&&g<57344){if(!Q){if(g>56319){(I-=3)>-1&&ie.push(239,191,189);continue}else if(pe+1===k){(I-=3)>-1&&ie.push(239,191,189);continue}Q=g;continue}if(g<56320){(I-=3)>-1&&ie.push(239,191,189),Q=g;continue}g=(Q-55296<<10|g-56320)+65536}else Q&&(I-=3)>-1&&ie.push(239,191,189);if(Q=null,g<128){if((I-=1)<0)break;ie.push(g)}else if(g<2048){if((I-=2)<0)break;ie.push(g>>6|192,g&63|128)}else if(g<65536){if((I-=3)<0)break;ie.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((I-=4)<0)break;ie.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return ie}function pd(w){let I=[];for(let g=0;g>8,Q=g%256,ie.push(Q),ie.push(k);return ie}function Kr(w){return e.toByteArray(Fi(w))}function Gi(w,I,g,k){let Q;for(Q=0;Q=I.length||Q>=w.length);++Q)I[Q+g]=w[Q];return Q}function Jt(w,I){return w instanceof I||w!=null&&w.constructor!=null&&w.constructor.name!=null&&w.constructor.name===I.name}function Gr(w){return w!==w}let Yc=function(){let w="0123456789abcdef",I=new Array(256);for(let g=0;g<16;++g){let k=g*16;for(let Q=0;Q<16;++Q)I[k+Q]=w[g]+w[Q]}return I}();function ga(w){return typeof BigInt=="undefined"?Jc:w}function Jc(){throw new Error("BigInt not supported")}return al}var Rp,BC,SE,kC,al,xC,ol,D,xNe,MNe,MC=ae(()=>{"use strict";p();N();m();Rp={},BC=!1;SE={},kC=!1;al={},xC=!1;ol=o4();ol.Buffer;ol.SlowBuffer;ol.INSPECT_MAX_BYTES;ol.kMaxLength;D=ol.Buffer,xNe=ol.INSPECT_MAX_BYTES,MNe=ol.kMaxLength});var N=ae(()=>{"use strict";MC()});var VC,qC,$C=ae(()=>{"use strict";p();N();m();VC="16.9.0",qC=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null})});function tt(e,t){if(!!!e)throw new Error(t)}var Ii=ae(()=>{"use strict";p();N();m()});function ti(e){return typeof(e==null?void 0:e.then)=="function"}var DE=ae(()=>{"use strict";p();N();m()});function Xn(e){return typeof e=="object"&&e!==null}var Da=ae(()=>{"use strict";p();N();m()});function Bt(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}var ni=ae(()=>{"use strict";p();N();m()});function cc(e,t){let n=0,r=1;for(let i of e.body.matchAll(u4)){if(typeof i.index=="number"||Bt(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var u4,OE=ae(()=>{"use strict";p();N();m();ni();u4=/\r\n|[\n\r]/g});function Fp(e){return Rd(e.source,cc(e.source,e.start))}function Rd(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,l=t.column+u,d=`${e.name}:${a}:${l} +`,f=r.split(/\r\n|[\n\r]/g),E=f[i];if(E.length>120){let h=Math.floor(l/80),_=l%80,A=[];for(let U=0;U["|",U]),["|","^".padStart(_)],["|",A[h+1]]])}return d+jC([[`${a-1} |`,f[i-1]],[`${a} |`,E],["|","^".padStart(l)],[`${a+1} |`,f[i+1]]])}function jC(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` +`)}var Z_=ae(()=>{"use strict";p();N();m();OE()});function c4(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}function KC(e){return e===void 0||e.length===0?void 0:e}function ev(e){return e.toString()}function tv(e){return e.toJSON()}var G,nt=ae(()=>{"use strict";p();N();m();Da();OE();Z_();G=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:a,source:u,positions:l,path:d,originalError:f,extensions:E}=c4(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=f!=null?f:void 0,this.nodes=KC(Array.isArray(a)?a:a?[a]:void 0);let h=KC((r=this.nodes)===null||r===void 0?void 0:r.map(A=>A.loc).filter(A=>A!=null));this.source=u!=null?u:h==null||(i=h[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:h==null?void 0:h.map(A=>A.start),this.locations=l&&u?l.map(A=>cc(u,A)):h==null?void 0:h.map(A=>cc(A.source,A.start));let _=Xn(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(s=E!=null?E:_)!==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}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` -`+(0,cF.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` +`+Fp(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` -`+(0,cF.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};fl.GraphQLError=Zy;function lF(e){return e===void 0||e.length===0?void 0:e}function JH(e){return e.toString()}function HH(e){return e.toJSON()}});var Vm=w(eI=>{"use strict";m();T();N();Object.defineProperty(eI,"__esModule",{value:!0});eI.syntaxError=WH;var zH=ze();function WH(e,t,n){return new zH.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}});var Ua=w(Ri=>{"use strict";m();T();N();Object.defineProperty(Ri,"__esModule",{value:!0});Ri.Token=Ri.QueryDocumentKeys=Ri.OperationTypeNode=Ri.Location=void 0;Ri.isNode=ZH;var tI=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Ri.Location=tI;var nI=class{constructor(t,n,r,i,a,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=a,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}}};Ri.Token=nI;var dF={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};Ri.QueryDocumentKeys=dF;var XH=new Set(Object.keys(dF));function ZH(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&XH.has(t)}var rI;Ri.OperationTypeNode=rI;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(rI||(Ri.OperationTypeNode=rI={}))});var pl=w(Md=>{"use strict";m();T();N();Object.defineProperty(Md,"__esModule",{value:!0});Md.DirectiveLocation=void 0;var iI;Md.DirectiveLocation=iI;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(iI||(Md.DirectiveLocation=iI={}))});var wt=w(xd=>{"use strict";m();T();N();Object.defineProperty(xd,"__esModule",{value:!0});xd.Kind=void 0;var aI;xd.Kind=aI;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(aI||(xd.Kind=aI={}))});var jm=w(Wu=>{"use strict";m();T();N();Object.defineProperty(Wu,"__esModule",{value:!0});Wu.isDigit=fF;Wu.isLetter=sI;Wu.isNameContinue=n3;Wu.isNameStart=t3;Wu.isWhiteSpace=e3;function e3(e){return e===9||e===32}function fF(e){return e>=48&&e<=57}function sI(e){return e>=97&&e<=122||e>=65&&e<=90}function t3(e){return sI(e)||e===95}function n3(e){return sI(e)||fF(e)||e===95}});var Vd=w(qd=>{"use strict";m();T();N();Object.defineProperty(qd,"__esModule",{value:!0});qd.dedentBlockStringLines=r3;qd.isPrintableAsBlockString=a3;qd.printBlockString=s3;var oI=jm();function r3(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;oc===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function i3(e){let t=0;for(;t1&&r.slice(1).every(v=>v.length===0||(0,oI.isWhiteSpace)(v.charCodeAt(0))),o=n.endsWith('\\"""'),c=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=c||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||a||o),E="",I=i&&(0,oI.isWhiteSpace)(e.charCodeAt(0));return(p&&!I||a)&&(E+=` -`),E+=n,(p||d)&&(E+=` -`),'"""'+E+'"""'}});var Kd=w(jd=>{"use strict";m();T();N();Object.defineProperty(jd,"__esModule",{value:!0});jd.TokenKind=void 0;var uI;jd.TokenKind=uI;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(uI||(jd.TokenKind=uI={}))});var Gm=w($d=>{"use strict";m();T();N();Object.defineProperty($d,"__esModule",{value:!0});$d.Lexer=void 0;$d.isPunctuatorTokenKind=u3;var sa=Vm(),mF=Ua(),o3=Vd(),Xu=jm(),_t=Kd(),lI=class{constructor(t){let n=new mF.Token(_t.TokenKind.SOF,0,0,0,0);this.source=t,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 t=this.token;if(t.kind!==_t.TokenKind.EOF)do if(t.next)t=t.next;else{let n=c3(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===_t.TokenKind.COMMENT);return t}};$d.Lexer=lI;function u3(e){return e===_t.TokenKind.BANG||e===_t.TokenKind.DOLLAR||e===_t.TokenKind.AMP||e===_t.TokenKind.PAREN_L||e===_t.TokenKind.PAREN_R||e===_t.TokenKind.SPREAD||e===_t.TokenKind.COLON||e===_t.TokenKind.EQUALS||e===_t.TokenKind.AT||e===_t.TokenKind.BRACKET_L||e===_t.TokenKind.BRACKET_R||e===_t.TokenKind.BRACE_L||e===_t.TokenKind.PIPE||e===_t.TokenKind.BRACE_R}function ml(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Km(e,t){return NF(e.charCodeAt(t))&&TF(e.charCodeAt(t+1))}function NF(e){return e>=55296&&e<=56319}function TF(e){return e>=56320&&e<=57343}function Zu(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return _t.TokenKind.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Hn(e,t,n,r,i){let a=e.line,o=1+n-e.lineStart;return new mF.Token(t,n,r,a,o,i)}function c3(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function N3(e,t){let n=e.source.body;switch(n.charCodeAt(t+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(0,sa.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function T3(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,c="",l=[];for(;a{"use strict";m();T();N();Object.defineProperty(dI,"__esModule",{value:!0});dI.inspect=y3;var h3=10,EF=2;function y3(e){return $m(e,[])}function $m(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return I3(e,t);default:return String(e)}}function I3(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(g3(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:$m(r,n)}else if(Array.isArray(e))return v3(e,n);return _3(e,n)}function g3(e){return typeof e.toJSON=="function"}function _3(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>EF?"["+O3(e)+"]":"{ "+n.map(([i,a])=>i+": "+$m(a,t)).join(", ")+" }"}function v3(e,t){if(e.length===0)return"[]";if(t.length>EF)return"[Array]";let n=Math.min(h3,e.length),r=e.length-n,i=[];for(let a=0;a1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function O3(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}});var Qd=w(Qm=>{"use strict";m();T();N();Object.defineProperty(Qm,"__esModule",{value:!0});Qm.instanceOf=void 0;var S3=Wt(),D3=globalThis.process&&S.env.NODE_ENV==="production",b3=D3?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===a){let o=(0,S3.inspect)(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm. +`+Rd(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}});function jn(e,t,n){return new G(`Syntax Error: ${n}`,{source:e,positions:[t]})}var bE=ae(()=>{"use strict";p();N();m();nt()});function wp(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&l4.has(t)}var ul,lc,nv,l4,bn,Oa=ae(()=>{"use strict";p();N();m();ul=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},lc=class{constructor(t,n,r,i,s,a){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=a,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}}},nv={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},l4=new Set(Object.keys(nv));(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(bn||(bn={}))});var ze,Fd=ae(()=>{"use strict";p();N();m();(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ze||(ze={}))});var F,$t=ae(()=>{"use strict";p();N();m();(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(F||(F={}))});function AE(e){return e===9||e===32}function wd(e){return e>=48&&e<=57}function GC(e){return e>=97&&e<=122||e>=65&&e<=90}function Lp(e){return GC(e)||e===95}function RE(e){return GC(e)||wd(e)||e===95}var FE=ae(()=>{"use strict";p();N();m()});function QC(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;au===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function d4(e){let t=0;for(;t1&&r.slice(1).every(_=>_.length===0||AE(_.charCodeAt(0))),a=n.endsWith('\\"""'),u=e.endsWith('"')&&!a,l=e.endsWith("\\"),d=u||l,f=!(t!=null&&t.minimize)&&(!i||e.length>70||d||s||a),E="",h=i&&AE(e.charCodeAt(0));return(f&&!h||s)&&(E+=` +`),E+=n,(f||d)&&(E+=` +`),'"""'+E+'"""'}var Pp=ae(()=>{"use strict";p();N();m();FE()});var le,Cp=ae(()=>{"use strict";p();N();m();(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(le||(le={}))});function LE(e){return e===le.BANG||e===le.DOLLAR||e===le.AMP||e===le.PAREN_L||e===le.PAREN_R||e===le.SPREAD||e===le.COLON||e===le.EQUALS||e===le.AT||e===le.BRACKET_L||e===le.BRACKET_R||e===le.BRACE_L||e===le.PIPE||e===le.BRACE_R}function Ld(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function PE(e,t){return HC(e.charCodeAt(t))&&zC(e.charCodeAt(t+1))}function HC(e){return e>=55296&&e<=56319}function zC(e){return e>=56320&&e<=57343}function cl(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return le.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function mr(e,t,n,r,i){let s=e.line,a=1+n-e.lineStart;return new lc(t,n,r,s,a,i)}function f4(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function h4(e,t){let n=e.source.body;switch(n.charCodeAt(t+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 jn(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function y4(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,a=s,u="",l=[];for(;s{"use strict";p();N();m();bE();Oa();Pp();FE();Cp();po=class{constructor(t){let n=new lc(le.SOF,0,0,0,0);this.source=t,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 t=this.token;if(t.kind!==le.EOF)do if(t.next)t=t.next;else{let n=f4(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===le.COMMENT);return t}}});function ne(e){return UE(e,[])}function UE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return g4(e,t);default:return String(e)}}function g4(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(_4(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:UE(r,n)}else if(Array.isArray(e))return S4(e,n);return v4(e,n)}function _4(e){return typeof e.toJSON=="function"}function v4(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+D4(e)+"]":"{ "+n.map(([i,s])=>i+": "+UE(s,t)).join(", ")+" }"}function S4(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function D4(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var an=ae(()=>{"use strict";p();N();m()});var O4,gi,Bp=ae(()=>{"use strict";p();N();m();an();O4=globalThis.process&&S.env.NODE_ENV==="production",gi=O4?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let a=ne(t);throw new Error(`Cannot use ${i} "${a}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other @@ -36,45 +36,45 @@ https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and -spurious results.`)}}return!1};Qm.instanceOf=b3});var Jm=w(Yd=>{"use strict";m();T();N();Object.defineProperty(Yd,"__esModule",{value:!0});Yd.Source=void 0;Yd.isSource=P3;var fI=qr(),A3=Wt(),R3=Qd(),Ym=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,fI.devAssert)(!1,`Body must be a string. Received: ${(0,A3.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,fI.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,fI.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Yd.Source=Ym;function P3(e){return(0,R3.instanceOf)(e,Ym)}});var Nl=w(uu=>{"use strict";m();T();N();Object.defineProperty(uu,"__esModule",{value:!0});uu.Parser=void 0;uu.parse=w3;uu.parseConstValue=C3;uu.parseType=B3;uu.parseValue=L3;var ec=Vm(),Jd=Ua(),F3=pl(),ot=wt(),yF=Gm(),hF=Jm(),Se=Kd();function w3(e,t){return new tc(e,t).parseDocument()}function L3(e,t){let n=new tc(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(Se.TokenKind.EOF),r}function C3(e,t){let n=new tc(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(Se.TokenKind.EOF),r}function B3(e,t){let n=new tc(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(Se.TokenKind.EOF),r}var tc=class{constructor(t,n={}){let r=(0,hF.isSource)(t)?t:new hF.Source(t);this._lexer=new yF.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(Se.TokenKind.NAME);return this.node(t,{kind:ot.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:ot.Kind.DOCUMENT,definitions:this.many(Se.TokenKind.SOF,this.parseDefinition,Se.TokenKind.EOF)})}parseDefinition(){if(this.peek(Se.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===Se.TokenKind.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(t)throw(0,ec.syntaxError)(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(){let t=this._lexer.token;if(this.peek(Se.TokenKind.BRACE_L))return this.node(t,{kind:ot.Kind.OPERATION_DEFINITION,operation:Jd.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(Se.TokenKind.NAME)&&(r=this.parseName()),this.node(t,{kind:ot.Kind.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(Se.TokenKind.NAME);switch(t.value){case"query":return Jd.OperationTypeNode.QUERY;case"mutation":return Jd.OperationTypeNode.MUTATION;case"subscription":return Jd.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Se.TokenKind.PAREN_L,this.parseVariableDefinition,Se.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ot.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Se.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Se.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(Se.TokenKind.DOLLAR),this.node(t,{kind:ot.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ot.Kind.SELECTION_SET,selections:this.many(Se.TokenKind.BRACE_L,this.parseSelection,Se.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Se.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(Se.TokenKind.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:ot.Kind.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Se.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Se.TokenKind.PAREN_L,n,Se.TokenKind.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(Se.TokenKind.COLON),this.node(n,{kind:ot.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(Se.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(Se.TokenKind.NAME)?this.node(t,{kind:ot.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:ot.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:ot.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:ot.Kind.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(t){let n=this._lexer.token;switch(n.kind){case Se.TokenKind.BRACKET_L:return this.parseList(t);case Se.TokenKind.BRACE_L:return this.parseObject(t);case Se.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:ot.Kind.INT,value:n.value});case Se.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:ot.Kind.FLOAT,value:n.value});case Se.TokenKind.STRING:case Se.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Se.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:ot.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:ot.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:ot.Kind.NULL});default:return this.node(n,{kind:ot.Kind.ENUM,value:n.value})}case Se.TokenKind.DOLLAR:if(t)if(this.expectToken(Se.TokenKind.DOLLAR),this._lexer.token.kind===Se.TokenKind.NAME){let r=this._lexer.token.value;throw(0,ec.syntaxError)(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:ot.Kind.STRING,value:t.value,block:t.kind===Se.TokenKind.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:ot.Kind.LIST,values:this.any(Se.TokenKind.BRACKET_L,n,Se.TokenKind.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:ot.Kind.OBJECT,fields:this.any(Se.TokenKind.BRACE_L,n,Se.TokenKind.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(Se.TokenKind.COLON),this.node(n,{kind:ot.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(Se.TokenKind.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(Se.TokenKind.AT),this.node(n,{kind:ot.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(Se.TokenKind.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(Se.TokenKind.BRACKET_R),n=this.node(t,{kind:ot.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Se.TokenKind.BANG)?this.node(t,{kind:ot.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:ot.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Se.TokenKind.STRING)||this.peek(Se.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(Se.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Se.TokenKind.BRACE_R);return this.node(t,{kind:ot.Kind.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(Se.TokenKind.COLON);let r=this.parseNamedType();return this.node(t,{kind:ot.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:ot.Kind.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:ot.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Se.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseFieldDefinition,Se.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Se.TokenKind.COLON);let a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:ot.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(Se.TokenKind.PAREN_L,this.parseInputValueDef,Se.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Se.TokenKind.COLON);let i=this.parseTypeReference(),a;this.expectOptionalToken(Se.TokenKind.EQUALS)&&(a=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:ot.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:a,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:ot.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:ot.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(Se.TokenKind.EQUALS)?this.delimitedMany(Se.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:ot.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseEnumValueDefinition,Se.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:ot.Kind.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,ec.syntaxError)(this._lexer.source,this._lexer.token.start,`${Hm(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:ot.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseInputValueDef,Se.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===Se.TokenKind.NAME)switch(t.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(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(Se.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Se.TokenKind.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:ot.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:ot.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:ot.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:ot.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:ot.Kind.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:ot.Kind.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:ot.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Se.TokenKind.AT);let r=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:ot.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Se.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(F3.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Jd.Location(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw(0,ec.syntaxError)(this._lexer.source,n.start,`Expected ${IF(t)}, found ${Hm(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===Se.TokenKind.NAME&&n.value===t)this.advanceLexer();else throw(0,ec.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${Hm(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===Se.TokenKind.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return(0,ec.syntaxError)(this._lexer.source,n.start,`Unexpected ${Hm(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==Se.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,ec.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};uu.Parser=tc;function Hm(e){let t=e.value;return IF(e.kind)+(t!=null?` "${t}"`:"")}function IF(e){return(0,yF.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var cu=w(pI=>{"use strict";m();T();N();Object.defineProperty(pI,"__esModule",{value:!0});pI.didYouMean=k3;var U3=5;function k3(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let a=r.map(l=>`"${l}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}let o=a.slice(0,U3),c=o.pop();return i+o.join(", ")+", or "+c+"?"}});var gF=w(mI=>{"use strict";m();T();N();Object.defineProperty(mI,"__esModule",{value:!0});mI.identityFunc=M3;function M3(e){return e}});var lu=w(NI=>{"use strict";m();T();N();Object.defineProperty(NI,"__esModule",{value:!0});NI.keyMap=x3;function x3(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var Hd=w(TI=>{"use strict";m();T();N();Object.defineProperty(TI,"__esModule",{value:!0});TI.keyValMap=q3;function q3(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var hI=w(EI=>{"use strict";m();T();N();Object.defineProperty(EI,"__esModule",{value:!0});EI.mapValue=V3;function V3(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var zd=w(II=>{"use strict";m();T();N();Object.defineProperty(II,"__esModule",{value:!0});II.naturalCompare=j3;function j3(e,t){let n=0,r=0;for(;n0);let c=0;do++r,c=c*10+a-yI,a=t.charCodeAt(r);while(zm(a)&&c>0);if(oc)return 1}else{if(ia)return 1;++n,++r}}return e.length-t.length}var yI=48,K3=57;function zm(e){return!isNaN(e)&&yI<=e&&e<=K3}});var du=w(_I=>{"use strict";m();T();N();Object.defineProperty(_I,"__esModule",{value:!0});_I.suggestionList=$3;var G3=zd();function $3(e,t){let n=Object.create(null),r=new gI(e),i=Math.floor(e.length*.4)+1;for(let a of t){let o=r.measure(a,i);o!==void 0&&(n[a]=o)}return Object.keys(n).sort((a,o)=>{let c=n[a]-n[o];return c!==0?c:(0,G3.naturalCompare)(a,o)})}var gI=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=_F(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=_F(r),a=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let p=0;p<=c;p++)l[0][p]=p;for(let p=1;p<=o;p++){let E=l[(p-1)%3],I=l[p%3],v=I[0]=p;for(let A=1;A<=c;A++){let U=i[p-1]===a[A-1]?0:1,j=Math.min(E[A]+1,I[A-1]+1,E[A-1]+U);if(p>1&&A>1&&i[p-1]===a[A-2]&&i[p-2]===a[A-1]){let $=l[(p-2)%3][A-2];j=Math.min(j,$+1)}jn)return}let d=l[o%3][c];return d<=n?d:void 0}};function _F(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();N();Object.defineProperty(vI,"__esModule",{value:!0});vI.toObjMap=Q3;function Q3(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}});var vF=w(OI=>{"use strict";m();T();N();Object.defineProperty(OI,"__esModule",{value:!0});OI.printString=Y3;function Y3(e){return`"${e.replace(J3,H3)}"`}var J3=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function H3(e){return z3[e.charCodeAt(0)]}var z3=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var nc=w(fu=>{"use strict";m();T();N();Object.defineProperty(fu,"__esModule",{value:!0});fu.BREAK=void 0;fu.getEnterLeaveForKind=Xm;fu.getVisitFn=t6;fu.visit=Z3;fu.visitInParallel=e6;var W3=qr(),X3=Wt(),SI=Ua(),OF=wt(),Tl=Object.freeze({});fu.BREAK=Tl;function Z3(e,t,n=SI.QueryDocumentKeys){let r=new Map;for(let $ of Object.values(OF.Kind))r.set($,Xm(t,$));let i,a=Array.isArray(e),o=[e],c=-1,l=[],d=e,p,E,I=[],v=[];do{c++;let $=c===o.length,re=$&&l.length!==0;if($){if(p=v.length===0?void 0:I[I.length-1],d=E,E=v.pop(),re)if(a){d=d.slice();let me=0;for(let[ue,Ae]of l){let xe=ue-me;Ae===null?(d.splice(xe,1),me++):d[xe]=Ae}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[me,ue]of l)d[me]=ue}c=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(E){if(p=a?c:o[c],d=E[p],d==null)continue;I.push(p)}let ee;if(!Array.isArray(d)){var A,U;(0,SI.isNode)(d)||(0,W3.devAssert)(!1,`Invalid AST Node: ${(0,X3.inspect)(d)}.`);let me=$?(A=r.get(d.kind))===null||A===void 0?void 0:A.leave:(U=r.get(d.kind))===null||U===void 0?void 0:U.enter;if(ee=me==null?void 0:me.call(t,d,p,E,I,v),ee===Tl)break;if(ee===!1){if(!$){I.pop();continue}}else if(ee!==void 0&&(l.push([p,ee]),!$))if((0,SI.isNode)(ee))d=ee;else{I.pop();continue}}if(ee===void 0&&re&&l.push([p,d]),$)I.pop();else{var j;i={inArray:a,index:c,keys:o,edits:l,prev:i},a=Array.isArray(d),o=a?d:(j=n[d.kind])!==null&&j!==void 0?j:[],c=-1,l=[],E&&v.push(E),E=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function e6(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(OF.Kind)){let i=!1,a=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();N();Object.defineProperty(DI,"__esModule",{value:!0});DI.print=a6;var n6=Vd(),r6=vF(),i6=nc();function a6(e){return(0,i6.visit)(e,o6)}var s6=80,o6={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ve(e.definitions,` - -`)},OperationDefinition:{leave(e){let t=At("(",Ve(e.variableDefinitions,", "),")"),n=Ve([e.operation,Ve([e.name,t]),Ve(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+At(" = ",n)+At(" ",Ve(r," "))},SelectionSet:{leave:({selections:e})=>oa(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=At("",e,": ")+t,o=a+At("(",Ve(n,", "),")");return o.length>s6&&(o=a+At(`( -`,Zm(Ve(n,` +spurious results.`)}}return!1}});function BE(e){return gi(e,ba)}var ba,kE=ae(()=>{"use strict";p();N();m();Ii();an();Bp();ba=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||tt(!1,`Body must be a string. Received: ${ne(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||tt(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||tt(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}});function Js(e,t){return new Pd(e,t).parseDocument()}function kp(e,t){let n=new Pd(e,t);n.expectToken(le.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(le.EOF),r}function iv(e,t){let n=new Pd(e,t);n.expectToken(le.SOF);let r=n.parseConstValueLiteral();return n.expectToken(le.EOF),r}function sv(e,t){let n=new Pd(e,t);n.expectToken(le.SOF);let r=n.parseTypeReference();return n.expectToken(le.EOF),r}function xE(e){let t=e.value;return WC(e.kind)+(t!=null?` "${t}"`:"")}function WC(e){return LE(e)?`"${e}"`:e}var Pd,Cd=ae(()=>{"use strict";p();N();m();bE();Oa();Fd();$t();CE();kE();Cp();Pd=class{constructor(t,n={}){let r=BE(t)?t:new ba(t);this._lexer=new po(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(le.NAME);return this.node(t,{kind:F.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:F.DOCUMENT,definitions:this.many(le.SOF,this.parseDefinition,le.EOF)})}parseDefinition(){if(this.peek(le.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===le.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(t)throw jn(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(){let t=this._lexer.token;if(this.peek(le.BRACE_L))return this.node(t,{kind:F.OPERATION_DEFINITION,operation:bn.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(le.NAME)&&(r=this.parseName()),this.node(t,{kind:F.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(le.NAME);switch(t.value){case"query":return bn.QUERY;case"mutation":return bn.MUTATION;case"subscription":return bn.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(le.PAREN_L,this.parseVariableDefinition,le.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:F.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(le.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(le.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(le.DOLLAR),this.node(t,{kind:F.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:F.SELECTION_SET,selections:this.many(le.BRACE_L,this.parseSelection,le.BRACE_R)})}parseSelection(){return this.peek(le.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(le.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:F.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(le.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(le.PAREN_L,n,le.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:F.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(le.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(le.NAME)?this.node(t,{kind:F.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:F.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:F.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:F.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(t){let n=this._lexer.token;switch(n.kind){case le.BRACKET_L:return this.parseList(t);case le.BRACE_L:return this.parseObject(t);case le.INT:return this.advanceLexer(),this.node(n,{kind:F.INT,value:n.value});case le.FLOAT:return this.advanceLexer(),this.node(n,{kind:F.FLOAT,value:n.value});case le.STRING:case le.BLOCK_STRING:return this.parseStringLiteral();case le.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:F.BOOLEAN,value:!0});case"false":return this.node(n,{kind:F.BOOLEAN,value:!1});case"null":return this.node(n,{kind:F.NULL});default:return this.node(n,{kind:F.ENUM,value:n.value})}case le.DOLLAR:if(t)if(this.expectToken(le.DOLLAR),this._lexer.token.kind===le.NAME){let r=this._lexer.token.value;throw jn(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:F.STRING,value:t.value,block:t.kind===le.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:F.LIST,values:this.any(le.BRACKET_L,n,le.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:F.OBJECT,fields:this.any(le.BRACE_L,n,le.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:F.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(le.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(le.AT),this.node(n,{kind:F.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(le.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(le.BRACKET_R),n=this.node(t,{kind:F.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(le.BANG)?this.node(t,{kind:F.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:F.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(le.STRING)||this.peek(le.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);return this.node(t,{kind:F.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(le.COLON);let r=this.parseNamedType();return this.node(t,{kind:F.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:F.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:F.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(le.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseFieldDefinition,le.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(le.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:F.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(le.PAREN_L,this.parseInputValueDef,le.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(le.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(le.EQUALS)&&(s=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:F.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:F.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:a})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:F.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(le.EQUALS)?this.delimitedMany(le.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:F.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(le.BRACE_L,this.parseEnumValueDefinition,le.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:F.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw jn(this._lexer.source,this._lexer.token.start,`${xE(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:F.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseInputValueDef,le.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===le.NAME)switch(t.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(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:F.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:F.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:F.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:F.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:F.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:F.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:F.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(le.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(t,{kind:F.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(le.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(ze,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new ul(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw jn(this._lexer.source,n.start,`Expected ${WC(t)}, found ${xE(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===le.NAME&&n.value===t)this.advanceLexer();else throw jn(this._lexer.source,n.start,`Expected "${t}", found ${xE(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===le.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return jn(this._lexer.source,n.start,`Unexpected ${xE(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==le.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw jn(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}});function ri(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(l=>`"${l}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let a=s.slice(0,5),u=a.pop();return i+a.join(", ")+", or "+u+"?"}var dc=ae(()=>{"use strict";p();N();m()});function av(e){return e}var XC=ae(()=>{"use strict";p();N();m()});function ii(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}var fc=ae(()=>{"use strict";p();N();m()});function hs(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}var xp=ae(()=>{"use strict";p();N();m()});function Hs(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}var ov=ae(()=>{"use strict";p();N();m()});function mo(e,t){let n=0,r=0;for(;n0);let u=0;do++r,u=u*10+s-uv,s=t.charCodeAt(r);while(ME(s)&&u>0);if(au)return 1}else{if(is)return 1;++n,++r}}return e.length-t.length}function ME(e){return!isNaN(e)&&uv<=e&&e<=b4}var uv,b4,Mp=ae(()=>{"use strict";p();N();m();uv=48,b4=57});function _i(e,t){let n=Object.create(null),r=new cv(e),i=Math.floor(e.length*.4)+1;for(let s of t){let a=r.measure(s,i);a!==void 0&&(n[s]=a)}return Object.keys(n).sort((s,a)=>{let u=n[s]-n[a];return u!==0?u:mo(s,a)})}function ZC(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";p();N();m();Mp();cv=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=ZC(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=ZC(r),s=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let f=0;f<=u;f++)l[0][f]=f;for(let f=1;f<=a;f++){let E=l[(f-1)%3],h=l[f%3],_=h[0]=f;for(let A=1;A<=u;A++){let U=i[f-1]===s[A-1]?0:1,q=Math.min(E[A]+1,h[A-1]+1,E[A-1]+U);if(f>1&&A>1&&i[f-1]===s[A-2]&&i[f-2]===s[A-1]){let j=l[(f-2)%3][A-2];q=Math.min(q,j+1)}q<_&&(_=q),h[A]=q}if(_>n)return}let d=l[a%3][u];return d<=n?d:void 0}}});function vi(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}var VE=ae(()=>{"use strict";p();N();m()});function eU(e){return`"${e.replace(A4,R4)}"`}function R4(e){return F4[e.charCodeAt(0)]}var A4,F4,tU=ae(()=>{"use strict";p();N();m();A4=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;F4=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});function ys(e,t,n=nv){let r=new Map;for(let j of Object.values(F))r.set(j,No(t,j));let i,s=Array.isArray(e),a=[e],u=-1,l=[],d=e,f,E,h=[],_=[];do{u++;let j=u===a.length,re=j&&l.length!==0;if(j){if(f=_.length===0?void 0:h[h.length-1],d=E,E=_.pop(),re)if(s){d=d.slice();let me=0;for(let[ce,be]of l){let xe=ce-me;be===null?(d.splice(xe,1),me++):d[xe]=be}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[me,ce]of l)d[me]=ce}u=i.index,a=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(E){if(f=s?u:a[u],d=E[f],d==null)continue;h.push(f)}let ee;if(!Array.isArray(d)){var A,U;wp(d)||tt(!1,`Invalid AST Node: ${ne(d)}.`);let me=j?(A=r.get(d.kind))===null||A===void 0?void 0:A.leave:(U=r.get(d.kind))===null||U===void 0?void 0:U.enter;if(ee=me==null?void 0:me.call(t,d,f,E,h,_),ee===mc)break;if(ee===!1){if(!j){h.pop();continue}}else if(ee!==void 0&&(l.push([f,ee]),!j))if(wp(ee))d=ee;else{h.pop();continue}}if(ee===void 0&&re&&l.push([f,d]),j)h.pop();else{var q;i={inArray:s,index:u,keys:a,edits:l,prev:i},s=Array.isArray(d),a=s?d:(q=n[d.kind])!==null&&q!==void 0?q:[],u=-1,l=[],E&&_.push(E),E=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function Ud(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(F)){let i=!1,s=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";p();N();m();Ii();an();Oa();$t();mc=Object.freeze({})});function Dt(e){return ys(e,L4)}function je(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function zs(e){return kt(`{ +`,qE(je(e,` `)),` -)`)),Ve([o,Ve(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+At(" ",Ve(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ve(["...",At("on ",e),Ve(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${At("(",Ve(n,", "),")")} on ${t} ${At("",Ve(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n6.printBlockString)(e):(0,r6.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ve(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ve(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+At("(",Ve(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>At("",e,` -`)+Ve(["schema",Ve(t," "),oa(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>At("",e,` -`)+Ve(["scalar",t,Ve(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>At("",e,` -`)+Ve(["type",t,At("implements ",Ve(n," & ")),Ve(r," "),oa(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>At("",e,` -`)+t+(SF(n)?At(`( -`,Zm(Ve(n,` +}`)}function kt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function qE(e){return kt(" ",e.replace(/\n/g,` + `))}function nU(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` +`)))!==null&&t!==void 0?t:!1}var w4,L4,Xi=ae(()=>{"use strict";p();N();m();Pp();tU();ll();w4=80,L4={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>je(e.definitions,` + +`)},OperationDefinition:{leave(e){let t=kt("(",je(e.variableDefinitions,", "),")"),n=je([e.operation,je([e.name,t]),je(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+kt(" = ",n)+kt(" ",je(r," "))},SelectionSet:{leave:({selections:e})=>zs(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=kt("",e,": ")+t,a=s+kt("(",je(n,", "),")");return a.length>w4&&(a=s+kt(`( +`,qE(je(n,` `)),` -)`):At("(",Ve(n,", "),")"))+": "+r+At(" ",Ve(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>At("",e,` -`)+Ve([t+": "+n,At("= ",r),Ve(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>At("",e,` -`)+Ve(["interface",t,At("implements ",Ve(n," & ")),Ve(r," "),oa(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>At("",e,` -`)+Ve(["union",t,Ve(n," "),At("= ",Ve(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>At("",e,` -`)+Ve(["enum",t,Ve(n," "),oa(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>At("",e,` -`)+Ve([t,Ve(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>At("",e,` -`)+Ve(["input",t,Ve(n," "),oa(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>At("",e,` -`)+"directive @"+t+(SF(n)?At(`( -`,Zm(Ve(n,` +)`)),je([a,je(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+kt(" ",je(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>je(["...",kt("on ",e),je(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${kt("(",je(n,", "),")")} on ${t} ${kt("",je(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?wE(e):eU(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+je(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+je(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+kt("(",je(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>kt("",e,` +`)+je(["schema",je(t," "),zs(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>kt("",e,` +`)+je(["scalar",t,je(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>kt("",e,` +`)+je(["type",t,kt("implements ",je(n," & ")),je(r," "),zs(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>kt("",e,` +`)+t+(nU(n)?kt(`( +`,qE(je(n,` `)),` -)`):At("(",Ve(n,", "),")"))+(r?" repeatable":"")+" on "+Ve(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ve(["extend schema",Ve(e," "),oa(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ve(["extend scalar",e,Ve(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["extend type",e,At("implements ",Ve(t," & ")),Ve(n," "),oa(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["extend interface",e,At("implements ",Ve(t," & ")),Ve(n," "),oa(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ve(["extend union",e,Ve(t," "),At("= ",Ve(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ve(["extend enum",e,Ve(t," "),oa(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ve(["extend input",e,Ve(t," "),oa(n)]," ")}};function Ve(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function oa(e){return At(`{ -`,Zm(Ve(e,` +)`):kt("(",je(n,", "),")"))+": "+r+kt(" ",je(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>kt("",e,` +`)+je([t+": "+n,kt("= ",r),je(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>kt("",e,` +`)+je(["interface",t,kt("implements ",je(n," & ")),je(r," "),zs(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>kt("",e,` +`)+je(["union",t,je(n," "),kt("= ",je(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>kt("",e,` +`)+je(["enum",t,je(n," "),zs(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>kt("",e,` +`)+je([t,je(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>kt("",e,` +`)+je(["input",t,je(n," "),zs(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>kt("",e,` +`)+"directive @"+t+(nU(n)?kt(`( +`,qE(je(n,` `)),` -}`)}function At(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Zm(e){return At(" ",e.replace(/\n/g,` - `))}function SF(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}});var RI=w(AI=>{"use strict";m();T();N();Object.defineProperty(AI,"__esModule",{value:!0});AI.valueFromASTUntyped=bI;var u6=Hd(),_s=wt();function bI(e,t){switch(e.kind){case _s.Kind.NULL:return null;case _s.Kind.INT:return parseInt(e.value,10);case _s.Kind.FLOAT:return parseFloat(e.value);case _s.Kind.STRING:case _s.Kind.ENUM:case _s.Kind.BOOLEAN:return e.value;case _s.Kind.LIST:return e.values.map(n=>bI(n,t));case _s.Kind.OBJECT:return(0,u6.keyValMap)(e.fields,n=>n.name.value,n=>bI(n.value,t));case _s.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var Wd=w(tN=>{"use strict";m();T();N();Object.defineProperty(tN,"__esModule",{value:!0});tN.assertEnumValueName=c6;tN.assertName=AF;var DF=qr(),eN=ze(),bF=jm();function AF(e){if(e!=null||(0,DF.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,DF.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new eN.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();N();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.GraphQLUnionType=Qe.GraphQLScalarType=Qe.GraphQLObjectType=Qe.GraphQLNonNull=Qe.GraphQLList=Qe.GraphQLInterfaceType=Qe.GraphQLInputObjectType=Qe.GraphQLEnumType=void 0;Qe.argsToArgsConfig=VF;Qe.assertAbstractType=R6;Qe.assertCompositeType=A6;Qe.assertEnumType=g6;Qe.assertInputObjectType=_6;Qe.assertInputType=S6;Qe.assertInterfaceType=y6;Qe.assertLeafType=b6;Qe.assertListType=v6;Qe.assertNamedType=L6;Qe.assertNonNullType=O6;Qe.assertNullableType=F6;Qe.assertObjectType=h6;Qe.assertOutputType=D6;Qe.assertScalarType=E6;Qe.assertType=T6;Qe.assertUnionType=I6;Qe.assertWrappingType=P6;Qe.defineArguments=xF;Qe.getNamedType=C6;Qe.getNullableType=w6;Qe.isAbstractType=BF;Qe.isCompositeType=CF;Qe.isEnumType=sc;Qe.isInputObjectType=Zd;Qe.isInputType=PI;Qe.isInterfaceType=ic;Qe.isLeafType=LF;Qe.isListType=pN;Qe.isNamedType=UF;Qe.isNonNullType=mu;Qe.isNullableType=wI;Qe.isObjectType=hl;Qe.isOutputType=FI;Qe.isRequiredArgument=B6;Qe.isRequiredInputField=M6;Qe.isScalarType=rc;Qe.isType=fN;Qe.isUnionType=ac;Qe.isWrappingType=ef;Qe.resolveObjMapThunk=CI;Qe.resolveReadonlyArrayThunk=LI;var pr=qr(),l6=cu(),RF=gF(),Nn=Wt(),pu=Qd(),d6=Ba(),f6=lu(),wF=Hd(),dN=hI(),p6=du(),ka=Wm(),Xd=ze(),m6=wt(),PF=pi(),N6=RI(),Ma=Wd();function fN(e){return rc(e)||hl(e)||ic(e)||ac(e)||sc(e)||Zd(e)||pN(e)||mu(e)}function T6(e){if(!fN(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL type.`);return e}function rc(e){return(0,pu.instanceOf)(e,aN)}function E6(e){if(!rc(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Scalar type.`);return e}function hl(e){return(0,pu.instanceOf)(e,sN)}function h6(e){if(!hl(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Object type.`);return e}function ic(e){return(0,pu.instanceOf)(e,oN)}function y6(e){if(!ic(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Interface type.`);return e}function ac(e){return(0,pu.instanceOf)(e,uN)}function I6(e){if(!ac(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Union type.`);return e}function sc(e){return(0,pu.instanceOf)(e,cN)}function g6(e){if(!sc(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Enum type.`);return e}function Zd(e){return(0,pu.instanceOf)(e,lN)}function _6(e){if(!Zd(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Input Object type.`);return e}function pN(e){return(0,pu.instanceOf)(e,rN)}function v6(e){if(!pN(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL List type.`);return e}function mu(e){return(0,pu.instanceOf)(e,iN)}function O6(e){if(!mu(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function PI(e){return rc(e)||sc(e)||Zd(e)||ef(e)&&PI(e.ofType)}function S6(e){if(!PI(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL input type.`);return e}function FI(e){return rc(e)||hl(e)||ic(e)||ac(e)||sc(e)||ef(e)&&FI(e.ofType)}function D6(e){if(!FI(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL output type.`);return e}function LF(e){return rc(e)||sc(e)}function b6(e){if(!LF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL leaf type.`);return e}function CF(e){return hl(e)||ic(e)||ac(e)}function A6(e){if(!CF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL composite type.`);return e}function BF(e){return ic(e)||ac(e)}function R6(e){if(!BF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL abstract type.`);return e}var rN=class{constructor(t){fN(t)||(0,pr.devAssert)(!1,`Expected ${(0,Nn.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};Qe.GraphQLList=rN;var iN=class{constructor(t){wI(t)||(0,pr.devAssert)(!1,`Expected ${(0,Nn.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Qe.GraphQLNonNull=iN;function ef(e){return pN(e)||mu(e)}function P6(e){if(!ef(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL wrapping type.`);return e}function wI(e){return fN(e)&&!mu(e)}function F6(e){if(!wI(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL nullable type.`);return e}function w6(e){if(e)return mu(e)?e.ofType:e}function UF(e){return rc(e)||hl(e)||ic(e)||ac(e)||sc(e)||Zd(e)}function L6(e){if(!UF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL named type.`);return e}function C6(e){if(e){let t=e;for(;ef(t);)t=t.ofType;return t}}function LI(e){return typeof e=="function"?e():e}function CI(e){return typeof e=="function"?e():e}var aN=class{constructor(t){var n,r,i,a;let o=(n=t.parseValue)!==null&&n!==void 0?n:RF.identityFunc;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:RF.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(c,l)=>o((0,N6.valueFromASTUntyped)(c,l)),this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(a=t.extensionASTNodes)!==null&&a!==void 0?a:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,pr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Nn.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,pr.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,pr.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Qe.GraphQLScalarType=aN;var sN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>MF(t),this._interfaces=()=>kF(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,pr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Nn.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:qF(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Qe.GraphQLObjectType=sN;function kF(e){var t;let n=LI((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,pr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function MF(e){let t=CI(e.fields);return El(t)||(0,pr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,dN.mapValue)(t,(n,r)=>{var i;El(n)||(0,pr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,pr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,Nn.inspect)(n.resolve)}.`);let a=(i=n.args)!==null&&i!==void 0?i:{};return El(a)||(0,pr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Ma.assertName)(r),description:n.description,type:n.type,args:xF(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,ka.toObjMap)(n.extensions),astNode:n.astNode}})}function xF(e){return Object.entries(e).map(([t,n])=>({name:(0,Ma.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ka.toObjMap)(n.extensions),astNode:n.astNode}))}function El(e){return(0,d6.isObjectLike)(e)&&!Array.isArray(e)}function qF(e){return(0,dN.mapValue)(e,t=>({description:t.description,type:t.type,args:VF(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function VF(e){return(0,wF.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function B6(e){return mu(e.type)&&e.defaultValue===void 0}var oN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=MF.bind(void 0,t),this._interfaces=kF.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,pr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Nn.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:qF(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Qe.GraphQLInterfaceType=oN;var uN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=U6.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,pr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Nn.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Qe.GraphQLUnionType=uN;function U6(e){let t=LI(e.types);return Array.isArray(t)||(0,pr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var cN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:FF(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=FF(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,f6.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new Xd.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Nn.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,Nn.inspect)(t);throw new Xd.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+nN(this,r))}let n=this.getValue(t);if(n==null)throw new Xd.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+nN(this,t));return n.value}parseLiteral(t,n){if(t.kind!==m6.Kind.ENUM){let i=(0,PF.print)(t);throw new Xd.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+nN(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,PF.print)(t);throw new Xd.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+nN(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,wF.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Qe.GraphQLEnumType=cN;function nN(e,t){let n=e.getValues().map(i=>i.name),r=(0,p6.suggestionList)(t,n);return(0,l6.didYouMean)("the enum value",r)}function FF(e,t){return El(t)||(0,pr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(El(r)||(0,pr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,Nn.inspect)(r)}.`),{name:(0,Ma.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,ka.toObjMap)(r.extensions),astNode:r.astNode}))}var lN=class{constructor(t){var n,r;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=k6.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,dN.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};Qe.GraphQLInputObjectType=lN;function k6(e){let t=CI(e.fields);return El(t)||(0,pr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,dN.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,pr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Ma.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ka.toObjMap)(n.extensions),astNode:n.astNode}))}function M6(e){return mu(e.type)&&e.defaultValue===void 0}});var nf=w(tf=>{"use strict";m();T();N();Object.defineProperty(tf,"__esModule",{value:!0});tf.doTypesOverlap=x6;tf.isEqualType=BI;tf.isTypeSubTypeOf=mN;var Ar=Lt();function BI(e,t){return e===t?!0:(0,Ar.isNonNullType)(e)&&(0,Ar.isNonNullType)(t)||(0,Ar.isListType)(e)&&(0,Ar.isListType)(t)?BI(e.ofType,t.ofType):!1}function mN(e,t,n){return t===n?!0:(0,Ar.isNonNullType)(n)?(0,Ar.isNonNullType)(t)?mN(e,t.ofType,n.ofType):!1:(0,Ar.isNonNullType)(t)?mN(e,t.ofType,n):(0,Ar.isListType)(n)?(0,Ar.isListType)(t)?mN(e,t.ofType,n.ofType):!1:(0,Ar.isListType)(t)?!1:(0,Ar.isAbstractType)(n)&&((0,Ar.isInterfaceType)(t)||(0,Ar.isObjectType)(t))&&e.isSubType(n,t)}function x6(e,t,n){return t===n?!0:(0,Ar.isAbstractType)(t)?(0,Ar.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,Ar.isAbstractType)(n)?e.isSubType(n,t):!1}});var xa=w(ir=>{"use strict";m();T();N();Object.defineProperty(ir,"__esModule",{value:!0});ir.GraphQLString=ir.GraphQLInt=ir.GraphQLID=ir.GraphQLFloat=ir.GraphQLBoolean=ir.GRAPHQL_MIN_INT=ir.GRAPHQL_MAX_INT=void 0;ir.isSpecifiedScalarType=q6;ir.specifiedScalarTypes=void 0;var ua=Wt(),jF=Ba(),mr=ze(),oc=wt(),rf=pi(),af=Lt(),NN=2147483647;ir.GRAPHQL_MAX_INT=NN;var TN=-2147483648;ir.GRAPHQL_MIN_INT=TN;var KF=new af.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=sf(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new mr.GraphQLError(`Int cannot represent non-integer value: ${(0,ua.inspect)(t)}`);if(n>NN||nNN||eNN||te.name===t)}function sf(e){if((0,jF.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,jF.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Wr=w(jn=>{"use strict";m();T();N();Object.defineProperty(jn,"__esModule",{value:!0});jn.GraphQLSpecifiedByDirective=jn.GraphQLSkipDirective=jn.GraphQLOneOfDirective=jn.GraphQLIncludeDirective=jn.GraphQLDirective=jn.GraphQLDeprecatedDirective=jn.DEFAULT_DEPRECATION_REASON=void 0;jn.assertDirective=Q6;jn.isDirective=zF;jn.isSpecifiedDirective=Y6;jn.specifiedDirectives=void 0;var HF=qr(),V6=Wt(),j6=Qd(),K6=Ba(),G6=Wm(),Pi=pl(),$6=Wd(),of=Lt(),EN=xa();function zF(e){return(0,j6.instanceOf)(e,vs)}function Q6(e){if(!zF(e))throw new Error(`Expected ${(0,V6.inspect)(e)} to be a GraphQL directive.`);return e}var vs=class{constructor(t){var n,r;this.name=(0,$6.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,G6.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,HF.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,K6.isObjectLike)(i)&&!Array.isArray(i)||(0,HF.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,of.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,of.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};jn.GraphQLDirective=vs;var WF=new vs({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Pi.DirectiveLocation.FIELD,Pi.DirectiveLocation.FRAGMENT_SPREAD,Pi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new of.GraphQLNonNull(EN.GraphQLBoolean),description:"Included when true."}}});jn.GraphQLIncludeDirective=WF;var XF=new vs({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Pi.DirectiveLocation.FIELD,Pi.DirectiveLocation.FRAGMENT_SPREAD,Pi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new of.GraphQLNonNull(EN.GraphQLBoolean),description:"Skipped when true."}}});jn.GraphQLSkipDirective=XF;var ZF="No longer supported";jn.DEFAULT_DEPRECATION_REASON=ZF;var ew=new vs({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Pi.DirectiveLocation.FIELD_DEFINITION,Pi.DirectiveLocation.ARGUMENT_DEFINITION,Pi.DirectiveLocation.INPUT_FIELD_DEFINITION,Pi.DirectiveLocation.ENUM_VALUE],args:{reason:{type:EN.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:ZF}}});jn.GraphQLDeprecatedDirective=ew;var tw=new vs({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Pi.DirectiveLocation.SCALAR],args:{url:{type:new of.GraphQLNonNull(EN.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});jn.GraphQLSpecifiedByDirective=tw;var nw=new vs({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Pi.DirectiveLocation.INPUT_OBJECT],args:{}});jn.GraphQLOneOfDirective=nw;var rw=Object.freeze([WF,XF,ew,tw,nw]);jn.specifiedDirectives=rw;function Y6(e){return rw.some(({name:t})=>t===e.name)}});var hN=w(UI=>{"use strict";m();T();N();Object.defineProperty(UI,"__esModule",{value:!0});UI.isIterableObject=J6;function J6(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var lf=w(kI=>{"use strict";m();T();N();Object.defineProperty(kI,"__esModule",{value:!0});kI.astFromValue=cf;var iw=Wt(),H6=br(),z6=hN(),W6=Ba(),Fi=wt(),uf=Lt(),X6=xa();function cf(e,t){if((0,uf.isNonNullType)(t)){let n=cf(e,t.ofType);return(n==null?void 0:n.kind)===Fi.Kind.NULL?null:n}if(e===null)return{kind:Fi.Kind.NULL};if(e===void 0)return null;if((0,uf.isListType)(t)){let n=t.ofType;if((0,z6.isIterableObject)(e)){let r=[];for(let i of e){let a=cf(i,n);a!=null&&r.push(a)}return{kind:Fi.Kind.LIST,values:r}}return cf(e,n)}if((0,uf.isInputObjectType)(t)){if(!(0,W6.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=cf(e[r.name],r.type);i&&n.push({kind:Fi.Kind.OBJECT_FIELD,name:{kind:Fi.Kind.NAME,value:r.name},value:i})}return{kind:Fi.Kind.OBJECT,fields:n}}if((0,uf.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Fi.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return aw.test(r)?{kind:Fi.Kind.INT,value:r}:{kind:Fi.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,uf.isEnumType)(t)?{kind:Fi.Kind.ENUM,value:n}:t===X6.GraphQLID&&aw.test(n)?{kind:Fi.Kind.INT,value:n}:{kind:Fi.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,iw.inspect)(n)}.`)}(0,H6.invariant)(!1,"Unexpected input type: "+(0,iw.inspect)(t))}var aw=/^-?(?:0|[1-9][0-9]*)$/});var Li=w(Xt=>{"use strict";m();T();N();Object.defineProperty(Xt,"__esModule",{value:!0});Xt.introspectionTypes=Xt.__TypeKind=Xt.__Type=Xt.__Schema=Xt.__InputValue=Xt.__Field=Xt.__EnumValue=Xt.__DirectiveLocation=Xt.__Directive=Xt.TypeNameMetaFieldDef=Xt.TypeMetaFieldDef=Xt.TypeKind=Xt.SchemaMetaFieldDef=void 0;Xt.isIntrospectionType=sz;var Z6=Wt(),ez=br(),ar=pl(),tz=pi(),nz=lf(),ke=Lt(),ln=xa(),MI=new ke.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:ln.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(wi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ke.GraphQLNonNull(wi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:wi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:wi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(xI))),resolve:e=>e.getDirectives()}})});Xt.__Schema=MI;var xI=new ke.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +)`):kt("(",je(n,", "),")"))+(r?" repeatable":"")+" on "+je(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>je(["extend schema",je(e," "),zs(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>je(["extend scalar",e,je(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je(["extend type",e,kt("implements ",je(t," & ")),je(n," "),zs(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je(["extend interface",e,kt("implements ",je(t," & ")),je(n," "),zs(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>je(["extend union",e,je(t," "),kt("= ",je(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>je(["extend enum",e,je(t," "),zs(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>je(["extend input",e,je(t," "),zs(n)]," ")}}});function dl(e,t){switch(e.kind){case F.NULL:return null;case F.INT:return parseInt(e.value,10);case F.FLOAT:return parseFloat(e.value);case F.STRING:case F.ENUM:case F.BOOLEAN:return e.value;case F.LIST:return e.values.map(n=>dl(n,t));case F.OBJECT:return hs(e.fields,n=>n.name.value,n=>dl(n.value,t));case F.VARIABLE:return t==null?void 0:t[e.name.value]}}var dv=ae(()=>{"use strict";p();N();m();xp();$t()});function Ur(e){if(e!=null||tt(!1,"Must provide name."),typeof e=="string"||tt(!1,"Expected name to be a string."),e.length===0)throw new G("Expected name to be a non-empty string.");for(let t=1;t{"use strict";p();N();m();Ii();nt();FE()});function Nc(e){return Kn(e)||rt(e)||mt(e)||tn(e)||Gt(e)||Nt(e)||bt(e)||Ke(e)}function fv(e){if(!Nc(e))throw new Error(`Expected ${ne(e)} to be a GraphQL type.`);return e}function Kn(e){return gi(e,Yr)}function pv(e){if(!Kn(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Scalar type.`);return e}function rt(e){return gi(e,Nr)}function $p(e){if(!rt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Object type.`);return e}function mt(e){return gi(e,Zi)}function jp(e){if(!mt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Interface type.`);return e}function tn(e){return gi(e,es)}function mv(e){if(!tn(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Union type.`);return e}function Gt(e){return gi(e,si)}function Nv(e){if(!Gt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Enum type.`);return e}function Nt(e){return gi(e,ts)}function Tv(e){if(!Nt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Input Object type.`);return e}function bt(e){return gi(e,An)}function Ev(e){if(!bt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL List type.`);return e}function Ke(e){return gi(e,ct)}function hv(e){if(!Ke(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Non-Null type.`);return e}function sr(e){return Kn(e)||Gt(e)||Nt(e)||fl(e)&&sr(e.ofType)}function yv(e){if(!sr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL input type.`);return e}function ns(e){return Kn(e)||rt(e)||mt(e)||tn(e)||Gt(e)||fl(e)&&ns(e.ofType)}function Iv(e){if(!ns(e))throw new Error(`Expected ${ne(e)} to be a GraphQL output type.`);return e}function Dr(e){return Kn(e)||Gt(e)}function gv(e){if(!Dr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL leaf type.`);return e}function Si(e){return rt(e)||mt(e)||tn(e)}function _v(e){if(!Si(e))throw new Error(`Expected ${ne(e)} to be a GraphQL composite type.`);return e}function Jr(e){return mt(e)||tn(e)}function vv(e){if(!Jr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL abstract type.`);return e}function fl(e){return bt(e)||Ke(e)}function Sv(e){if(!fl(e))throw new Error(`Expected ${ne(e)} to be a GraphQL wrapping type.`);return e}function Kp(e){return Nc(e)&&!Ke(e)}function Gp(e){if(!Kp(e))throw new Error(`Expected ${ne(e)} to be a GraphQL nullable type.`);return e}function pl(e){if(e)return Ke(e)?e.ofType:e}function To(e){return Kn(e)||rt(e)||mt(e)||tn(e)||Gt(e)||Nt(e)}function Dv(e){if(!To(e))throw new Error(`Expected ${ne(e)} to be a GraphQL named type.`);return e}function kn(e){if(e){let t=e;for(;fl(t);)t=t.ofType;return t}}function Qp(e){return typeof e=="function"?e():e}function Yp(e){return typeof e=="function"?e():e}function iU(e){var t;let n=Qp((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||tt(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function sU(e){let t=Yp(e.fields);return Bd(t)||tt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Hs(t,(n,r)=>{var i;Bd(n)||tt(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||tt(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${ne(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return Bd(s)||tt(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:Ur(r),description:n.description,type:n.type,args:Ov(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:vi(n.extensions),astNode:n.astNode}})}function Ov(e){return Object.entries(e).map(([t,n])=>({name:Ur(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:vi(n.extensions),astNode:n.astNode}))}function Bd(e){return Xn(e)&&!Array.isArray(e)}function aU(e){return Hs(e,t=>({description:t.description,type:t.type,args:bv(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function bv(e){return hs(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function rs(e){return Ke(e.type)&&e.defaultValue===void 0}function P4(e){let t=Qp(e.types);return Array.isArray(t)||tt(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}function $E(e,t){let n=e.getValues().map(i=>i.name),r=_i(t,n);return ri("the enum value",r)}function rU(e,t){return Bd(t)||tt(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Bd(r)||tt(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${ne(r)}.`),{name:Vp(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:vi(r.extensions),astNode:r.astNode}))}function C4(e){let t=Yp(e.fields);return Bd(t)||tt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Hs(t,(n,r)=>(!("resolve"in n)||tt(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Ur(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:vi(n.extensions),astNode:n.astNode}))}function Eo(e){return Ke(e.type)&&e.defaultValue===void 0}var An,ct,Yr,Nr,Zi,es,si,ts,jt=ae(()=>{"use strict";p();N();m();Ii();dc();XC();an();Bp();Da();fc();xp();ov();pc();VE();nt();$t();Xi();dv();qp();An=class{constructor(t){Nc(t)||tt(!1,`Expected ${ne(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},ct=class{constructor(t){Kp(t)||tt(!1,`Expected ${ne(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Yr=class{constructor(t){var n,r,i,s;let a=(n=t.parseValue)!==null&&n!==void 0?n:av;this.name=Ur(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:av,this.parseValue=a,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>a(dl(u,l)),this.extensions=vi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||tt(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ne(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||tt(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||tt(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Nr=class{constructor(t){var n;this.name=Ur(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=vi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>sU(t),this._interfaces=()=>iU(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||tt(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ne(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:aU(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Zi=class{constructor(t){var n;this.name=Ur(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=vi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=sU.bind(void 0,t),this._interfaces=iU.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||tt(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:aU(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},es=class{constructor(t){var n;this.name=Ur(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=vi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=P4.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||tt(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};si=class{constructor(t){var n;this.name=Ur(t.name),this.description=t.description,this.extensions=vi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:rU(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=rU(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=ii(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new G(`Enum "${this.name}" cannot represent value: ${ne(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=ne(t);throw new G(`Enum "${this.name}" cannot represent non-string value: ${r}.`+$E(this,r))}let n=this.getValue(t);if(n==null)throw new G(`Value "${t}" does not exist in "${this.name}" enum.`+$E(this,t));return n.value}parseLiteral(t,n){if(t.kind!==F.ENUM){let i=Dt(t);throw new G(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+$E(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=Dt(t);throw new G(`Value "${i}" does not exist in "${this.name}" enum.`+$E(this,i),{nodes:t})}return r.value}toConfig(){let t=hs(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ts=class{constructor(t){var n,r;this.name=Ur(t.name),this.description=t.description,this.extensions=vi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=C4.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=Hs(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}});function ml(e,t){return e===t?!0:Ke(e)&&Ke(t)||bt(e)&&bt(t)?ml(e.ofType,t.ofType):!1}function Ws(e,t,n){return t===n?!0:Ke(n)?Ke(t)?Ws(e,t.ofType,n.ofType):!1:Ke(t)?Ws(e,t.ofType,n):bt(n)?bt(t)?Ws(e,t.ofType,n.ofType):!1:bt(t)?!1:Jr(n)&&(mt(t)||rt(t))&&e.isSubType(n,t)}function kd(e,t,n){return t===n?!0:Jr(t)?Jr(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):Jr(n)?e.isSubType(n,t):!1}var Jp=ae(()=>{"use strict";p();N();m();jt()});function Xs(e){return Aa.some(({name:t})=>e.name===t)}function Hp(e){if(Xn(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!Xn(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}var xd,Md,jE,KE,Rn,Br,Vd,Aa,Ra=ae(()=>{"use strict";p();N();m();an();Da();nt();$t();Xi();jt();xd=2147483647,Md=-2147483648,jE=new Yr({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=Hp(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new G(`Int cannot represent non-integer value: ${ne(t)}`);if(n>xd||nxd||exd||tt===e.name)}var kr,qd,$d,jd,Fa,Kd,Gd,ai,Ui=ae(()=>{"use strict";p();N();m();Ii();an();Bp();Da();VE();Fd();qp();jt();Ra();kr=class{constructor(t){var n,r;this.name=Ur(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=vi(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||tt(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};Xn(i)&&!Array.isArray(i)||tt(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=Ov(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:bv(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},qd=new kr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[ze.FIELD,ze.FRAGMENT_SPREAD,ze.INLINE_FRAGMENT],args:{if:{type:new ct(Br),description:"Included when true."}}}),$d=new kr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[ze.FIELD,ze.FRAGMENT_SPREAD,ze.INLINE_FRAGMENT],args:{if:{type:new ct(Br),description:"Skipped when true."}}}),jd="No longer supported",Fa=new kr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[ze.FIELD_DEFINITION,ze.ARGUMENT_DEFINITION,ze.INPUT_FIELD_DEFINITION,ze.ENUM_VALUE],args:{reason:{type:Rn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:jd}}}),Kd=new kr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[ze.SCALAR],args:{url:{type:new ct(Rn),description:"The URL that specifies the behavior of this scalar."}}}),Gd=new kr({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[ze.INPUT_OBJECT],args:{}}),ai=Object.freeze([qd,$d,Fa,Kd,Gd])});function Qd(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}var GE=ae(()=>{"use strict";p();N();m()});function Hr(e,t){if(Ke(t)){let n=Hr(e,t.ofType);return(n==null?void 0:n.kind)===F.NULL?null:n}if(e===null)return{kind:F.NULL};if(e===void 0)return null;if(bt(t)){let n=t.ofType;if(Qd(e)){let r=[];for(let i of e){let s=Hr(i,n);s!=null&&r.push(s)}return{kind:F.LIST,values:r}}return Hr(e,n)}if(Nt(t)){if(!Xn(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Hr(e[r.name],r.type);i&&n.push({kind:F.OBJECT_FIELD,name:{kind:F.NAME,value:r.name},value:i})}return{kind:F.OBJECT,fields:n}}if(Dr(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:F.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return oU.test(r)?{kind:F.INT,value:r}:{kind:F.FLOAT,value:r}}if(typeof n=="string")return Gt(t)?{kind:F.ENUM,value:n}:t===Vd&&oU.test(n)?{kind:F.INT,value:n}:{kind:F.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ne(n)}.`)}Bt(!1,"Unexpected input type: "+ne(t))}var oU,zp=ae(()=>{"use strict";p();N();m();an();ni();GE();Da();$t();jt();Ra();oU=/^-?(?:0|[1-9][0-9]*)$/});function oi(e){return wa.some(({name:t})=>e.name===t)}var Nl,Wp,Xp,Bi,Zp,Tl,em,nn,tm,ho,yo,Io,wa,Is=ae(()=>{"use strict";p();N();m();an();ni();Fd();Xi();zp();jt();Ra();Nl=new Nr({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Rn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ct(new An(new ct(Bi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ct(Bi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Bi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Bi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ct(new An(new ct(Wp))),resolve:e=>e.getDirectives()}})}),Wp=new Nr({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. -In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new ke.GraphQLNonNull(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new ke.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(qI))),resolve:e=>e.locations},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(df))),args:{includeDeprecated:{type:ln.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});Xt.__Directive=xI;var qI=new ke.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:ar.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ar.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ar.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ar.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ar.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ar.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ar.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ar.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ar.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ar.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ar.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ar.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ar.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ar.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ar.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ar.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ar.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ar.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ar.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Xt.__DirectiveLocation=qI;var wi=new ke.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ke.GraphQLNonNull(KI),resolve(e){if((0,ke.isScalarType)(e))return sr.SCALAR;if((0,ke.isObjectType)(e))return sr.OBJECT;if((0,ke.isInterfaceType)(e))return sr.INTERFACE;if((0,ke.isUnionType)(e))return sr.UNION;if((0,ke.isEnumType)(e))return sr.ENUM;if((0,ke.isInputObjectType)(e))return sr.INPUT_OBJECT;if((0,ke.isListType)(e))return sr.LIST;if((0,ke.isNonNullType)(e))return sr.NON_NULL;(0,ez.invariant)(!1,`Unexpected type: "${(0,Z6.inspect)(e)}".`)}},name:{type:ln.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:ln.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:ln.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ke.GraphQLList(new ke.GraphQLNonNull(VI)),args:{includeDeprecated:{type:ln.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isObjectType)(e)||(0,ke.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new ke.GraphQLList(new ke.GraphQLNonNull(wi)),resolve(e){if((0,ke.isObjectType)(e)||(0,ke.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new ke.GraphQLList(new ke.GraphQLNonNull(wi)),resolve(e,t,n,{schema:r}){if((0,ke.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new ke.GraphQLList(new ke.GraphQLNonNull(jI)),args:{includeDeprecated:{type:ln.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new ke.GraphQLList(new ke.GraphQLNonNull(df)),args:{includeDeprecated:{type:ln.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:wi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:ln.GraphQLBoolean,resolve:e=>{if((0,ke.isInputObjectType)(e))return e.isOneOf}}})});Xt.__Type=wi;var VI=new ke.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ke.GraphQLNonNull(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(df))),args:{includeDeprecated:{type:ln.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new ke.GraphQLNonNull(wi),resolve:e=>e.type},isDeprecated:{type:new ke.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:ln.GraphQLString,resolve:e=>e.deprecationReason}})});Xt.__Field=VI;var df=new ke.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ke.GraphQLNonNull(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},type:{type:new ke.GraphQLNonNull(wi),resolve:e=>e.type},defaultValue:{type:ln.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,nz.astFromValue)(n,t);return r?(0,tz.print)(r):null}},isDeprecated:{type:new ke.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:ln.GraphQLString,resolve:e=>e.deprecationReason}})});Xt.__InputValue=df;var jI=new ke.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ke.GraphQLNonNull(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new ke.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:ln.GraphQLString,resolve:e=>e.deprecationReason}})});Xt.__EnumValue=jI;var sr;Xt.TypeKind=sr;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(sr||(Xt.TypeKind=sr={}));var KI=new ke.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:sr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:sr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:sr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:sr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:sr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:sr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:sr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:sr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Xt.__TypeKind=KI;var rz={name:"__schema",type:new ke.GraphQLNonNull(MI),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Xt.SchemaMetaFieldDef=rz;var iz={name:"__type",type:wi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ke.GraphQLNonNull(ln.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Xt.TypeMetaFieldDef=iz;var az={name:"__typename",type:new ke.GraphQLNonNull(ln.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};Xt.TypeNameMetaFieldDef=az;var sw=Object.freeze([MI,xI,qI,wi,VI,df,jI,KI]);Xt.introspectionTypes=sw;function sz(e){return sw.some(({name:t})=>e.name===t)}});var uc=w(yl=>{"use strict";m();T();N();Object.defineProperty(yl,"__esModule",{value:!0});yl.GraphQLSchema=void 0;yl.assertSchema=dz;yl.isSchema=uw;var yN=qr(),$I=Wt(),oz=Qd(),uz=Ba(),cz=Wm(),GI=Ua(),ca=Lt(),ow=Wr(),lz=Li();function uw(e){return(0,oz.instanceOf)(e,IN)}function dz(e){if(!uw(e))throw new Error(`Expected ${(0,$I.inspect)(e)} to be a GraphQL schema.`);return e}var IN=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,uz.isObjectLike)(t)||(0,yN.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,yN.devAssert)(!1,`"types" must be Array if provided but got: ${(0,$I.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,yN.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,$I.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,cz.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:ow.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let a of t.types)i.delete(a),la(a,i);this._queryType!=null&&la(this._queryType,i),this._mutationType!=null&&la(this._mutationType,i),this._subscriptionType!=null&&la(this._subscriptionType,i);for(let a of this._directives)if((0,ow.isDirective)(a))for(let o of a.args)la(o.type,i);la(lz.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let a of i){if(a==null)continue;let o=a.name;if(o||(0,yN.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=a,(0,ca.isInterfaceType)(a)){for(let c of a.getInterfaces())if((0,ca.isInterfaceType)(c)){let l=this._implementationsMap[c.name];l===void 0&&(l=this._implementationsMap[c.name]={objects:[],interfaces:[]}),l.interfaces.push(a)}}else if((0,ca.isObjectType)(a)){for(let c of a.getInterfaces())if((0,ca.isInterfaceType)(c)){let l=this._implementationsMap[c.name];l===void 0&&(l=this._implementationsMap[c.name]={objects:[],interfaces:[]}),l.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case GI.OperationTypeNode.QUERY:return this.getQueryType();case GI.OperationTypeNode.MUTATION:return this.getMutationType();case GI.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,ca.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),(0,ca.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let a of i.objects)r[a.name]=!0;for(let a of i.interfaces)r[a.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};yl.GraphQLSchema=IN;function la(e,t){let n=(0,ca.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,ca.isUnionType)(n))for(let r of n.getTypes())la(r,t);else if((0,ca.isObjectType)(n)||(0,ca.isInterfaceType)(n)){for(let r of n.getInterfaces())la(r,t);for(let r of Object.values(n.getFields())){la(r.type,t);for(let i of r.args)la(i.type,t)}}else if((0,ca.isInputObjectType)(n))for(let r of Object.values(n.getFields()))la(r.type,t)}return t}});var pf=w(gN=>{"use strict";m();T();N();Object.defineProperty(gN,"__esModule",{value:!0});gN.assertValidSchema=Nz;gN.validateSchema=mw;var Rr=Wt(),fz=ze(),QI=Ua(),cw=nf(),Bn=Lt(),pw=Wr(),pz=Li(),mz=uc();function mw(e){if((0,mz.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new JI(e);Tz(t),Ez(t),hz(t);let n=t.getErrors();return e.__validationErrors=n,n}function Nz(e){let t=mw(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new ct(Rn),resolve:e=>e.name},description:{type:Rn,resolve:e=>e.description},isRepeatable:{type:new ct(Br),resolve:e=>e.isRepeatable},locations:{type:new ct(new An(new ct(Xp))),resolve:e=>e.locations},args:{type:new ct(new An(new ct(Tl))),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),Xp=new si({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:ze.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ze.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ze.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ze.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ze.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ze.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ze.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ze.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ze.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ze.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ze.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ze.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ze.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ze.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ze.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ze.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ze.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ze.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ze.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Bi=new Nr({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ct(tm),resolve(e){if(Kn(e))return nn.SCALAR;if(rt(e))return nn.OBJECT;if(mt(e))return nn.INTERFACE;if(tn(e))return nn.UNION;if(Gt(e))return nn.ENUM;if(Nt(e))return nn.INPUT_OBJECT;if(bt(e))return nn.LIST;if(Ke(e))return nn.NON_NULL;Bt(!1,`Unexpected type: "${ne(e)}".`)}},name:{type:Rn,resolve:e=>"name"in e?e.name:void 0},description:{type:Rn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Rn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new An(new ct(Zp)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(rt(e)||mt(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new An(new ct(Bi)),resolve(e){if(rt(e)||mt(e))return e.getInterfaces()}},possibleTypes:{type:new An(new ct(Bi)),resolve(e,t,n,{schema:r}){if(Jr(e))return r.getPossibleTypes(e)}},enumValues:{type:new An(new ct(em)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Gt(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new An(new ct(Tl)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Nt(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Bi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Br,resolve:e=>{if(Nt(e))return e.isOneOf}}})}),Zp=new Nr({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ct(Rn),resolve:e=>e.name},description:{type:Rn,resolve:e=>e.description},args:{type:new ct(new An(new ct(Tl))),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new ct(Bi),resolve:e=>e.type},isDeprecated:{type:new ct(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Rn,resolve:e=>e.deprecationReason}})}),Tl=new Nr({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ct(Rn),resolve:e=>e.name},description:{type:Rn,resolve:e=>e.description},type:{type:new ct(Bi),resolve:e=>e.type},defaultValue:{type:Rn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=Hr(n,t);return r?Dt(r):null}},isDeprecated:{type:new ct(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Rn,resolve:e=>e.deprecationReason}})}),em=new Nr({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ct(Rn),resolve:e=>e.name},description:{type:Rn,resolve:e=>e.description},isDeprecated:{type:new ct(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Rn,resolve:e=>e.deprecationReason}})});(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(nn||(nn={}));tm=new si({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:nn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:nn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:nn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:nn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:nn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:nn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:nn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:nn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ho={name:"__schema",type:new ct(Nl),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},yo={name:"__type",type:Bi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ct(Rn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Io={name:"__typename",type:new ct(Rn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},wa=Object.freeze([Nl,Wp,Xp,Bi,Zp,Tl,em,tm])});function QE(e){return gi(e,ki)}function El(e){if(!QE(e))throw new Error(`Expected ${ne(e)} to be a GraphQL schema.`);return e}function Zs(e,t){let n=kn(e);if(!t.has(n)){if(t.add(n),tn(n))for(let r of n.getTypes())Zs(r,t);else if(rt(n)||mt(n)){for(let r of n.getInterfaces())Zs(r,t);for(let r of Object.values(n.getFields())){Zs(r.type,t);for(let i of r.args)Zs(i.type,t)}}else if(Nt(n))for(let r of Object.values(n.getFields()))Zs(r.type,t)}return t}var ki,hl=ae(()=>{"use strict";p();N();m();Ii();an();Bp();Da();VE();Oa();jt();Ui();Is();ki=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,Xn(t)||tt(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||tt(!1,`"types" must be Array if provided but got: ${ne(t.types)}.`),!t.directives||Array.isArray(t.directives)||tt(!1,`"directives" must be Array if provided but got: ${ne(t.directives)}.`),this.description=t.description,this.extensions=vi(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:ai;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),Zs(s,i);this._queryType!=null&&Zs(this._queryType,i),this._mutationType!=null&&Zs(this._mutationType,i),this._subscriptionType!=null&&Zs(this._subscriptionType,i);for(let s of this._directives)if(Tc(s))for(let a of s.args)Zs(a.type,i);Zs(Nl,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let a=s.name;if(a||tt(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[a]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${a}".`);if(this._typeMap[a]=s,mt(s)){for(let u of s.getInterfaces())if(mt(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(s)}}else if(rt(s)){for(let u of s.getInterfaces())if(mt(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case bn.QUERY:return this.getQueryType();case bn.MUTATION:return this.getMutationType();case bn.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return tn(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),tn(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}});function Yd(e){if(El(e),e.__validationErrors)return e.__validationErrors;let t=new Fv(e);U4(t),B4(t),k4(t);let n=t.getErrors();return e.__validationErrors=n,n}function Il(e){let t=Yd(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}var JI=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new fz.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function Tz(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Bn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,Rr.inspect)(n)}.`,(r=YI(t,QI.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,Bn.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,Rr.inspect)(i)}.`,(a=YI(t,QI.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,Bn.isObjectType)(o)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,Rr.inspect)(o)}.`,(c=YI(t,QI.OperationTypeNode.SUBSCRIPTION))!==null&&c!==void 0?c:o.astNode)}}function YI(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function Ez(e){for(let n of e.schema.getDirectives()){if(!(0,pw.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,Rr.inspect)(n)}.`,n==null?void 0:n.astNode);continue}cc(e,n);for(let r of n.args)if(cc(e,r),(0,Bn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,Rr.inspect)(r.type)}.`,r.astNode),(0,Bn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[HI(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function cc(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function hz(e){let t=Sz(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,Bn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,Rr.inspect)(r)}.`,r.astNode);continue}(0,pz.isIntrospectionType)(r)||cc(e,r),(0,Bn.isObjectType)(r)||(0,Bn.isInterfaceType)(r)?(lw(e,r),dw(e,r)):(0,Bn.isUnionType)(r)?gz(e,r):(0,Bn.isEnumType)(r)?_z(e,r):(0,Bn.isInputObjectType)(r)&&(vz(e,r),t(r))}}function lw(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(cc(e,o),!(0,Bn.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,Rr.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let c of o.args){let l=c.name;if(cc(e,c),!(0,Bn.isInputType)(c.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,Rr.inspect)(c.type)}.`,(i=c.astNode)===null||i===void 0?void 0:i.type)}if((0,Bn.isRequiredArgument)(c)&&c.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[HI(c.astNode),(a=c.astNode)===null||a===void 0?void 0:a.type])}}}}function dw(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,Bn.isInterfaceType)(r)){e.reportError(`Type ${(0,Rr.inspect)(t)} must only implement Interface types, it cannot implement ${(0,Rr.inspect)(r)}.`,ff(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,ff(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,ff(t,r));continue}n[r.name]=!0,Iz(e,t,r),yz(e,t,r)}}function yz(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,cw.isTypeSubTypeOf)(e.schema,p.type,l.type)){var i,a;e.reportError(`Interface field ${n.name}.${d} expects type ${(0,Rr.inspect)(l.type)} but ${t.name}.${d} is type ${(0,Rr.inspect)(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=p.astNode)===null||a===void 0?void 0:a.type])}for(let E of l.args){let I=E.name,v=p.args.find(A=>A.name===I);if(!v){e.reportError(`Interface field argument ${n.name}.${d}(${I}:) expected but ${t.name}.${d} does not provide it.`,[E.astNode,p.astNode]);continue}if(!(0,cw.isEqualType)(E.type,v.type)){var o,c;e.reportError(`Interface field argument ${n.name}.${d}(${I}:) expects type ${(0,Rr.inspect)(E.type)} but ${t.name}.${d}(${I}:) is type ${(0,Rr.inspect)(v.type)}.`,[(o=E.astNode)===null||o===void 0?void 0:o.type,(c=v.astNode)===null||c===void 0?void 0:c.type])}}for(let E of p.args){let I=E.name;!l.args.find(A=>A.name===I)&&(0,Bn.isRequiredArgument)(E)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${I} that is missing from the Interface field ${n.name}.${d}.`,[E.astNode,l.astNode])}}}function Iz(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...ff(n,i),...ff(t,n)])}function gz(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,fw(t,i.name));continue}r[i.name]=!0,(0,Bn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,Rr.inspect)(i)}.`,fw(t,String(i)))}}function _z(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)cc(e,r)}function vz(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of n){if(cc(e,a),!(0,Bn.isInputType)(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,Rr.inspect)(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if((0,Bn.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[HI(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&Oz(t,a,e)}}function Oz(e,t,n){if((0,Bn.isNonNullType)(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function Sz(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;let o=Object.values(a.getFields());for(let c of o)if((0,Bn.isNonNullType)(c.type)&&(0,Bn.isInputObjectType)(c.type.ofType)){let l=c.type.ofType,d=r[l.name];if(n.push(c),d===void 0)i(l);else{let p=n.slice(d),E=p.map(I=>I.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${E}".`,p.map(I=>I.astNode))}n.pop()}r[a.name]=void 0}}function ff(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.interfaces)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t.name)}function fw(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.types)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t)}function HI(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===pw.GraphQLDeprecatedDirective.name)}});var qa=w(XI=>{"use strict";m();T();N();Object.defineProperty(XI,"__esModule",{value:!0});XI.typeFromAST=WI;var zI=wt(),Nw=Lt();function WI(e,t){switch(t.kind){case zI.Kind.LIST_TYPE:{let n=WI(e,t.type);return n&&new Nw.GraphQLList(n)}case zI.Kind.NON_NULL_TYPE:{let n=WI(e,t.type);return n&&new Nw.GraphQLNonNull(n)}case zI.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var _N=w(mf=>{"use strict";m();T();N();Object.defineProperty(mf,"__esModule",{value:!0});mf.TypeInfo=void 0;mf.visitWithTypeInfo=Az;var Dz=Ua(),Un=wt(),Tw=nc(),kn=Lt(),Il=Li(),Ew=qa(),ZI=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:bz,n&&((0,kn.isInputType)(n)&&this._inputTypeStack.push(n),(0,kn.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,kn.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case Un.Kind.SELECTION_SET:{let i=(0,kn.getNamedType)(this.getType());this._parentTypeStack.push((0,kn.isCompositeType)(i)?i:void 0);break}case Un.Kind.FIELD:{let i=this.getParentType(),a,o;i&&(a=this._getFieldDef(n,i,t),a&&(o=a.type)),this._fieldDefStack.push(a),this._typeStack.push((0,kn.isOutputType)(o)?o:void 0);break}case Un.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Un.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,kn.isObjectType)(i)?i:void 0);break}case Un.Kind.INLINE_FRAGMENT:case Un.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,Ew.typeFromAST)(n,i):(0,kn.getNamedType)(this.getType());this._typeStack.push((0,kn.isOutputType)(a)?a:void 0);break}case Un.Kind.VARIABLE_DEFINITION:{let i=(0,Ew.typeFromAST)(n,t.type);this._inputTypeStack.push((0,kn.isInputType)(i)?i:void 0);break}case Un.Kind.ARGUMENT:{var r;let i,a,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(c=>c.name===t.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,kn.isInputType)(a)?a:void 0);break}case Un.Kind.LIST:{let i=(0,kn.getNullableType)(this.getInputType()),a=(0,kn.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,kn.isInputType)(a)?a:void 0);break}case Un.Kind.OBJECT_FIELD:{let i=(0,kn.getNamedType)(this.getInputType()),a,o;(0,kn.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,kn.isInputType)(a)?a:void 0);break}case Un.Kind.ENUM:{let i=(0,kn.getNamedType)(this.getInputType()),a;(0,kn.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case Un.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Un.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Un.Kind.DIRECTIVE:this._directive=null;break;case Un.Kind.OPERATION_DEFINITION:case Un.Kind.INLINE_FRAGMENT:case Un.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Un.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Un.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Un.Kind.LIST:case Un.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Un.Kind.ENUM:this._enumValue=null;break;default:}}};mf.TypeInfo=ZI;function bz(e,t,n){let r=n.name.value;if(r===Il.SchemaMetaFieldDef.name&&e.getQueryType()===t)return Il.SchemaMetaFieldDef;if(r===Il.TypeMetaFieldDef.name&&e.getQueryType()===t)return Il.TypeMetaFieldDef;if(r===Il.TypeNameMetaFieldDef.name&&(0,kn.isCompositeType)(t))return Il.TypeNameMetaFieldDef;if((0,kn.isObjectType)(t)||(0,kn.isInterfaceType)(t))return t.getFields()[r]}function Az(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,Tw.getEnterLeaveForKind)(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),(0,Dz.isNode)(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=(0,Tw.getEnterLeaveForKind)(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}});var lc=w(Ci=>{"use strict";m();T();N();Object.defineProperty(Ci,"__esModule",{value:!0});Ci.isConstValueNode=eg;Ci.isDefinitionNode=Rz;Ci.isExecutableDefinitionNode=hw;Ci.isSelectionNode=Pz;Ci.isTypeDefinitionNode=gw;Ci.isTypeExtensionNode=vw;Ci.isTypeNode=Fz;Ci.isTypeSystemDefinitionNode=Iw;Ci.isTypeSystemExtensionNode=_w;Ci.isValueNode=yw;var Ct=wt();function Rz(e){return hw(e)||Iw(e)||_w(e)}function hw(e){return e.kind===Ct.Kind.OPERATION_DEFINITION||e.kind===Ct.Kind.FRAGMENT_DEFINITION}function Pz(e){return e.kind===Ct.Kind.FIELD||e.kind===Ct.Kind.FRAGMENT_SPREAD||e.kind===Ct.Kind.INLINE_FRAGMENT}function yw(e){return e.kind===Ct.Kind.VARIABLE||e.kind===Ct.Kind.INT||e.kind===Ct.Kind.FLOAT||e.kind===Ct.Kind.STRING||e.kind===Ct.Kind.BOOLEAN||e.kind===Ct.Kind.NULL||e.kind===Ct.Kind.ENUM||e.kind===Ct.Kind.LIST||e.kind===Ct.Kind.OBJECT}function eg(e){return yw(e)&&(e.kind===Ct.Kind.LIST?e.values.some(eg):e.kind===Ct.Kind.OBJECT?e.fields.some(t=>eg(t.value)):e.kind!==Ct.Kind.VARIABLE)}function Fz(e){return e.kind===Ct.Kind.NAMED_TYPE||e.kind===Ct.Kind.LIST_TYPE||e.kind===Ct.Kind.NON_NULL_TYPE}function Iw(e){return e.kind===Ct.Kind.SCHEMA_DEFINITION||gw(e)||e.kind===Ct.Kind.DIRECTIVE_DEFINITION}function gw(e){return e.kind===Ct.Kind.SCALAR_TYPE_DEFINITION||e.kind===Ct.Kind.OBJECT_TYPE_DEFINITION||e.kind===Ct.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Ct.Kind.UNION_TYPE_DEFINITION||e.kind===Ct.Kind.ENUM_TYPE_DEFINITION||e.kind===Ct.Kind.INPUT_OBJECT_TYPE_DEFINITION}function _w(e){return e.kind===Ct.Kind.SCHEMA_EXTENSION||vw(e)}function vw(e){return e.kind===Ct.Kind.SCALAR_TYPE_EXTENSION||e.kind===Ct.Kind.OBJECT_TYPE_EXTENSION||e.kind===Ct.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Ct.Kind.UNION_TYPE_EXTENSION||e.kind===Ct.Kind.ENUM_TYPE_EXTENSION||e.kind===Ct.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var ng=w(tg=>{"use strict";m();T();N();Object.defineProperty(tg,"__esModule",{value:!0});tg.ExecutableDefinitionsRule=Cz;var wz=ze(),Ow=wt(),Lz=lc();function Cz(e){return{Document(t){for(let n of t.definitions)if(!(0,Lz.isExecutableDefinitionNode)(n)){let r=n.kind===Ow.Kind.SCHEMA_DEFINITION||n.kind===Ow.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new wz.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var ig=w(rg=>{"use strict";m();T();N();Object.defineProperty(rg,"__esModule",{value:!0});rg.FieldsOnCorrectTypeRule=Mz;var Sw=cu(),Bz=zd(),Uz=du(),kz=ze(),Nf=Lt();function Mz(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,Sw.didYouMean)("to use an inline fragment on",xz(i,n,a));o===""&&(o=(0,Sw.didYouMean)(qz(n,a))),e.reportError(new kz.GraphQLError(`Cannot query field "${a}" on type "${n.name}".`+o,{nodes:t}))}}}}function xz(e,t,n){if(!(0,Nf.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let c of o.getInterfaces()){var a;c.getFields()[n]&&(r.add(c),i[c.name]=((a=i[c.name])!==null&&a!==void 0?a:0)+1)}}return[...r].sort((o,c)=>{let l=i[c.name]-i[o.name];return l!==0?l:(0,Nf.isInterfaceType)(o)&&e.isSubType(o,c)?-1:(0,Nf.isInterfaceType)(c)&&e.isSubType(c,o)?1:(0,Bz.naturalCompare)(o.name,c.name)}).map(o=>o.name)}function qz(e,t){if((0,Nf.isObjectType)(e)||(0,Nf.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,Uz.suggestionList)(t,n)}return[]}});var sg=w(ag=>{"use strict";m();T();N();Object.defineProperty(ag,"__esModule",{value:!0});ag.FragmentsOnCompositeTypesRule=Vz;var Dw=ze(),bw=pi(),Aw=Lt(),Rw=qa();function Vz(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,Rw.typeFromAST)(e.getSchema(),n);if(r&&!(0,Aw.isCompositeType)(r)){let i=(0,bw.print)(n);e.reportError(new Dw.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,Rw.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,Aw.isCompositeType)(n)){let r=(0,bw.print)(t.typeCondition);e.reportError(new Dw.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var og=w(vN=>{"use strict";m();T();N();Object.defineProperty(vN,"__esModule",{value:!0});vN.KnownArgumentNamesOnDirectivesRule=Lw;vN.KnownArgumentNamesRule=Gz;var Pw=cu(),Fw=du(),ww=ze(),jz=wt(),Kz=Wr();function Gz(e){return Q(M({},Lw(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let a=t.name.value,o=r.args.map(l=>l.name),c=(0,Fw.suggestionList)(a,o);e.reportError(new ww.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${r.name}".`+(0,Pw.didYouMean)(c),{nodes:t}))}}})}function Lw(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Kz.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(c=>c.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===jz.Kind.DIRECTIVE_DEFINITION){var a;let c=(a=o.arguments)!==null&&a!==void 0?a:[];t[o.name.value]=c.map(l=>l.name.value)}return{Directive(o){let c=o.name.value,l=t[c];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let E=(0,Fw.suggestionList)(p,l);e.reportError(new ww.GraphQLError(`Unknown argument "${p}" on directive "@${c}".`+(0,Pw.didYouMean)(E),{nodes:d}))}}return!1}}}});var dg=w(lg=>{"use strict";m();T();N();Object.defineProperty(lg,"__esModule",{value:!0});lg.KnownDirectivesRule=Yz;var $z=Wt(),ug=br(),Cw=ze(),cg=Ua(),or=pl(),In=wt(),Qz=Wr();function Yz(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Qz.specifiedDirectives;for(let a of r)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===In.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,c,l,d){let p=a.name.value,E=t[p];if(!E){e.reportError(new Cw.GraphQLError(`Unknown directive "@${p}".`,{nodes:a}));return}let I=Jz(d);I&&!E.includes(I)&&e.reportError(new Cw.GraphQLError(`Directive "@${p}" may not be used on ${I}.`,{nodes:a}))}}}function Jz(e){let t=e[e.length-1];switch("kind"in t||(0,ug.invariant)(!1),t.kind){case In.Kind.OPERATION_DEFINITION:return Hz(t.operation);case In.Kind.FIELD:return or.DirectiveLocation.FIELD;case In.Kind.FRAGMENT_SPREAD:return or.DirectiveLocation.FRAGMENT_SPREAD;case In.Kind.INLINE_FRAGMENT:return or.DirectiveLocation.INLINE_FRAGMENT;case In.Kind.FRAGMENT_DEFINITION:return or.DirectiveLocation.FRAGMENT_DEFINITION;case In.Kind.VARIABLE_DEFINITION:return or.DirectiveLocation.VARIABLE_DEFINITION;case In.Kind.SCHEMA_DEFINITION:case In.Kind.SCHEMA_EXTENSION:return or.DirectiveLocation.SCHEMA;case In.Kind.SCALAR_TYPE_DEFINITION:case In.Kind.SCALAR_TYPE_EXTENSION:return or.DirectiveLocation.SCALAR;case In.Kind.OBJECT_TYPE_DEFINITION:case In.Kind.OBJECT_TYPE_EXTENSION:return or.DirectiveLocation.OBJECT;case In.Kind.FIELD_DEFINITION:return or.DirectiveLocation.FIELD_DEFINITION;case In.Kind.INTERFACE_TYPE_DEFINITION:case In.Kind.INTERFACE_TYPE_EXTENSION:return or.DirectiveLocation.INTERFACE;case In.Kind.UNION_TYPE_DEFINITION:case In.Kind.UNION_TYPE_EXTENSION:return or.DirectiveLocation.UNION;case In.Kind.ENUM_TYPE_DEFINITION:case In.Kind.ENUM_TYPE_EXTENSION:return or.DirectiveLocation.ENUM;case In.Kind.ENUM_VALUE_DEFINITION:return or.DirectiveLocation.ENUM_VALUE;case In.Kind.INPUT_OBJECT_TYPE_DEFINITION:case In.Kind.INPUT_OBJECT_TYPE_EXTENSION:return or.DirectiveLocation.INPUT_OBJECT;case In.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,ug.invariant)(!1),n.kind===In.Kind.INPUT_OBJECT_TYPE_DEFINITION?or.DirectiveLocation.INPUT_FIELD_DEFINITION:or.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,ug.invariant)(!1,"Unexpected kind: "+(0,$z.inspect)(t.kind))}}function Hz(e){switch(e){case cg.OperationTypeNode.QUERY:return or.DirectiveLocation.QUERY;case cg.OperationTypeNode.MUTATION:return or.DirectiveLocation.MUTATION;case cg.OperationTypeNode.SUBSCRIPTION:return or.DirectiveLocation.SUBSCRIPTION}}});var pg=w(fg=>{"use strict";m();T();N();Object.defineProperty(fg,"__esModule",{value:!0});fg.KnownFragmentNamesRule=Wz;var zz=ze();function Wz(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new zz.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var Tg=w(Ng=>{"use strict";m();T();N();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.KnownTypeNamesRule=rW;var Xz=cu(),Zz=du(),eW=ze(),mg=lc(),tW=Li(),nW=xa();function rW(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let a of e.getDocument().definitions)(0,mg.isTypeDefinitionNode)(a)&&(r[a.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(a,o,c,l,d){let p=a.name.value;if(!n[p]&&!r[p]){var E;let I=(E=d[2])!==null&&E!==void 0?E:c,v=I!=null&&iW(I);if(v&&Bw.includes(p))return;let A=(0,Zz.suggestionList)(p,v?Bw.concat(i):i);e.reportError(new eW.GraphQLError(`Unknown type "${p}".`+(0,Xz.didYouMean)(A),{nodes:a}))}}}}var Bw=[...nW.specifiedScalarTypes,...tW.introspectionTypes].map(e=>e.name);function iW(e){return"kind"in e&&((0,mg.isTypeSystemDefinitionNode)(e)||(0,mg.isTypeSystemExtensionNode)(e))}});var hg=w(Eg=>{"use strict";m();T();N();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.LoneAnonymousOperationRule=oW;var aW=ze(),sW=wt();function oW(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===sW.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new aW.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var Ig=w(yg=>{"use strict";m();T();N();Object.defineProperty(yg,"__esModule",{value:!0});yg.LoneSchemaDefinitionRule=uW;var Uw=ze();function uW(e){var t,n,r;let i=e.getSchema(),a=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(c){if(a){e.reportError(new Uw.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:c}));return}o>0&&e.reportError(new Uw.GraphQLError("Must provide only one schema definition.",{nodes:c})),++o}}}});var _g=w(gg=>{"use strict";m();T();N();Object.defineProperty(gg,"__esModule",{value:!0});gg.MaxIntrospectionDepthRule=dW;var cW=ze(),kw=wt(),lW=3;function dW(e){function t(n,r=Object.create(null),i=0){if(n.kind===kw.Kind.FRAGMENT_SPREAD){let a=n.name.value;if(r[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return r[a]=!0,t(o,r,i)}finally{r[a]=void 0}}if(n.kind===kw.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=lW))return!0;if("selectionSet"in n&&n.selectionSet){for(let a of n.selectionSet.selections)if(t(a,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new cW.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var Og=w(vg=>{"use strict";m();T();N();Object.defineProperty(vg,"__esModule",{value:!0});vg.NoFragmentCyclesRule=pW;var fW=ze();function pW(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let c=e.getFragmentSpreads(a.selectionSet);if(c.length!==0){r[o]=n.length;for(let l of c){let d=l.name.value,p=r[d];if(n.push(l),p===void 0){let E=e.getFragment(d);E&&i(E)}else{let E=n.slice(p),I=E.slice(0,-1).map(v=>'"'+v.name.value+'"').join(", ");e.reportError(new fW.GraphQLError(`Cannot spread fragment "${d}" within itself`+(I!==""?` via ${I}.`:"."),{nodes:E}))}n.pop()}r[o]=void 0}}}});var Dg=w(Sg=>{"use strict";m();T();N();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.NoUndefinedVariablesRule=NW;var mW=ze();function NW(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let a=i.name.value;t[a]!==!0&&e.reportError(new mW.GraphQLError(n.name?`Variable "$${a}" is not defined by operation "${n.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var Ag=w(bg=>{"use strict";m();T();N();Object.defineProperty(bg,"__esModule",{value:!0});bg.NoUnusedFragmentsRule=EW;var TW=ze();function EW(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let a of e.getRecursivelyReferencedFragments(i))r[a.name.value]=!0;for(let i of n){let a=i.name.value;r[a]!==!0&&e.reportError(new TW.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var Pg=w(Rg=>{"use strict";m();T();N();Object.defineProperty(Rg,"__esModule",{value:!0});Rg.NoUnusedVariablesRule=yW;var hW=ze();function yW(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:a}of i)r[a.name.value]=!0;for(let a of t){let o=a.variable.name.value;r[o]!==!0&&e.reportError(new hW.GraphQLError(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:a}))}}},VariableDefinition(n){t.push(n)}}}});var Lg=w(wg=>{"use strict";m();T();N();Object.defineProperty(wg,"__esModule",{value:!0});wg.sortValueNode=Fg;var IW=zd(),Os=wt();function Fg(e){switch(e.kind){case Os.Kind.OBJECT:return Q(M({},e),{fields:gW(e.fields)});case Os.Kind.LIST:return Q(M({},e),{values:e.values.map(Fg)});case Os.Kind.INT:case Os.Kind.FLOAT:case Os.Kind.STRING:case Os.Kind.BOOLEAN:case Os.Kind.NULL:case Os.Kind.ENUM:case Os.Kind.VARIABLE:return e}}function gW(e){return e.map(t=>Q(M({},t),{value:Fg(t.value)})).sort((t,n)=>(0,IW.naturalCompare)(t.name.value,n.name.value))}});var qg=w(xg=>{"use strict";m();T();N();Object.defineProperty(xg,"__esModule",{value:!0});xg.OverlappingFieldsCanBeMergedRule=SW;var Mw=Wt(),_W=ze(),Cg=wt(),vW=pi(),Xr=Lt(),OW=Lg(),qw=qa();function Vw(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+Vw(n)).join(" and "):e}function SW(e){let t=new kg,n=new Map;return{SelectionSet(r){let i=DW(e,n,t,e.getParentType(),r);for(let[[a,o],c,l]of i){let d=Vw(o);e.reportError(new _W.GraphQLError(`Fields "${a}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}function DW(e,t,n,r,i){let a=[],[o,c]=DN(e,t,r,i);if(AW(e,a,t,n,o),c.length!==0)for(let l=0;l1)for(let c=0;c[a.value,o]));return n.every(a=>{let o=a.value,c=i.get(a.name.value);return c===void 0?!1:xw(o)===xw(c)})}function xw(e){return(0,vW.print)((0,OW.sortValueNode)(e))}function Bg(e,t){return(0,Xr.isListType)(e)?(0,Xr.isListType)(t)?Bg(e.ofType,t.ofType):!0:(0,Xr.isListType)(t)?!0:(0,Xr.isNonNullType)(e)?(0,Xr.isNonNullType)(t)?Bg(e.ofType,t.ofType):!0:(0,Xr.isNonNullType)(t)?!0:(0,Xr.isLeafType)(e)||(0,Xr.isLeafType)(t)?e!==t:!1}function DN(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);Kw(e,n,r,a,o);let c=[a,Object.keys(o)];return t.set(r,c),c}function Ug(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,qw.typeFromAST)(e.getSchema(),n.typeCondition);return DN(e,t,i,n.selectionSet)}function Kw(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case Cg.Kind.FIELD:{let o=a.name.value,c;((0,Xr.isObjectType)(t)||(0,Xr.isInterfaceType)(t))&&(c=t.getFields()[o]);let l=a.alias?a.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,a,c]);break}case Cg.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case Cg.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,c=o?(0,qw.typeFromAST)(e.getSchema(),o):t;Kw(e,c,a.selectionSet,r,i);break}}}function PW(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var kg=class{constructor(){this._data=new Map}has(t,n,r){var i;let[a,o]=t{"use strict";m();T();N();Object.defineProperty(jg,"__esModule",{value:!0});jg.PossibleFragmentSpreadsRule=wW;var bN=Wt(),Gw=ze(),Vg=Lt(),$w=nf(),FW=qa();function wW(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,Vg.isCompositeType)(n)&&(0,Vg.isCompositeType)(r)&&!(0,$w.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,bN.inspect)(r),a=(0,bN.inspect)(n);e.reportError(new Gw.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=LW(e,n),i=e.getParentType();if(r&&i&&!(0,$w.doTypesOverlap)(e.getSchema(),r,i)){let a=(0,bN.inspect)(i),o=(0,bN.inspect)(r);e.reportError(new Gw.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function LW(e,t){let n=e.getFragment(t);if(n){let r=(0,FW.typeFromAST)(e.getSchema(),n.typeCondition);if((0,Vg.isCompositeType)(r))return r}}});var $g=w(Gg=>{"use strict";m();T();N();Object.defineProperty(Gg,"__esModule",{value:!0});Gg.PossibleTypeExtensionsRule=kW;var CW=cu(),Yw=Wt(),Jw=br(),BW=du(),Qw=ze(),On=wt(),UW=lc(),gl=Lt();function kW(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,UW.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let a=i.name.value,o=n[a],c=t==null?void 0:t.getType(a),l;if(o?l=MW[o.kind]:c&&(l=xW(c)),l){if(l!==i.kind){let d=qW(i.kind);e.reportError(new Qw.GraphQLError(`Cannot extend non-${d} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(M(M({},n),t==null?void 0:t.getTypeMap())),p=(0,BW.suggestionList)(a,d);e.reportError(new Qw.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,CW.didYouMean)(p),{nodes:i.name}))}}}var MW={[On.Kind.SCALAR_TYPE_DEFINITION]:On.Kind.SCALAR_TYPE_EXTENSION,[On.Kind.OBJECT_TYPE_DEFINITION]:On.Kind.OBJECT_TYPE_EXTENSION,[On.Kind.INTERFACE_TYPE_DEFINITION]:On.Kind.INTERFACE_TYPE_EXTENSION,[On.Kind.UNION_TYPE_DEFINITION]:On.Kind.UNION_TYPE_EXTENSION,[On.Kind.ENUM_TYPE_DEFINITION]:On.Kind.ENUM_TYPE_EXTENSION,[On.Kind.INPUT_OBJECT_TYPE_DEFINITION]:On.Kind.INPUT_OBJECT_TYPE_EXTENSION};function xW(e){if((0,gl.isScalarType)(e))return On.Kind.SCALAR_TYPE_EXTENSION;if((0,gl.isObjectType)(e))return On.Kind.OBJECT_TYPE_EXTENSION;if((0,gl.isInterfaceType)(e))return On.Kind.INTERFACE_TYPE_EXTENSION;if((0,gl.isUnionType)(e))return On.Kind.UNION_TYPE_EXTENSION;if((0,gl.isEnumType)(e))return On.Kind.ENUM_TYPE_EXTENSION;if((0,gl.isInputObjectType)(e))return On.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,Jw.invariant)(!1,"Unexpected type: "+(0,Yw.inspect)(e))}function qW(e){switch(e){case On.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case On.Kind.OBJECT_TYPE_EXTENSION:return"object";case On.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case On.Kind.UNION_TYPE_EXTENSION:return"union";case On.Kind.ENUM_TYPE_EXTENSION:return"enum";case On.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,Jw.invariant)(!1,"Unexpected kind: "+(0,Yw.inspect)(e))}}});var Yg=w(AN=>{"use strict";m();T();N();Object.defineProperty(AN,"__esModule",{value:!0});AN.ProvidedRequiredArgumentsOnDirectivesRule=Zw;AN.ProvidedRequiredArgumentsRule=KW;var zw=Wt(),Hw=lu(),Ww=ze(),Xw=wt(),VW=pi(),Qg=Lt(),jW=Wr();function KW(e){return Q(M({},Zw(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(a=>a.name.value));for(let a of r.args)if(!i.has(a.name)&&(0,Qg.isRequiredArgument)(a)){let o=(0,zw.inspect)(a.type);e.reportError(new Ww.GraphQLError(`Field "${r.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function Zw(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:jW.specifiedDirectives;for(let c of i)n[c.name]=(0,Hw.keyMap)(c.args.filter(Qg.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let c of a)if(c.kind===Xw.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=c.arguments)!==null&&o!==void 0?o:[];n[c.name.value]=(0,Hw.keyMap)(l.filter(GW),d=>d.name.value)}return{Directive:{leave(c){let l=c.name.value,d=n[l];if(d){var p;let E=(p=c.arguments)!==null&&p!==void 0?p:[],I=new Set(E.map(v=>v.name.value));for(let[v,A]of Object.entries(d))if(!I.has(v)){let U=(0,Qg.isType)(A.type)?(0,zw.inspect)(A.type):(0,VW.print)(A.type);e.reportError(new Ww.GraphQLError(`Directive "@${l}" argument "${v}" of type "${U}" is required, but it was not provided.`,{nodes:c}))}}}}}}function GW(e){return e.type.kind===Xw.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var Hg=w(Jg=>{"use strict";m();T();N();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.ScalarLeafsRule=$W;var eL=Wt(),tL=ze(),nL=Lt();function $W(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,nL.isLeafType)((0,nL.getNamedType)(n))){if(r){let i=t.name.value,a=(0,eL.inspect)(n);e.reportError(new tL.GraphQLError(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,a=(0,eL.inspect)(n);e.reportError(new tL.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var Wg=w(zg=>{"use strict";m();T();N();Object.defineProperty(zg,"__esModule",{value:!0});zg.printPathArray=QW;function QW(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Tf=w(RN=>{"use strict";m();T();N();Object.defineProperty(RN,"__esModule",{value:!0});RN.addPath=YW;RN.pathToArray=JW;function YW(e,t,n){return{prev:e,key:t,typename:n}}function JW(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var Zg=w(Xg=>{"use strict";m();T();N();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.coerceInputValue=t4;var HW=cu(),PN=Wt(),zW=br(),WW=hN(),XW=Ba(),da=Tf(),ZW=Wg(),e4=du(),Ss=ze(),Ef=Lt();function t4(e,t,n=n4){return hf(e,t,n,void 0)}function n4(e,t,n){let r="Invalid value "+(0,PN.inspect)(t);throw e.length>0&&(r+=` at "value${(0,ZW.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function hf(e,t,n,r){if((0,Ef.isNonNullType)(t)){if(e!=null)return hf(e,t.ofType,n,r);n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Expected non-nullable type "${(0,PN.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Ef.isListType)(t)){let i=t.ofType;return(0,WW.isIterableObject)(e)?Array.from(e,(a,o)=>{let c=(0,da.addPath)(r,o,void 0);return hf(a,i,n,c)}):[hf(e,i,n,r)]}if((0,Ef.isInputObjectType)(t)){if(!(0,XW.isObjectLike)(e)){n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let c=e[o.name];if(c===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,Ef.isNonNullType)(o.type)){let l=(0,PN.inspect)(o.type);n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=hf(c,o.type,n,(0,da.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let c=(0,e4.suggestionList)(o,Object.keys(t.getFields()));n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,HW.didYouMean)(c)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let c=o[0],l=i[c];l===null&&n((0,da.pathToArray)(r).concat(c),l,new Ss.GraphQLError(`Field "${c}" must be non-null.`))}return i}if((0,Ef.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof Ss.GraphQLError?n((0,da.pathToArray)(r),e,a):n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Expected type "${t.name}".`)),i}(0,zW.invariant)(!1,"Unexpected input type: "+(0,PN.inspect)(t))}});var If=w(e_=>{"use strict";m();T();N();Object.defineProperty(e_,"__esModule",{value:!0});e_.valueFromAST=yf;var r4=Wt(),i4=br(),a4=lu(),_l=wt(),dc=Lt();function yf(e,t,n){if(e){if(e.kind===_l.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,dc.isNonNullType)(t)?void 0:i}if((0,dc.isNonNullType)(t))return e.kind===_l.Kind.NULL?void 0:yf(e,t.ofType,n);if(e.kind===_l.Kind.NULL)return null;if((0,dc.isListType)(t)){let r=t.ofType;if(e.kind===_l.Kind.LIST){let a=[];for(let o of e.values)if(rL(o,n)){if((0,dc.isNonNullType)(r))return;a.push(null)}else{let c=yf(o,r,n);if(c===void 0)return;a.push(c)}return a}let i=yf(e,r,n);return i===void 0?void 0:[i]}if((0,dc.isInputObjectType)(t)){if(e.kind!==_l.Kind.OBJECT)return;let r=Object.create(null),i=(0,a4.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||rL(o.value,n)){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if((0,dc.isNonNullType)(a.type))return;continue}let c=yf(o.value,a.type,n);if(c===void 0)return;r[a.name]=c}if(t.isOneOf){let a=Object.keys(r);if(a.length!==1||r[a[0]]===null)return}return r}if((0,dc.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,i4.invariant)(!1,"Unexpected input type: "+(0,r4.inspect)(t))}}function rL(e,t){return e.kind===_l.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var Sl=w(gf=>{"use strict";m();T();N();Object.defineProperty(gf,"__esModule",{value:!0});gf.getArgumentValues=oL;gf.getDirectiveValues=f4;gf.getVariableValues=l4;var vl=Wt(),s4=lu(),o4=Wg(),Ds=ze(),iL=wt(),aL=pi(),Ol=Lt(),u4=Zg(),c4=qa(),sL=If();function l4(e,t,n,r){let i=[],a=r==null?void 0:r.maxErrors;try{let o=d4(e,t,n,c=>{if(a!=null&&i.length>=a)throw new Ds.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(c)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function d4(e,t,n,r){let i={};for(let a of t){let o=a.variable.name.value,c=(0,c4.typeFromAST)(e,a.type);if(!(0,Ol.isInputType)(c)){let d=(0,aL.print)(a.type);r(new Ds.GraphQLError(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!uL(n,o)){if(a.defaultValue)i[o]=(0,sL.valueFromAST)(a.defaultValue,c);else if((0,Ol.isNonNullType)(c)){let d=(0,vl.inspect)(c);r(new Ds.GraphQLError(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:a}))}continue}let l=n[o];if(l===null&&(0,Ol.isNonNullType)(c)){let d=(0,vl.inspect)(c);r(new Ds.GraphQLError(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:a}));continue}i[o]=(0,u4.coerceInputValue)(l,c,(d,p,E)=>{let I=`Variable "$${o}" got invalid value `+(0,vl.inspect)(p);d.length>0&&(I+=` at "${o}${(0,o4.printPathArray)(d)}"`),r(new Ds.GraphQLError(I+"; "+E.message,{nodes:a,originalError:E}))})}return i}function oL(e,t,n){var r;let i={},a=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,s4.keyMap)(a,c=>c.name.value);for(let c of e.args){let l=c.name,d=c.type,p=o[l];if(!p){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,Ol.isNonNullType)(d))throw new Ds.GraphQLError(`Argument "${l}" of required type "${(0,vl.inspect)(d)}" was not provided.`,{nodes:t});continue}let E=p.value,I=E.kind===iL.Kind.NULL;if(E.kind===iL.Kind.VARIABLE){let A=E.name.value;if(n==null||!uL(n,A)){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,Ol.isNonNullType)(d))throw new Ds.GraphQLError(`Argument "${l}" of required type "${(0,vl.inspect)(d)}" was provided the variable "$${A}" which was not provided a runtime value.`,{nodes:E});continue}I=n[A]==null}if(I&&(0,Ol.isNonNullType)(d))throw new Ds.GraphQLError(`Argument "${l}" of non-null type "${(0,vl.inspect)(d)}" must not be null.`,{nodes:E});let v=(0,sL.valueFromAST)(E,d,n);if(v===void 0)throw new Ds.GraphQLError(`Argument "${l}" has invalid value ${(0,aL.print)(E)}.`,{nodes:E});i[l]=v}return i}function f4(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(a=>a.name.value===e.name);if(i)return oL(e,i,n)}function uL(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var LN=w(wN=>{"use strict";m();T();N();Object.defineProperty(wN,"__esModule",{value:!0});wN.collectFields=N4;wN.collectSubfields=T4;var t_=wt(),p4=Lt(),cL=Wr(),m4=qa(),lL=Sl();function N4(e,t,n,r,i){let a=new Map;return FN(e,t,n,r,i,a,new Set),a}function T4(e,t,n,r,i){let a=new Map,o=new Set;for(let c of i)c.selectionSet&&FN(e,t,n,r,c.selectionSet,a,o);return a}function FN(e,t,n,r,i,a,o){for(let c of i.selections)switch(c.kind){case t_.Kind.FIELD:{if(!n_(n,c))continue;let l=E4(c),d=a.get(l);d!==void 0?d.push(c):a.set(l,[c]);break}case t_.Kind.INLINE_FRAGMENT:{if(!n_(n,c)||!dL(e,c,r))continue;FN(e,t,n,r,c.selectionSet,a,o);break}case t_.Kind.FRAGMENT_SPREAD:{let l=c.name.value;if(o.has(l)||!n_(n,c))continue;o.add(l);let d=t[l];if(!d||!dL(e,d,r))continue;FN(e,t,n,r,d.selectionSet,a,o);break}}}function n_(e,t){let n=(0,lL.getDirectiveValues)(cL.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,lL.getDirectiveValues)(cL.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function dL(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,m4.typeFromAST)(e,r);return i===n?!0:(0,p4.isAbstractType)(i)?e.isSubType(i,n):!1}function E4(e){return e.alias?e.alias.value:e.name.value}});var i_=w(r_=>{"use strict";m();T();N();Object.defineProperty(r_,"__esModule",{value:!0});r_.SingleFieldSubscriptionsRule=I4;var fL=ze(),h4=wt(),y4=LN();function I4(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,a=Object.create(null),o=e.getDocument(),c=Object.create(null);for(let d of o.definitions)d.kind===h4.Kind.FRAGMENT_DEFINITION&&(c[d.name.value]=d);let l=(0,y4.collectFields)(n,c,a,r,t.selectionSet);if(l.size>1){let E=[...l.values()].slice(1).flat();e.reportError(new fL.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:E}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new fL.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}});var CN=w(a_=>{"use strict";m();T();N();Object.defineProperty(a_,"__esModule",{value:!0});a_.groupBy=g4;function g4(e,t){let n=new Map;for(let r of e){let i=t(r),a=n.get(i);a===void 0?n.set(i,[r]):a.push(r)}return n}});var o_=w(s_=>{"use strict";m();T();N();Object.defineProperty(s_,"__esModule",{value:!0});s_.UniqueArgumentDefinitionNamesRule=O4;var _4=CN(),v4=ze();function O4(e){return{DirectiveDefinition(r){var i;let a=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,a)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let a=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var c;let d=l.name.value,p=(c=l.arguments)!==null&&c!==void 0?c:[];n(`${a}.${d}`,p)}return!1}function n(r,i){let a=(0,_4.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new v4.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:c.map(l=>l.name)}));return!1}}});var c_=w(u_=>{"use strict";m();T();N();Object.defineProperty(u_,"__esModule",{value:!0});u_.UniqueArgumentNamesRule=b4;var S4=CN(),D4=ze();function b4(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],a=(0,S4.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new D4.GraphQLError(`There can be only one argument named "${o}".`,{nodes:c.map(l=>l.name)}))}}});var d_=w(l_=>{"use strict";m();T();N();Object.defineProperty(l_,"__esModule",{value:!0});l_.UniqueDirectiveNamesRule=A4;var pL=ze();function A4(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new pL.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new pL.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var m_=w(p_=>{"use strict";m();T();N();Object.defineProperty(p_,"__esModule",{value:!0});p_.UniqueDirectivesPerLocationRule=F4;var R4=ze(),f_=wt(),mL=lc(),P4=Wr();function F4(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():P4.specifiedDirectives;for(let c of r)t[c.name]=!c.isRepeatable;let i=e.getDocument().definitions;for(let c of i)c.kind===f_.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable);let a=Object.create(null),o=Object.create(null);return{enter(c){if(!("directives"in c)||!c.directives)return;let l;if(c.kind===f_.Kind.SCHEMA_DEFINITION||c.kind===f_.Kind.SCHEMA_EXTENSION)l=a;else if((0,mL.isTypeDefinitionNode)(c)||(0,mL.isTypeExtensionNode)(c)){let d=c.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of c.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new R4.GraphQLError(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}});var T_=w(N_=>{"use strict";m();T();N();Object.defineProperty(N_,"__esModule",{value:!0});N_.UniqueEnumValueNamesRule=L4;var NL=ze(),w4=Lt();function L4(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.values)!==null&&o!==void 0?o:[],d=r[c];for(let p of l){let E=p.name.value,I=n[c];(0,w4.isEnumType)(I)&&I.getValue(E)?e.reportError(new NL.GraphQLError(`Enum value "${c}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[E]?e.reportError(new NL.GraphQLError(`Enum value "${c}.${E}" can only be defined once.`,{nodes:[d[E],p.name]})):d[E]=p.name}return!1}}});var y_=w(h_=>{"use strict";m();T();N();Object.defineProperty(h_,"__esModule",{value:!0});h_.UniqueFieldDefinitionNamesRule=C4;var TL=ze(),E_=Lt();function C4(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.fields)!==null&&o!==void 0?o:[],d=r[c];for(let p of l){let E=p.name.value;B4(n[c],E)?e.reportError(new TL.GraphQLError(`Field "${c}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[E]?e.reportError(new TL.GraphQLError(`Field "${c}.${E}" can only be defined once.`,{nodes:[d[E],p.name]})):d[E]=p.name}return!1}}function B4(e,t){return(0,E_.isObjectType)(e)||(0,E_.isInterfaceType)(e)||(0,E_.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var g_=w(I_=>{"use strict";m();T();N();Object.defineProperty(I_,"__esModule",{value:!0});I_.UniqueFragmentNamesRule=k4;var U4=ze();function k4(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new U4.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var v_=w(__=>{"use strict";m();T();N();Object.defineProperty(__,"__esModule",{value:!0});__.UniqueInputFieldNamesRule=q4;var M4=br(),x4=ze();function q4(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,M4.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new x4.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var S_=w(O_=>{"use strict";m();T();N();Object.defineProperty(O_,"__esModule",{value:!0});O_.UniqueOperationNamesRule=j4;var V4=ze();function j4(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new V4.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var b_=w(D_=>{"use strict";m();T();N();Object.defineProperty(D_,"__esModule",{value:!0});D_.UniqueOperationTypesRule=K4;var EL=ze();function K4(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(a){var o;let c=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(let l of c){let d=l.operation,p=n[d];r[d]?e.reportError(new EL.GraphQLError(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new EL.GraphQLError(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}});var R_=w(A_=>{"use strict";m();T();N();Object.defineProperty(A_,"__esModule",{value:!0});A_.UniqueTypeNamesRule=G4;var hL=ze();function G4(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let a=i.name.value;if(n!=null&&n.getType(a)){e.reportError(new hL.GraphQLError(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[a]?e.reportError(new hL.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var F_=w(P_=>{"use strict";m();T();N();Object.defineProperty(P_,"__esModule",{value:!0});P_.UniqueVariableNamesRule=Y4;var $4=CN(),Q4=ze();function Y4(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,$4.groupBy)(r,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new Q4.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(c=>c.variable.name)}))}}}});var C_=w(L_=>{"use strict";m();T();N();Object.defineProperty(L_,"__esModule",{value:!0});L_.ValuesOfCorrectTypeRule=W4;var J4=cu(),_f=Wt(),H4=lu(),z4=du(),ja=ze(),w_=wt(),BN=pi(),Va=Lt();function W4(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,Va.getNullableType)(e.getParentInputType());if(!(0,Va.isListType)(r))return fc(e,n),!1},ObjectValue(n){let r=(0,Va.getNamedType)(e.getInputType());if(!(0,Va.isInputObjectType)(r))return fc(e,n),!1;let i=(0,H4.keyMap)(n.fields,a=>a.name.value);for(let a of Object.values(r.getFields()))if(!i[a.name]&&(0,Va.isRequiredInputField)(a)){let c=(0,_f.inspect)(a.type);e.reportError(new ja.GraphQLError(`Field "${r.name}.${a.name}" of required type "${c}" was not provided.`,{nodes:n}))}r.isOneOf&&X4(e,n,r,i,t)},ObjectField(n){let r=(0,Va.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Va.isInputObjectType)(r)){let a=(0,z4.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new ja.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,J4.didYouMean)(a),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,Va.isNonNullType)(r)&&e.reportError(new ja.GraphQLError(`Expected value of type "${(0,_f.inspect)(r)}", found ${(0,BN.print)(n)}.`,{nodes:n}))},EnumValue:n=>fc(e,n),IntValue:n=>fc(e,n),FloatValue:n=>fc(e,n),StringValue:n=>fc(e,n),BooleanValue:n=>fc(e,n)}}function fc(e,t){let n=e.getInputType();if(!n)return;let r=(0,Va.getNamedType)(n);if(!(0,Va.isLeafType)(r)){let i=(0,_f.inspect)(n);e.reportError(new ja.GraphQLError(`Expected value of type "${i}", found ${(0,BN.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let a=(0,_f.inspect)(n);e.reportError(new ja.GraphQLError(`Expected value of type "${a}", found ${(0,BN.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,_f.inspect)(n);i instanceof ja.GraphQLError?e.reportError(i):e.reportError(new ja.GraphQLError(`Expected value of type "${a}", found ${(0,BN.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function X4(e,t,n,r,i){var a;let o=Object.keys(r);if(o.length!==1){e.reportError(new ja.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(a=r[o[0]])===null||a===void 0?void 0:a.value,d=!l||l.kind===w_.Kind.NULL,p=(l==null?void 0:l.kind)===w_.Kind.VARIABLE;if(d){e.reportError(new ja.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let E=l.name.value;i[E].type.kind!==w_.Kind.NON_NULL_TYPE&&e.reportError(new ja.GraphQLError(`Variable "${E}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var U_=w(B_=>{"use strict";m();T();N();Object.defineProperty(B_,"__esModule",{value:!0});B_.VariablesAreInputTypesRule=r8;var Z4=ze(),e8=pi(),t8=Lt(),n8=qa();function r8(e){return{VariableDefinition(t){let n=(0,n8.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,t8.isInputType)(n)){let r=t.variable.name.value,i=(0,e8.print)(t.type);e.reportError(new Z4.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var M_=w(k_=>{"use strict";m();T();N();Object.defineProperty(k_,"__esModule",{value:!0});k_.VariablesInAllowedPositionRule=o8;var yL=Wt(),i8=ze(),a8=wt(),IL=Lt(),gL=nf(),s8=qa();function o8(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:a,defaultValue:o}of r){let c=i.name.value,l=t[c];if(l&&a){let d=e.getSchema(),p=(0,s8.typeFromAST)(d,l.type);if(p&&!u8(d,p,l.defaultValue,a,o)){let E=(0,yL.inspect)(p),I=(0,yL.inspect)(a);e.reportError(new i8.GraphQLError(`Variable "$${c}" of type "${E}" used in position expecting type "${I}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function u8(e,t,n,r,i){if((0,IL.isNonNullType)(r)&&!(0,IL.isNonNullType)(t)){if(!(n!=null&&n.kind!==a8.Kind.NULL)&&!(i!==void 0))return!1;let c=r.ofType;return(0,gL.isTypeSubTypeOf)(e,t,c)}return(0,gL.isTypeSubTypeOf)(e,t,r)}});var x_=w(Nu=>{"use strict";m();T();N();Object.defineProperty(Nu,"__esModule",{value:!0});Nu.specifiedSDLRules=Nu.specifiedRules=Nu.recommendedRules=void 0;var c8=ng(),l8=ig(),d8=sg(),_L=og(),vL=dg(),f8=pg(),OL=Tg(),p8=hg(),m8=Ig(),N8=_g(),T8=Og(),E8=Dg(),h8=Ag(),y8=Pg(),I8=qg(),g8=Kg(),_8=$g(),SL=Yg(),v8=Hg(),O8=i_(),S8=o_(),DL=c_(),D8=d_(),bL=m_(),b8=T_(),A8=y_(),R8=g_(),AL=v_(),P8=S_(),F8=b_(),w8=R_(),L8=F_(),C8=C_(),B8=U_(),U8=M_(),RL=Object.freeze([N8.MaxIntrospectionDepthRule]);Nu.recommendedRules=RL;var k8=Object.freeze([c8.ExecutableDefinitionsRule,P8.UniqueOperationNamesRule,p8.LoneAnonymousOperationRule,O8.SingleFieldSubscriptionsRule,OL.KnownTypeNamesRule,d8.FragmentsOnCompositeTypesRule,B8.VariablesAreInputTypesRule,v8.ScalarLeafsRule,l8.FieldsOnCorrectTypeRule,R8.UniqueFragmentNamesRule,f8.KnownFragmentNamesRule,h8.NoUnusedFragmentsRule,g8.PossibleFragmentSpreadsRule,T8.NoFragmentCyclesRule,L8.UniqueVariableNamesRule,E8.NoUndefinedVariablesRule,y8.NoUnusedVariablesRule,vL.KnownDirectivesRule,bL.UniqueDirectivesPerLocationRule,_L.KnownArgumentNamesRule,DL.UniqueArgumentNamesRule,C8.ValuesOfCorrectTypeRule,SL.ProvidedRequiredArgumentsRule,U8.VariablesInAllowedPositionRule,I8.OverlappingFieldsCanBeMergedRule,AL.UniqueInputFieldNamesRule,...RL]);Nu.specifiedRules=k8;var M8=Object.freeze([m8.LoneSchemaDefinitionRule,F8.UniqueOperationTypesRule,w8.UniqueTypeNamesRule,b8.UniqueEnumValueNamesRule,A8.UniqueFieldDefinitionNamesRule,S8.UniqueArgumentDefinitionNamesRule,D8.UniqueDirectiveNamesRule,OL.KnownTypeNamesRule,vL.KnownDirectivesRule,bL.UniqueDirectivesPerLocationRule,_8.PossibleTypeExtensionsRule,_L.KnownArgumentNamesOnDirectivesRule,DL.UniqueArgumentNamesRule,AL.UniqueInputFieldNamesRule,SL.ProvidedRequiredArgumentsOnDirectivesRule]);Nu.specifiedSDLRules=M8});var j_=w(Tu=>{"use strict";m();T();N();Object.defineProperty(Tu,"__esModule",{value:!0});Tu.ValidationContext=Tu.SDLValidationContext=Tu.ASTValidationContext=void 0;var PL=wt(),x8=nc(),FL=_N(),vf=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===PL.Kind.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let a of i.selections)a.kind===PL.Kind.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&r.push(a.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],a;for(;a=i.pop();)for(let o of this.getFragmentSpreads(a)){let c=o.name.value;if(r[c]!==!0){r[c]=!0;let l=this.getFragment(c);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};Tu.ASTValidationContext=vf;var q_=class extends vf{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Tu.SDLValidationContext=q_;var V_=class extends vf{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new FL.TypeInfo(this._schema);(0,x8.visit)(t,(0,FL.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(a){r.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};Tu.ValidationContext=V_});var bl=w(Dl=>{"use strict";m();T();N();Object.defineProperty(Dl,"__esModule",{value:!0});Dl.assertValidSDL=G8;Dl.assertValidSDLExtension=$8;Dl.validate=K8;Dl.validateSDL=K_;var q8=qr(),V8=ze(),UN=nc(),j8=pf(),wL=_N(),LL=x_(),CL=j_();function K8(e,t,n=LL.specifiedRules,r,i=new wL.TypeInfo(e)){var a;let o=(a=r==null?void 0:r.maxErrors)!==null&&a!==void 0?a:100;t||(0,q8.devAssert)(!1,"Must provide document."),(0,j8.assertValidSchema)(e);let c=Object.freeze({}),l=[],d=new CL.ValidationContext(e,t,i,E=>{if(l.length>=o)throw l.push(new V8.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),c;l.push(E)}),p=(0,UN.visitInParallel)(n.map(E=>E(d)));try{(0,UN.visit)(t,(0,wL.visitWithTypeInfo)(i,p))}catch(E){if(E!==c)throw E}return l}function K_(e,t,n=LL.specifiedSDLRules){let r=[],i=new CL.SDLValidationContext(e,t,o=>{r.push(o)}),a=n.map(o=>o(i));return(0,UN.visit)(e,(0,UN.visitInParallel)(a)),r}function G8(e){let t=K_(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}function U4(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!rt(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${ne(n)}.`,(r=Rv(t,bn.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!rt(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${ne(i)}.`,(s=Rv(t,bn.MUTATION))!==null&&s!==void 0?s:i.astNode)}let a=t.getSubscriptionType();if(a&&!rt(a)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${ne(a)}.`,(u=Rv(t,bn.SUBSCRIPTION))!==null&&u!==void 0?u:a.astNode)}}function Rv(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function B4(e){for(let n of e.schema.getDirectives()){if(!Tc(n)){e.reportError(`Expected directive but got: ${ne(n)}.`,n==null?void 0:n.astNode);continue}yl(e,n);for(let r of n.args)if(yl(e,r),sr(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${ne(r.type)}.`,r.astNode),rs(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[wv(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function yl(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function k4(e){let t=K4(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!To(r)){e.reportError(`Expected GraphQL named type but got: ${ne(r)}.`,r.astNode);continue}oi(r)||yl(e,r),rt(r)||mt(r)?(uU(e,r),cU(e,r)):tn(r)?V4(e,r):Gt(r)?q4(e,r):Nt(r)&&($4(e,r),t(r))}}function uU(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of n){if(yl(e,a),!ns(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${ne(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}for(let u of a.args){let l=u.name;if(yl(e,u),!sr(u.type)){var i;e.reportError(`The type of ${t.name}.${a.name}(${l}:) must be Input Type but got: ${ne(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if(rs(u)&&u.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${a.name}(${l}:) cannot be deprecated.`,[wv(u.astNode),(s=u.astNode)===null||s===void 0?void 0:s.type])}}}}function cU(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!mt(r)){e.reportError(`Type ${ne(t)} must only implement Interface types, it cannot implement ${ne(r)}.`,nm(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,nm(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,nm(t,r));continue}n[r.name]=!0,M4(e,t,r),x4(e,t,r)}}function x4(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,f=r[d];if(!f){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Ws(e.schema,f.type,l.type)){var i,s;e.reportError(`Interface field ${n.name}.${d} expects type ${ne(l.type)} but ${t.name}.${d} is type ${ne(f.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(s=f.astNode)===null||s===void 0?void 0:s.type])}for(let E of l.args){let h=E.name,_=f.args.find(A=>A.name===h);if(!_){e.reportError(`Interface field argument ${n.name}.${d}(${h}:) expected but ${t.name}.${d} does not provide it.`,[E.astNode,f.astNode]);continue}if(!ml(E.type,_.type)){var a,u;e.reportError(`Interface field argument ${n.name}.${d}(${h}:) expects type ${ne(E.type)} but ${t.name}.${d}(${h}:) is type ${ne(_.type)}.`,[(a=E.astNode)===null||a===void 0?void 0:a.type,(u=_.astNode)===null||u===void 0?void 0:u.type])}}for(let E of f.args){let h=E.name;!l.args.find(A=>A.name===h)&&rs(E)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${h} that is missing from the Interface field ${n.name}.${d}.`,[E.astNode,l.astNode])}}}function M4(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...nm(n,i),...nm(t,n)])}function V4(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,lU(t,i.name));continue}r[i.name]=!0,rt(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ne(i)}.`,lU(t,String(i)))}}function q4(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)yl(e,r)}function $4(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(yl(e,s),!sr(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${ne(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if(Eo(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[wv(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&j4(t,s,e)}}function j4(e,t,n){if(Ke(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function K4(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let a=Object.values(s.getFields());for(let u of a)if(Ke(u.type)&&Nt(u.type.ofType)){let l=u.type.ofType,d=r[l.name];if(n.push(u),d===void 0)i(l);else{let f=n.slice(d),E=f.map(h=>h.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${E}".`,f.map(h=>h.astNode))}n.pop()}r[s.name]=void 0}}function nm(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var a;return(a=s.interfaces)!==null&&a!==void 0?a:[]}).filter(s=>s.name.value===t.name)}function lU(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var a;return(a=s.types)!==null&&a!==void 0?a:[]}).filter(s=>s.name.value===t)}function wv(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Fa.name)}var Fv,rm=ae(()=>{"use strict";p();N();m();an();nt();Oa();Jp();jt();Ui();Is();hl();Fv=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new G(t,{nodes:r}))}getErrors(){return this._errors}}});function xn(e,t){switch(t.kind){case F.LIST_TYPE:{let n=xn(e,t.type);return n&&new An(n)}case F.NON_NULL_TYPE:{let n=xn(e,t.type);return n&&new ct(n)}case F.NAMED_TYPE:return e.getType(t.name.value)}}var La=ae(()=>{"use strict";p();N();m();$t();jt()});function G4(e,t,n){let r=n.name.value;if(r===ho.name&&e.getQueryType()===t)return ho;if(r===yo.name&&e.getQueryType()===t)return yo;if(r===Io.name&&Si(t))return Io;if(rt(t)||mt(t))return t.getFields()[r]}function gl(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=No(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),wp(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=No(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}var go,YE=ae(()=>{"use strict";p();N();m();Oa();$t();ll();jt();Is();La();go=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:G4,n&&(sr(n)&&this._inputTypeStack.push(n),Si(n)&&this._parentTypeStack.push(n),ns(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case F.SELECTION_SET:{let i=kn(this.getType());this._parentTypeStack.push(Si(i)?i:void 0);break}case F.FIELD:{let i=this.getParentType(),s,a;i&&(s=this._getFieldDef(n,i,t),s&&(a=s.type)),this._fieldDefStack.push(s),this._typeStack.push(ns(a)?a:void 0);break}case F.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case F.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(rt(i)?i:void 0);break}case F.INLINE_FRAGMENT:case F.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?xn(n,i):kn(this.getType());this._typeStack.push(ns(s)?s:void 0);break}case F.VARIABLE_DEFINITION:{let i=xn(n,t.type);this._inputTypeStack.push(sr(i)?i:void 0);break}case F.ARGUMENT:{var r;let i,s,a=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();a&&(i=a.args.find(u=>u.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(sr(s)?s:void 0);break}case F.LIST:{let i=pl(this.getInputType()),s=bt(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(sr(s)?s:void 0);break}case F.OBJECT_FIELD:{let i=kn(this.getInputType()),s,a;Nt(i)&&(a=i.getFields()[t.name.value],a&&(s=a.type)),this._defaultValueStack.push(a?a.defaultValue:void 0),this._inputTypeStack.push(sr(s)?s:void 0);break}case F.ENUM:{let i=kn(this.getInputType()),s;Gt(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case F.SELECTION_SET:this._parentTypeStack.pop();break;case F.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case F.DIRECTIVE:this._directive=null;break;case F.OPERATION_DEFINITION:case F.INLINE_FRAGMENT:case F.FRAGMENT_DEFINITION:this._typeStack.pop();break;case F.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case F.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case F.LIST:case F.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case F.ENUM:this._enumValue=null;break;default:}}}});function Lv(e){return Jd(e)||Hd(e)||zd(e)}function Jd(e){return e.kind===F.OPERATION_DEFINITION||e.kind===F.FRAGMENT_DEFINITION}function Pv(e){return e.kind===F.FIELD||e.kind===F.FRAGMENT_SPREAD||e.kind===F.INLINE_FRAGMENT}function JE(e){return e.kind===F.VARIABLE||e.kind===F.INT||e.kind===F.FLOAT||e.kind===F.STRING||e.kind===F.BOOLEAN||e.kind===F.NULL||e.kind===F.ENUM||e.kind===F.LIST||e.kind===F.OBJECT}function im(e){return JE(e)&&(e.kind===F.LIST?e.values.some(im):e.kind===F.OBJECT?e.fields.some(t=>im(t.value)):e.kind!==F.VARIABLE)}function Cv(e){return e.kind===F.NAMED_TYPE||e.kind===F.LIST_TYPE||e.kind===F.NON_NULL_TYPE}function Hd(e){return e.kind===F.SCHEMA_DEFINITION||gs(e)||e.kind===F.DIRECTIVE_DEFINITION}function gs(e){return e.kind===F.SCALAR_TYPE_DEFINITION||e.kind===F.OBJECT_TYPE_DEFINITION||e.kind===F.INTERFACE_TYPE_DEFINITION||e.kind===F.UNION_TYPE_DEFINITION||e.kind===F.ENUM_TYPE_DEFINITION||e.kind===F.INPUT_OBJECT_TYPE_DEFINITION}function zd(e){return e.kind===F.SCHEMA_EXTENSION||hc(e)}function hc(e){return e.kind===F.SCALAR_TYPE_EXTENSION||e.kind===F.OBJECT_TYPE_EXTENSION||e.kind===F.INTERFACE_TYPE_EXTENSION||e.kind===F.UNION_TYPE_EXTENSION||e.kind===F.ENUM_TYPE_EXTENSION||e.kind===F.INPUT_OBJECT_TYPE_EXTENSION}var _l=ae(()=>{"use strict";p();N();m();$t()});function sm(e){return{Document(t){for(let n of t.definitions)if(!Jd(n)){let r=n.kind===F.SCHEMA_DEFINITION||n.kind===F.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new G(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}var Uv=ae(()=>{"use strict";p();N();m();nt();$t();_l()});function am(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,a=ri("to use an inline fragment on",Q4(i,n,s));a===""&&(a=ri(Y4(n,s))),e.reportError(new G(`Cannot query field "${s}" on type "${n.name}".`+a,{nodes:t}))}}}}function Q4(e,t,n){if(!Jr(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(let u of a.getInterfaces()){var s;u.getFields()[n]&&(r.add(u),i[u.name]=((s=i[u.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((a,u)=>{let l=i[u.name]-i[a.name];return l!==0?l:mt(a)&&e.isSubType(a,u)?-1:mt(u)&&e.isSubType(u,a)?1:mo(a.name,u.name)}).map(a=>a.name)}function Y4(e,t){if(rt(e)||mt(e)){let n=Object.keys(e.getFields());return _i(t,n)}return[]}var Bv=ae(()=>{"use strict";p();N();m();dc();Mp();pc();nt();jt()});function om(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=xn(e.getSchema(),n);if(r&&!Si(r)){let i=Dt(n);e.reportError(new G(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=xn(e.getSchema(),t.typeCondition);if(n&&!Si(n)){let r=Dt(t.typeCondition);e.reportError(new G(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}var kv=ae(()=>{"use strict";p();N();m();nt();Xi();jt();La()});function um(e){return K(x({},xv(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,a=r.args.map(l=>l.name),u=_i(s,a);e.reportError(new G(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+ri(u),{nodes:t}))}}})}function xv(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let a of r)t[a.name]=a.args.map(u=>u.name);let i=e.getDocument().definitions;for(let a of i)if(a.kind===F.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];t[a.name.value]=u.map(l=>l.name.value)}return{Directive(a){let u=a.name.value,l=t[u];if(a.arguments&&l)for(let d of a.arguments){let f=d.name.value;if(!l.includes(f)){let E=_i(f,l);e.reportError(new G(`Unknown argument "${f}" on directive "@${u}".`+ri(E),{nodes:d}))}}return!1}}}var Mv=ae(()=>{"use strict";p();N();m();dc();pc();nt();$t();Ui()});function Wd(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===F.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(a=>a.value));return{Directive(s,a,u,l,d){let f=s.name.value,E=t[f];if(!E){e.reportError(new G(`Unknown directive "@${f}".`,{nodes:s}));return}let h=J4(d);h&&!E.includes(h)&&e.reportError(new G(`Directive "@${f}" may not be used on ${h}.`,{nodes:s}))}}}function J4(e){let t=e[e.length-1];switch("kind"in t||Bt(!1),t.kind){case F.OPERATION_DEFINITION:return H4(t.operation);case F.FIELD:return ze.FIELD;case F.FRAGMENT_SPREAD:return ze.FRAGMENT_SPREAD;case F.INLINE_FRAGMENT:return ze.INLINE_FRAGMENT;case F.FRAGMENT_DEFINITION:return ze.FRAGMENT_DEFINITION;case F.VARIABLE_DEFINITION:return ze.VARIABLE_DEFINITION;case F.SCHEMA_DEFINITION:case F.SCHEMA_EXTENSION:return ze.SCHEMA;case F.SCALAR_TYPE_DEFINITION:case F.SCALAR_TYPE_EXTENSION:return ze.SCALAR;case F.OBJECT_TYPE_DEFINITION:case F.OBJECT_TYPE_EXTENSION:return ze.OBJECT;case F.FIELD_DEFINITION:return ze.FIELD_DEFINITION;case F.INTERFACE_TYPE_DEFINITION:case F.INTERFACE_TYPE_EXTENSION:return ze.INTERFACE;case F.UNION_TYPE_DEFINITION:case F.UNION_TYPE_EXTENSION:return ze.UNION;case F.ENUM_TYPE_DEFINITION:case F.ENUM_TYPE_EXTENSION:return ze.ENUM;case F.ENUM_VALUE_DEFINITION:return ze.ENUM_VALUE;case F.INPUT_OBJECT_TYPE_DEFINITION:case F.INPUT_OBJECT_TYPE_EXTENSION:return ze.INPUT_OBJECT;case F.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||Bt(!1),n.kind===F.INPUT_OBJECT_TYPE_DEFINITION?ze.INPUT_FIELD_DEFINITION:ze.ARGUMENT_DEFINITION}default:Bt(!1,"Unexpected kind: "+ne(t.kind))}}function H4(e){switch(e){case bn.QUERY:return ze.QUERY;case bn.MUTATION:return ze.MUTATION;case bn.SUBSCRIPTION:return ze.SUBSCRIPTION}}var Vv=ae(()=>{"use strict";p();N();m();an();ni();nt();Oa();Fd();$t();Ui()});function cm(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new G(`Unknown fragment "${n}".`,{nodes:t.name}))}}}var qv=ae(()=>{"use strict";p();N();m();nt()});function Xd(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)gs(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,a,u,l,d){let f=s.name.value;if(!n[f]&&!r[f]){var E;let h=(E=d[2])!==null&&E!==void 0?E:u,_=h!=null&&z4(h);if(_&&dU.includes(f))return;let A=_i(f,_?dU.concat(i):i);e.reportError(new G(`Unknown type "${f}".`+ri(A),{nodes:s}))}}}}function z4(e){return"kind"in e&&(Hd(e)||zd(e))}var dU,$v=ae(()=>{"use strict";p();N();m();dc();pc();nt();_l();Is();Ra();dU=[...Aa,...wa].map(e=>e.name)});function lm(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===F.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new G("This anonymous operation must be the only defined operation.",{nodes:n}))}}}var jv=ae(()=>{"use strict";p();N();m();nt();$t()});function dm(e){var t,n,r;let i=e.getSchema(),s=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(u){if(s){e.reportError(new G("Cannot define a new schema within a schema extension.",{nodes:u}));return}a>0&&e.reportError(new G("Must provide only one schema definition.",{nodes:u})),++a}}}var Kv=ae(()=>{"use strict";p();N();m();nt()});function fm(e){function t(n,r=Object.create(null),i=0){if(n.kind===F.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let a=e.getFragment(s);if(!a)return!1;try{return r[s]=!0,t(a,r,i)}finally{r[s]=void 0}}if(n.kind===F.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=W4))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new G("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}var W4,Gv=ae(()=>{"use strict";p();N();m();nt();$t();W4=3});function pm(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let a=s.name.value;t[a]=!0;let u=e.getFragmentSpreads(s.selectionSet);if(u.length!==0){r[a]=n.length;for(let l of u){let d=l.name.value,f=r[d];if(n.push(l),f===void 0){let E=e.getFragment(d);E&&i(E)}else{let E=n.slice(f),h=E.slice(0,-1).map(_=>'"'+_.name.value+'"').join(", ");e.reportError(new G(`Cannot spread fragment "${d}" within itself`+(h!==""?` via ${h}.`:"."),{nodes:E}))}n.pop()}r[a]=void 0}}}var Qv=ae(()=>{"use strict";p();N();m();nt()});function mm(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let s=i.name.value;t[s]!==!0&&e.reportError(new G(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}var Yv=ae(()=>{"use strict";p();N();m();nt()});function Nm(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new G(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}var Jv=ae(()=>{"use strict";p();N();m();nt()});function Tm(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let a=s.variable.name.value;r[a]!==!0&&e.reportError(new G(n.name?`Variable "$${a}" is never used in operation "${n.name.value}".`:`Variable "$${a}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}var Hv=ae(()=>{"use strict";p();N();m();nt()});function Zd(e){switch(e.kind){case F.OBJECT:return K(x({},e),{fields:X4(e.fields)});case F.LIST:return K(x({},e),{values:e.values.map(Zd)});case F.INT:case F.FLOAT:case F.STRING:case F.BOOLEAN:case F.NULL:case F.ENUM:case F.VARIABLE:return e}}function X4(e){return e.map(t=>K(x({},t),{value:Zd(t.value)})).sort((t,n)=>mo(t.name.value,n.name.value))}var zv=ae(()=>{"use strict";p();N();m();Mp();$t()});function pU(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+pU(n)).join(" and "):e}function Em(e){let t=new Zv,n=new Map;return{SelectionSet(r){let i=Z4(e,n,t,e.getParentType(),r);for(let[[s,a],u,l]of i){let d=pU(a);e.reportError(new G(`Fields "${s}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function Z4(e,t,n,r,i){let s=[],[a,u]=WE(e,t,r,i);if(t8(e,s,t,n,a),u.length!==0)for(let l=0;l1)for(let u=0;u[s.value,a]));return n.every(s=>{let a=s.value,u=i.get(s.name.value);return u===void 0?!1:fU(a)===fU(u)})}function fU(e){return Dt(Zd(e))}function Wv(e,t){return bt(e)?bt(t)?Wv(e.ofType,t.ofType):!0:bt(t)?!0:Ke(e)?Ke(t)?Wv(e.ofType,t.ofType):!0:Ke(t)?!0:Dr(e)||Dr(t)?e!==t:!1}function WE(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),a=Object.create(null);NU(e,n,r,s,a);let u=[s,Object.keys(a)];return t.set(r,u),u}function Xv(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=xn(e.getSchema(),n.typeCondition);return WE(e,t,i,n.selectionSet)}function NU(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case F.FIELD:{let a=s.name.value,u;(rt(t)||mt(t))&&(u=t.getFields()[a]);let l=s.alias?s.alias.value:a;r[l]||(r[l]=[]),r[l].push([t,s,u]);break}case F.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case F.INLINE_FRAGMENT:{let a=s.typeCondition,u=a?xn(e.getSchema(),a):t;NU(e,u,s.selectionSet,r,i);break}}}function r8(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var Zv,tS=ae(()=>{"use strict";p();N();m();an();nt();$t();Xi();jt();zv();La();Zv=class{constructor(){this._data=new Map}has(t,n,r){var i;let[s,a]=t{"use strict";p();N();m();an();nt();jt();Jp();La()});function ym(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)gs(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,a=n[s],u=t==null?void 0:t.getType(s),l;if(a?l=s8[a.kind]:u&&(l=a8(u)),l){if(l!==i.kind){let d=o8(i.kind);e.reportError(new G(`Cannot extend non-${d} type "${s}".`,{nodes:a?[a,i]:i}))}}else{let d=Object.keys(x(x({},n),t==null?void 0:t.getTypeMap())),f=_i(s,d);e.reportError(new G(`Cannot extend type "${s}" because it is not defined.`+ri(f),{nodes:i.name}))}}}function a8(e){if(Kn(e))return F.SCALAR_TYPE_EXTENSION;if(rt(e))return F.OBJECT_TYPE_EXTENSION;if(mt(e))return F.INTERFACE_TYPE_EXTENSION;if(tn(e))return F.UNION_TYPE_EXTENSION;if(Gt(e))return F.ENUM_TYPE_EXTENSION;if(Nt(e))return F.INPUT_OBJECT_TYPE_EXTENSION;Bt(!1,"Unexpected type: "+ne(e))}function o8(e){switch(e){case F.SCALAR_TYPE_EXTENSION:return"scalar";case F.OBJECT_TYPE_EXTENSION:return"object";case F.INTERFACE_TYPE_EXTENSION:return"interface";case F.UNION_TYPE_EXTENSION:return"union";case F.ENUM_TYPE_EXTENSION:return"enum";case F.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Bt(!1,"Unexpected kind: "+ne(e))}}var s8,rS=ae(()=>{"use strict";p();N();m();dc();an();ni();pc();nt();$t();_l();jt();s8={[F.SCALAR_TYPE_DEFINITION]:F.SCALAR_TYPE_EXTENSION,[F.OBJECT_TYPE_DEFINITION]:F.OBJECT_TYPE_EXTENSION,[F.INTERFACE_TYPE_DEFINITION]:F.INTERFACE_TYPE_EXTENSION,[F.UNION_TYPE_DEFINITION]:F.UNION_TYPE_EXTENSION,[F.ENUM_TYPE_DEFINITION]:F.ENUM_TYPE_EXTENSION,[F.INPUT_OBJECT_TYPE_DEFINITION]:F.INPUT_OBJECT_TYPE_EXTENSION}});function Im(e){return K(x({},iS(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&rs(s)){let a=ne(s.type);e.reportError(new G(`Field "${r.name}" argument "${s.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}})}function iS(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:ai;for(let u of i)n[u.name]=ii(u.args.filter(rs),l=>l.name);let s=e.getDocument().definitions;for(let u of s)if(u.kind===F.DIRECTIVE_DEFINITION){var a;let l=(a=u.arguments)!==null&&a!==void 0?a:[];n[u.name.value]=ii(l.filter(u8),d=>d.name.value)}return{Directive:{leave(u){let l=u.name.value,d=n[l];if(d){var f;let E=(f=u.arguments)!==null&&f!==void 0?f:[],h=new Set(E.map(_=>_.name.value));for(let[_,A]of Object.entries(d))if(!h.has(_)){let U=Nc(A.type)?ne(A.type):Dt(A.type);e.reportError(new G(`Directive "@${l}" argument "${_}" of type "${U}" is required, but it was not provided.`,{nodes:u}))}}}}}}function u8(e){return e.type.kind===F.NON_NULL_TYPE&&e.defaultValue==null}var sS=ae(()=>{"use strict";p();N();m();an();fc();nt();$t();Xi();jt();Ui()});function gm(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(Dr(kn(n))){if(r){let i=t.name.value,s=ne(n);e.reportError(new G(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,s=ne(n);e.reportError(new G(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}var aS=ae(()=>{"use strict";p();N();m();an();nt();jt()});function XE(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}var oS=ae(()=>{"use strict";p();N();m()});function _o(e,t,n){return{prev:e,key:t,typename:n}}function Tr(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}var _m=ae(()=>{"use strict";p();N();m()});function Sm(e,t,n=c8){return vm(e,t,n,void 0)}function c8(e,t,n){let r="Invalid value "+ne(t);throw e.length>0&&(r+=` at "value${XE(e)}"`),n.message=r+": "+n.message,n}function vm(e,t,n,r){if(Ke(t)){if(e!=null)return vm(e,t.ofType,n,r);n(Tr(r),e,new G(`Expected non-nullable type "${ne(t)}" not to be null.`));return}if(e==null)return null;if(bt(t)){let i=t.ofType;return Qd(e)?Array.from(e,(s,a)=>{let u=_o(r,a,void 0);return vm(s,i,n,u)}):[vm(e,i,n,r)]}if(Nt(t)){if(!Xn(e)){n(Tr(r),e,new G(`Expected type "${t.name}" to be an object.`));return}let i={},s=t.getFields();for(let a of Object.values(s)){let u=e[a.name];if(u===void 0){if(a.defaultValue!==void 0)i[a.name]=a.defaultValue;else if(Ke(a.type)){let l=ne(a.type);n(Tr(r),e,new G(`Field "${a.name}" of required type "${l}" was not provided.`))}continue}i[a.name]=vm(u,a.type,n,_o(r,a.name,t.name))}for(let a of Object.keys(e))if(!s[a]){let u=_i(a,Object.keys(t.getFields()));n(Tr(r),e,new G(`Field "${a}" is not defined by type "${t.name}".`+ri(u)))}if(t.isOneOf){let a=Object.keys(i);a.length!==1&&n(Tr(r),e,new G(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=a[0],l=i[u];l===null&&n(Tr(r).concat(u),l,new G(`Field "${u}" must be non-null.`))}return i}if(Dr(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof G?n(Tr(r),e,s):n(Tr(r),e,new G(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n(Tr(r),e,new G(`Expected type "${t.name}".`)),i}Bt(!1,"Unexpected input type: "+ne(t))}var uS=ae(()=>{"use strict";p();N();m();dc();an();ni();GE();Da();_m();oS();pc();nt();jt()});function Di(e,t,n){if(e){if(e.kind===F.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&Ke(t)?void 0:i}if(Ke(t))return e.kind===F.NULL?void 0:Di(e,t.ofType,n);if(e.kind===F.NULL)return null;if(bt(t)){let r=t.ofType;if(e.kind===F.LIST){let s=[];for(let a of e.values)if(TU(a,n)){if(Ke(r))return;s.push(null)}else{let u=Di(a,r,n);if(u===void 0)return;s.push(u)}return s}let i=Di(e,r,n);return i===void 0?void 0:[i]}if(Nt(t)){if(e.kind!==F.OBJECT)return;let r=Object.create(null),i=ii(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let a=i[s.name];if(!a||TU(a.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if(Ke(s.type))return;continue}let u=Di(a.value,s.type,n);if(u===void 0)return;r[s.name]=u}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if(Dr(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}Bt(!1,"Unexpected input type: "+ne(t))}}function TU(e,t){return e.kind===F.VARIABLE&&(t==null||t[e.name.value]===void 0)}var Dm=ae(()=>{"use strict";p();N();m();an();ni();fc();$t();jt()});function Om(e,t,n,r){let i=[],s=r==null?void 0:r.maxErrors;try{let a=l8(e,t,n,u=>{if(s!=null&&i.length>=s)throw new G("Too many errors processing variables, error limit reached. Execution aborted.");i.push(u)});if(i.length===0)return{coerced:a}}catch(a){i.push(a)}return{errors:i}}function l8(e,t,n,r){let i={};for(let s of t){let a=s.variable.name.value,u=xn(e,s.type);if(!sr(u)){let d=Dt(s.type);r(new G(`Variable "$${a}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!EU(n,a)){if(s.defaultValue)i[a]=Di(s.defaultValue,u);else if(Ke(u)){let d=ne(u);r(new G(`Variable "$${a}" of required type "${d}" was not provided.`,{nodes:s}))}continue}let l=n[a];if(l===null&&Ke(u)){let d=ne(u);r(new G(`Variable "$${a}" of non-null type "${d}" must not be null.`,{nodes:s}));continue}i[a]=Sm(l,u,(d,f,E)=>{let h=`Variable "$${a}" got invalid value `+ne(f);d.length>0&&(h+=` at "${a}${XE(d)}"`),r(new G(h+"; "+E.message,{nodes:s,originalError:E}))})}return i}function yc(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],a=ii(s,u=>u.name.value);for(let u of e.args){let l=u.name,d=u.type,f=a[l];if(!f){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if(Ke(d))throw new G(`Argument "${l}" of required type "${ne(d)}" was not provided.`,{nodes:t});continue}let E=f.value,h=E.kind===F.NULL;if(E.kind===F.VARIABLE){let A=E.name.value;if(n==null||!EU(n,A)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if(Ke(d))throw new G(`Argument "${l}" of required type "${ne(d)}" was provided the variable "$${A}" which was not provided a runtime value.`,{nodes:E});continue}h=n[A]==null}if(h&&Ke(d))throw new G(`Argument "${l}" of non-null type "${ne(d)}" must not be null.`,{nodes:E});let _=Di(E,d,n);if(_===void 0)throw new G(`Argument "${l}" has invalid value ${Dt(E)}.`,{nodes:E});i[l]=_}return i}function Pa(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return yc(e,i,n)}function EU(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var ef=ae(()=>{"use strict";p();N();m();an();fc();oS();nt();$t();Xi();jt();uS();La();Dm()});function tf(e,t,n,r,i){let s=new Map;return ZE(e,t,n,r,i,s,new Set),s}function yU(e,t,n,r,i){let s=new Map,a=new Set;for(let u of i)u.selectionSet&&ZE(e,t,n,r,u.selectionSet,s,a);return s}function ZE(e,t,n,r,i,s,a){for(let u of i.selections)switch(u.kind){case F.FIELD:{if(!cS(n,u))continue;let l=d8(u),d=s.get(l);d!==void 0?d.push(u):s.set(l,[u]);break}case F.INLINE_FRAGMENT:{if(!cS(n,u)||!hU(e,u,r))continue;ZE(e,t,n,r,u.selectionSet,s,a);break}case F.FRAGMENT_SPREAD:{let l=u.name.value;if(a.has(l)||!cS(n,u))continue;a.add(l);let d=t[l];if(!d||!hU(e,d,r))continue;ZE(e,t,n,r,d.selectionSet,s,a);break}}}function cS(e,t){let n=Pa($d,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=Pa(qd,t,e);return(r==null?void 0:r.if)!==!1}function hU(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=xn(e,r);return i===n?!0:Jr(i)?e.isSubType(i,n):!1}function d8(e){return e.alias?e.alias.value:e.name.value}var eh=ae(()=>{"use strict";p();N();m();$t();jt();Ui();La();ef()});function bm(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,s=Object.create(null),a=e.getDocument(),u=Object.create(null);for(let d of a.definitions)d.kind===F.FRAGMENT_DEFINITION&&(u[d.name.value]=d);let l=tf(n,u,s,r,t.selectionSet);if(l.size>1){let E=[...l.values()].slice(1).flat();e.reportError(new G(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:E}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new G(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}var lS=ae(()=>{"use strict";p();N();m();nt();$t();eh()});function nf(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}var th=ae(()=>{"use strict";p();N();m()});function Am(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,a=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of a){var u;let d=l.name.value,f=(u=l.arguments)!==null&&u!==void 0?u:[];n(`${s}.${d}`,f)}return!1}function n(r,i){let s=nf(i,a=>a.name.value);for(let[a,u]of s)u.length>1&&e.reportError(new G(`Argument "${r}(${a}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}var dS=ae(()=>{"use strict";p();N();m();th();nt()});function rf(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=nf(i,a=>a.name.value);for(let[a,u]of s)u.length>1&&e.reportError(new G(`There can be only one argument named "${a}".`,{nodes:u.map(l=>l.name)}))}}var fS=ae(()=>{"use strict";p();N();m();th();nt()});function Rm(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new G(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new G(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}var pS=ae(()=>{"use strict";p();N();m();nt()});function sf(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let u of r)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===F.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let s=Object.create(null),a=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===F.SCHEMA_DEFINITION||u.kind===F.SCHEMA_EXTENSION)l=s;else if(gs(u)||hc(u)){let d=u.name.value;l=a[d],l===void 0&&(a[d]=l=Object.create(null))}else l=Object.create(null);for(let d of u.directives){let f=d.name.value;t[f]&&(l[f]?e.reportError(new G(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],d]})):l[f]=d)}}}}var mS=ae(()=>{"use strict";p();N();m();nt();$t();_l();Ui()});function Fm(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var a;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(a=s.values)!==null&&a!==void 0?a:[],d=r[u];for(let f of l){let E=f.name.value,h=n[u];Gt(h)&&h.getValue(E)?e.reportError(new G(`Enum value "${u}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):d[E]?e.reportError(new G(`Enum value "${u}.${E}" can only be defined once.`,{nodes:[d[E],f.name]})):d[E]=f.name}return!1}}var NS=ae(()=>{"use strict";p();N();m();nt();jt()});function wm(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(s){var a;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(a=s.fields)!==null&&a!==void 0?a:[],d=r[u];for(let f of l){let E=f.name.value;f8(n[u],E)?e.reportError(new G(`Field "${u}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):d[E]?e.reportError(new G(`Field "${u}.${E}" can only be defined once.`,{nodes:[d[E],f.name]})):d[E]=f.name}return!1}}function f8(e,t){return rt(e)||mt(e)||Nt(e)?e.getFields()[t]!=null:!1}var TS=ae(()=>{"use strict";p();N();m();nt();jt()});function Lm(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new G(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}var ES=ae(()=>{"use strict";p();N();m();nt()});function af(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||Bt(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new G(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}var hS=ae(()=>{"use strict";p();N();m();ni();nt()});function Pm(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new G(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}var yS=ae(()=>{"use strict";p();N();m();nt()});function Cm(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(s){var a;let u=(a=s.operationTypes)!==null&&a!==void 0?a:[];for(let l of u){let d=l.operation,f=n[d];r[d]?e.reportError(new G(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):f?e.reportError(new G(`There can be only one ${d} type in schema.`,{nodes:[f,l]})):n[d]=l}return!1}}var IS=ae(()=>{"use strict";p();N();m();nt()});function Um(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new G(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new G(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}var gS=ae(()=>{"use strict";p();N();m();nt()});function Bm(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=nf(r,s=>s.variable.name.value);for(let[s,a]of i)a.length>1&&e.reportError(new G(`There can be only one variable named "$${s}".`,{nodes:a.map(u=>u.variable.name)}))}}}var _S=ae(()=>{"use strict";p();N();m();th();nt()});function km(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=pl(e.getParentInputType());if(!bt(r))return vl(e,n),!1},ObjectValue(n){let r=kn(e.getInputType());if(!Nt(r))return vl(e,n),!1;let i=ii(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&Eo(s)){let u=ne(s.type);e.reportError(new G(`Field "${r.name}.${s.name}" of required type "${u}" was not provided.`,{nodes:n}))}r.isOneOf&&p8(e,n,r,i,t)},ObjectField(n){let r=kn(e.getParentInputType());if(!e.getInputType()&&Nt(r)){let s=_i(n.name.value,Object.keys(r.getFields()));e.reportError(new G(`Field "${n.name.value}" is not defined by type "${r.name}".`+ri(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();Ke(r)&&e.reportError(new G(`Expected value of type "${ne(r)}", found ${Dt(n)}.`,{nodes:n}))},EnumValue:n=>vl(e,n),IntValue:n=>vl(e,n),FloatValue:n=>vl(e,n),StringValue:n=>vl(e,n),BooleanValue:n=>vl(e,n)}}function vl(e,t){let n=e.getInputType();if(!n)return;let r=kn(n);if(!Dr(r)){let i=ne(n);e.reportError(new G(`Expected value of type "${i}", found ${Dt(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=ne(n);e.reportError(new G(`Expected value of type "${s}", found ${Dt(t)}.`,{nodes:t}))}}catch(i){let s=ne(n);i instanceof G?e.reportError(i):e.reportError(new G(`Expected value of type "${s}", found ${Dt(t)}; `+i.message,{nodes:t,originalError:i}))}}function p8(e,t,n,r,i){var s;let a=Object.keys(r);if(a.length!==1){e.reportError(new G(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(s=r[a[0]])===null||s===void 0?void 0:s.value,d=!l||l.kind===F.NULL,f=(l==null?void 0:l.kind)===F.VARIABLE;if(d){e.reportError(new G(`Field "${n.name}.${a[0]}" must be non-null.`,{nodes:[t]}));return}if(f){let E=l.name.value;i[E].type.kind!==F.NON_NULL_TYPE&&e.reportError(new G(`Variable "${E}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}var vS=ae(()=>{"use strict";p();N();m();dc();an();fc();pc();nt();$t();Xi();jt()});function xm(e){return{VariableDefinition(t){let n=xn(e.getSchema(),t.type);if(n!==void 0&&!sr(n)){let r=t.variable.name.value,i=Dt(t.type);e.reportError(new G(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}var SS=ae(()=>{"use strict";p();N();m();nt();Xi();jt();La()});function Mm(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:s,defaultValue:a}of r){let u=i.name.value,l=t[u];if(l&&s){let d=e.getSchema(),f=xn(d,l.type);if(f&&!m8(d,f,l.defaultValue,s,a)){let E=ne(f),h=ne(s);e.reportError(new G(`Variable "$${u}" of type "${E}" used in position expecting type "${h}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function m8(e,t,n,r,i){if(Ke(r)&&!Ke(t)){if(!(n!=null&&n.kind!==F.NULL)&&!(i!==void 0))return!1;let u=r.ofType;return Ws(e,t,u)}return Ws(e,t,r)}var DS=ae(()=>{"use strict";p();N();m();an();nt();$t();jt();Jp();La()});var nh,Vm,IU,OS=ae(()=>{"use strict";p();N();m();Uv();Bv();kv();Mv();Vv();qv();$v();jv();Kv();Gv();Qv();Yv();Jv();Hv();tS();nS();rS();sS();aS();lS();dS();fS();pS();mS();NS();TS();ES();hS();yS();IS();gS();_S();vS();SS();DS();nh=Object.freeze([fm]),Vm=Object.freeze([sm,Pm,lm,bm,Xd,om,xm,gm,am,Lm,cm,Nm,hm,pm,Bm,mm,Tm,Wd,sf,um,rf,km,Im,Mm,Em,af,...nh]),IU=Object.freeze([dm,Cm,Um,Fm,wm,Am,Rm,Xd,Wd,sf,ym,xv,rf,af,iS])});var rh,ih,Sl,bS=ae(()=>{"use strict";p();N();m();$t();ll();YE();rh=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===F.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let s of i.selections)s.kind===F.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],s;for(;s=i.pop();)for(let a of this.getFragmentSpreads(s)){let u=a.name.value;if(r[u]!==!0){r[u]=!0;let l=this.getFragment(u);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}},ih=class extends rh{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}},Sl=class extends rh{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new go(this._schema);ys(t,gl(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}});function qm(e,t,n=Vm,r,i=new go(e)){var s;let a=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||tt(!1,"Must provide document."),Il(e);let u=Object.freeze({}),l=[],d=new Sl(e,t,i,E=>{if(l.length>=a)throw l.push(new G("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(E)}),f=Ud(n.map(E=>E(d)));try{ys(t,gl(i,f))}catch(E){if(E!==u)throw E}return l}function gU(e,t,n=IU){let r=[],i=new ih(e,t,a=>{r.push(a)}),s=n.map(a=>a(i));return ys(e,Ud(s)),r}function _U(e){let t=gU(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}function $8(e,t){let n=K_(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` +`))}function vU(e,t){let n=gU(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` -`))}});var BL=w(G_=>{"use strict";m();T();N();Object.defineProperty(G_,"__esModule",{value:!0});G_.memoize3=Q8;function Q8(e){let t;return function(r,i,a){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let c=o.get(i);c===void 0&&(c=new WeakMap,o.set(i,c));let l=c.get(a);return l===void 0&&(l=e(r,i,a),c.set(a,l)),l}}});var UL=w($_=>{"use strict";m();T();N();Object.defineProperty($_,"__esModule",{value:!0});$_.promiseForObject=Y8;function Y8(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}});var kL=w(Q_=>{"use strict";m();T();N();Object.defineProperty(Q_,"__esModule",{value:!0});Q_.promiseReduce=H8;var J8=Mm();function H8(e,t,n){let r=n;for(let i of e)r=(0,J8.isPromise)(r)?r.then(a=>t(a,i)):t(r,i);return r}});var ML=w(J_=>{"use strict";m();T();N();Object.defineProperty(J_,"__esModule",{value:!0});J_.toError=W8;var z8=Wt();function W8(e){return e instanceof Error?e:new Y_(e)}var Y_=class extends Error{constructor(t){super("Unexpected error value: "+(0,z8.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var kN=w(H_=>{"use strict";m();T();N();Object.defineProperty(H_,"__esModule",{value:!0});H_.locatedError=eX;var X8=ML(),Z8=ze();function eX(e,t,n){var r;let i=(0,X8.toError)(e);return tX(i)?i:new Z8.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function tX(e){return Array.isArray(e.path)}});var Sf=w(Ui=>{"use strict";m();T();N();Object.defineProperty(Ui,"__esModule",{value:!0});Ui.assertValidExecutionArguments=QL;Ui.buildExecutionContext=YL;Ui.buildResolveInfo=HL;Ui.defaultTypeResolver=Ui.defaultFieldResolver=void 0;Ui.execute=$L;Ui.executeSync=uX;Ui.getFieldDef=WL;var W_=qr(),pc=Wt(),nX=br(),rX=hN(),ev=Ba(),fa=Mm(),iX=BL(),mc=Tf(),xL=UL(),aX=kL(),Bi=ze(),xN=kN(),z_=Ua(),qL=wt(),Eu=Lt(),Al=Li(),sX=pf(),KL=LN(),GL=Sl(),oX=(0,iX.memoize3)((e,t,n)=>(0,KL.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function $L(e){arguments.length<2||(0,W_.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;QL(t,n,r);let a=YL(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,c=cX(a,o,i);return(0,fa.isPromise)(c)?c.then(l=>MN(l,a.errors),l=>(a.errors.push(l),MN(null,a.errors))):MN(c,a.errors)}catch(o){return a.errors.push(o),MN(null,a.errors)}}function uX(e){let t=$L(e);if((0,fa.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function MN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function QL(e,t,n){t||(0,W_.devAssert)(!1,"Must provide document."),(0,sX.assertValidSchema)(e),n==null||(0,ev.isObjectLike)(n)||(0,W_.devAssert)(!1,"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 YL(e){var t,n;let{schema:r,document:i,rootValue:a,contextValue:o,variableValues:c,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:E}=e,I,v=Object.create(null);for(let j of i.definitions)switch(j.kind){case qL.Kind.OPERATION_DEFINITION:if(l==null){if(I!==void 0)return[new Bi.GraphQLError("Must provide operation name if query contains multiple operations.")];I=j}else((t=j.name)===null||t===void 0?void 0:t.value)===l&&(I=j);break;case qL.Kind.FRAGMENT_DEFINITION:v[j.name.value]=j;break;default:}if(!I)return l!=null?[new Bi.GraphQLError(`Unknown operation named "${l}".`)]:[new Bi.GraphQLError("Must provide an operation.")];let A=(n=I.variableDefinitions)!==null&&n!==void 0?n:[],U=(0,GL.getVariableValues)(r,A,c!=null?c:{},{maxErrors:50});return U.errors?U.errors:{schema:r,fragments:v,rootValue:a,contextValue:o,operation:I,variableValues:U.coerced,fieldResolver:d!=null?d:Z_,typeResolver:p!=null?p:zL,subscribeFieldResolver:E!=null?E:Z_,errors:[]}}function cX(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Bi.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,KL.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case z_.OperationTypeNode.QUERY:return qN(e,r,n,a,i);case z_.OperationTypeNode.MUTATION:return lX(e,r,n,a,i);case z_.OperationTypeNode.SUBSCRIPTION:return qN(e,r,n,a,i)}}function lX(e,t,n,r,i){return(0,aX.promiseReduce)(i.entries(),(a,[o,c])=>{let l=(0,mc.addPath)(r,o,t.name),d=JL(e,t,n,c,l);return d===void 0?a:(0,fa.isPromise)(d)?d.then(p=>(a[o]=p,a)):(a[o]=d,a)},Object.create(null))}function qN(e,t,n,r,i){let a=Object.create(null),o=!1;try{for(let[c,l]of i.entries()){let d=(0,mc.addPath)(r,c,t.name),p=JL(e,t,n,l,d);p!==void 0&&(a[c]=p,(0,fa.isPromise)(p)&&(o=!0))}}catch(c){if(o)return(0,xL.promiseForObject)(a).finally(()=>{throw c});throw c}return o?(0,xL.promiseForObject)(a):a}function JL(e,t,n,r,i){var a;let o=WL(e.schema,t,r[0]);if(!o)return;let c=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,d=HL(e,o,r,t,i);try{let p=(0,GL.getArgumentValues)(o,r[0],e.variableValues),E=e.contextValue,I=l(n,p,E,d),v;return(0,fa.isPromise)(I)?v=I.then(A=>Of(e,c,r,d,i,A)):v=Of(e,c,r,d,i,I),(0,fa.isPromise)(v)?v.then(void 0,A=>{let U=(0,xN.locatedError)(A,r,(0,mc.pathToArray)(i));return VN(U,c,e)}):v}catch(p){let E=(0,xN.locatedError)(p,r,(0,mc.pathToArray)(i));return VN(E,c,e)}}function HL(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function VN(e,t,n){if((0,Eu.isNonNullType)(t))throw e;return n.errors.push(e),null}function Of(e,t,n,r,i,a){if(a instanceof Error)throw a;if((0,Eu.isNonNullType)(t)){let o=Of(e,t.ofType,n,r,i,a);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(a==null)return null;if((0,Eu.isListType)(t))return dX(e,t,n,r,i,a);if((0,Eu.isLeafType)(t))return fX(t,a);if((0,Eu.isAbstractType)(t))return pX(e,t,n,r,i,a);if((0,Eu.isObjectType)(t))return X_(e,t,n,r,i,a);(0,nX.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,pc.inspect)(t))}function dX(e,t,n,r,i,a){if(!(0,rX.isIterableObject)(a))throw new Bi.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,c=!1,l=Array.from(a,(d,p)=>{let E=(0,mc.addPath)(i,p,void 0);try{let I;return(0,fa.isPromise)(d)?I=d.then(v=>Of(e,o,n,r,E,v)):I=Of(e,o,n,r,E,d),(0,fa.isPromise)(I)?(c=!0,I.then(void 0,v=>{let A=(0,xN.locatedError)(v,n,(0,mc.pathToArray)(E));return VN(A,o,e)})):I}catch(I){let v=(0,xN.locatedError)(I,n,(0,mc.pathToArray)(E));return VN(v,o,e)}});return c?Promise.all(l):l}function fX(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,pc.inspect)(e)}.serialize(${(0,pc.inspect)(t)})\` to return non-nullable value, returned: ${(0,pc.inspect)(n)}`);return n}function pX(e,t,n,r,i,a){var o;let c=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=c(a,l,r,t);return(0,fa.isPromise)(d)?d.then(p=>X_(e,VL(p,e,t,n,r,a),n,r,i,a)):X_(e,VL(d,e,t,n,r,a),n,r,i,a)}function VL(e,t,n,r,i,a){if(e==null)throw new Bi.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,Eu.isObjectType)(e))throw new Bi.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Bi.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,pc.inspect)(a)}, received "${(0,pc.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Bi.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,Eu.isObjectType)(o))throw new Bi.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Bi.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function X_(e,t,n,r,i,a){let o=oX(e,t,n);if(t.isTypeOf){let c=t.isTypeOf(a,e.contextValue,r);if((0,fa.isPromise)(c))return c.then(l=>{if(!l)throw jL(t,a,n);return qN(e,t,a,i,o)});if(!c)throw jL(t,a,n)}return qN(e,t,a,i,o)}function jL(e,t,n){return new Bi.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,pc.inspect)(t)}.`,{nodes:n})}var zL=function(e,t,n,r){if((0,ev.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),a=[];for(let o=0;o{for(let c=0;c{"use strict";m();T();N();Object.defineProperty(jN,"__esModule",{value:!0});jN.graphql=IX;jN.graphqlSync=gX;var mX=qr(),NX=Mm(),TX=Nl(),EX=pf(),hX=bl(),yX=Sf();function IX(e){return new Promise(t=>t(XL(e)))}function gX(e){let t=XL(e);if((0,NX.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function XL(e){arguments.length<2||(0,mX.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l}=e,d=(0,EX.validateSchema)(t);if(d.length>0)return{errors:d};let p;try{p=(0,TX.parse)(n)}catch(I){return{errors:[I]}}let E=(0,hX.validate)(t,p);return E.length>0?{errors:E}:(0,yX.execute)({schema:t,document:p,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l})}});var nC=w(he=>{"use strict";m();T();N();Object.defineProperty(he,"__esModule",{value:!0});Object.defineProperty(he,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return pa.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(he,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return bs.GRAPHQL_MAX_INT}});Object.defineProperty(he,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return bs.GRAPHQL_MIN_INT}});Object.defineProperty(he,"GraphQLBoolean",{enumerable:!0,get:function(){return bs.GraphQLBoolean}});Object.defineProperty(he,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return pa.GraphQLDeprecatedDirective}});Object.defineProperty(he,"GraphQLDirective",{enumerable:!0,get:function(){return pa.GraphQLDirective}});Object.defineProperty(he,"GraphQLEnumType",{enumerable:!0,get:function(){return at.GraphQLEnumType}});Object.defineProperty(he,"GraphQLFloat",{enumerable:!0,get:function(){return bs.GraphQLFloat}});Object.defineProperty(he,"GraphQLID",{enumerable:!0,get:function(){return bs.GraphQLID}});Object.defineProperty(he,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return pa.GraphQLIncludeDirective}});Object.defineProperty(he,"GraphQLInputObjectType",{enumerable:!0,get:function(){return at.GraphQLInputObjectType}});Object.defineProperty(he,"GraphQLInt",{enumerable:!0,get:function(){return bs.GraphQLInt}});Object.defineProperty(he,"GraphQLInterfaceType",{enumerable:!0,get:function(){return at.GraphQLInterfaceType}});Object.defineProperty(he,"GraphQLList",{enumerable:!0,get:function(){return at.GraphQLList}});Object.defineProperty(he,"GraphQLNonNull",{enumerable:!0,get:function(){return at.GraphQLNonNull}});Object.defineProperty(he,"GraphQLObjectType",{enumerable:!0,get:function(){return at.GraphQLObjectType}});Object.defineProperty(he,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return pa.GraphQLOneOfDirective}});Object.defineProperty(he,"GraphQLScalarType",{enumerable:!0,get:function(){return at.GraphQLScalarType}});Object.defineProperty(he,"GraphQLSchema",{enumerable:!0,get:function(){return tv.GraphQLSchema}});Object.defineProperty(he,"GraphQLSkipDirective",{enumerable:!0,get:function(){return pa.GraphQLSkipDirective}});Object.defineProperty(he,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return pa.GraphQLSpecifiedByDirective}});Object.defineProperty(he,"GraphQLString",{enumerable:!0,get:function(){return bs.GraphQLString}});Object.defineProperty(he,"GraphQLUnionType",{enumerable:!0,get:function(){return at.GraphQLUnionType}});Object.defineProperty(he,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Zr.SchemaMetaFieldDef}});Object.defineProperty(he,"TypeKind",{enumerable:!0,get:function(){return Zr.TypeKind}});Object.defineProperty(he,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Zr.TypeMetaFieldDef}});Object.defineProperty(he,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Zr.TypeNameMetaFieldDef}});Object.defineProperty(he,"__Directive",{enumerable:!0,get:function(){return Zr.__Directive}});Object.defineProperty(he,"__DirectiveLocation",{enumerable:!0,get:function(){return Zr.__DirectiveLocation}});Object.defineProperty(he,"__EnumValue",{enumerable:!0,get:function(){return Zr.__EnumValue}});Object.defineProperty(he,"__Field",{enumerable:!0,get:function(){return Zr.__Field}});Object.defineProperty(he,"__InputValue",{enumerable:!0,get:function(){return Zr.__InputValue}});Object.defineProperty(he,"__Schema",{enumerable:!0,get:function(){return Zr.__Schema}});Object.defineProperty(he,"__Type",{enumerable:!0,get:function(){return Zr.__Type}});Object.defineProperty(he,"__TypeKind",{enumerable:!0,get:function(){return Zr.__TypeKind}});Object.defineProperty(he,"assertAbstractType",{enumerable:!0,get:function(){return at.assertAbstractType}});Object.defineProperty(he,"assertCompositeType",{enumerable:!0,get:function(){return at.assertCompositeType}});Object.defineProperty(he,"assertDirective",{enumerable:!0,get:function(){return pa.assertDirective}});Object.defineProperty(he,"assertEnumType",{enumerable:!0,get:function(){return at.assertEnumType}});Object.defineProperty(he,"assertEnumValueName",{enumerable:!0,get:function(){return tC.assertEnumValueName}});Object.defineProperty(he,"assertInputObjectType",{enumerable:!0,get:function(){return at.assertInputObjectType}});Object.defineProperty(he,"assertInputType",{enumerable:!0,get:function(){return at.assertInputType}});Object.defineProperty(he,"assertInterfaceType",{enumerable:!0,get:function(){return at.assertInterfaceType}});Object.defineProperty(he,"assertLeafType",{enumerable:!0,get:function(){return at.assertLeafType}});Object.defineProperty(he,"assertListType",{enumerable:!0,get:function(){return at.assertListType}});Object.defineProperty(he,"assertName",{enumerable:!0,get:function(){return tC.assertName}});Object.defineProperty(he,"assertNamedType",{enumerable:!0,get:function(){return at.assertNamedType}});Object.defineProperty(he,"assertNonNullType",{enumerable:!0,get:function(){return at.assertNonNullType}});Object.defineProperty(he,"assertNullableType",{enumerable:!0,get:function(){return at.assertNullableType}});Object.defineProperty(he,"assertObjectType",{enumerable:!0,get:function(){return at.assertObjectType}});Object.defineProperty(he,"assertOutputType",{enumerable:!0,get:function(){return at.assertOutputType}});Object.defineProperty(he,"assertScalarType",{enumerable:!0,get:function(){return at.assertScalarType}});Object.defineProperty(he,"assertSchema",{enumerable:!0,get:function(){return tv.assertSchema}});Object.defineProperty(he,"assertType",{enumerable:!0,get:function(){return at.assertType}});Object.defineProperty(he,"assertUnionType",{enumerable:!0,get:function(){return at.assertUnionType}});Object.defineProperty(he,"assertValidSchema",{enumerable:!0,get:function(){return eC.assertValidSchema}});Object.defineProperty(he,"assertWrappingType",{enumerable:!0,get:function(){return at.assertWrappingType}});Object.defineProperty(he,"getNamedType",{enumerable:!0,get:function(){return at.getNamedType}});Object.defineProperty(he,"getNullableType",{enumerable:!0,get:function(){return at.getNullableType}});Object.defineProperty(he,"introspectionTypes",{enumerable:!0,get:function(){return Zr.introspectionTypes}});Object.defineProperty(he,"isAbstractType",{enumerable:!0,get:function(){return at.isAbstractType}});Object.defineProperty(he,"isCompositeType",{enumerable:!0,get:function(){return at.isCompositeType}});Object.defineProperty(he,"isDirective",{enumerable:!0,get:function(){return pa.isDirective}});Object.defineProperty(he,"isEnumType",{enumerable:!0,get:function(){return at.isEnumType}});Object.defineProperty(he,"isInputObjectType",{enumerable:!0,get:function(){return at.isInputObjectType}});Object.defineProperty(he,"isInputType",{enumerable:!0,get:function(){return at.isInputType}});Object.defineProperty(he,"isInterfaceType",{enumerable:!0,get:function(){return at.isInterfaceType}});Object.defineProperty(he,"isIntrospectionType",{enumerable:!0,get:function(){return Zr.isIntrospectionType}});Object.defineProperty(he,"isLeafType",{enumerable:!0,get:function(){return at.isLeafType}});Object.defineProperty(he,"isListType",{enumerable:!0,get:function(){return at.isListType}});Object.defineProperty(he,"isNamedType",{enumerable:!0,get:function(){return at.isNamedType}});Object.defineProperty(he,"isNonNullType",{enumerable:!0,get:function(){return at.isNonNullType}});Object.defineProperty(he,"isNullableType",{enumerable:!0,get:function(){return at.isNullableType}});Object.defineProperty(he,"isObjectType",{enumerable:!0,get:function(){return at.isObjectType}});Object.defineProperty(he,"isOutputType",{enumerable:!0,get:function(){return at.isOutputType}});Object.defineProperty(he,"isRequiredArgument",{enumerable:!0,get:function(){return at.isRequiredArgument}});Object.defineProperty(he,"isRequiredInputField",{enumerable:!0,get:function(){return at.isRequiredInputField}});Object.defineProperty(he,"isScalarType",{enumerable:!0,get:function(){return at.isScalarType}});Object.defineProperty(he,"isSchema",{enumerable:!0,get:function(){return tv.isSchema}});Object.defineProperty(he,"isSpecifiedDirective",{enumerable:!0,get:function(){return pa.isSpecifiedDirective}});Object.defineProperty(he,"isSpecifiedScalarType",{enumerable:!0,get:function(){return bs.isSpecifiedScalarType}});Object.defineProperty(he,"isType",{enumerable:!0,get:function(){return at.isType}});Object.defineProperty(he,"isUnionType",{enumerable:!0,get:function(){return at.isUnionType}});Object.defineProperty(he,"isWrappingType",{enumerable:!0,get:function(){return at.isWrappingType}});Object.defineProperty(he,"resolveObjMapThunk",{enumerable:!0,get:function(){return at.resolveObjMapThunk}});Object.defineProperty(he,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return at.resolveReadonlyArrayThunk}});Object.defineProperty(he,"specifiedDirectives",{enumerable:!0,get:function(){return pa.specifiedDirectives}});Object.defineProperty(he,"specifiedScalarTypes",{enumerable:!0,get:function(){return bs.specifiedScalarTypes}});Object.defineProperty(he,"validateSchema",{enumerable:!0,get:function(){return eC.validateSchema}});var tv=uc(),at=Lt(),pa=Wr(),bs=xa(),Zr=Li(),eC=pf(),tC=Wd()});var iC=w(Ut=>{"use strict";m();T();N();Object.defineProperty(Ut,"__esModule",{value:!0});Object.defineProperty(Ut,"BREAK",{enumerable:!0,get:function(){return Df.BREAK}});Object.defineProperty(Ut,"DirectiveLocation",{enumerable:!0,get:function(){return AX.DirectiveLocation}});Object.defineProperty(Ut,"Kind",{enumerable:!0,get:function(){return OX.Kind}});Object.defineProperty(Ut,"Lexer",{enumerable:!0,get:function(){return DX.Lexer}});Object.defineProperty(Ut,"Location",{enumerable:!0,get:function(){return nv.Location}});Object.defineProperty(Ut,"OperationTypeNode",{enumerable:!0,get:function(){return nv.OperationTypeNode}});Object.defineProperty(Ut,"Source",{enumerable:!0,get:function(){return _X.Source}});Object.defineProperty(Ut,"Token",{enumerable:!0,get:function(){return nv.Token}});Object.defineProperty(Ut,"TokenKind",{enumerable:!0,get:function(){return SX.TokenKind}});Object.defineProperty(Ut,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Df.getEnterLeaveForKind}});Object.defineProperty(Ut,"getLocation",{enumerable:!0,get:function(){return vX.getLocation}});Object.defineProperty(Ut,"getVisitFn",{enumerable:!0,get:function(){return Df.getVisitFn}});Object.defineProperty(Ut,"isConstValueNode",{enumerable:!0,get:function(){return Ka.isConstValueNode}});Object.defineProperty(Ut,"isDefinitionNode",{enumerable:!0,get:function(){return Ka.isDefinitionNode}});Object.defineProperty(Ut,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Ka.isExecutableDefinitionNode}});Object.defineProperty(Ut,"isSelectionNode",{enumerable:!0,get:function(){return Ka.isSelectionNode}});Object.defineProperty(Ut,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Ka.isTypeDefinitionNode}});Object.defineProperty(Ut,"isTypeExtensionNode",{enumerable:!0,get:function(){return Ka.isTypeExtensionNode}});Object.defineProperty(Ut,"isTypeNode",{enumerable:!0,get:function(){return Ka.isTypeNode}});Object.defineProperty(Ut,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Ka.isTypeSystemDefinitionNode}});Object.defineProperty(Ut,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Ka.isTypeSystemExtensionNode}});Object.defineProperty(Ut,"isValueNode",{enumerable:!0,get:function(){return Ka.isValueNode}});Object.defineProperty(Ut,"parse",{enumerable:!0,get:function(){return KN.parse}});Object.defineProperty(Ut,"parseConstValue",{enumerable:!0,get:function(){return KN.parseConstValue}});Object.defineProperty(Ut,"parseType",{enumerable:!0,get:function(){return KN.parseType}});Object.defineProperty(Ut,"parseValue",{enumerable:!0,get:function(){return KN.parseValue}});Object.defineProperty(Ut,"print",{enumerable:!0,get:function(){return bX.print}});Object.defineProperty(Ut,"printLocation",{enumerable:!0,get:function(){return rC.printLocation}});Object.defineProperty(Ut,"printSourceLocation",{enumerable:!0,get:function(){return rC.printSourceLocation}});Object.defineProperty(Ut,"visit",{enumerable:!0,get:function(){return Df.visit}});Object.defineProperty(Ut,"visitInParallel",{enumerable:!0,get:function(){return Df.visitInParallel}});var _X=Jm(),vX=xm(),rC=Xy(),OX=wt(),SX=Kd(),DX=Gm(),KN=Nl(),bX=pi(),Df=nc(),nv=Ua(),Ka=lc(),AX=pl()});var aC=w(rv=>{"use strict";m();T();N();Object.defineProperty(rv,"__esModule",{value:!0});rv.isAsyncIterable=RX;function RX(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var sC=w(iv=>{"use strict";m();T();N();Object.defineProperty(iv,"__esModule",{value:!0});iv.mapAsyncIterator=PX;function PX(e,t){let n=e[Symbol.asyncIterator]();function r(a){return Ai(this,null,function*(){if(a.done)return a;try{return{value:yield t(a.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(c){}throw o}})}return{next(){return Ai(this,null,function*(){return r(yield n.next())})},return(){return Ai(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(a){return Ai(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var lC=w(GN=>{"use strict";m();T();N();Object.defineProperty(GN,"__esModule",{value:!0});GN.createSourceEventStream=cC;GN.subscribe=kX;var FX=qr(),wX=Wt(),uC=aC(),oC=Tf(),av=ze(),LX=kN(),CX=LN(),bf=Sf(),BX=sC(),UX=Sl();function kX(t){return Ai(this,arguments,function*(e){arguments.length<2||(0,FX.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield cC(e);if(!(0,uC.isAsyncIterable)(n))return n;let r=i=>(0,bf.execute)(Q(M({},e),{rootValue:i}));return(0,BX.mapAsyncIterator)(n,r)})}function MX(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}function cC(...e){return Ai(this,null,function*(){let t=MX(e),{schema:n,document:r,variableValues:i}=t;(0,bf.assertValidExecutionArguments)(n,r,i);let a=(0,bf.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield xX(a);if(!(0,uC.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,wX.inspect)(o)}.`);return o}catch(o){if(o instanceof av.GraphQLError)return{errors:[o]};throw o}})}function xX(e){return Ai(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new av.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let c=(0,CX.collectFields)(t,n,i,o,r.selectionSet),[l,d]=[...c.entries()][0],p=(0,bf.getFieldDef)(t,o,d[0]);if(!p){let A=d[0].name.value;throw new av.GraphQLError(`The subscription field "${A}" is not defined.`,{nodes:d})}let E=(0,oC.addPath)(void 0,l,o.name),I=(0,bf.buildResolveInfo)(e,p,d,o,E);try{var v;let A=(0,UX.getArgumentValues)(p,d[0],i),U=e.contextValue,$=yield((v=p.subscribe)!==null&&v!==void 0?v:e.subscribeFieldResolver)(a,A,U,I);if($ instanceof Error)throw $;return $}catch(A){throw(0,LX.locatedError)(A,d,(0,oC.pathToArray)(E))}})}});var fC=w(ki=>{"use strict";m();T();N();Object.defineProperty(ki,"__esModule",{value:!0});Object.defineProperty(ki,"createSourceEventStream",{enumerable:!0,get:function(){return dC.createSourceEventStream}});Object.defineProperty(ki,"defaultFieldResolver",{enumerable:!0,get:function(){return $N.defaultFieldResolver}});Object.defineProperty(ki,"defaultTypeResolver",{enumerable:!0,get:function(){return $N.defaultTypeResolver}});Object.defineProperty(ki,"execute",{enumerable:!0,get:function(){return $N.execute}});Object.defineProperty(ki,"executeSync",{enumerable:!0,get:function(){return $N.executeSync}});Object.defineProperty(ki,"getArgumentValues",{enumerable:!0,get:function(){return sv.getArgumentValues}});Object.defineProperty(ki,"getDirectiveValues",{enumerable:!0,get:function(){return sv.getDirectiveValues}});Object.defineProperty(ki,"getVariableValues",{enumerable:!0,get:function(){return sv.getVariableValues}});Object.defineProperty(ki,"responsePathAsArray",{enumerable:!0,get:function(){return qX.pathToArray}});Object.defineProperty(ki,"subscribe",{enumerable:!0,get:function(){return dC.subscribe}});var qX=Tf(),$N=Sf(),dC=lC(),sv=Sl()});var pC=w(cv=>{"use strict";m();T();N();Object.defineProperty(cv,"__esModule",{value:!0});cv.NoDeprecatedCustomRule=VX;var ov=br(),Af=ze(),uv=Lt();function VX(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||(0,ov.invariant)(!1),e.reportError(new Af.GraphQLError(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new Af.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let a=e.getParentType(),o=e.getFieldDef();a!=null&&o!=null||(0,ov.invariant)(!1),e.reportError(new Af.GraphQLError(`Field "${a.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,uv.getNamedType)(e.getParentInputType());if((0,uv.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Af.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=(0,uv.getNamedType)(e.getInputType());i!=null||(0,ov.invariant)(!1),e.reportError(new Af.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var mC=w(lv=>{"use strict";m();T();N();Object.defineProperty(lv,"__esModule",{value:!0});lv.NoSchemaIntrospectionCustomRule=$X;var jX=ze(),KX=Lt(),GX=Li();function $X(e){return{Field(t){let n=(0,KX.getNamedType)(e.getType());n&&(0,GX.isIntrospectionType)(n)&&e.reportError(new jX.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var TC=w(pt=>{"use strict";m();T();N();Object.defineProperty(pt,"__esModule",{value:!0});Object.defineProperty(pt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return JX.ExecutableDefinitionsRule}});Object.defineProperty(pt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return HX.FieldsOnCorrectTypeRule}});Object.defineProperty(pt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return zX.FragmentsOnCompositeTypesRule}});Object.defineProperty(pt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return WX.KnownArgumentNamesRule}});Object.defineProperty(pt,"KnownDirectivesRule",{enumerable:!0,get:function(){return XX.KnownDirectivesRule}});Object.defineProperty(pt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return ZX.KnownFragmentNamesRule}});Object.defineProperty(pt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return e5.KnownTypeNamesRule}});Object.defineProperty(pt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return t5.LoneAnonymousOperationRule}});Object.defineProperty(pt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return g5.LoneSchemaDefinitionRule}});Object.defineProperty(pt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return I5.MaxIntrospectionDepthRule}});Object.defineProperty(pt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return R5.NoDeprecatedCustomRule}});Object.defineProperty(pt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return n5.NoFragmentCyclesRule}});Object.defineProperty(pt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return P5.NoSchemaIntrospectionCustomRule}});Object.defineProperty(pt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return r5.NoUndefinedVariablesRule}});Object.defineProperty(pt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return i5.NoUnusedFragmentsRule}});Object.defineProperty(pt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return a5.NoUnusedVariablesRule}});Object.defineProperty(pt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return s5.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(pt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return o5.PossibleFragmentSpreadsRule}});Object.defineProperty(pt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return A5.PossibleTypeExtensionsRule}});Object.defineProperty(pt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return u5.ProvidedRequiredArgumentsRule}});Object.defineProperty(pt,"ScalarLeafsRule",{enumerable:!0,get:function(){return c5.ScalarLeafsRule}});Object.defineProperty(pt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return l5.SingleFieldSubscriptionsRule}});Object.defineProperty(pt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return D5.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(pt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return d5.UniqueArgumentNamesRule}});Object.defineProperty(pt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return b5.UniqueDirectiveNamesRule}});Object.defineProperty(pt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return f5.UniqueDirectivesPerLocationRule}});Object.defineProperty(pt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return O5.UniqueEnumValueNamesRule}});Object.defineProperty(pt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return S5.UniqueFieldDefinitionNamesRule}});Object.defineProperty(pt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return p5.UniqueFragmentNamesRule}});Object.defineProperty(pt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return m5.UniqueInputFieldNamesRule}});Object.defineProperty(pt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return N5.UniqueOperationNamesRule}});Object.defineProperty(pt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return _5.UniqueOperationTypesRule}});Object.defineProperty(pt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return v5.UniqueTypeNamesRule}});Object.defineProperty(pt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return T5.UniqueVariableNamesRule}});Object.defineProperty(pt,"ValidationContext",{enumerable:!0,get:function(){return YX.ValidationContext}});Object.defineProperty(pt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return E5.ValuesOfCorrectTypeRule}});Object.defineProperty(pt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return h5.VariablesAreInputTypesRule}});Object.defineProperty(pt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return y5.VariablesInAllowedPositionRule}});Object.defineProperty(pt,"recommendedRules",{enumerable:!0,get:function(){return NC.recommendedRules}});Object.defineProperty(pt,"specifiedRules",{enumerable:!0,get:function(){return NC.specifiedRules}});Object.defineProperty(pt,"validate",{enumerable:!0,get:function(){return QX.validate}});var QX=bl(),YX=j_(),NC=x_(),JX=ng(),HX=ig(),zX=sg(),WX=og(),XX=dg(),ZX=pg(),e5=Tg(),t5=hg(),n5=Og(),r5=Dg(),i5=Ag(),a5=Pg(),s5=qg(),o5=Kg(),u5=Yg(),c5=Hg(),l5=i_(),d5=c_(),f5=m_(),p5=g_(),m5=v_(),N5=S_(),T5=F_(),E5=C_(),h5=U_(),y5=M_(),I5=_g(),g5=Ig(),_5=b_(),v5=R_(),O5=T_(),S5=y_(),D5=o_(),b5=d_(),A5=$g(),R5=pC(),P5=mC()});var EC=w(Nc=>{"use strict";m();T();N();Object.defineProperty(Nc,"__esModule",{value:!0});Object.defineProperty(Nc,"GraphQLError",{enumerable:!0,get:function(){return dv.GraphQLError}});Object.defineProperty(Nc,"formatError",{enumerable:!0,get:function(){return dv.formatError}});Object.defineProperty(Nc,"locatedError",{enumerable:!0,get:function(){return w5.locatedError}});Object.defineProperty(Nc,"printError",{enumerable:!0,get:function(){return dv.printError}});Object.defineProperty(Nc,"syntaxError",{enumerable:!0,get:function(){return F5.syntaxError}});var dv=ze(),F5=Vm(),w5=kN()});var pv=w(fv=>{"use strict";m();T();N();Object.defineProperty(fv,"__esModule",{value:!0});fv.getIntrospectionQuery=L5;function L5(e){let t=M({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",a=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let c=t.oneOf?"isOneOf":"";return` +`))}var $m=ae(()=>{"use strict";p();N();m();Ii();nt();ll();rm();YE();OS();bS()});function SU(e){let t;return function(r,i,s){t===void 0&&(t=new WeakMap);let a=t.get(r);a===void 0&&(a=new WeakMap,t.set(r,a));let u=a.get(i);u===void 0&&(u=new WeakMap,a.set(i,u));let l=u.get(s);return l===void 0&&(l=e(r,i,s),u.set(s,l)),l}}var DU=ae(()=>{"use strict";p();N();m()});function AS(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}var OU=ae(()=>{"use strict";p();N();m()});function bU(e,t,n){let r=n;for(let i of e)r=ti(r)?r.then(s=>t(s,i)):t(r,i);return r}var AU=ae(()=>{"use strict";p();N();m();DE()});function RU(e){return e instanceof Error?e:new RS(e)}var RS,FU=ae(()=>{"use strict";p();N();m();an();RS=class extends Error{constructor(t){super("Unexpected error value: "+ne(t)),this.name="NonErrorThrown",this.thrownValue=t}}});function Ca(e,t,n){var r;let i=RU(e);return N8(i)?i:new G(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function N8(e){return Array.isArray(e.path)}var sh=ae(()=>{"use strict";p();N();m();FU();nt()});function Ic(e){arguments.length<2||tt(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;wS(t,n,r);let s=LS(e);if(!("schema"in s))return{errors:s};try{let{operation:a}=s,u=E8(s,a,i);return ti(u)?u.then(l=>ah(l,s.errors),l=>(s.errors.push(l),ah(null,s.errors))):ah(u,s.errors)}catch(a){return s.errors.push(a),ah(null,s.errors)}}function Gm(e){let t=Ic(e);if(ti(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function ah(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function wS(e,t,n){t||tt(!1,"Must provide document."),Il(e),n==null||Xn(n)||tt(!1,"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 LS(e){var t,n;let{schema:r,document:i,rootValue:s,contextValue:a,variableValues:u,operationName:l,fieldResolver:d,typeResolver:f,subscribeFieldResolver:E}=e,h,_=Object.create(null);for(let q of i.definitions)switch(q.kind){case F.OPERATION_DEFINITION:if(l==null){if(h!==void 0)return[new G("Must provide operation name if query contains multiple operations.")];h=q}else((t=q.name)===null||t===void 0?void 0:t.value)===l&&(h=q);break;case F.FRAGMENT_DEFINITION:_[q.name.value]=q;break;default:}if(!h)return l!=null?[new G(`Unknown operation named "${l}".`)]:[new G("Must provide an operation.")];let A=(n=h.variableDefinitions)!==null&&n!==void 0?n:[],U=Om(r,A,u!=null?u:{},{maxErrors:50});return U.errors?U.errors:{schema:r,fragments:_,rootValue:s,contextValue:a,operation:h,variableValues:U.coerced,fieldResolver:d!=null?d:Km,typeResolver:f!=null?f:ch,subscribeFieldResolver:E!=null?E:Km,errors:[]}}function E8(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new G(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=tf(e.schema,e.fragments,e.variableValues,r,t.selectionSet),s=void 0;switch(t.operation){case bn.QUERY:return oh(e,r,n,s,i);case bn.MUTATION:return h8(e,r,n,s,i);case bn.SUBSCRIPTION:return oh(e,r,n,s,i)}}function h8(e,t,n,r,i){return bU(i.entries(),(s,[a,u])=>{let l=_o(r,a,t.name),d=PU(e,t,n,u,l);return d===void 0?s:ti(d)?d.then(f=>(s[a]=f,s)):(s[a]=d,s)},Object.create(null))}function oh(e,t,n,r,i){let s=Object.create(null),a=!1;try{for(let[u,l]of i.entries()){let d=_o(r,u,t.name),f=PU(e,t,n,l,d);f!==void 0&&(s[u]=f,ti(f)&&(a=!0))}}catch(u){if(a)return AS(s).finally(()=>{throw u});throw u}return a?AS(s):s}function PU(e,t,n,r,i){var s;let a=CS(e.schema,t,r[0]);if(!a)return;let u=a.type,l=(s=a.resolve)!==null&&s!==void 0?s:e.fieldResolver,d=PS(e,a,r,t,i);try{let f=yc(a,r[0],e.variableValues),E=e.contextValue,h=l(n,f,E,d),_;return ti(h)?_=h.then(A=>jm(e,u,r,d,i,A)):_=jm(e,u,r,d,i,h),ti(_)?_.then(void 0,A=>{let U=Ca(A,r,Tr(i));return uh(U,u,e)}):_}catch(f){let E=Ca(f,r,Tr(i));return uh(E,u,e)}}function PS(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function uh(e,t,n){if(Ke(t))throw e;return n.errors.push(e),null}function jm(e,t,n,r,i,s){if(s instanceof Error)throw s;if(Ke(t)){let a=jm(e,t.ofType,n,r,i,s);if(a===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}if(s==null)return null;if(bt(t))return y8(e,t,n,r,i,s);if(Dr(t))return I8(t,s);if(Jr(t))return g8(e,t,n,r,i,s);if(rt(t))return FS(e,t,n,r,i,s);Bt(!1,"Cannot complete value of unexpected output type: "+ne(t))}function y8(e,t,n,r,i,s){if(!Qd(s))throw new G(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let a=t.ofType,u=!1,l=Array.from(s,(d,f)=>{let E=_o(i,f,void 0);try{let h;return ti(d)?h=d.then(_=>jm(e,a,n,r,E,_)):h=jm(e,a,n,r,E,d),ti(h)?(u=!0,h.then(void 0,_=>{let A=Ca(_,n,Tr(E));return uh(A,a,e)})):h}catch(h){let _=Ca(h,n,Tr(E));return uh(_,a,e)}});return u?Promise.all(l):l}function I8(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${ne(e)}.serialize(${ne(t)})\` to return non-nullable value, returned: ${ne(n)}`);return n}function g8(e,t,n,r,i,s){var a;let u=(a=t.resolveType)!==null&&a!==void 0?a:e.typeResolver,l=e.contextValue,d=u(s,l,r,t);return ti(d)?d.then(f=>FS(e,wU(f,e,t,n,r,s),n,r,i,s)):FS(e,wU(d,e,t,n,r,s),n,r,i,s)}function wU(e,t,n,r,i,s){if(e==null)throw new G(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(rt(e))throw new G("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new G(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ne(s)}, received "${ne(e)}".`);let a=t.schema.getType(e);if(a==null)throw new G(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!rt(a))throw new G(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new G(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function FS(e,t,n,r,i,s){let a=T8(e,t,n);if(t.isTypeOf){let u=t.isTypeOf(s,e.contextValue,r);if(ti(u))return u.then(l=>{if(!l)throw LU(t,s,n);return oh(e,t,s,i,a)});if(!u)throw LU(t,s,n)}return oh(e,t,s,i,a)}function LU(e,t,n){return new G(`Expected value of type "${e.name}" but got: ${ne(t)}.`,{nodes:n})}function CS(e,t,n){let r=n.name.value;return r===ho.name&&e.getQueryType()===t?ho:r===yo.name&&e.getQueryType()===t?yo:r===Io.name?Io:t.getFields()[r]}var T8,ch,Km,Qm=ae(()=>{"use strict";p();N();m();Ii();an();ni();GE();Da();DE();DU();_m();OU();AU();nt();sh();Oa();$t();jt();Is();rm();eh();ef();T8=SU((e,t,n)=>yU(e.schema,e.fragments,e.variableValues,t,n));ch=function(e,t,n,r){if(Xn(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),s=[];for(let a=0;a{for(let u=0;ut(BU(e)))}function UU(e){let t=BU(e);if(ti(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function BU(e){arguments.length<2||tt(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:s,operationName:a,fieldResolver:u,typeResolver:l}=e,d=Yd(t);if(d.length>0)return{errors:d};let f;try{f=Js(n)}catch(h){return{errors:[h]}}let E=qm(t,f);return E.length>0?{errors:E}:Ic({schema:t,document:f,rootValue:r,contextValue:i,variableValues:s,operationName:a,fieldResolver:u,typeResolver:l})}var kU=ae(()=>{"use strict";p();N();m();Ii();DE();Cd();rm();$m();Qm()});var xU=ae(()=>{"use strict";p();N();m();hl();jt();Ui();Ra();Is();rm();qp()});var MU=ae(()=>{"use strict";p();N();m();kE();OE();Z_();$t();Cp();CE();Cd();Xi();ll();Oa();_l();Fd()});function US(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}var VU=ae(()=>{"use strict";p();N();m()});function qU(e,t){let n=e[Symbol.asyncIterator]();function r(s){return Es(this,null,function*(){if(s.done)return s;try{return{value:yield t(s.value),done:!1}}catch(a){if(typeof n.return=="function")try{yield n.return()}catch(u){}throw a}})}return{next(){return Es(this,null,function*(){return r(yield n.next())})},return(){return Es(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(s){return Es(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(s));throw s})},[Symbol.asyncIterator](){return this}}}var $U=ae(()=>{"use strict";p();N();m()});function BS(t){return Es(this,arguments,function*(e){arguments.length<2||tt(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield lh(e);return US(n)?qU(n,i=>Ic(K(x({},e),{rootValue:i}))):n})}function _8(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}function lh(...e){return Es(this,null,function*(){let t=_8(e),{schema:n,document:r,variableValues:i}=t;wS(n,r,i);let s=LS(t);if(!("schema"in s))return{errors:s};try{let a=yield v8(s);if(!US(a))throw new Error(`Subscription field must return Async Iterable. Received: ${ne(a)}.`);return a}catch(a){if(a instanceof G)return{errors:[a]};throw a}})}function v8(e){return Es(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,a=t.getSubscriptionType();if(a==null)throw new G("Schema is not configured to execute subscription operation.",{nodes:r});let u=tf(t,n,i,a,r.selectionSet),[l,d]=[...u.entries()][0],f=CS(t,a,d[0]);if(!f){let A=d[0].name.value;throw new G(`The subscription field "${A}" is not defined.`,{nodes:d})}let E=_o(void 0,l,a.name),h=PS(e,f,d,a,E);try{var _;let A=yc(f,d[0],i),U=e.contextValue,j=yield((_=f.subscribe)!==null&&_!==void 0?_:e.subscribeFieldResolver)(s,A,U,h);if(j instanceof Error)throw j;return j}catch(A){throw Ca(A,d,Tr(E))}})}var jU=ae(()=>{"use strict";p();N();m();Ii();an();VU();_m();nt();sh();eh();Qm();$U();ef()});var KU=ae(()=>{"use strict";p();N();m();_m();Qm();jU();ef()});function kS(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||Bt(!1),e.reportError(new G(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new G(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let s=e.getParentType(),a=e.getFieldDef();s!=null&&a!=null||Bt(!1),e.reportError(new G(`Field "${s.name}.${a.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=kn(e.getParentInputType());if(Nt(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new G(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=kn(e.getInputType());i!=null||Bt(!1),e.reportError(new G(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}var GU=ae(()=>{"use strict";p();N();m();ni();nt();jt()});function xS(e){return{Field(t){let n=kn(e.getType());n&&oi(n)&&e.reportError(new G(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var QU=ae(()=>{"use strict";p();N();m();nt();jt();Is()});var YU=ae(()=>{"use strict";p();N();m();$m();bS();OS();Uv();Bv();kv();Mv();Vv();qv();$v();jv();Qv();Yv();Jv();Hv();tS();nS();sS();aS();lS();fS();mS();ES();hS();yS();_S();vS();SS();DS();Gv();Kv();IS();gS();NS();TS();dS();pS();rS();GU();QU()});var JU=ae(()=>{"use strict";p();N();m();nt();bE();sh()});function Ym(e){let t=x({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",s=t.schemaDescription?n:"";function a(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { - ${a} + ${s} queryType { name } mutationType { name } subscriptionType { name } @@ -86,7 +86,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior ${n} ${i} locations - args${o("(includeDeprecated: true)")} { + args${a("(includeDeprecated: true)")} { ...InputValue } } @@ -98,11 +98,11 @@ In some cases, you need to provide options to alter GraphQL's execution behavior name ${n} ${r} - ${c} + ${u} fields(includeDeprecated: true) { name ${n} - args${o("(includeDeprecated: true)")} { + args${a("(includeDeprecated: true)")} { ...InputValue } type { @@ -111,7 +111,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior isDeprecated deprecationReason } - inputFields${o("(includeDeprecated: true)")} { + inputFields${a("(includeDeprecated: true)")} { ...InputValue } interfaces { @@ -133,8 +133,8 @@ In some cases, you need to provide options to alter GraphQL's execution behavior ${n} type { ...TypeRef } defaultValue - ${o("isDeprecated")} - ${o("deprecationReason")} + ${a("isDeprecated")} + ${a("deprecationReason")} } fragment TypeRef on __Type { @@ -177,306 +177,360 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}});var hC=w(mv=>{"use strict";m();T();N();Object.defineProperty(mv,"__esModule",{value:!0});mv.getOperationAST=B5;var C5=wt();function B5(e,t){let n=null;for(let i of e.definitions)if(i.kind===C5.Kind.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}});var yC=w(Nv=>{"use strict";m();T();N();Object.defineProperty(Nv,"__esModule",{value:!0});Nv.getOperationRootType=U5;var QN=ze();function U5(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new QN.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new QN.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new QN.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new QN.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var IC=w(Tv=>{"use strict";m();T();N();Object.defineProperty(Tv,"__esModule",{value:!0});Tv.introspectionFromSchema=V5;var k5=br(),M5=Nl(),x5=Sf(),q5=pv();function V5(e,t){let n=M({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,M5.parse)((0,q5.getIntrospectionQuery)(n)),i=(0,x5.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,k5.invariant)(!1),i.data}});var _C=w(Ev=>{"use strict";m();T();N();Object.defineProperty(Ev,"__esModule",{value:!0});Ev.buildClientSchema=J5;var j5=qr(),mi=Wt(),gC=Ba(),YN=Hd(),K5=Nl(),Ni=Lt(),G5=Wr(),Ga=Li(),$5=xa(),Q5=uc(),Y5=If();function J5(e,t){(0,gC.isObjectLike)(e)&&(0,gC.isObjectLike)(e.__schema)||(0,j5.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,mi.inspect)(e)}.`);let n=e.__schema,r=(0,YN.keyValMap)(n.types,Z=>Z.name,Z=>I(Z));for(let Z of[...$5.specifiedScalarTypes,...Ga.introspectionTypes])r[Z.name]&&(r[Z.name]=Z);let i=n.queryType?p(n.queryType):null,a=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,c=n.directives?n.directives.map(Ze):[];return new Q5.GraphQLSchema({description:n.description,query:i,mutation:a,subscription:o,types:Object.values(r),directives:c,assumeValid:t==null?void 0:t.assumeValid});function l(Z){if(Z.kind===Ga.TypeKind.LIST){let _e=Z.ofType;if(!_e)throw new Error("Decorated type deeper than introspection query.");return new Ni.GraphQLList(l(_e))}if(Z.kind===Ga.TypeKind.NON_NULL){let _e=Z.ofType;if(!_e)throw new Error("Decorated type deeper than introspection query.");let vt=l(_e);return new Ni.GraphQLNonNull((0,Ni.assertNullableType)(vt))}return d(Z)}function d(Z){let _e=Z.name;if(!_e)throw new Error(`Unknown type reference: ${(0,mi.inspect)(Z)}.`);let vt=r[_e];if(!vt)throw new Error(`Invalid or incomplete schema, unknown type: ${_e}. Ensure that a full introspection query is used in order to build a client schema.`);return vt}function p(Z){return(0,Ni.assertObjectType)(d(Z))}function E(Z){return(0,Ni.assertInterfaceType)(d(Z))}function I(Z){if(Z!=null&&Z.name!=null&&Z.kind!=null)switch(Z.kind){case Ga.TypeKind.SCALAR:return v(Z);case Ga.TypeKind.OBJECT:return U(Z);case Ga.TypeKind.INTERFACE:return j(Z);case Ga.TypeKind.UNION:return $(Z);case Ga.TypeKind.ENUM:return re(Z);case Ga.TypeKind.INPUT_OBJECT:return ee(Z)}let _e=(0,mi.inspect)(Z);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${_e}.`)}function v(Z){return new Ni.GraphQLScalarType({name:Z.name,description:Z.description,specifiedByURL:Z.specifiedByURL})}function A(Z){if(Z.interfaces===null&&Z.kind===Ga.TypeKind.INTERFACE)return[];if(!Z.interfaces){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing interfaces: ${_e}.`)}return Z.interfaces.map(E)}function U(Z){return new Ni.GraphQLObjectType({name:Z.name,description:Z.description,interfaces:()=>A(Z),fields:()=>me(Z)})}function j(Z){return new Ni.GraphQLInterfaceType({name:Z.name,description:Z.description,interfaces:()=>A(Z),fields:()=>me(Z)})}function $(Z){if(!Z.possibleTypes){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing possibleTypes: ${_e}.`)}return new Ni.GraphQLUnionType({name:Z.name,description:Z.description,types:()=>Z.possibleTypes.map(p)})}function re(Z){if(!Z.enumValues){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing enumValues: ${_e}.`)}return new Ni.GraphQLEnumType({name:Z.name,description:Z.description,values:(0,YN.keyValMap)(Z.enumValues,_e=>_e.name,_e=>({description:_e.description,deprecationReason:_e.deprecationReason}))})}function ee(Z){if(!Z.inputFields){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing inputFields: ${_e}.`)}return new Ni.GraphQLInputObjectType({name:Z.name,description:Z.description,fields:()=>Ae(Z.inputFields),isOneOf:Z.isOneOf})}function me(Z){if(!Z.fields)throw new Error(`Introspection result missing fields: ${(0,mi.inspect)(Z)}.`);return(0,YN.keyValMap)(Z.fields,_e=>_e.name,ue)}function ue(Z){let _e=l(Z.type);if(!(0,Ni.isOutputType)(_e)){let vt=(0,mi.inspect)(_e);throw new Error(`Introspection must provide output type for fields, but received: ${vt}.`)}if(!Z.args){let vt=(0,mi.inspect)(Z);throw new Error(`Introspection result missing field args: ${vt}.`)}return{description:Z.description,deprecationReason:Z.deprecationReason,type:_e,args:Ae(Z.args)}}function Ae(Z){return(0,YN.keyValMap)(Z,_e=>_e.name,xe)}function xe(Z){let _e=l(Z.type);if(!(0,Ni.isInputType)(_e)){let rn=(0,mi.inspect)(_e);throw new Error(`Introspection must provide input type for arguments, but received: ${rn}.`)}let vt=Z.defaultValue!=null?(0,Y5.valueFromAST)((0,K5.parseValue)(Z.defaultValue),_e):void 0;return{description:Z.description,type:_e,defaultValue:vt,deprecationReason:Z.deprecationReason}}function Ze(Z){if(!Z.args){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing directive args: ${_e}.`)}if(!Z.locations){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing directive locations: ${_e}.`)}return new G5.GraphQLDirective({name:Z.name,description:Z.description,isRepeatable:Z.isRepeatable,locations:Z.locations.slice(),args:Ae(Z.args)})}}});var yv=w(HN=>{"use strict";m();T();N();Object.defineProperty(HN,"__esModule",{value:!0});HN.extendSchema=e9;HN.extendSchemaImpl=PC;var H5=qr(),z5=Wt(),W5=br(),X5=lu(),Rf=hI(),Mi=wt(),vC=lc(),Sn=Lt(),Pf=Wr(),AC=Li(),RC=xa(),OC=uc(),Z5=bl(),hv=Sl(),SC=If();function e9(e,t,n){(0,OC.assertSchema)(e),t!=null&&t.kind===Mi.Kind.DOCUMENT||(0,H5.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,Z5.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=PC(r,t,n);return r===i?e:new OC.GraphQLSchema(i)}function PC(e,t,n){var r,i,a,o;let c=[],l=Object.create(null),d=[],p,E=[];for(let ae of t.definitions)if(ae.kind===Mi.Kind.SCHEMA_DEFINITION)p=ae;else if(ae.kind===Mi.Kind.SCHEMA_EXTENSION)E.push(ae);else if((0,vC.isTypeDefinitionNode)(ae))c.push(ae);else if((0,vC.isTypeExtensionNode)(ae)){let De=ae.name.value,Ie=l[De];l[De]=Ie?Ie.concat([ae]):[ae]}else ae.kind===Mi.Kind.DIRECTIVE_DEFINITION&&d.push(ae);if(Object.keys(l).length===0&&c.length===0&&d.length===0&&E.length===0&&p==null)return e;let I=Object.create(null);for(let ae of e.types)I[ae.name]=re(ae);for(let ae of c){var v;let De=ae.name.value;I[De]=(v=DC[De])!==null&&v!==void 0?v:Ln(ae)}let A=M(M({query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription)},p&&vt([p])),vt(E));return Q(M({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},A),{types:Object.values(I),directives:[...e.directives.map($),...d.map(wn)],extensions:Object.create(null),astNode:(a=p)!==null&&a!==void 0?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(E),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function U(ae){return(0,Sn.isListType)(ae)?new Sn.GraphQLList(U(ae.ofType)):(0,Sn.isNonNullType)(ae)?new Sn.GraphQLNonNull(U(ae.ofType)):j(ae)}function j(ae){return I[ae.name]}function $(ae){let De=ae.toConfig();return new Pf.GraphQLDirective(Q(M({},De),{args:(0,Rf.mapValue)(De.args,_e)}))}function re(ae){if((0,AC.isIntrospectionType)(ae)||(0,RC.isSpecifiedScalarType)(ae))return ae;if((0,Sn.isScalarType)(ae))return ue(ae);if((0,Sn.isObjectType)(ae))return Ae(ae);if((0,Sn.isInterfaceType)(ae))return xe(ae);if((0,Sn.isUnionType)(ae))return Ze(ae);if((0,Sn.isEnumType)(ae))return me(ae);if((0,Sn.isInputObjectType)(ae))return ee(ae);(0,W5.invariant)(!1,"Unexpected type: "+(0,z5.inspect)(ae))}function ee(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLInputObjectType(Q(M({},Ie),{fields:()=>M(M({},(0,Rf.mapValue)(Ie.fields,St=>Q(M({},St),{type:U(St.type)}))),Ur(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function me(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[ae.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLEnumType(Q(M({},Ie),{values:M(M({},Ie.values),lr(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function ue(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[Ie.name])!==null&&De!==void 0?De:[],St=Ie.specifiedByURL;for(let ie of Ce){var Y;St=(Y=bC(ie))!==null&&Y!==void 0?Y:St}return new Sn.GraphQLScalarType(Q(M({},Ie),{specifiedByURL:St,extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Ae(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLObjectType(Q(M({},Ie),{interfaces:()=>[...ae.getInterfaces().map(j),...gn(Ce)],fields:()=>M(M({},(0,Rf.mapValue)(Ie.fields,Z)),$t(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function xe(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLInterfaceType(Q(M({},Ie),{interfaces:()=>[...ae.getInterfaces().map(j),...gn(Ce)],fields:()=>M(M({},(0,Rf.mapValue)(Ie.fields,Z)),$t(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Ze(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLUnionType(Q(M({},Ie),{types:()=>[...ae.getTypes().map(j),...Ht(Ce)],extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Z(ae){return Q(M({},ae),{type:U(ae.type),args:ae.args&&(0,Rf.mapValue)(ae.args,_e)})}function _e(ae){return Q(M({},ae),{type:U(ae.type)})}function vt(ae){let De={};for(let Ce of ae){var Ie;let St=(Ie=Ce.operationTypes)!==null&&Ie!==void 0?Ie:[];for(let Y of St)De[Y.operation]=rn(Y.type)}return De}function rn(ae){var De;let Ie=ae.name.value,Ce=(De=DC[Ie])!==null&&De!==void 0?De:I[Ie];if(Ce===void 0)throw new Error(`Unknown type: "${Ie}".`);return Ce}function an(ae){return ae.kind===Mi.Kind.LIST_TYPE?new Sn.GraphQLList(an(ae.type)):ae.kind===Mi.Kind.NON_NULL_TYPE?new Sn.GraphQLNonNull(an(ae.type)):rn(ae)}function wn(ae){var De;return new Pf.GraphQLDirective({name:ae.name.value,description:(De=ae.description)===null||De===void 0?void 0:De.value,locations:ae.locations.map(({value:Ie})=>Ie),isRepeatable:ae.repeatable,args:Tn(ae.arguments),astNode:ae})}function $t(ae){let De=Object.create(null);for(let St of ae){var Ie;let Y=(Ie=St.fields)!==null&&Ie!==void 0?Ie:[];for(let ie of Y){var Ce;De[ie.name.value]={type:an(ie.type),description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,args:Tn(ie.arguments),deprecationReason:JN(ie),astNode:ie}}}return De}function Tn(ae){let De=ae!=null?ae:[],Ie=Object.create(null);for(let St of De){var Ce;let Y=an(St.type);Ie[St.name.value]={type:Y,description:(Ce=St.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,SC.valueFromAST)(St.defaultValue,Y),deprecationReason:JN(St),astNode:St}}return Ie}function Ur(ae){let De=Object.create(null);for(let St of ae){var Ie;let Y=(Ie=St.fields)!==null&&Ie!==void 0?Ie:[];for(let ie of Y){var Ce;let qe=an(ie.type);De[ie.name.value]={type:qe,description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,SC.valueFromAST)(ie.defaultValue,qe),deprecationReason:JN(ie),astNode:ie}}}return De}function lr(ae){let De=Object.create(null);for(let St of ae){var Ie;let Y=(Ie=St.values)!==null&&Ie!==void 0?Ie:[];for(let ie of Y){var Ce;De[ie.name.value]={description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,deprecationReason:JN(ie),astNode:ie}}}return De}function gn(ae){return ae.flatMap(De=>{var Ie,Ce;return(Ie=(Ce=De.interfaces)===null||Ce===void 0?void 0:Ce.map(rn))!==null&&Ie!==void 0?Ie:[]})}function Ht(ae){return ae.flatMap(De=>{var Ie,Ce;return(Ie=(Ce=De.types)===null||Ce===void 0?void 0:Ce.map(rn))!==null&&Ie!==void 0?Ie:[]})}function Ln(ae){var De;let Ie=ae.name.value,Ce=(De=l[Ie])!==null&&De!==void 0?De:[];switch(ae.kind){case Mi.Kind.OBJECT_TYPE_DEFINITION:{var St;let it=[ae,...Ce];return new Sn.GraphQLObjectType({name:Ie,description:(St=ae.description)===null||St===void 0?void 0:St.value,interfaces:()=>gn(it),fields:()=>$t(it),astNode:ae,extensionASTNodes:Ce})}case Mi.Kind.INTERFACE_TYPE_DEFINITION:{var Y;let it=[ae,...Ce];return new Sn.GraphQLInterfaceType({name:Ie,description:(Y=ae.description)===null||Y===void 0?void 0:Y.value,interfaces:()=>gn(it),fields:()=>$t(it),astNode:ae,extensionASTNodes:Ce})}case Mi.Kind.ENUM_TYPE_DEFINITION:{var ie;let it=[ae,...Ce];return new Sn.GraphQLEnumType({name:Ie,description:(ie=ae.description)===null||ie===void 0?void 0:ie.value,values:lr(it),astNode:ae,extensionASTNodes:Ce})}case Mi.Kind.UNION_TYPE_DEFINITION:{var qe;let it=[ae,...Ce];return new Sn.GraphQLUnionType({name:Ie,description:(qe=ae.description)===null||qe===void 0?void 0:qe.value,types:()=>Ht(it),astNode:ae,extensionASTNodes:Ce})}case Mi.Kind.SCALAR_TYPE_DEFINITION:{var He;return new Sn.GraphQLScalarType({name:Ie,description:(He=ae.description)===null||He===void 0?void 0:He.value,specifiedByURL:bC(ae),astNode:ae,extensionASTNodes:Ce})}case Mi.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Bt;let it=[ae,...Ce];return new Sn.GraphQLInputObjectType({name:Ie,description:(Bt=ae.description)===null||Bt===void 0?void 0:Bt.value,fields:()=>Ur(it),astNode:ae,extensionASTNodes:Ce,isOneOf:t9(ae)})}}}}var DC=(0,X5.keyMap)([...RC.specifiedScalarTypes,...AC.introspectionTypes],e=>e.name);function JN(e){let t=(0,hv.getDirectiveValues)(Pf.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function bC(e){let t=(0,hv.getDirectiveValues)(Pf.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function t9(e){return!!(0,hv.getDirectiveValues)(Pf.GraphQLOneOfDirective,e)}});var wC=w(zN=>{"use strict";m();T();N();Object.defineProperty(zN,"__esModule",{value:!0});zN.buildASTSchema=FC;zN.buildSchema=c9;var n9=qr(),r9=wt(),i9=Nl(),a9=Wr(),s9=uc(),o9=bl(),u9=yv();function FC(e,t){e!=null&&e.kind===r9.Kind.DOCUMENT||(0,n9.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,o9.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,u9.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...a9.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new s9.GraphQLSchema(Q(M({},r),{directives:i}))}function c9(e,t){let n=(0,i9.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return FC(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var BC=w(gv=>{"use strict";m();T();N();Object.defineProperty(gv,"__esModule",{value:!0});gv.lexicographicSortSchema=T9;var l9=Wt(),d9=br(),f9=Hd(),LC=zd(),Vr=Lt(),p9=Wr(),m9=Li(),N9=uc();function T9(e){let t=e.toConfig(),n=(0,f9.keyValMap)(Iv(t.types),I=>I.name,E);return new N9.GraphQLSchema(Q(M({},t),{types:Object.values(n),directives:Iv(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function r(I){return(0,Vr.isListType)(I)?new Vr.GraphQLList(r(I.ofType)):(0,Vr.isNonNullType)(I)?new Vr.GraphQLNonNull(r(I.ofType)):i(I)}function i(I){return n[I.name]}function a(I){return I&&i(I)}function o(I){let v=I.toConfig();return new p9.GraphQLDirective(Q(M({},v),{locations:CC(v.locations,A=>A),args:c(v.args)}))}function c(I){return WN(I,v=>Q(M({},v),{type:r(v.type)}))}function l(I){return WN(I,v=>Q(M({},v),{type:r(v.type),args:v.args&&c(v.args)}))}function d(I){return WN(I,v=>Q(M({},v),{type:r(v.type)}))}function p(I){return Iv(I).map(i)}function E(I){if((0,Vr.isScalarType)(I)||(0,m9.isIntrospectionType)(I))return I;if((0,Vr.isObjectType)(I)){let v=I.toConfig();return new Vr.GraphQLObjectType(Q(M({},v),{interfaces:()=>p(v.interfaces),fields:()=>l(v.fields)}))}if((0,Vr.isInterfaceType)(I)){let v=I.toConfig();return new Vr.GraphQLInterfaceType(Q(M({},v),{interfaces:()=>p(v.interfaces),fields:()=>l(v.fields)}))}if((0,Vr.isUnionType)(I)){let v=I.toConfig();return new Vr.GraphQLUnionType(Q(M({},v),{types:()=>p(v.types)}))}if((0,Vr.isEnumType)(I)){let v=I.toConfig();return new Vr.GraphQLEnumType(Q(M({},v),{values:WN(v.values,A=>A)}))}if((0,Vr.isInputObjectType)(I)){let v=I.toConfig();return new Vr.GraphQLInputObjectType(Q(M({},v),{fields:()=>d(v.fields)}))}(0,d9.invariant)(!1,"Unexpected type: "+(0,l9.inspect)(I))}}function WN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(LC.naturalCompare))n[r]=t(e[r]);return n}function Iv(e){return CC(e,t=>t.name)}function CC(e,t){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);return(0,LC.naturalCompare)(i,a)})}});var jC=w(Ff=>{"use strict";m();T();N();Object.defineProperty(Ff,"__esModule",{value:!0});Ff.printIntrospectionSchema=v9;Ff.printSchema=_9;Ff.printType=MC;var E9=Wt(),h9=br(),y9=Vd(),vv=wt(),XN=pi(),Rl=Lt(),Ov=Wr(),UC=Li(),I9=xa(),g9=lf();function _9(e){return kC(e,t=>!(0,Ov.isSpecifiedDirective)(t),O9)}function v9(e){return kC(e,Ov.isSpecifiedDirective,UC.isIntrospectionType)}function O9(e){return!(0,I9.isSpecifiedScalarType)(e)&&!(0,UC.isIntrospectionType)(e)}function kC(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[S9(e),...r.map(a=>L9(a)),...i.map(a=>MC(a))].filter(Boolean).join(` + `}var MS=ae(()=>{"use strict";p();N();m()});function VS(e,t){let n=null;for(let i of e.definitions)if(i.kind===F.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}var HU=ae(()=>{"use strict";p();N();m();$t()});function qS(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new G("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new G("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new G("Schema is not configured for subscriptions.",{nodes:t});return n}throw new G("Can only have query, mutation and subscription operations.",{nodes:t})}var zU=ae(()=>{"use strict";p();N();m();nt()});function $S(e,t){let n=x({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=Js(Ym(n)),i=Gm({schema:e,document:r});return!i.errors&&i.data||Bt(!1),i.data}var WU=ae(()=>{"use strict";p();N();m();ni();Cd();Qm();MS()});function jS(e,t){Xn(e)&&Xn(e.__schema)||tt(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ne(e)}.`);let n=e.__schema,r=hs(n.types,te=>te.name,te=>h(te));for(let te of[...Aa,...wa])r[te.name]&&(r[te.name]=te);let i=n.queryType?f(n.queryType):null,s=n.mutationType?f(n.mutationType):null,a=n.subscriptionType?f(n.subscriptionType):null,u=n.directives?n.directives.map(at):[];return new ki({description:n.description,query:i,mutation:s,subscription:a,types:Object.values(r),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(te){if(te.kind===nn.LIST){let Se=te.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");return new An(l(Se))}if(te.kind===nn.NON_NULL){let Se=te.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");let wt=l(Se);return new ct(Gp(wt))}return d(te)}function d(te){let Se=te.name;if(!Se)throw new Error(`Unknown type reference: ${ne(te)}.`);let wt=r[Se];if(!wt)throw new Error(`Invalid or incomplete schema, unknown type: ${Se}. Ensure that a full introspection query is used in order to build a client schema.`);return wt}function f(te){return $p(d(te))}function E(te){return jp(d(te))}function h(te){if(te!=null&&te.name!=null&&te.kind!=null)switch(te.kind){case nn.SCALAR:return _(te);case nn.OBJECT:return U(te);case nn.INTERFACE:return q(te);case nn.UNION:return j(te);case nn.ENUM:return re(te);case nn.INPUT_OBJECT:return ee(te)}let Se=ne(te);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Se}.`)}function _(te){return new Yr({name:te.name,description:te.description,specifiedByURL:te.specifiedByURL})}function A(te){if(te.interfaces===null&&te.kind===nn.INTERFACE)return[];if(!te.interfaces){let Se=ne(te);throw new Error(`Introspection result missing interfaces: ${Se}.`)}return te.interfaces.map(E)}function U(te){return new Nr({name:te.name,description:te.description,interfaces:()=>A(te),fields:()=>me(te)})}function q(te){return new Zi({name:te.name,description:te.description,interfaces:()=>A(te),fields:()=>me(te)})}function j(te){if(!te.possibleTypes){let Se=ne(te);throw new Error(`Introspection result missing possibleTypes: ${Se}.`)}return new es({name:te.name,description:te.description,types:()=>te.possibleTypes.map(f)})}function re(te){if(!te.enumValues){let Se=ne(te);throw new Error(`Introspection result missing enumValues: ${Se}.`)}return new si({name:te.name,description:te.description,values:hs(te.enumValues,Se=>Se.name,Se=>({description:Se.description,deprecationReason:Se.deprecationReason}))})}function ee(te){if(!te.inputFields){let Se=ne(te);throw new Error(`Introspection result missing inputFields: ${Se}.`)}return new ts({name:te.name,description:te.description,fields:()=>be(te.inputFields),isOneOf:te.isOneOf})}function me(te){if(!te.fields)throw new Error(`Introspection result missing fields: ${ne(te)}.`);return hs(te.fields,Se=>Se.name,ce)}function ce(te){let Se=l(te.type);if(!ns(Se)){let wt=ne(Se);throw new Error(`Introspection must provide output type for fields, but received: ${wt}.`)}if(!te.args){let wt=ne(te);throw new Error(`Introspection result missing field args: ${wt}.`)}return{description:te.description,deprecationReason:te.deprecationReason,type:Se,args:be(te.args)}}function be(te){return hs(te,Se=>Se.name,xe)}function xe(te){let Se=l(te.type);if(!sr(Se)){let fn=ne(Se);throw new Error(`Introspection must provide input type for arguments, but received: ${fn}.`)}let wt=te.defaultValue!=null?Di(kp(te.defaultValue),Se):void 0;return{description:te.description,type:Se,defaultValue:wt,deprecationReason:te.deprecationReason}}function at(te){if(!te.args){let Se=ne(te);throw new Error(`Introspection result missing directive args: ${Se}.`)}if(!te.locations){let Se=ne(te);throw new Error(`Introspection result missing directive locations: ${Se}.`)}return new kr({name:te.name,description:te.description,isRepeatable:te.isRepeatable,locations:te.locations.slice(),args:be(te.args)})}}var XU=ae(()=>{"use strict";p();N();m();Ii();an();Da();xp();Cd();jt();Ui();Is();Ra();hl();Dm()});function KS(e,t,n){El(e),t!=null&&t.kind===F.DOCUMENT||tt(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&vU(t,e);let r=e.toConfig(),i=GS(r,t,n);return r===i?e:new ki(i)}function GS(e,t,n){var r,i,s,a;let u=[],l=Object.create(null),d=[],f,E=[];for(let ue of t.definitions)if(ue.kind===F.SCHEMA_DEFINITION)f=ue;else if(ue.kind===F.SCHEMA_EXTENSION)E.push(ue);else if(gs(ue))u.push(ue);else if(hc(ue)){let Re=ue.name.value,_e=l[Re];l[Re]=_e?_e.concat([ue]):[ue]}else ue.kind===F.DIRECTIVE_DEFINITION&&d.push(ue);if(Object.keys(l).length===0&&u.length===0&&d.length===0&&E.length===0&&f==null)return e;let h=Object.create(null);for(let ue of e.types)h[ue.name]=re(ue);for(let ue of u){var _;let Re=ue.name.value;h[Re]=(_=ZU[Re])!==null&&_!==void 0?_:zn(ue)}let A=x(x({query:e.query&&q(e.query),mutation:e.mutation&&q(e.mutation),subscription:e.subscription&&q(e.subscription)},f&&wt([f])),wt(E));return K(x({description:(r=f)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},A),{types:Object.values(h),directives:[...e.directives.map(j),...d.map(Hn)],extensions:Object.create(null),astNode:(s=f)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(E),assumeValid:(a=n==null?void 0:n.assumeValid)!==null&&a!==void 0?a:!1});function U(ue){return bt(ue)?new An(U(ue.ofType)):Ke(ue)?new ct(U(ue.ofType)):q(ue)}function q(ue){return h[ue.name]}function j(ue){let Re=ue.toConfig();return new kr(K(x({},Re),{args:Hs(Re.args,Se)}))}function re(ue){if(oi(ue)||Xs(ue))return ue;if(Kn(ue))return ce(ue);if(rt(ue))return be(ue);if(mt(ue))return xe(ue);if(tn(ue))return at(ue);if(Gt(ue))return me(ue);if(Nt(ue))return ee(ue);Bt(!1,"Unexpected type: "+ne(ue))}function ee(ue){var Re;let _e=ue.toConfig(),Be=(Re=l[_e.name])!==null&&Re!==void 0?Re:[];return new ts(K(x({},_e),{fields:()=>x(x({},Hs(_e.fields,Pt=>K(x({},Pt),{type:U(Pt.type)}))),Ti(Be)),extensionASTNodes:_e.extensionASTNodes.concat(Be)}))}function me(ue){var Re;let _e=ue.toConfig(),Be=(Re=l[ue.name])!==null&&Re!==void 0?Re:[];return new si(K(x({},_e),{values:x(x({},_e.values),Lr(Be)),extensionASTNodes:_e.extensionASTNodes.concat(Be)}))}function ce(ue){var Re;let _e=ue.toConfig(),Be=(Re=l[_e.name])!==null&&Re!==void 0?Re:[],Pt=_e.specifiedByURL;for(let oe of Be){var J;Pt=(J=eB(oe))!==null&&J!==void 0?J:Pt}return new Yr(K(x({},_e),{specifiedByURL:Pt,extensionASTNodes:_e.extensionASTNodes.concat(Be)}))}function be(ue){var Re;let _e=ue.toConfig(),Be=(Re=l[_e.name])!==null&&Re!==void 0?Re:[];return new Nr(K(x({},_e),{interfaces:()=>[...ue.getInterfaces().map(q),...Cn(Be)],fields:()=>x(x({},Hs(_e.fields,te)),Zt(Be)),extensionASTNodes:_e.extensionASTNodes.concat(Be)}))}function xe(ue){var Re;let _e=ue.toConfig(),Be=(Re=l[_e.name])!==null&&Re!==void 0?Re:[];return new Zi(K(x({},_e),{interfaces:()=>[...ue.getInterfaces().map(q),...Cn(Be)],fields:()=>x(x({},Hs(_e.fields,te)),Zt(Be)),extensionASTNodes:_e.extensionASTNodes.concat(Be)}))}function at(ue){var Re;let _e=ue.toConfig(),Be=(Re=l[_e.name])!==null&&Re!==void 0?Re:[];return new es(K(x({},_e),{types:()=>[...ue.getTypes().map(q),...rn(Be)],extensionASTNodes:_e.extensionASTNodes.concat(Be)}))}function te(ue){return K(x({},ue),{type:U(ue.type),args:ue.args&&Hs(ue.args,Se)})}function Se(ue){return K(x({},ue),{type:U(ue.type)})}function wt(ue){let Re={};for(let Be of ue){var _e;let Pt=(_e=Be.operationTypes)!==null&&_e!==void 0?_e:[];for(let J of Pt)Re[J.operation]=fn(J.type)}return Re}function fn(ue){var Re;let _e=ue.name.value,Be=(Re=ZU[_e])!==null&&Re!==void 0?Re:h[_e];if(Be===void 0)throw new Error(`Unknown type: "${_e}".`);return Be}function pn(ue){return ue.kind===F.LIST_TYPE?new An(pn(ue.type)):ue.kind===F.NON_NULL_TYPE?new ct(pn(ue.type)):fn(ue)}function Hn(ue){var Re;return new kr({name:ue.name.value,description:(Re=ue.description)===null||Re===void 0?void 0:Re.value,locations:ue.locations.map(({value:_e})=>_e),isRepeatable:ue.repeatable,args:Sn(ue.arguments),astNode:ue})}function Zt(ue){let Re=Object.create(null);for(let Pt of ue){var _e;let J=(_e=Pt.fields)!==null&&_e!==void 0?_e:[];for(let oe of J){var Be;Re[oe.name.value]={type:pn(oe.type),description:(Be=oe.description)===null||Be===void 0?void 0:Be.value,args:Sn(oe.arguments),deprecationReason:dh(oe),astNode:oe}}}return Re}function Sn(ue){let Re=ue!=null?ue:[],_e=Object.create(null);for(let Pt of Re){var Be;let J=pn(Pt.type);_e[Pt.name.value]={type:J,description:(Be=Pt.description)===null||Be===void 0?void 0:Be.value,defaultValue:Di(Pt.defaultValue,J),deprecationReason:dh(Pt),astNode:Pt}}return _e}function Ti(ue){let Re=Object.create(null);for(let Pt of ue){var _e;let J=(_e=Pt.fields)!==null&&_e!==void 0?_e:[];for(let oe of J){var Be;let $e=pn(oe.type);Re[oe.name.value]={type:$e,description:(Be=oe.description)===null||Be===void 0?void 0:Be.value,defaultValue:Di(oe.defaultValue,$e),deprecationReason:dh(oe),astNode:oe}}}return Re}function Lr(ue){let Re=Object.create(null);for(let Pt of ue){var _e;let J=(_e=Pt.values)!==null&&_e!==void 0?_e:[];for(let oe of J){var Be;Re[oe.name.value]={description:(Be=oe.description)===null||Be===void 0?void 0:Be.value,deprecationReason:dh(oe),astNode:oe}}}return Re}function Cn(ue){return ue.flatMap(Re=>{var _e,Be;return(_e=(Be=Re.interfaces)===null||Be===void 0?void 0:Be.map(fn))!==null&&_e!==void 0?_e:[]})}function rn(ue){return ue.flatMap(Re=>{var _e,Be;return(_e=(Be=Re.types)===null||Be===void 0?void 0:Be.map(fn))!==null&&_e!==void 0?_e:[]})}function zn(ue){var Re;let _e=ue.name.value,Be=(Re=l[_e])!==null&&Re!==void 0?Re:[];switch(ue.kind){case F.OBJECT_TYPE_DEFINITION:{var Pt;let ft=[ue,...Be];return new Nr({name:_e,description:(Pt=ue.description)===null||Pt===void 0?void 0:Pt.value,interfaces:()=>Cn(ft),fields:()=>Zt(ft),astNode:ue,extensionASTNodes:Be})}case F.INTERFACE_TYPE_DEFINITION:{var J;let ft=[ue,...Be];return new Zi({name:_e,description:(J=ue.description)===null||J===void 0?void 0:J.value,interfaces:()=>Cn(ft),fields:()=>Zt(ft),astNode:ue,extensionASTNodes:Be})}case F.ENUM_TYPE_DEFINITION:{var oe;let ft=[ue,...Be];return new si({name:_e,description:(oe=ue.description)===null||oe===void 0?void 0:oe.value,values:Lr(ft),astNode:ue,extensionASTNodes:Be})}case F.UNION_TYPE_DEFINITION:{var $e;let ft=[ue,...Be];return new es({name:_e,description:($e=ue.description)===null||$e===void 0?void 0:$e.value,types:()=>rn(ft),astNode:ue,extensionASTNodes:Be})}case F.SCALAR_TYPE_DEFINITION:{var et;return new Yr({name:_e,description:(et=ue.description)===null||et===void 0?void 0:et.value,specifiedByURL:eB(ue),astNode:ue,extensionASTNodes:Be})}case F.INPUT_OBJECT_TYPE_DEFINITION:{var Qt;let ft=[ue,...Be];return new ts({name:_e,description:(Qt=ue.description)===null||Qt===void 0?void 0:Qt.value,fields:()=>Ti(ft),astNode:ue,extensionASTNodes:Be,isOneOf:S8(ue)})}}}}function dh(e){let t=Pa(Fa,e);return t==null?void 0:t.reason}function eB(e){let t=Pa(Kd,e);return t==null?void 0:t.url}function S8(e){return!!Pa(Gd,e)}var ZU,QS=ae(()=>{"use strict";p();N();m();Ii();an();ni();fc();ov();$t();_l();jt();Ui();Is();Ra();hl();$m();ef();Dm();ZU=ii([...Aa,...wa],e=>e.name)});function fh(e,t){e!=null&&e.kind===F.DOCUMENT||tt(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&_U(e);let r=GS({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...ai.filter(s=>r.directives.every(a=>a.name!==s.name))];return new ki(K(x({},r),{directives:i}))}function YS(e,t){let n=Js(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return fh(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}var tB=ae(()=>{"use strict";p();N();m();Ii();$t();Cd();Ui();hl();$m();QS()});function Jm(e){let t=e.toConfig(),n=hs(JS(t.types),h=>h.name,E);return new ki(K(x({},t),{types:Object.values(n),directives:JS(t.directives).map(a),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)}));function r(h){return bt(h)?new An(r(h.ofType)):Ke(h)?new ct(r(h.ofType)):i(h)}function i(h){return n[h.name]}function s(h){return h&&i(h)}function a(h){let _=h.toConfig();return new kr(K(x({},_),{locations:nB(_.locations,A=>A),args:u(_.args)}))}function u(h){return ph(h,_=>K(x({},_),{type:r(_.type)}))}function l(h){return ph(h,_=>K(x({},_),{type:r(_.type),args:_.args&&u(_.args)}))}function d(h){return ph(h,_=>K(x({},_),{type:r(_.type)}))}function f(h){return JS(h).map(i)}function E(h){if(Kn(h)||oi(h))return h;if(rt(h)){let _=h.toConfig();return new Nr(K(x({},_),{interfaces:()=>f(_.interfaces),fields:()=>l(_.fields)}))}if(mt(h)){let _=h.toConfig();return new Zi(K(x({},_),{interfaces:()=>f(_.interfaces),fields:()=>l(_.fields)}))}if(tn(h)){let _=h.toConfig();return new es(K(x({},_),{types:()=>f(_.types)}))}if(Gt(h)){let _=h.toConfig();return new si(K(x({},_),{values:ph(_.values,A=>A)}))}if(Nt(h)){let _=h.toConfig();return new ts(K(x({},_),{fields:()=>d(_.fields)}))}Bt(!1,"Unexpected type: "+ne(h))}}function ph(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(mo))n[r]=t(e[r]);return n}function JS(e){return nB(e,t=>t.name)}function nB(e,t){return e.slice().sort((n,r)=>{let i=t(n),s=t(r);return mo(i,s)})}var rB=ae(()=>{"use strict";p();N();m();an();ni();xp();Mp();jt();Ui();Is();hl()});function of(e){return iB(e,t=>!Ec(t),D8)}function zS(e){return iB(e,Ec,oi)}function D8(e){return!Xs(e)&&!oi(e)}function iB(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[O8(e),...r.map(s=>C8(s)),...i.map(s=>mh(s))].filter(Boolean).join(` -`)}function S9(e){if(e.description==null&&D9(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),xi(e)+`schema { +`)}function O8(e){if(e.description==null&&b8(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),_s(e)+`schema { ${t.join(` `)} -}`}function D9(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function MC(e){if((0,Rl.isScalarType)(e))return b9(e);if((0,Rl.isObjectType)(e))return A9(e);if((0,Rl.isInterfaceType)(e))return R9(e);if((0,Rl.isUnionType)(e))return P9(e);if((0,Rl.isEnumType)(e))return F9(e);if((0,Rl.isInputObjectType)(e))return w9(e);(0,h9.invariant)(!1,"Unexpected type: "+(0,E9.inspect)(e))}function b9(e){return xi(e)+`scalar ${e.name}`+C9(e)}function xC(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function A9(e){return xi(e)+`type ${e.name}`+xC(e)+qC(e)}function R9(e){return xi(e)+`interface ${e.name}`+xC(e)+qC(e)}function P9(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return xi(e)+"union "+e.name+n}function F9(e){let t=e.getValues().map((n,r)=>xi(n," ",!r)+" "+n.name+Dv(n.deprecationReason));return xi(e)+`enum ${e.name}`+Sv(t)}function w9(e){let t=Object.values(e.getFields()).map((n,r)=>xi(n," ",!r)+" "+_v(n));return xi(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+Sv(t)}function qC(e){let t=Object.values(e.getFields()).map((n,r)=>xi(n," ",!r)+" "+n.name+VC(n.args," ")+": "+String(n.type)+Dv(n.deprecationReason));return Sv(t)}function Sv(e){return e.length!==0?` { +}`}function b8(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function mh(e){if(Kn(e))return A8(e);if(rt(e))return R8(e);if(mt(e))return F8(e);if(tn(e))return w8(e);if(Gt(e))return L8(e);if(Nt(e))return P8(e);Bt(!1,"Unexpected type: "+ne(e))}function A8(e){return _s(e)+`scalar ${e.name}`+U8(e)}function sB(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function R8(e){return _s(e)+`type ${e.name}`+sB(e)+aB(e)}function F8(e){return _s(e)+`interface ${e.name}`+sB(e)+aB(e)}function w8(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return _s(e)+"union "+e.name+n}function L8(e){let t=e.getValues().map((n,r)=>_s(n," ",!r)+" "+n.name+XS(n.deprecationReason));return _s(e)+`enum ${e.name}`+WS(t)}function P8(e){let t=Object.values(e.getFields()).map((n,r)=>_s(n," ",!r)+" "+HS(n));return _s(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+WS(t)}function aB(e){let t=Object.values(e.getFields()).map((n,r)=>_s(n," ",!r)+" "+n.name+oB(n.args," ")+": "+String(n.type)+XS(n.deprecationReason));return WS(t)}function WS(e){return e.length!==0?` { `+e.join(` `)+` -}`:""}function VC(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(_v).join(", ")+")":`( -`+e.map((n,r)=>xi(n," "+t,!r)+" "+t+_v(n)).join(` +}`:""}function oB(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(HS).join(", ")+")":`( +`+e.map((n,r)=>_s(n," "+t,!r)+" "+t+HS(n)).join(` `)+` -`+t+")"}function _v(e){let t=(0,g9.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,XN.print)(t)}`),n+Dv(e.deprecationReason)}function L9(e){return xi(e)+"directive @"+e.name+VC(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Dv(e){return e==null?"":e!==Ov.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,XN.print)({kind:vv.Kind.STRING,value:e})})`:" @deprecated"}function C9(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,XN.print)({kind:vv.Kind.STRING,value:e.specifiedByURL})})`}function xi(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=(0,XN.print)({kind:vv.Kind.STRING,value:r,block:(0,y9.isPrintableAsBlockString)(r)});return(t&&!n?` +`+t+")"}function HS(e){let t=Hr(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${Dt(t)}`),n+XS(e.deprecationReason)}function C8(e){return _s(e)+"directive @"+e.name+oB(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function XS(e){return e==null?"":e!==jd?` @deprecated(reason: ${Dt({kind:F.STRING,value:e})})`:" @deprecated"}function U8(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${Dt({kind:F.STRING,value:e.specifiedByURL})})`}function _s(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=Dt({kind:F.STRING,value:r,block:YC(r)});return(t&&!n?` `+t:t)+i.replace(/\n/g,` `+t)+` -`}});var KC=w(bv=>{"use strict";m();T();N();Object.defineProperty(bv,"__esModule",{value:!0});bv.concatAST=U9;var B9=wt();function U9(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:B9.Kind.DOCUMENT,definitions:t}}});var QC=w(Av=>{"use strict";m();T();N();Object.defineProperty(Av,"__esModule",{value:!0});Av.separateOperations=M9;var ZN=wt(),k9=nc();function M9(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case ZN.Kind.OPERATION_DEFINITION:t.push(i);break;case ZN.Kind.FRAGMENT_DEFINITION:n[i.name.value]=GC(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let a=new Set;for(let c of GC(i.selectionSet))$C(a,n,c);let o=i.name?i.name.value:"";r[o]={kind:ZN.Kind.DOCUMENT,definitions:e.definitions.filter(c=>c===i||c.kind===ZN.Kind.FRAGMENT_DEFINITION&&a.has(c.name.value))}}return r}function $C(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)$C(e,t,i)}}function GC(e){let t=[];return(0,k9.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var HC=w(Pv=>{"use strict";m();T();N();Object.defineProperty(Pv,"__esModule",{value:!0});Pv.stripIgnoredCharacters=q9;var x9=Vd(),YC=Gm(),JC=Jm(),Rv=Kd();function q9(e){let t=(0,JC.isSource)(e)?e:new JC.Source(e),n=t.body,r=new YC.Lexer(t),i="",a=!1;for(;r.advance().kind!==Rv.TokenKind.EOF;){let o=r.token,c=o.kind,l=!(0,YC.isPunctuatorTokenKind)(o.kind);a&&(l||o.kind===Rv.TokenKind.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);c===Rv.TokenKind.BLOCK_STRING?i+=(0,x9.printBlockString)(o.value,{minimize:!0}):i+=d,a=l}return i}});var WC=w(eT=>{"use strict";m();T();N();Object.defineProperty(eT,"__esModule",{value:!0});eT.assertValidName=G9;eT.isValidNameError=zC;var V9=qr(),j9=ze(),K9=Wd();function G9(e){let t=zC(e);if(t)throw t;return e}function zC(e){if(typeof e=="string"||(0,V9.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new j9.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,K9.assertName)(e)}catch(t){return t}}});var aB=w($a=>{"use strict";m();T();N();Object.defineProperty($a,"__esModule",{value:!0});$a.DangerousChangeType=$a.BreakingChangeType=void 0;$a.findBreakingChanges=z9;$a.findDangerousChanges=W9;var $9=Wt(),rB=br(),XC=lu(),Q9=pi(),qt=Lt(),Y9=xa(),J9=lf(),H9=Lg(),Mn;$a.BreakingChangeType=Mn;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Mn||($a.BreakingChangeType=Mn={}));var ma;$a.DangerousChangeType=ma;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(ma||($a.DangerousChangeType=ma={}));function z9(e,t){return iB(e,t).filter(n=>n.type in Mn)}function W9(e,t){return iB(e,t).filter(n=>n.type in ma)}function iB(e,t){return[...Z9(e,t),...X9(e,t)]}function X9(e,t){let n=[],r=As(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:Mn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,a]of r.persisted){let o=As(i.args,a.args);for(let c of o.added)(0,qt.isRequiredArgument)(c)&&n.push({type:Mn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${c.name} on directive ${i.name} was added.`});for(let c of o.removed)n.push({type:Mn.DIRECTIVE_ARG_REMOVED,description:`${c.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&n.push({type:Mn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let c of i.locations)a.locations.includes(c)||n.push({type:Mn.DIRECTIVE_LOCATION_REMOVED,description:`${c} was removed from ${i.name}.`})}return n}function Z9(e,t){let n=[],r=As(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:Mn.TYPE_REMOVED,description:(0,Y9.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,a]of r.persisted)(0,qt.isEnumType)(i)&&(0,qt.isEnumType)(a)?n.push(...n7(i,a)):(0,qt.isUnionType)(i)&&(0,qt.isUnionType)(a)?n.push(...t7(i,a)):(0,qt.isInputObjectType)(i)&&(0,qt.isInputObjectType)(a)?n.push(...e7(i,a)):(0,qt.isObjectType)(i)&&(0,qt.isObjectType)(a)?n.push(...eB(i,a),...ZC(i,a)):(0,qt.isInterfaceType)(i)&&(0,qt.isInterfaceType)(a)?n.push(...eB(i,a),...ZC(i,a)):i.constructor!==a.constructor&&n.push({type:Mn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${tB(i)} to ${tB(a)}.`});return n}function e7(e,t){let n=[],r=As(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)(0,qt.isRequiredInputField)(i)?n.push({type:Mn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ma.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:Mn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)Lf(i.type,a.type)||n.push({type:Mn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function t7(e,t){let n=[],r=As(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:ma.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:Mn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function n7(e,t){let n=[],r=As(e.getValues(),t.getValues());for(let i of r.added)n.push({type:ma.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:Mn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function ZC(e,t){let n=[],r=As(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:ma.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:Mn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function eB(e,t){let n=[],r=As(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:Mn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)n.push(...r7(e,i,a)),wf(i.type,a.type)||n.push({type:Mn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function r7(e,t,n){let r=[],i=As(t.args,n.args);for(let a of i.removed)r.push({type:Mn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${a.name} was removed.`});for(let[a,o]of i.persisted)if(!Lf(a.type,o.type))r.push({type:Mn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(o.type)}.`});else if(a.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:ma.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} defaultValue was removed.`});else{let l=nB(a.defaultValue,a.type),d=nB(o.defaultValue,o.type);l!==d&&r.push({type:ma.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} has changed defaultValue from ${l} to ${d}.`})}for(let a of i.added)(0,qt.isRequiredArgument)(a)?r.push({type:Mn.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${e.name}.${t.name} was added.`}):r.push({type:ma.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${e.name}.${t.name} was added.`});return r}function wf(e,t){return(0,qt.isListType)(e)?(0,qt.isListType)(t)&&wf(e.ofType,t.ofType)||(0,qt.isNonNullType)(t)&&wf(e,t.ofType):(0,qt.isNonNullType)(e)?(0,qt.isNonNullType)(t)&&wf(e.ofType,t.ofType):(0,qt.isNamedType)(t)&&e.name===t.name||(0,qt.isNonNullType)(t)&&wf(e,t.ofType)}function Lf(e,t){return(0,qt.isListType)(e)?(0,qt.isListType)(t)&&Lf(e.ofType,t.ofType):(0,qt.isNonNullType)(e)?(0,qt.isNonNullType)(t)&&Lf(e.ofType,t.ofType)||!(0,qt.isNonNullType)(t)&&Lf(e.ofType,t):(0,qt.isNamedType)(t)&&e.name===t.name}function tB(e){if((0,qt.isScalarType)(e))return"a Scalar type";if((0,qt.isObjectType)(e))return"an Object type";if((0,qt.isInterfaceType)(e))return"an Interface type";if((0,qt.isUnionType)(e))return"a Union type";if((0,qt.isEnumType)(e))return"an Enum type";if((0,qt.isInputObjectType)(e))return"an Input type";(0,rB.invariant)(!1,"Unexpected type: "+(0,$9.inspect)(e))}function nB(e,t){let n=(0,J9.astFromValue)(e,t);return n!=null||(0,rB.invariant)(!1),(0,Q9.print)((0,H9.sortValueNode)(n))}function As(e,t){let n=[],r=[],i=[],a=(0,XC.keyMap)(e,({name:c})=>c),o=(0,XC.keyMap)(t,({name:c})=>c);for(let c of e){let l=o[c.name];l===void 0?r.push(c):i.push([c,l])}for(let c of t)a[c.name]===void 0&&n.push(c);return{added:n,persisted:i,removed:r}}});var cB=w(kt=>{"use strict";m();T();N();Object.defineProperty(kt,"__esModule",{value:!0});Object.defineProperty(kt,"BreakingChangeType",{enumerable:!0,get:function(){return tT.BreakingChangeType}});Object.defineProperty(kt,"DangerousChangeType",{enumerable:!0,get:function(){return tT.DangerousChangeType}});Object.defineProperty(kt,"TypeInfo",{enumerable:!0,get:function(){return oB.TypeInfo}});Object.defineProperty(kt,"assertValidName",{enumerable:!0,get:function(){return uB.assertValidName}});Object.defineProperty(kt,"astFromValue",{enumerable:!0,get:function(){return m7.astFromValue}});Object.defineProperty(kt,"buildASTSchema",{enumerable:!0,get:function(){return sB.buildASTSchema}});Object.defineProperty(kt,"buildClientSchema",{enumerable:!0,get:function(){return u7.buildClientSchema}});Object.defineProperty(kt,"buildSchema",{enumerable:!0,get:function(){return sB.buildSchema}});Object.defineProperty(kt,"coerceInputValue",{enumerable:!0,get:function(){return N7.coerceInputValue}});Object.defineProperty(kt,"concatAST",{enumerable:!0,get:function(){return T7.concatAST}});Object.defineProperty(kt,"doTypesOverlap",{enumerable:!0,get:function(){return wv.doTypesOverlap}});Object.defineProperty(kt,"extendSchema",{enumerable:!0,get:function(){return c7.extendSchema}});Object.defineProperty(kt,"findBreakingChanges",{enumerable:!0,get:function(){return tT.findBreakingChanges}});Object.defineProperty(kt,"findDangerousChanges",{enumerable:!0,get:function(){return tT.findDangerousChanges}});Object.defineProperty(kt,"getIntrospectionQuery",{enumerable:!0,get:function(){return i7.getIntrospectionQuery}});Object.defineProperty(kt,"getOperationAST",{enumerable:!0,get:function(){return a7.getOperationAST}});Object.defineProperty(kt,"getOperationRootType",{enumerable:!0,get:function(){return s7.getOperationRootType}});Object.defineProperty(kt,"introspectionFromSchema",{enumerable:!0,get:function(){return o7.introspectionFromSchema}});Object.defineProperty(kt,"isEqualType",{enumerable:!0,get:function(){return wv.isEqualType}});Object.defineProperty(kt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return wv.isTypeSubTypeOf}});Object.defineProperty(kt,"isValidNameError",{enumerable:!0,get:function(){return uB.isValidNameError}});Object.defineProperty(kt,"lexicographicSortSchema",{enumerable:!0,get:function(){return l7.lexicographicSortSchema}});Object.defineProperty(kt,"printIntrospectionSchema",{enumerable:!0,get:function(){return Fv.printIntrospectionSchema}});Object.defineProperty(kt,"printSchema",{enumerable:!0,get:function(){return Fv.printSchema}});Object.defineProperty(kt,"printType",{enumerable:!0,get:function(){return Fv.printType}});Object.defineProperty(kt,"separateOperations",{enumerable:!0,get:function(){return E7.separateOperations}});Object.defineProperty(kt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return h7.stripIgnoredCharacters}});Object.defineProperty(kt,"typeFromAST",{enumerable:!0,get:function(){return d7.typeFromAST}});Object.defineProperty(kt,"valueFromAST",{enumerable:!0,get:function(){return f7.valueFromAST}});Object.defineProperty(kt,"valueFromASTUntyped",{enumerable:!0,get:function(){return p7.valueFromASTUntyped}});Object.defineProperty(kt,"visitWithTypeInfo",{enumerable:!0,get:function(){return oB.visitWithTypeInfo}});var i7=pv(),a7=hC(),s7=yC(),o7=IC(),u7=_C(),sB=wC(),c7=yv(),l7=BC(),Fv=jC(),d7=qa(),f7=If(),p7=RI(),m7=lf(),oB=_N(),N7=Zg(),T7=KC(),E7=QC(),h7=HC(),wv=nf(),uB=WC(),tT=aB()});var Oe=w(q=>{"use strict";m();T();N();Object.defineProperty(q,"__esModule",{value:!0});Object.defineProperty(q,"BREAK",{enumerable:!0,get:function(){return Yt.BREAK}});Object.defineProperty(q,"BreakingChangeType",{enumerable:!0,get:function(){return Jt.BreakingChangeType}});Object.defineProperty(q,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ye.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(q,"DangerousChangeType",{enumerable:!0,get:function(){return Jt.DangerousChangeType}});Object.defineProperty(q,"DirectiveLocation",{enumerable:!0,get:function(){return Yt.DirectiveLocation}});Object.defineProperty(q,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return ht.ExecutableDefinitionsRule}});Object.defineProperty(q,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return ht.FieldsOnCorrectTypeRule}});Object.defineProperty(q,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return ht.FragmentsOnCompositeTypesRule}});Object.defineProperty(q,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return ye.GRAPHQL_MAX_INT}});Object.defineProperty(q,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return ye.GRAPHQL_MIN_INT}});Object.defineProperty(q,"GraphQLBoolean",{enumerable:!0,get:function(){return ye.GraphQLBoolean}});Object.defineProperty(q,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ye.GraphQLDeprecatedDirective}});Object.defineProperty(q,"GraphQLDirective",{enumerable:!0,get:function(){return ye.GraphQLDirective}});Object.defineProperty(q,"GraphQLEnumType",{enumerable:!0,get:function(){return ye.GraphQLEnumType}});Object.defineProperty(q,"GraphQLError",{enumerable:!0,get:function(){return Cf.GraphQLError}});Object.defineProperty(q,"GraphQLFloat",{enumerable:!0,get:function(){return ye.GraphQLFloat}});Object.defineProperty(q,"GraphQLID",{enumerable:!0,get:function(){return ye.GraphQLID}});Object.defineProperty(q,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ye.GraphQLIncludeDirective}});Object.defineProperty(q,"GraphQLInputObjectType",{enumerable:!0,get:function(){return ye.GraphQLInputObjectType}});Object.defineProperty(q,"GraphQLInt",{enumerable:!0,get:function(){return ye.GraphQLInt}});Object.defineProperty(q,"GraphQLInterfaceType",{enumerable:!0,get:function(){return ye.GraphQLInterfaceType}});Object.defineProperty(q,"GraphQLList",{enumerable:!0,get:function(){return ye.GraphQLList}});Object.defineProperty(q,"GraphQLNonNull",{enumerable:!0,get:function(){return ye.GraphQLNonNull}});Object.defineProperty(q,"GraphQLObjectType",{enumerable:!0,get:function(){return ye.GraphQLObjectType}});Object.defineProperty(q,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return ye.GraphQLOneOfDirective}});Object.defineProperty(q,"GraphQLScalarType",{enumerable:!0,get:function(){return ye.GraphQLScalarType}});Object.defineProperty(q,"GraphQLSchema",{enumerable:!0,get:function(){return ye.GraphQLSchema}});Object.defineProperty(q,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ye.GraphQLSkipDirective}});Object.defineProperty(q,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ye.GraphQLSpecifiedByDirective}});Object.defineProperty(q,"GraphQLString",{enumerable:!0,get:function(){return ye.GraphQLString}});Object.defineProperty(q,"GraphQLUnionType",{enumerable:!0,get:function(){return ye.GraphQLUnionType}});Object.defineProperty(q,"Kind",{enumerable:!0,get:function(){return Yt.Kind}});Object.defineProperty(q,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return ht.KnownArgumentNamesRule}});Object.defineProperty(q,"KnownDirectivesRule",{enumerable:!0,get:function(){return ht.KnownDirectivesRule}});Object.defineProperty(q,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return ht.KnownFragmentNamesRule}});Object.defineProperty(q,"KnownTypeNamesRule",{enumerable:!0,get:function(){return ht.KnownTypeNamesRule}});Object.defineProperty(q,"Lexer",{enumerable:!0,get:function(){return Yt.Lexer}});Object.defineProperty(q,"Location",{enumerable:!0,get:function(){return Yt.Location}});Object.defineProperty(q,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return ht.LoneAnonymousOperationRule}});Object.defineProperty(q,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return ht.LoneSchemaDefinitionRule}});Object.defineProperty(q,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return ht.MaxIntrospectionDepthRule}});Object.defineProperty(q,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return ht.NoDeprecatedCustomRule}});Object.defineProperty(q,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return ht.NoFragmentCyclesRule}});Object.defineProperty(q,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return ht.NoSchemaIntrospectionCustomRule}});Object.defineProperty(q,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return ht.NoUndefinedVariablesRule}});Object.defineProperty(q,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return ht.NoUnusedFragmentsRule}});Object.defineProperty(q,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return ht.NoUnusedVariablesRule}});Object.defineProperty(q,"OperationTypeNode",{enumerable:!0,get:function(){return Yt.OperationTypeNode}});Object.defineProperty(q,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return ht.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(q,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return ht.PossibleFragmentSpreadsRule}});Object.defineProperty(q,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return ht.PossibleTypeExtensionsRule}});Object.defineProperty(q,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return ht.ProvidedRequiredArgumentsRule}});Object.defineProperty(q,"ScalarLeafsRule",{enumerable:!0,get:function(){return ht.ScalarLeafsRule}});Object.defineProperty(q,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return ye.SchemaMetaFieldDef}});Object.defineProperty(q,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return ht.SingleFieldSubscriptionsRule}});Object.defineProperty(q,"Source",{enumerable:!0,get:function(){return Yt.Source}});Object.defineProperty(q,"Token",{enumerable:!0,get:function(){return Yt.Token}});Object.defineProperty(q,"TokenKind",{enumerable:!0,get:function(){return Yt.TokenKind}});Object.defineProperty(q,"TypeInfo",{enumerable:!0,get:function(){return Jt.TypeInfo}});Object.defineProperty(q,"TypeKind",{enumerable:!0,get:function(){return ye.TypeKind}});Object.defineProperty(q,"TypeMetaFieldDef",{enumerable:!0,get:function(){return ye.TypeMetaFieldDef}});Object.defineProperty(q,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return ye.TypeNameMetaFieldDef}});Object.defineProperty(q,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return ht.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(q,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return ht.UniqueArgumentNamesRule}});Object.defineProperty(q,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return ht.UniqueDirectiveNamesRule}});Object.defineProperty(q,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return ht.UniqueDirectivesPerLocationRule}});Object.defineProperty(q,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return ht.UniqueEnumValueNamesRule}});Object.defineProperty(q,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return ht.UniqueFieldDefinitionNamesRule}});Object.defineProperty(q,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return ht.UniqueFragmentNamesRule}});Object.defineProperty(q,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return ht.UniqueInputFieldNamesRule}});Object.defineProperty(q,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return ht.UniqueOperationNamesRule}});Object.defineProperty(q,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return ht.UniqueOperationTypesRule}});Object.defineProperty(q,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return ht.UniqueTypeNamesRule}});Object.defineProperty(q,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return ht.UniqueVariableNamesRule}});Object.defineProperty(q,"ValidationContext",{enumerable:!0,get:function(){return ht.ValidationContext}});Object.defineProperty(q,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return ht.ValuesOfCorrectTypeRule}});Object.defineProperty(q,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return ht.VariablesAreInputTypesRule}});Object.defineProperty(q,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return ht.VariablesInAllowedPositionRule}});Object.defineProperty(q,"__Directive",{enumerable:!0,get:function(){return ye.__Directive}});Object.defineProperty(q,"__DirectiveLocation",{enumerable:!0,get:function(){return ye.__DirectiveLocation}});Object.defineProperty(q,"__EnumValue",{enumerable:!0,get:function(){return ye.__EnumValue}});Object.defineProperty(q,"__Field",{enumerable:!0,get:function(){return ye.__Field}});Object.defineProperty(q,"__InputValue",{enumerable:!0,get:function(){return ye.__InputValue}});Object.defineProperty(q,"__Schema",{enumerable:!0,get:function(){return ye.__Schema}});Object.defineProperty(q,"__Type",{enumerable:!0,get:function(){return ye.__Type}});Object.defineProperty(q,"__TypeKind",{enumerable:!0,get:function(){return ye.__TypeKind}});Object.defineProperty(q,"assertAbstractType",{enumerable:!0,get:function(){return ye.assertAbstractType}});Object.defineProperty(q,"assertCompositeType",{enumerable:!0,get:function(){return ye.assertCompositeType}});Object.defineProperty(q,"assertDirective",{enumerable:!0,get:function(){return ye.assertDirective}});Object.defineProperty(q,"assertEnumType",{enumerable:!0,get:function(){return ye.assertEnumType}});Object.defineProperty(q,"assertEnumValueName",{enumerable:!0,get:function(){return ye.assertEnumValueName}});Object.defineProperty(q,"assertInputObjectType",{enumerable:!0,get:function(){return ye.assertInputObjectType}});Object.defineProperty(q,"assertInputType",{enumerable:!0,get:function(){return ye.assertInputType}});Object.defineProperty(q,"assertInterfaceType",{enumerable:!0,get:function(){return ye.assertInterfaceType}});Object.defineProperty(q,"assertLeafType",{enumerable:!0,get:function(){return ye.assertLeafType}});Object.defineProperty(q,"assertListType",{enumerable:!0,get:function(){return ye.assertListType}});Object.defineProperty(q,"assertName",{enumerable:!0,get:function(){return ye.assertName}});Object.defineProperty(q,"assertNamedType",{enumerable:!0,get:function(){return ye.assertNamedType}});Object.defineProperty(q,"assertNonNullType",{enumerable:!0,get:function(){return ye.assertNonNullType}});Object.defineProperty(q,"assertNullableType",{enumerable:!0,get:function(){return ye.assertNullableType}});Object.defineProperty(q,"assertObjectType",{enumerable:!0,get:function(){return ye.assertObjectType}});Object.defineProperty(q,"assertOutputType",{enumerable:!0,get:function(){return ye.assertOutputType}});Object.defineProperty(q,"assertScalarType",{enumerable:!0,get:function(){return ye.assertScalarType}});Object.defineProperty(q,"assertSchema",{enumerable:!0,get:function(){return ye.assertSchema}});Object.defineProperty(q,"assertType",{enumerable:!0,get:function(){return ye.assertType}});Object.defineProperty(q,"assertUnionType",{enumerable:!0,get:function(){return ye.assertUnionType}});Object.defineProperty(q,"assertValidName",{enumerable:!0,get:function(){return Jt.assertValidName}});Object.defineProperty(q,"assertValidSchema",{enumerable:!0,get:function(){return ye.assertValidSchema}});Object.defineProperty(q,"assertWrappingType",{enumerable:!0,get:function(){return ye.assertWrappingType}});Object.defineProperty(q,"astFromValue",{enumerable:!0,get:function(){return Jt.astFromValue}});Object.defineProperty(q,"buildASTSchema",{enumerable:!0,get:function(){return Jt.buildASTSchema}});Object.defineProperty(q,"buildClientSchema",{enumerable:!0,get:function(){return Jt.buildClientSchema}});Object.defineProperty(q,"buildSchema",{enumerable:!0,get:function(){return Jt.buildSchema}});Object.defineProperty(q,"coerceInputValue",{enumerable:!0,get:function(){return Jt.coerceInputValue}});Object.defineProperty(q,"concatAST",{enumerable:!0,get:function(){return Jt.concatAST}});Object.defineProperty(q,"createSourceEventStream",{enumerable:!0,get:function(){return Qa.createSourceEventStream}});Object.defineProperty(q,"defaultFieldResolver",{enumerable:!0,get:function(){return Qa.defaultFieldResolver}});Object.defineProperty(q,"defaultTypeResolver",{enumerable:!0,get:function(){return Qa.defaultTypeResolver}});Object.defineProperty(q,"doTypesOverlap",{enumerable:!0,get:function(){return Jt.doTypesOverlap}});Object.defineProperty(q,"execute",{enumerable:!0,get:function(){return Qa.execute}});Object.defineProperty(q,"executeSync",{enumerable:!0,get:function(){return Qa.executeSync}});Object.defineProperty(q,"extendSchema",{enumerable:!0,get:function(){return Jt.extendSchema}});Object.defineProperty(q,"findBreakingChanges",{enumerable:!0,get:function(){return Jt.findBreakingChanges}});Object.defineProperty(q,"findDangerousChanges",{enumerable:!0,get:function(){return Jt.findDangerousChanges}});Object.defineProperty(q,"formatError",{enumerable:!0,get:function(){return Cf.formatError}});Object.defineProperty(q,"getArgumentValues",{enumerable:!0,get:function(){return Qa.getArgumentValues}});Object.defineProperty(q,"getDirectiveValues",{enumerable:!0,get:function(){return Qa.getDirectiveValues}});Object.defineProperty(q,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Yt.getEnterLeaveForKind}});Object.defineProperty(q,"getIntrospectionQuery",{enumerable:!0,get:function(){return Jt.getIntrospectionQuery}});Object.defineProperty(q,"getLocation",{enumerable:!0,get:function(){return Yt.getLocation}});Object.defineProperty(q,"getNamedType",{enumerable:!0,get:function(){return ye.getNamedType}});Object.defineProperty(q,"getNullableType",{enumerable:!0,get:function(){return ye.getNullableType}});Object.defineProperty(q,"getOperationAST",{enumerable:!0,get:function(){return Jt.getOperationAST}});Object.defineProperty(q,"getOperationRootType",{enumerable:!0,get:function(){return Jt.getOperationRootType}});Object.defineProperty(q,"getVariableValues",{enumerable:!0,get:function(){return Qa.getVariableValues}});Object.defineProperty(q,"getVisitFn",{enumerable:!0,get:function(){return Yt.getVisitFn}});Object.defineProperty(q,"graphql",{enumerable:!0,get:function(){return dB.graphql}});Object.defineProperty(q,"graphqlSync",{enumerable:!0,get:function(){return dB.graphqlSync}});Object.defineProperty(q,"introspectionFromSchema",{enumerable:!0,get:function(){return Jt.introspectionFromSchema}});Object.defineProperty(q,"introspectionTypes",{enumerable:!0,get:function(){return ye.introspectionTypes}});Object.defineProperty(q,"isAbstractType",{enumerable:!0,get:function(){return ye.isAbstractType}});Object.defineProperty(q,"isCompositeType",{enumerable:!0,get:function(){return ye.isCompositeType}});Object.defineProperty(q,"isConstValueNode",{enumerable:!0,get:function(){return Yt.isConstValueNode}});Object.defineProperty(q,"isDefinitionNode",{enumerable:!0,get:function(){return Yt.isDefinitionNode}});Object.defineProperty(q,"isDirective",{enumerable:!0,get:function(){return ye.isDirective}});Object.defineProperty(q,"isEnumType",{enumerable:!0,get:function(){return ye.isEnumType}});Object.defineProperty(q,"isEqualType",{enumerable:!0,get:function(){return Jt.isEqualType}});Object.defineProperty(q,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Yt.isExecutableDefinitionNode}});Object.defineProperty(q,"isInputObjectType",{enumerable:!0,get:function(){return ye.isInputObjectType}});Object.defineProperty(q,"isInputType",{enumerable:!0,get:function(){return ye.isInputType}});Object.defineProperty(q,"isInterfaceType",{enumerable:!0,get:function(){return ye.isInterfaceType}});Object.defineProperty(q,"isIntrospectionType",{enumerable:!0,get:function(){return ye.isIntrospectionType}});Object.defineProperty(q,"isLeafType",{enumerable:!0,get:function(){return ye.isLeafType}});Object.defineProperty(q,"isListType",{enumerable:!0,get:function(){return ye.isListType}});Object.defineProperty(q,"isNamedType",{enumerable:!0,get:function(){return ye.isNamedType}});Object.defineProperty(q,"isNonNullType",{enumerable:!0,get:function(){return ye.isNonNullType}});Object.defineProperty(q,"isNullableType",{enumerable:!0,get:function(){return ye.isNullableType}});Object.defineProperty(q,"isObjectType",{enumerable:!0,get:function(){return ye.isObjectType}});Object.defineProperty(q,"isOutputType",{enumerable:!0,get:function(){return ye.isOutputType}});Object.defineProperty(q,"isRequiredArgument",{enumerable:!0,get:function(){return ye.isRequiredArgument}});Object.defineProperty(q,"isRequiredInputField",{enumerable:!0,get:function(){return ye.isRequiredInputField}});Object.defineProperty(q,"isScalarType",{enumerable:!0,get:function(){return ye.isScalarType}});Object.defineProperty(q,"isSchema",{enumerable:!0,get:function(){return ye.isSchema}});Object.defineProperty(q,"isSelectionNode",{enumerable:!0,get:function(){return Yt.isSelectionNode}});Object.defineProperty(q,"isSpecifiedDirective",{enumerable:!0,get:function(){return ye.isSpecifiedDirective}});Object.defineProperty(q,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ye.isSpecifiedScalarType}});Object.defineProperty(q,"isType",{enumerable:!0,get:function(){return ye.isType}});Object.defineProperty(q,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Yt.isTypeDefinitionNode}});Object.defineProperty(q,"isTypeExtensionNode",{enumerable:!0,get:function(){return Yt.isTypeExtensionNode}});Object.defineProperty(q,"isTypeNode",{enumerable:!0,get:function(){return Yt.isTypeNode}});Object.defineProperty(q,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Jt.isTypeSubTypeOf}});Object.defineProperty(q,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Yt.isTypeSystemDefinitionNode}});Object.defineProperty(q,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Yt.isTypeSystemExtensionNode}});Object.defineProperty(q,"isUnionType",{enumerable:!0,get:function(){return ye.isUnionType}});Object.defineProperty(q,"isValidNameError",{enumerable:!0,get:function(){return Jt.isValidNameError}});Object.defineProperty(q,"isValueNode",{enumerable:!0,get:function(){return Yt.isValueNode}});Object.defineProperty(q,"isWrappingType",{enumerable:!0,get:function(){return ye.isWrappingType}});Object.defineProperty(q,"lexicographicSortSchema",{enumerable:!0,get:function(){return Jt.lexicographicSortSchema}});Object.defineProperty(q,"locatedError",{enumerable:!0,get:function(){return Cf.locatedError}});Object.defineProperty(q,"parse",{enumerable:!0,get:function(){return Yt.parse}});Object.defineProperty(q,"parseConstValue",{enumerable:!0,get:function(){return Yt.parseConstValue}});Object.defineProperty(q,"parseType",{enumerable:!0,get:function(){return Yt.parseType}});Object.defineProperty(q,"parseValue",{enumerable:!0,get:function(){return Yt.parseValue}});Object.defineProperty(q,"print",{enumerable:!0,get:function(){return Yt.print}});Object.defineProperty(q,"printError",{enumerable:!0,get:function(){return Cf.printError}});Object.defineProperty(q,"printIntrospectionSchema",{enumerable:!0,get:function(){return Jt.printIntrospectionSchema}});Object.defineProperty(q,"printLocation",{enumerable:!0,get:function(){return Yt.printLocation}});Object.defineProperty(q,"printSchema",{enumerable:!0,get:function(){return Jt.printSchema}});Object.defineProperty(q,"printSourceLocation",{enumerable:!0,get:function(){return Yt.printSourceLocation}});Object.defineProperty(q,"printType",{enumerable:!0,get:function(){return Jt.printType}});Object.defineProperty(q,"recommendedRules",{enumerable:!0,get:function(){return ht.recommendedRules}});Object.defineProperty(q,"resolveObjMapThunk",{enumerable:!0,get:function(){return ye.resolveObjMapThunk}});Object.defineProperty(q,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return ye.resolveReadonlyArrayThunk}});Object.defineProperty(q,"responsePathAsArray",{enumerable:!0,get:function(){return Qa.responsePathAsArray}});Object.defineProperty(q,"separateOperations",{enumerable:!0,get:function(){return Jt.separateOperations}});Object.defineProperty(q,"specifiedDirectives",{enumerable:!0,get:function(){return ye.specifiedDirectives}});Object.defineProperty(q,"specifiedRules",{enumerable:!0,get:function(){return ht.specifiedRules}});Object.defineProperty(q,"specifiedScalarTypes",{enumerable:!0,get:function(){return ye.specifiedScalarTypes}});Object.defineProperty(q,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Jt.stripIgnoredCharacters}});Object.defineProperty(q,"subscribe",{enumerable:!0,get:function(){return Qa.subscribe}});Object.defineProperty(q,"syntaxError",{enumerable:!0,get:function(){return Cf.syntaxError}});Object.defineProperty(q,"typeFromAST",{enumerable:!0,get:function(){return Jt.typeFromAST}});Object.defineProperty(q,"validate",{enumerable:!0,get:function(){return ht.validate}});Object.defineProperty(q,"validateSchema",{enumerable:!0,get:function(){return ye.validateSchema}});Object.defineProperty(q,"valueFromAST",{enumerable:!0,get:function(){return Jt.valueFromAST}});Object.defineProperty(q,"valueFromASTUntyped",{enumerable:!0,get:function(){return Jt.valueFromASTUntyped}});Object.defineProperty(q,"version",{enumerable:!0,get:function(){return lB.version}});Object.defineProperty(q,"versionInfo",{enumerable:!0,get:function(){return lB.versionInfo}});Object.defineProperty(q,"visit",{enumerable:!0,get:function(){return Yt.visit}});Object.defineProperty(q,"visitInParallel",{enumerable:!0,get:function(){return Yt.visitInParallel}});Object.defineProperty(q,"visitWithTypeInfo",{enumerable:!0,get:function(){return Jt.visitWithTypeInfo}});var lB=aF(),dB=ZL(),ye=nC(),Yt=iC(),Qa=fC(),ht=TC(),Cf=EC(),Jt=cB()});var zn=w(R=>{"use strict";m();T();N();Object.defineProperty(R,"__esModule",{value:!0});R.FIELD_UPPER=R.FIELD_PATH=R.FIELD=R.EXTENSIONS=R.EXTENDS=R.EXTERNAL=R.EXECUTION=R.ENUM_VALUE_UPPER=R.ENUM_VALUE=R.ENUM_UPPER=R.ENUM=R.ENTITY_UNION=R.ENTITIES_FIELD=R.ENTITIES=R.EDFS_REDIS_SUBSCRIBE=R.EDFS_REDIS_PUBLISH=R.EDFS_NATS_STREAM_CONFIGURATION=R.EDFS_PUBLISH_RESULT=R.EDFS_NATS_SUBSCRIBE=R.EDFS_NATS_REQUEST=R.EDFS_NATS_PUBLISH=R.EDFS_KAFKA_SUBSCRIBE=R.EDFS_KAFKA_PUBLISH=R.DIRECTIVE_DEFINITION=R.DESCRIPTION_OVERRIDE=R.DEPRECATED_DEFAULT_ARGUMENT_VALUE=R.DEPRECATED=R.DEFAULT_SUBSCRIPTION=R.DEFAULT_QUERY=R.DEFAULT_MUTATION=R.DEFAULT_EDFS_PROVIDER_ID=R.DEFAULT=R.CONTEXT=R.CONNECT_FIELD_RESOLVER=R.CONSUMER_NAME=R.CONSUMER_INACTIVE_THRESHOLD=R.CONFIGURE_CHILD_DESCRIPTIONS=R.CONFIGURE_DESCRIPTION=R.CONDITION=R.COMPOSE_DIRECTIVE=R.CHANNELS=R.CHANNEL=R.BOOLEAN_SCALAR=R.BOOLEAN=R.ARGUMENT_DEFINITION_UPPER=R.AUTHENTICATED=R.ARGUMENT=R.ANY_SCALAR=R.AND_UPPER=R.AS=void 0;R.NOT_UPPER=R.NON_NULLABLE_STRING=R.NON_NULLABLE_INT=R.NON_NULLABLE_BOOLEAN=R.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=R.NAME=R.NOT_APPLICABLE=R.PROVIDER_TYPE_REDIS=R.PROVIDER_TYPE_NATS=R.PROVIDER_TYPE_KAFKA=R.PROPAGATE=R.MUTATION_UPPER=R.MUTATION=R.NUMBER=R.LITERAL_PERIOD=R.LITERAL_NEW_LINE=R.LITERAL_SPACE=R.LIST=R.LINK_PURPOSE=R.LINK_IMPORT=R.LINK=R.LEVELS=R.LEFT_PARENTHESIS=R.KEY=R.INTERFACE_OBJECT=R.INTERFACE_UPPER=R.INTERFACE=R.INT_SCALAR=R.INPUT_VALUE=R.INPUT_OBJECT_UPPER=R.INPUT_OBJECT=R.INPUT_FIELD_DEFINITION_UPPER=R.INPUT_FIELD=R.INPUT=R.INLINE_FRAGMENT_UPPER=R.INLINE_FRAGMENT=R.INACCESSIBLE=R.IN_UPPER=R.IMPORT=R.ID_SCALAR=R.HYPHEN_JOIN=R.FROM=R.FRAGMENT_SPREAD_UPPER=R.FRAGMENT_DEFINITION_UPPER=R.FOR=R.FLOAT_SCALAR=R.FIRST_ORDINAL=R.FIELD_DEFINITION_UPPER=R.FIELDS=R.FIELD_SET_SCALAR=void 0;R.TAG=R.SUCCESS=R.SUBSCRIPTION_UPPER=R.SUBSCRIBE=R.SUBSCRIPTION_FILTER_VALUE=R.SUBSCRIPTION_FILTER_CONDITION=R.SUBSCRIPTION_FILTER=R.SUBSCRIPTION_FIELD_CONDITION=R.SUBSCRIPTION=R.SUBJECTS=R.SUBJECT=R.STRING_SCALAR=R.STRING=R.STREAM_NAME=R.STREAM_CONFIGURATION=R.SPECIFIED_BY=R.SHAREABLE=R.SERVICE_FIELD=R.SERVICE_OBJECT=R.SEMANTIC_NON_NULL=R.SELECTION_REPRESENTATION=R.SECURITY=R.SCOPE_SCALAR=R.SCOPES=R.SCHEMA_UPPER=R.SCHEMA=R.SCALAR_UPPER=R.SCALAR=R.RESOLVABLE=R.REQUIRES_SCOPES=R.REQUIRES=R.REQUIRE_FETCH_REASONS=R.REQUEST=R.REASON=R.QUOTATION_JOIN=R.QUERY_UPPER=R.QUERY=R.PUBLISH=R.PROVIDES=R.PROVIDER_ID=R.PARENT_EXTENSION_DATA_MAP=R.PARENT_DEFINITION_DATA_MAP=R.PARENT_DEFINITION_DATA=R.OVERRIDE=R.OR_UPPER=R.OBJECT_UPPER=R.OBJECT=R.OPERATION_TO_DEFAULT=R.ONE_OF=R.NULL=void 0;R.NON_REPEATABLE_PERSISTED_DIRECTIVES=R.OUTPUT_NODE_KINDS=R.INPUT_NODE_KINDS=R.IGNORED_FIELDS=R.INHERITABLE_DIRECTIVE_NAMES=R.PERSISTED_CLIENT_DIRECTIVES=R.AUTHORIZATION_DIRECTIVES=R.ROOT_TYPE_NAMES=R.EXECUTABLE_DIRECTIVE_LOCATIONS=R.VARIABLE_DEFINITION_UPPER=R.VALUES=R.URL_LOWER=R.UNION_UPPER=R.UNION=R.TYPENAME=R.TOPICS=R.TOPIC=void 0;var hu=Oe();R.AS="as";R.AND_UPPER="AND";R.ANY_SCALAR="_Any";R.ARGUMENT="argument";R.AUTHENTICATED="authenticated";R.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";R.BOOLEAN="boolean";R.BOOLEAN_SCALAR="Boolean";R.CHANNEL="channel";R.CHANNELS="channels";R.COMPOSE_DIRECTIVE="composeDirective";R.CONDITION="condition";R.CONFIGURE_DESCRIPTION="openfed__configureDescription";R.CONFIGURE_CHILD_DESCRIPTIONS="openfed__configureChildDescriptions";R.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";R.CONSUMER_NAME="consumerName";R.CONNECT_FIELD_RESOLVER="connect__fieldResolver";R.CONTEXT="context";R.DEFAULT="default";R.DEFAULT_EDFS_PROVIDER_ID="default";R.DEFAULT_MUTATION="Mutation";R.DEFAULT_QUERY="Query";R.DEFAULT_SUBSCRIPTION="Subscription";R.DEPRECATED="deprecated";R.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";R.DESCRIPTION_OVERRIDE="descriptionOverride";R.DIRECTIVE_DEFINITION="directive definition";R.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";R.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";R.EDFS_NATS_PUBLISH="edfs__natsPublish";R.EDFS_NATS_REQUEST="edfs__natsRequest";R.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";R.EDFS_PUBLISH_RESULT="edfs__PublishResult";R.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";R.EDFS_REDIS_PUBLISH="edfs__redisPublish";R.EDFS_REDIS_SUBSCRIBE="edfs__redisSubscribe";R.ENTITIES="entities";R.ENTITIES_FIELD="_entities";R.ENTITY_UNION="_Entity";R.ENUM="Enum";R.ENUM_UPPER="ENUM";R.ENUM_VALUE="Enum Value";R.ENUM_VALUE_UPPER="ENUM_VALUE";R.EXECUTION="EXECUTION";R.EXTERNAL="external";R.EXTENDS="extends";R.EXTENSIONS="extensions";R.FIELD="field";R.FIELD_PATH="fieldPath";R.FIELD_UPPER="FIELD";R.FIELD_SET_SCALAR="openfed__FieldSet";R.FIELDS="fields";R.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";R.FIRST_ORDINAL="1st";R.FLOAT_SCALAR="Float";R.FOR="for";R.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";R.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";R.FROM="from";R.HYPHEN_JOIN=` +`}var uB=ae(()=>{"use strict";p();N();m();an();ni();Pp();$t();Xi();jt();Ui();Is();Ra();zp()});function ZS(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:F.DOCUMENT,definitions:t}}var cB=ae(()=>{"use strict";p();N();m();$t()});function eD(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case F.OPERATION_DEFINITION:t.push(i);break;case F.FRAGMENT_DEFINITION:n[i.name.value]=lB(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let s=new Set;for(let u of lB(i.selectionSet))dB(s,n,u);let a=i.name?i.name.value:"";r[a]={kind:F.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===F.FRAGMENT_DEFINITION&&s.has(u.name.value))}}return r}function dB(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)dB(e,t,i)}}function lB(e){let t=[];return ys(e,{FragmentSpread(n){t.push(n.name.value)}}),t}var fB=ae(()=>{"use strict";p();N();m();$t();ll()});function tD(e){let t=BE(e)?e:new ba(e),n=t.body,r=new po(t),i="",s=!1;for(;r.advance().kind!==le.EOF;){let a=r.token,u=a.kind,l=!LE(a.kind);s&&(l||a.kind===le.SPREAD)&&(i+=" ");let d=n.slice(a.start,a.end);u===le.BLOCK_STRING?i+=wE(a.value,{minimize:!0}):i+=d,s=l}return i}var pB=ae(()=>{"use strict";p();N();m();Pp();CE();kE();Cp()});function nD(e){let t=Nh(e);if(t)throw t;return e}function Nh(e){if(typeof e=="string"||tt(!1,"Expected name to be a string."),e.startsWith("__"))return new G(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Ur(e)}catch(t){return t}}var mB=ae(()=>{"use strict";p();N();m();Ii();nt();qp()});function rD(e,t){return yB(e,t).filter(n=>n.type in Mn)}function iD(e,t){return yB(e,t).filter(n=>n.type in is)}function yB(e,t){return[...k8(e,t),...B8(e,t)]}function B8(e,t){let n=[],r=vo(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:Mn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,s]of r.persisted){let a=vo(i.args,s.args);for(let u of a.added)rs(u)&&n.push({type:Mn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of a.removed)n.push({type:Mn.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!s.isRepeatable&&n.push({type:Mn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)s.locations.includes(u)||n.push({type:Mn.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return n}function k8(e,t){let n=[],r=vo(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:Mn.TYPE_REMOVED,description:Xs(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,s]of r.persisted)Gt(i)&&Gt(s)?n.push(...V8(i,s)):tn(i)&&tn(s)?n.push(...M8(i,s)):Nt(i)&&Nt(s)?n.push(...x8(i,s)):rt(i)&&rt(s)?n.push(...TB(i,s),...NB(i,s)):mt(i)&&mt(s)?n.push(...TB(i,s),...NB(i,s)):i.constructor!==s.constructor&&n.push({type:Mn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${EB(i)} to ${EB(s)}.`});return n}function x8(e,t){let n=[],r=vo(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)Eo(i)?n.push({type:Mn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:is.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:Mn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)zm(i.type,s.type)||n.push({type:Mn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function M8(e,t){let n=[],r=vo(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:is.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:Mn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function V8(e,t){let n=[],r=vo(e.getValues(),t.getValues());for(let i of r.added)n.push({type:is.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:Mn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function NB(e,t){let n=[],r=vo(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:is.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:Mn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function TB(e,t){let n=[],r=vo(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:Mn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)n.push(...q8(e,i,s)),Hm(i.type,s.type)||n.push({type:Mn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function q8(e,t,n){let r=[],i=vo(t.args,n.args);for(let s of i.removed)r.push({type:Mn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(let[s,a]of i.persisted)if(!zm(s.type,a.type))r.push({type:Mn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(a.type)}.`});else if(s.defaultValue!==void 0)if(a.defaultValue===void 0)r.push({type:is.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{let l=hB(s.defaultValue,s.type),d=hB(a.defaultValue,a.type);l!==d&&r.push({type:is.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${l} to ${d}.`})}for(let s of i.added)rs(s)?r.push({type:Mn.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):r.push({type:is.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return r}function Hm(e,t){return bt(e)?bt(t)&&Hm(e.ofType,t.ofType)||Ke(t)&&Hm(e,t.ofType):Ke(e)?Ke(t)&&Hm(e.ofType,t.ofType):To(t)&&e.name===t.name||Ke(t)&&Hm(e,t.ofType)}function zm(e,t){return bt(e)?bt(t)&&zm(e.ofType,t.ofType):Ke(e)?Ke(t)&&zm(e.ofType,t.ofType)||!Ke(t)&&zm(e.ofType,t):To(t)&&e.name===t.name}function EB(e){if(Kn(e))return"a Scalar type";if(rt(e))return"an Object type";if(mt(e))return"an Interface type";if(tn(e))return"a Union type";if(Gt(e))return"an Enum type";if(Nt(e))return"an Input type";Bt(!1,"Unexpected type: "+ne(e))}function hB(e,t){let n=Hr(e,t);return n!=null||Bt(!1),Dt(Zd(n))}function vo(e,t){let n=[],r=[],i=[],s=ii(e,({name:u})=>u),a=ii(t,({name:u})=>u);for(let u of e){let l=a[u.name];l===void 0?r.push(u):i.push([u,l])}for(let u of t)s[u.name]===void 0&&n.push(u);return{added:n,persisted:i,removed:r}}var Mn,is,IB=ae(()=>{"use strict";p();N();m();an();ni();fc();Xi();jt();Ra();zp();zv();(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Mn||(Mn={}));(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(is||(is={}))});var gB=ae(()=>{"use strict";p();N();m();MS();HU();zU();WU();XU();tB();QS();rB();uB();La();Dm();dv();zp();YE();uS();cB();fB();pB();Jp();mB();IB()});var Pe={};Ap(Pe,{BREAK:()=>mc,BreakingChangeType:()=>Mn,DEFAULT_DEPRECATION_REASON:()=>jd,DangerousChangeType:()=>is,DirectiveLocation:()=>ze,ExecutableDefinitionsRule:()=>sm,FieldsOnCorrectTypeRule:()=>am,FragmentsOnCompositeTypesRule:()=>om,GRAPHQL_MAX_INT:()=>xd,GRAPHQL_MIN_INT:()=>Md,GraphQLBoolean:()=>Br,GraphQLDeprecatedDirective:()=>Fa,GraphQLDirective:()=>kr,GraphQLEnumType:()=>si,GraphQLError:()=>G,GraphQLFloat:()=>KE,GraphQLID:()=>Vd,GraphQLIncludeDirective:()=>qd,GraphQLInputObjectType:()=>ts,GraphQLInt:()=>jE,GraphQLInterfaceType:()=>Zi,GraphQLList:()=>An,GraphQLNonNull:()=>ct,GraphQLObjectType:()=>Nr,GraphQLOneOfDirective:()=>Gd,GraphQLScalarType:()=>Yr,GraphQLSchema:()=>ki,GraphQLSkipDirective:()=>$d,GraphQLSpecifiedByDirective:()=>Kd,GraphQLString:()=>Rn,GraphQLUnionType:()=>es,Kind:()=>F,KnownArgumentNamesRule:()=>um,KnownDirectivesRule:()=>Wd,KnownFragmentNamesRule:()=>cm,KnownTypeNamesRule:()=>Xd,Lexer:()=>po,Location:()=>ul,LoneAnonymousOperationRule:()=>lm,LoneSchemaDefinitionRule:()=>dm,MaxIntrospectionDepthRule:()=>fm,NoDeprecatedCustomRule:()=>kS,NoFragmentCyclesRule:()=>pm,NoSchemaIntrospectionCustomRule:()=>xS,NoUndefinedVariablesRule:()=>mm,NoUnusedFragmentsRule:()=>Nm,NoUnusedVariablesRule:()=>Tm,OperationTypeNode:()=>bn,OverlappingFieldsCanBeMergedRule:()=>Em,PossibleFragmentSpreadsRule:()=>hm,PossibleTypeExtensionsRule:()=>ym,ProvidedRequiredArgumentsRule:()=>Im,ScalarLeafsRule:()=>gm,SchemaMetaFieldDef:()=>ho,SingleFieldSubscriptionsRule:()=>bm,Source:()=>ba,Token:()=>lc,TokenKind:()=>le,TypeInfo:()=>go,TypeKind:()=>nn,TypeMetaFieldDef:()=>yo,TypeNameMetaFieldDef:()=>Io,UniqueArgumentDefinitionNamesRule:()=>Am,UniqueArgumentNamesRule:()=>rf,UniqueDirectiveNamesRule:()=>Rm,UniqueDirectivesPerLocationRule:()=>sf,UniqueEnumValueNamesRule:()=>Fm,UniqueFieldDefinitionNamesRule:()=>wm,UniqueFragmentNamesRule:()=>Lm,UniqueInputFieldNamesRule:()=>af,UniqueOperationNamesRule:()=>Pm,UniqueOperationTypesRule:()=>Cm,UniqueTypeNamesRule:()=>Um,UniqueVariableNamesRule:()=>Bm,ValidationContext:()=>Sl,ValuesOfCorrectTypeRule:()=>km,VariablesAreInputTypesRule:()=>xm,VariablesInAllowedPositionRule:()=>Mm,__Directive:()=>Wp,__DirectiveLocation:()=>Xp,__EnumValue:()=>em,__Field:()=>Zp,__InputValue:()=>Tl,__Schema:()=>Nl,__Type:()=>Bi,__TypeKind:()=>tm,assertAbstractType:()=>vv,assertCompositeType:()=>_v,assertDirective:()=>Av,assertEnumType:()=>Nv,assertEnumValueName:()=>Vp,assertInputObjectType:()=>Tv,assertInputType:()=>yv,assertInterfaceType:()=>jp,assertLeafType:()=>gv,assertListType:()=>Ev,assertName:()=>Ur,assertNamedType:()=>Dv,assertNonNullType:()=>hv,assertNullableType:()=>Gp,assertObjectType:()=>$p,assertOutputType:()=>Iv,assertScalarType:()=>pv,assertSchema:()=>El,assertType:()=>fv,assertUnionType:()=>mv,assertValidName:()=>nD,assertValidSchema:()=>Il,assertWrappingType:()=>Sv,astFromValue:()=>Hr,buildASTSchema:()=>fh,buildClientSchema:()=>jS,buildSchema:()=>YS,coerceInputValue:()=>Sm,concatAST:()=>ZS,createSourceEventStream:()=>lh,defaultFieldResolver:()=>Km,defaultTypeResolver:()=>ch,doTypesOverlap:()=>kd,execute:()=>Ic,executeSync:()=>Gm,extendSchema:()=>KS,findBreakingChanges:()=>rD,findDangerousChanges:()=>iD,formatError:()=>tv,getArgumentValues:()=>yc,getDirectiveValues:()=>Pa,getEnterLeaveForKind:()=>No,getIntrospectionQuery:()=>Ym,getLocation:()=>cc,getNamedType:()=>kn,getNullableType:()=>pl,getOperationAST:()=>VS,getOperationRootType:()=>qS,getVariableValues:()=>Om,getVisitFn:()=>lv,graphql:()=>CU,graphqlSync:()=>UU,introspectionFromSchema:()=>$S,introspectionTypes:()=>wa,isAbstractType:()=>Jr,isCompositeType:()=>Si,isConstValueNode:()=>im,isDefinitionNode:()=>Lv,isDirective:()=>Tc,isEnumType:()=>Gt,isEqualType:()=>ml,isExecutableDefinitionNode:()=>Jd,isInputObjectType:()=>Nt,isInputType:()=>sr,isInterfaceType:()=>mt,isIntrospectionType:()=>oi,isLeafType:()=>Dr,isListType:()=>bt,isNamedType:()=>To,isNonNullType:()=>Ke,isNullableType:()=>Kp,isObjectType:()=>rt,isOutputType:()=>ns,isRequiredArgument:()=>rs,isRequiredInputField:()=>Eo,isScalarType:()=>Kn,isSchema:()=>QE,isSelectionNode:()=>Pv,isSpecifiedDirective:()=>Ec,isSpecifiedScalarType:()=>Xs,isType:()=>Nc,isTypeDefinitionNode:()=>gs,isTypeExtensionNode:()=>hc,isTypeNode:()=>Cv,isTypeSubTypeOf:()=>Ws,isTypeSystemDefinitionNode:()=>Hd,isTypeSystemExtensionNode:()=>zd,isUnionType:()=>tn,isValidNameError:()=>Nh,isValueNode:()=>JE,isWrappingType:()=>fl,lexicographicSortSchema:()=>Jm,locatedError:()=>Ca,parse:()=>Js,parseConstValue:()=>iv,parseType:()=>sv,parseValue:()=>kp,print:()=>Dt,printError:()=>ev,printIntrospectionSchema:()=>zS,printLocation:()=>Fp,printSchema:()=>of,printSourceLocation:()=>Rd,printType:()=>mh,recommendedRules:()=>nh,resolveObjMapThunk:()=>Yp,resolveReadonlyArrayThunk:()=>Qp,responsePathAsArray:()=>Tr,separateOperations:()=>eD,specifiedDirectives:()=>ai,specifiedRules:()=>Vm,specifiedScalarTypes:()=>Aa,stripIgnoredCharacters:()=>tD,subscribe:()=>BS,syntaxError:()=>jn,typeFromAST:()=>xn,validate:()=>qm,validateSchema:()=>Yd,valueFromAST:()=>Di,valueFromASTUntyped:()=>dl,version:()=>VC,versionInfo:()=>qC,visit:()=>ys,visitInParallel:()=>Ud,visitWithTypeInfo:()=>gl});var Oe=ae(()=>{"use strict";p();N();m();$C();kU();xU();MU();KU();YU();JU();gB()});var Er=C(R=>{"use strict";p();N();m();Object.defineProperty(R,"__esModule",{value:!0});R.FIELD_UPPER=R.FIELD_PATH=R.FIELD=R.EXTENSIONS=R.EXTENDS=R.EXTERNAL=R.EXECUTION=R.ENUM_VALUE_UPPER=R.ENUM_VALUE=R.ENUM_UPPER=R.ENUM=R.ENTITY_UNION=R.ENTITIES_FIELD=R.ENTITIES=R.EDFS_REDIS_SUBSCRIBE=R.EDFS_REDIS_PUBLISH=R.EDFS_NATS_STREAM_CONFIGURATION=R.EDFS_PUBLISH_RESULT=R.EDFS_NATS_SUBSCRIBE=R.EDFS_NATS_REQUEST=R.EDFS_NATS_PUBLISH=R.EDFS_KAFKA_SUBSCRIBE=R.EDFS_KAFKA_PUBLISH=R.DIRECTIVE_DEFINITION=R.DESCRIPTION_OVERRIDE=R.DEPRECATED_DEFAULT_ARGUMENT_VALUE=R.DEPRECATED=R.DEFAULT_SUBSCRIPTION=R.DEFAULT_QUERY=R.DEFAULT_MUTATION=R.DEFAULT_EDFS_PROVIDER_ID=R.DEFAULT=R.CONTEXT=R.CONNECT_FIELD_RESOLVER=R.CONSUMER_NAME=R.CONSUMER_INACTIVE_THRESHOLD=R.CONFIGURE_CHILD_DESCRIPTIONS=R.CONFIGURE_DESCRIPTION=R.CONDITION=R.COMPOSE_DIRECTIVE=R.CHANNELS=R.CHANNEL=R.BOOLEAN_SCALAR=R.BOOLEAN=R.ARGUMENT_DEFINITION_UPPER=R.AUTHENTICATED=R.ARGUMENT=R.ANY_SCALAR=R.AND_UPPER=R.AS=void 0;R.NOT_UPPER=R.NON_NULLABLE_STRING=R.NON_NULLABLE_INT=R.NON_NULLABLE_BOOLEAN=R.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=R.NAME=R.NOT_APPLICABLE=R.PROVIDER_TYPE_REDIS=R.PROVIDER_TYPE_NATS=R.PROVIDER_TYPE_KAFKA=R.PROPAGATE=R.MUTATION_UPPER=R.MUTATION=R.NUMBER=R.LITERAL_PERIOD=R.LITERAL_NEW_LINE=R.LITERAL_SPACE=R.LIST=R.LINK_PURPOSE=R.LINK_IMPORT=R.LINK=R.LEVELS=R.LEFT_PARENTHESIS=R.KEY=R.INTERFACE_OBJECT=R.INTERFACE_UPPER=R.INTERFACE=R.INT_SCALAR=R.INPUT_VALUE=R.INPUT_OBJECT_UPPER=R.INPUT_OBJECT=R.INPUT_FIELD_DEFINITION_UPPER=R.INPUT_FIELD=R.INPUT=R.INLINE_FRAGMENT_UPPER=R.INLINE_FRAGMENT=R.INACCESSIBLE=R.IN_UPPER=R.IMPORT=R.ID_SCALAR=R.HYPHEN_JOIN=R.FROM=R.FRAGMENT_SPREAD_UPPER=R.FRAGMENT_DEFINITION_UPPER=R.FOR=R.FLOAT_SCALAR=R.FIRST_ORDINAL=R.FIELD_DEFINITION_UPPER=R.FIELDS=R.FIELD_SET_SCALAR=void 0;R.TAG=R.SUCCESS=R.SUBSCRIPTION_UPPER=R.SUBSCRIBE=R.SUBSCRIPTION_FILTER_VALUE=R.SUBSCRIPTION_FILTER_CONDITION=R.SUBSCRIPTION_FILTER=R.SUBSCRIPTION_FIELD_CONDITION=R.SUBSCRIPTION=R.SUBJECTS=R.SUBJECT=R.STRING_SCALAR=R.STRING=R.STREAM_NAME=R.STREAM_CONFIGURATION=R.SPECIFIED_BY=R.SHAREABLE=R.SERVICE_FIELD=R.SERVICE_OBJECT=R.SEMANTIC_NON_NULL=R.SELECTION_REPRESENTATION=R.SECURITY=R.SCOPE_SCALAR=R.SCOPES=R.SCHEMA_UPPER=R.SCHEMA=R.SCALAR_UPPER=R.SCALAR=R.RESOLVABLE=R.REQUIRES_SCOPES=R.REQUIRES=R.REQUIRE_FETCH_REASONS=R.REQUEST=R.REASON=R.QUOTATION_JOIN=R.QUERY_UPPER=R.QUERY=R.PUBLISH=R.PROVIDES=R.PROVIDER_ID=R.PARENT_EXTENSION_DATA_MAP=R.PARENT_DEFINITION_DATA_MAP=R.PARENT_DEFINITION_DATA=R.OVERRIDE=R.OR_UPPER=R.OBJECT_UPPER=R.OBJECT=R.OPERATION_TO_DEFAULT=R.ONE_OF=R.NULL=void 0;R.NON_REPEATABLE_PERSISTED_DIRECTIVES=R.OUTPUT_NODE_KINDS=R.INPUT_NODE_KINDS=R.IGNORED_FIELDS=R.INHERITABLE_DIRECTIVE_NAMES=R.PERSISTED_CLIENT_DIRECTIVES=R.AUTHORIZATION_DIRECTIVES=R.ROOT_TYPE_NAMES=R.EXECUTABLE_DIRECTIVE_LOCATIONS=R.VARIABLE_DEFINITION_UPPER=R.VALUES=R.URL_LOWER=R.UNION_UPPER=R.UNION=R.TYPENAME=R.TOPICS=R.TOPIC=void 0;var gc=(Oe(),Ae(Pe));R.AS="as";R.AND_UPPER="AND";R.ANY_SCALAR="_Any";R.ARGUMENT="argument";R.AUTHENTICATED="authenticated";R.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";R.BOOLEAN="boolean";R.BOOLEAN_SCALAR="Boolean";R.CHANNEL="channel";R.CHANNELS="channels";R.COMPOSE_DIRECTIVE="composeDirective";R.CONDITION="condition";R.CONFIGURE_DESCRIPTION="openfed__configureDescription";R.CONFIGURE_CHILD_DESCRIPTIONS="openfed__configureChildDescriptions";R.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";R.CONSUMER_NAME="consumerName";R.CONNECT_FIELD_RESOLVER="connect__fieldResolver";R.CONTEXT="context";R.DEFAULT="default";R.DEFAULT_EDFS_PROVIDER_ID="default";R.DEFAULT_MUTATION="Mutation";R.DEFAULT_QUERY="Query";R.DEFAULT_SUBSCRIPTION="Subscription";R.DEPRECATED="deprecated";R.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";R.DESCRIPTION_OVERRIDE="descriptionOverride";R.DIRECTIVE_DEFINITION="directive definition";R.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";R.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";R.EDFS_NATS_PUBLISH="edfs__natsPublish";R.EDFS_NATS_REQUEST="edfs__natsRequest";R.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";R.EDFS_PUBLISH_RESULT="edfs__PublishResult";R.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";R.EDFS_REDIS_PUBLISH="edfs__redisPublish";R.EDFS_REDIS_SUBSCRIBE="edfs__redisSubscribe";R.ENTITIES="entities";R.ENTITIES_FIELD="_entities";R.ENTITY_UNION="_Entity";R.ENUM="Enum";R.ENUM_UPPER="ENUM";R.ENUM_VALUE="Enum Value";R.ENUM_VALUE_UPPER="ENUM_VALUE";R.EXECUTION="EXECUTION";R.EXTERNAL="external";R.EXTENDS="extends";R.EXTENSIONS="extensions";R.FIELD="field";R.FIELD_PATH="fieldPath";R.FIELD_UPPER="FIELD";R.FIELD_SET_SCALAR="openfed__FieldSet";R.FIELDS="fields";R.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";R.FIRST_ORDINAL="1st";R.FLOAT_SCALAR="Float";R.FOR="for";R.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";R.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";R.FROM="from";R.HYPHEN_JOIN=` -`;R.ID_SCALAR="ID";R.IMPORT="import";R.IN_UPPER="IN";R.INACCESSIBLE="inaccessible";R.INLINE_FRAGMENT="inlineFragment";R.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";R.INPUT="Input";R.INPUT_FIELD="Input field";R.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";R.INPUT_OBJECT="Input Object";R.INPUT_OBJECT_UPPER="INPUT_OBJECT";R.INPUT_VALUE="Input Value";R.INT_SCALAR="Int";R.INTERFACE="Interface";R.INTERFACE_UPPER="INTERFACE";R.INTERFACE_OBJECT="interfaceObject";R.KEY="key";R.LEFT_PARENTHESIS="(";R.LEVELS="levels";R.LINK="link";R.LINK_IMPORT="link__Import";R.LINK_PURPOSE="link__Purpose";R.LIST="list";R.LITERAL_SPACE=" ";R.LITERAL_NEW_LINE=` -`;R.LITERAL_PERIOD=".";R.NUMBER="number";R.MUTATION="Mutation";R.MUTATION_UPPER="MUTATION";R.PROPAGATE="propagate";R.PROVIDER_TYPE_KAFKA="kafka";R.PROVIDER_TYPE_NATS="nats";R.PROVIDER_TYPE_REDIS="redis";R.NOT_APPLICABLE="N/A";R.NAME="name";R.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";R.NON_NULLABLE_BOOLEAN="Boolean!";R.NON_NULLABLE_INT="Int!";R.NON_NULLABLE_STRING="String!";R.NOT_UPPER="NOT";R.NULL="Null";R.ONE_OF="oneOf";R.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";R.OBJECT="Object";R.OBJECT_UPPER="OBJECT";R.OR_UPPER="OR";R.OVERRIDE="override";R.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";R.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";R.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";R.PROVIDER_ID="providerId";R.PROVIDES="provides";R.PUBLISH="publish";R.QUERY="Query";R.QUERY_UPPER="QUERY";R.QUOTATION_JOIN='", "';R.REASON="reason";R.REQUEST="request";R.REQUIRE_FETCH_REASONS="openfed__requireFetchReasons";R.REQUIRES="requires";R.REQUIRES_SCOPES="requiresScopes";R.RESOLVABLE="resolvable";R.SCALAR="Scalar";R.SCALAR_UPPER="SCALAR";R.SCHEMA="schema";R.SCHEMA_UPPER="SCHEMA";R.SCOPES="scopes";R.SCOPE_SCALAR="openfed__Scope";R.SECURITY="SECURITY";R.SELECTION_REPRESENTATION=" { ... }";R.SEMANTIC_NON_NULL="semanticNonNull";R.SERVICE_OBJECT="_Service";R.SERVICE_FIELD="_service";R.SHAREABLE="shareable";R.SPECIFIED_BY="specifiedBy";R.STREAM_CONFIGURATION="streamConfiguration";R.STREAM_NAME="streamName";R.STRING="string";R.STRING_SCALAR="String";R.SUBJECT="subject";R.SUBJECTS="subjects";R.SUBSCRIPTION="Subscription";R.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";R.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";R.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";R.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";R.SUBSCRIBE="subscribe";R.SUBSCRIPTION_UPPER="SUBSCRIPTION";R.SUCCESS="success";R.TAG="tag";R.TOPIC="topic";R.TOPICS="topics";R.TYPENAME="__typename";R.UNION="Union";R.UNION_UPPER="UNION";R.URL_LOWER="url";R.VALUES="values";R.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";R.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([R.FIELD_UPPER,R.FRAGMENT_DEFINITION_UPPER,R.FRAGMENT_SPREAD_UPPER,R.INLINE_FRAGMENT_UPPER,R.MUTATION_UPPER,R.QUERY_UPPER,R.SUBSCRIPTION_UPPER]);R.ROOT_TYPE_NAMES=new Set([R.MUTATION,R.QUERY,R.SUBSCRIPTION]);R.AUTHORIZATION_DIRECTIVES=new Set([R.AUTHENTICATED,R.REQUIRES_SCOPES]);R.PERSISTED_CLIENT_DIRECTIVES=new Set([R.DEPRECATED,R.ONE_OF,R.SEMANTIC_NON_NULL]);R.INHERITABLE_DIRECTIVE_NAMES=new Set([R.EXTERNAL,R.REQUIRE_FETCH_REASONS,R.SHAREABLE]);R.IGNORED_FIELDS=new Set([R.ENTITIES_FIELD,R.SERVICE_FIELD]);R.INPUT_NODE_KINDS=new Set([hu.Kind.ENUM_TYPE_DEFINITION,hu.Kind.INPUT_OBJECT_TYPE_DEFINITION,hu.Kind.SCALAR_TYPE_DEFINITION]);R.OUTPUT_NODE_KINDS=new Set([hu.Kind.ENUM_TYPE_DEFINITION,hu.Kind.INTERFACE_TYPE_DEFINITION,hu.Kind.OBJECT_TYPE_DEFINITION,hu.Kind.SCALAR_TYPE_DEFINITION,hu.Kind.UNION_TYPE_DEFINITION]);R.NON_REPEATABLE_PERSISTED_DIRECTIVES=new Set([R.INACCESSIBLE,R.ONE_OF,R.SEMANTIC_NON_NULL])});var Pr=w(Wn=>{"use strict";m();T();N();Object.defineProperty(Wn,"__esModule",{value:!0});Wn.operationTypeNodeToDefaultType=void 0;Wn.isObjectLikeNodeEntity=y7;Wn.isNodeInterfaceObject=I7;Wn.stringToNameNode=rT;Wn.stringArrayToNameNodeArray=g7;Wn.setToNameNodeArray=_7;Wn.stringToNamedTypeNode=fB;Wn.setToNamedTypeNodeArray=v7;Wn.nodeKindToDirectiveLocation=O7;Wn.isKindAbstract=S7;Wn.extractExecutableDirectiveLocations=D7;Wn.formatDescription=b7;Wn.lexicographicallySortArgumentNodes=pB;Wn.lexicographicallySortSelectionSetNode=nT;Wn.lexicographicallySortDocumentNode=A7;Wn.parse=mB;Wn.safeParse=R7;var Mt=Oe(),An=zn();function y7(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===An.KEY)return!0;return!1}function I7(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===An.INTERFACE_OBJECT)return!0;return!1}function rT(e){return{kind:Mt.Kind.NAME,value:e}}function g7(e){let t=[];for(let n of e)t.push(rT(n));return t}function _7(e){let t=[];for(let n of e)t.push(rT(n));return t}function fB(e){return{kind:Mt.Kind.NAMED_TYPE,name:rT(e)}}function v7(e){let t=[];for(let n of e)t.push(fB(n));return t}function O7(e){switch(e){case Mt.Kind.ARGUMENT:return An.ARGUMENT_DEFINITION_UPPER;case Mt.Kind.ENUM_TYPE_DEFINITION:case Mt.Kind.ENUM_TYPE_EXTENSION:return An.ENUM_UPPER;case Mt.Kind.ENUM_VALUE_DEFINITION:return An.ENUM_VALUE_UPPER;case Mt.Kind.FIELD_DEFINITION:return An.FIELD_DEFINITION_UPPER;case Mt.Kind.FRAGMENT_DEFINITION:return An.FRAGMENT_DEFINITION_UPPER;case Mt.Kind.FRAGMENT_SPREAD:return An.FRAGMENT_SPREAD_UPPER;case Mt.Kind.INLINE_FRAGMENT:return An.INLINE_FRAGMENT_UPPER;case Mt.Kind.INPUT_VALUE_DEFINITION:return An.INPUT_FIELD_DEFINITION_UPPER;case Mt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Mt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return An.INPUT_OBJECT_UPPER;case Mt.Kind.INTERFACE_TYPE_DEFINITION:case Mt.Kind.INTERFACE_TYPE_EXTENSION:return An.INTERFACE_UPPER;case Mt.Kind.OBJECT_TYPE_DEFINITION:case Mt.Kind.OBJECT_TYPE_EXTENSION:return An.OBJECT_UPPER;case Mt.Kind.SCALAR_TYPE_DEFINITION:case Mt.Kind.SCALAR_TYPE_EXTENSION:return An.SCALAR_UPPER;case Mt.Kind.SCHEMA_DEFINITION:case Mt.Kind.SCHEMA_EXTENSION:return An.SCHEMA_UPPER;case Mt.Kind.UNION_TYPE_DEFINITION:case Mt.Kind.UNION_TYPE_EXTENSION:return An.UNION_UPPER;default:return e}}Wn.operationTypeNodeToDefaultType=new Map([[Mt.OperationTypeNode.MUTATION,An.MUTATION],[Mt.OperationTypeNode.QUERY,An.QUERY],[Mt.OperationTypeNode.SUBSCRIPTION,An.SUBSCRIPTION]]);function S7(e){return e===Mt.Kind.INTERFACE_TYPE_DEFINITION||e===Mt.Kind.UNION_TYPE_DEFINITION}function D7(e,t){for(let n of e){let r=n.value;An.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function b7(e){if(!e)return e;let t=e.value;if(e.block){let n=t.split(` +`;R.LITERAL_PERIOD=".";R.NUMBER="number";R.MUTATION="Mutation";R.MUTATION_UPPER="MUTATION";R.PROPAGATE="propagate";R.PROVIDER_TYPE_KAFKA="kafka";R.PROVIDER_TYPE_NATS="nats";R.PROVIDER_TYPE_REDIS="redis";R.NOT_APPLICABLE="N/A";R.NAME="name";R.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";R.NON_NULLABLE_BOOLEAN="Boolean!";R.NON_NULLABLE_INT="Int!";R.NON_NULLABLE_STRING="String!";R.NOT_UPPER="NOT";R.NULL="Null";R.ONE_OF="oneOf";R.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";R.OBJECT="Object";R.OBJECT_UPPER="OBJECT";R.OR_UPPER="OR";R.OVERRIDE="override";R.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";R.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";R.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";R.PROVIDER_ID="providerId";R.PROVIDES="provides";R.PUBLISH="publish";R.QUERY="Query";R.QUERY_UPPER="QUERY";R.QUOTATION_JOIN='", "';R.REASON="reason";R.REQUEST="request";R.REQUIRE_FETCH_REASONS="openfed__requireFetchReasons";R.REQUIRES="requires";R.REQUIRES_SCOPES="requiresScopes";R.RESOLVABLE="resolvable";R.SCALAR="Scalar";R.SCALAR_UPPER="SCALAR";R.SCHEMA="schema";R.SCHEMA_UPPER="SCHEMA";R.SCOPES="scopes";R.SCOPE_SCALAR="openfed__Scope";R.SECURITY="SECURITY";R.SELECTION_REPRESENTATION=" { ... }";R.SEMANTIC_NON_NULL="semanticNonNull";R.SERVICE_OBJECT="_Service";R.SERVICE_FIELD="_service";R.SHAREABLE="shareable";R.SPECIFIED_BY="specifiedBy";R.STREAM_CONFIGURATION="streamConfiguration";R.STREAM_NAME="streamName";R.STRING="string";R.STRING_SCALAR="String";R.SUBJECT="subject";R.SUBJECTS="subjects";R.SUBSCRIPTION="Subscription";R.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";R.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";R.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";R.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";R.SUBSCRIBE="subscribe";R.SUBSCRIPTION_UPPER="SUBSCRIPTION";R.SUCCESS="success";R.TAG="tag";R.TOPIC="topic";R.TOPICS="topics";R.TYPENAME="__typename";R.UNION="Union";R.UNION_UPPER="UNION";R.URL_LOWER="url";R.VALUES="values";R.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";R.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([R.FIELD_UPPER,R.FRAGMENT_DEFINITION_UPPER,R.FRAGMENT_SPREAD_UPPER,R.INLINE_FRAGMENT_UPPER,R.MUTATION_UPPER,R.QUERY_UPPER,R.SUBSCRIPTION_UPPER]);R.ROOT_TYPE_NAMES=new Set([R.MUTATION,R.QUERY,R.SUBSCRIPTION]);R.AUTHORIZATION_DIRECTIVES=new Set([R.AUTHENTICATED,R.REQUIRES_SCOPES]);R.PERSISTED_CLIENT_DIRECTIVES=new Set([R.DEPRECATED,R.ONE_OF,R.SEMANTIC_NON_NULL]);R.INHERITABLE_DIRECTIVE_NAMES=new Set([R.EXTERNAL,R.REQUIRE_FETCH_REASONS,R.SHAREABLE]);R.IGNORED_FIELDS=new Set([R.ENTITIES_FIELD,R.SERVICE_FIELD]);R.INPUT_NODE_KINDS=new Set([gc.Kind.ENUM_TYPE_DEFINITION,gc.Kind.INPUT_OBJECT_TYPE_DEFINITION,gc.Kind.SCALAR_TYPE_DEFINITION]);R.OUTPUT_NODE_KINDS=new Set([gc.Kind.ENUM_TYPE_DEFINITION,gc.Kind.INTERFACE_TYPE_DEFINITION,gc.Kind.OBJECT_TYPE_DEFINITION,gc.Kind.SCALAR_TYPE_DEFINITION,gc.Kind.UNION_TYPE_DEFINITION]);R.NON_REPEATABLE_PERSISTED_DIRECTIVES=new Set([R.INACCESSIBLE,R.ONE_OF,R.SEMANTIC_NON_NULL])});var ui=C(hr=>{"use strict";p();N();m();Object.defineProperty(hr,"__esModule",{value:!0});hr.operationTypeNodeToDefaultType=void 0;hr.isObjectLikeNodeEntity=$8;hr.isNodeInterfaceObject=j8;hr.stringToNameNode=Eh;hr.stringArrayToNameNodeArray=K8;hr.setToNameNodeArray=G8;hr.stringToNamedTypeNode=_B;hr.setToNamedTypeNodeArray=Q8;hr.nodeKindToDirectiveLocation=Y8;hr.isKindAbstract=J8;hr.extractExecutableDirectiveLocations=H8;hr.formatDescription=z8;hr.lexicographicallySortArgumentNodes=vB;hr.lexicographicallySortSelectionSetNode=Th;hr.lexicographicallySortDocumentNode=W8;hr.parse=SB;hr.safeParse=X8;var Yt=(Oe(),Ae(Pe)),Gn=Er();function $8(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Gn.KEY)return!0;return!1}function j8(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Gn.INTERFACE_OBJECT)return!0;return!1}function Eh(e){return{kind:Yt.Kind.NAME,value:e}}function K8(e){let t=[];for(let n of e)t.push(Eh(n));return t}function G8(e){let t=[];for(let n of e)t.push(Eh(n));return t}function _B(e){return{kind:Yt.Kind.NAMED_TYPE,name:Eh(e)}}function Q8(e){let t=[];for(let n of e)t.push(_B(n));return t}function Y8(e){switch(e){case Yt.Kind.ARGUMENT:return Gn.ARGUMENT_DEFINITION_UPPER;case Yt.Kind.ENUM_TYPE_DEFINITION:case Yt.Kind.ENUM_TYPE_EXTENSION:return Gn.ENUM_UPPER;case Yt.Kind.ENUM_VALUE_DEFINITION:return Gn.ENUM_VALUE_UPPER;case Yt.Kind.FIELD_DEFINITION:return Gn.FIELD_DEFINITION_UPPER;case Yt.Kind.FRAGMENT_DEFINITION:return Gn.FRAGMENT_DEFINITION_UPPER;case Yt.Kind.FRAGMENT_SPREAD:return Gn.FRAGMENT_SPREAD_UPPER;case Yt.Kind.INLINE_FRAGMENT:return Gn.INLINE_FRAGMENT_UPPER;case Yt.Kind.INPUT_VALUE_DEFINITION:return Gn.INPUT_FIELD_DEFINITION_UPPER;case Yt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Yt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Gn.INPUT_OBJECT_UPPER;case Yt.Kind.INTERFACE_TYPE_DEFINITION:case Yt.Kind.INTERFACE_TYPE_EXTENSION:return Gn.INTERFACE_UPPER;case Yt.Kind.OBJECT_TYPE_DEFINITION:case Yt.Kind.OBJECT_TYPE_EXTENSION:return Gn.OBJECT_UPPER;case Yt.Kind.SCALAR_TYPE_DEFINITION:case Yt.Kind.SCALAR_TYPE_EXTENSION:return Gn.SCALAR_UPPER;case Yt.Kind.SCHEMA_DEFINITION:case Yt.Kind.SCHEMA_EXTENSION:return Gn.SCHEMA_UPPER;case Yt.Kind.UNION_TYPE_DEFINITION:case Yt.Kind.UNION_TYPE_EXTENSION:return Gn.UNION_UPPER;default:return e}}hr.operationTypeNodeToDefaultType=new Map([[Yt.OperationTypeNode.MUTATION,Gn.MUTATION],[Yt.OperationTypeNode.QUERY,Gn.QUERY],[Yt.OperationTypeNode.SUBSCRIPTION,Gn.SUBSCRIPTION]]);function J8(e){return e===Yt.Kind.INTERFACE_TYPE_DEFINITION||e===Yt.Kind.UNION_TYPE_DEFINITION}function H8(e,t){for(let n of e){let r=n.value;Gn.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function z8(e){if(!e)return e;let t=e.value;if(e.block){let n=t.split(` `);n.length>1&&(t=n.map(r=>r.trimStart()).join(` -`))}return Q(M({},e),{value:t,block:!0})}function pB(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function nT(e){let t=e.selections;return Q(M({},e),{selections:t.sort((n,r)=>{var a,o,c,l;return An.NAME in n?An.NAME in r?n.name.value.localeCompare(r.name.value):-1:An.NAME in r?1:((o=(a=n.typeCondition)==null?void 0:a.name.value)!=null?o:"").localeCompare((l=(c=r.typeCondition)==null?void 0:c.name.value)!=null?l:"")}).map(n=>{switch(n.kind){case Mt.Kind.FIELD:return Q(M({},n),{arguments:pB(n),selectionSet:n.selectionSet?nT(n.selectionSet):n.selectionSet});case Mt.Kind.FRAGMENT_SPREAD:return n;case Mt.Kind.INLINE_FRAGMENT:return Q(M({},n),{selectionSet:nT(n.selectionSet)})}})})}function A7(e){return Q(M({},e),{definitions:e.definitions.map(t=>t.kind!==Mt.Kind.OPERATION_DEFINITION?t:Q(M({},t),{selectionSet:nT(t.selectionSet)}))})}function mB(e,t=!0){return(0,Mt.parse)(e,{noLocation:t})}function R7(e,t=!0){try{return{documentNode:mB(e,t)}}catch(n){return{error:n}}}});var EB=w(Fl=>{"use strict";m();T();N();Object.defineProperty(Fl,"__esModule",{value:!0});Fl.AccumulatorMap=void 0;Fl.mapValue=Pl;Fl.extendSchemaImpl=P7;var Ue=Oe(),Rs=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};Fl.AccumulatorMap=Rs;function Pl(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function P7(e,t,n){var De,Ie,Ce,St;let r=[],i=new Rs,a=new Rs,o=new Rs,c=new Rs,l=new Rs,d=new Rs,p=[],E,I=[],v=!1;for(let Y of t.definitions){switch(Y.kind){case Ue.Kind.SCHEMA_DEFINITION:E=Y;break;case Ue.Kind.SCHEMA_EXTENSION:I.push(Y);break;case Ue.Kind.DIRECTIVE_DEFINITION:p.push(Y);break;case Ue.Kind.SCALAR_TYPE_DEFINITION:case Ue.Kind.OBJECT_TYPE_DEFINITION:case Ue.Kind.INTERFACE_TYPE_DEFINITION:case Ue.Kind.UNION_TYPE_DEFINITION:case Ue.Kind.ENUM_TYPE_DEFINITION:case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(Y);break;case Ue.Kind.SCALAR_TYPE_EXTENSION:i.add(Y.name.value,Y);break;case Ue.Kind.OBJECT_TYPE_EXTENSION:a.add(Y.name.value,Y);break;case Ue.Kind.INTERFACE_TYPE_EXTENSION:o.add(Y.name.value,Y);break;case Ue.Kind.UNION_TYPE_EXTENSION:c.add(Y.name.value,Y);break;case Ue.Kind.ENUM_TYPE_EXTENSION:l.add(Y.name.value,Y);break;case Ue.Kind.INPUT_OBJECT_TYPE_EXTENSION:d.add(Y.name.value,Y);break;default:continue}v=!0}if(!v)return e;let A=new Map;for(let Y of e.types){let ie=ee(Y);ie&&A.set(Y.name,ie)}for(let Y of r){let ie=Y.name.value;A.set(ie,(De=NB.get(ie))!=null?De:ae(Y))}for(let[Y,ie]of a)A.set(Y,new Ue.GraphQLObjectType({name:Y,interfaces:()=>Ht(ie),fields:()=>Tn(ie),extensionASTNodes:ie}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[Y,ie]of o)A.set(Y,new Ue.GraphQLInterfaceType({name:Y,interfaces:()=>Ht(ie),fields:()=>Tn(ie),extensionASTNodes:ie}));for(let[Y,ie]of l)A.set(Y,new Ue.GraphQLEnumType({name:Y,values:gn(ie),extensionASTNodes:ie}));for(let[Y,ie]of c)A.set(Y,new Ue.GraphQLUnionType({name:Y,types:()=>Ln(ie),extensionASTNodes:ie}));for(let[Y,ie]of i)A.set(Y,new Ue.GraphQLScalarType({name:Y,extensionASTNodes:ie}));for(let[Y,ie]of d)A.set(Y,new Ue.GraphQLInputObjectType({name:Y,fields:()=>lr(ie),extensionASTNodes:ie}))}let U=M(M({query:e.query&&$(e.query),mutation:e.mutation&&$(e.mutation),subscription:e.subscription&&$(e.subscription)},E&&rn([E])),rn(I));return Q(M({description:(Ce=(Ie=E==null?void 0:E.description)==null?void 0:Ie.value)!=null?Ce:e.description},U),{types:Array.from(A.values()),directives:[...e.directives.map(re),...p.map($t)],extensions:e.extensions,astNode:E!=null?E:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(I),assumeValid:(St=n==null?void 0:n.assumeValid)!=null?St:!1});function j(Y){return(0,Ue.isListType)(Y)?new Ue.GraphQLList(j(Y.ofType)):(0,Ue.isNonNullType)(Y)?new Ue.GraphQLNonNull(j(Y.ofType)):$(Y)}function $(Y){return A.get(Y.name)}function re(Y){if((0,Ue.isSpecifiedDirective)(Y))return Y;let ie=Y.toConfig();return new Ue.GraphQLDirective(Q(M({},ie),{args:Pl(ie.args,vt)}))}function ee(Y){if((0,Ue.isIntrospectionType)(Y)||(0,Ue.isSpecifiedScalarType)(Y))return Y;if((0,Ue.isScalarType)(Y))return Ae(Y);if((0,Ue.isObjectType)(Y))return xe(Y);if((0,Ue.isInterfaceType)(Y))return Ze(Y);if((0,Ue.isUnionType)(Y))return Z(Y);if((0,Ue.isEnumType)(Y))return ue(Y);if((0,Ue.isInputObjectType)(Y))return me(Y)}function me(Y){var He;let ie=Y.toConfig(),qe=(He=d.get(ie.name))!=null?He:[];return new Ue.GraphQLInputObjectType(Q(M({},ie),{fields:()=>M(M({},Pl(ie.fields,Bt=>Q(M({},Bt),{type:j(Bt.type)}))),lr(qe)),extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function ue(Y){var He;let ie=Y.toConfig(),qe=(He=l.get(Y.name))!=null?He:[];return new Ue.GraphQLEnumType(Q(M({},ie),{values:M(M({},ie.values),gn(qe)),extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function Ae(Y){var Bt,it;let ie=Y.toConfig(),qe=(Bt=i.get(ie.name))!=null?Bt:[],He=ie.specifiedByURL;for(let Pt of qe)He=(it=TB(Pt))!=null?it:He;return new Ue.GraphQLScalarType(Q(M({},ie),{specifiedByURL:He,extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function xe(Y){var He;let ie=Y.toConfig(),qe=(He=a.get(ie.name))!=null?He:[];return new Ue.GraphQLObjectType(Q(M({},ie),{interfaces:()=>[...Y.getInterfaces().map($),...Ht(qe)],fields:()=>M(M({},Pl(ie.fields,_e)),Tn(qe)),extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function Ze(Y){var He;let ie=Y.toConfig(),qe=(He=o.get(ie.name))!=null?He:[];return new Ue.GraphQLInterfaceType(Q(M({},ie),{interfaces:()=>[...Y.getInterfaces().map($),...Ht(qe)],fields:()=>M(M({},Pl(ie.fields,_e)),Tn(qe)),extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function Z(Y){var He;let ie=Y.toConfig(),qe=(He=c.get(ie.name))!=null?He:[];return new Ue.GraphQLUnionType(Q(M({},ie),{types:()=>[...Y.getTypes().map($),...Ln(qe)],extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function _e(Y){return Q(M({},Y),{type:j(Y.type),args:Y.args&&Pl(Y.args,vt)})}function vt(Y){return Q(M({},Y),{type:j(Y.type)})}function rn(Y){var qe;let ie={};for(let He of Y){let Bt=(qe=He.operationTypes)!=null?qe:[];for(let it of Bt)ie[it.operation]=an(it.type)}return ie}function an(Y){var He;let ie=Y.name.value,qe=(He=NB.get(ie))!=null?He:A.get(ie);if(qe===void 0)throw new Error(`Unknown type: "${ie}".`);return qe}function wn(Y){return Y.kind===Ue.Kind.LIST_TYPE?new Ue.GraphQLList(wn(Y.type)):Y.kind===Ue.Kind.NON_NULL_TYPE?new Ue.GraphQLNonNull(wn(Y.type)):an(Y)}function $t(Y){var ie;return new Ue.GraphQLDirective({name:Y.name.value,description:(ie=Y.description)==null?void 0:ie.value,locations:Y.locations.map(({value:qe})=>qe),isRepeatable:Y.repeatable,args:Ur(Y.arguments),astNode:Y})}function Tn(Y){var qe,He;let ie=Object.create(null);for(let Bt of Y){let it=(qe=Bt.fields)!=null?qe:[];for(let Pt of it)ie[Pt.name.value]={type:wn(Pt.type),description:(He=Pt.description)==null?void 0:He.value,args:Ur(Pt.arguments),deprecationReason:iT(Pt),astNode:Pt}}return ie}function Ur(Y){var He;let ie=Y!=null?Y:[],qe=Object.create(null);for(let Bt of ie){let it=wn(Bt.type);qe[Bt.name.value]={type:it,description:(He=Bt.description)==null?void 0:He.value,defaultValue:(0,Ue.valueFromAST)(Bt.defaultValue,it),deprecationReason:iT(Bt),astNode:Bt}}return qe}function lr(Y){var qe,He;let ie=Object.create(null);for(let Bt of Y){let it=(qe=Bt.fields)!=null?qe:[];for(let Pt of it){let us=wn(Pt.type);ie[Pt.name.value]={type:us,description:(He=Pt.description)==null?void 0:He.value,defaultValue:(0,Ue.valueFromAST)(Pt.defaultValue,us),deprecationReason:iT(Pt),astNode:Pt}}}return ie}function gn(Y){var qe,He;let ie=Object.create(null);for(let Bt of Y){let it=(qe=Bt.values)!=null?qe:[];for(let Pt of it)ie[Pt.name.value]={description:(He=Pt.description)==null?void 0:He.value,deprecationReason:iT(Pt),astNode:Pt}}return ie}function Ht(Y){return Y.flatMap(ie=>{var qe,He;return(He=(qe=ie.interfaces)==null?void 0:qe.map(an))!=null?He:[]})}function Ln(Y){return Y.flatMap(ie=>{var qe,He;return(He=(qe=ie.types)==null?void 0:qe.map(an))!=null?He:[]})}function ae(Y){var qe,He,Bt,it,Pt,us,Qr,cs,Hc,Pa,yr,si;let ie=Y.name.value;switch(Y.kind){case Ue.Kind.OBJECT_TYPE_DEFINITION:{let xt=(qe=a.get(ie))!=null?qe:[],Ir=[Y,...xt];return a.delete(ie),new Ue.GraphQLObjectType({name:ie,description:(He=Y.description)==null?void 0:He.value,interfaces:()=>Ht(Ir),fields:()=>Tn(Ir),astNode:Y,extensionASTNodes:xt})}case Ue.Kind.INTERFACE_TYPE_DEFINITION:{let xt=(Bt=o.get(ie))!=null?Bt:[],Ir=[Y,...xt];return o.delete(ie),new Ue.GraphQLInterfaceType({name:ie,description:(it=Y.description)==null?void 0:it.value,interfaces:()=>Ht(Ir),fields:()=>Tn(Ir),astNode:Y,extensionASTNodes:xt})}case Ue.Kind.ENUM_TYPE_DEFINITION:{let xt=(Pt=l.get(ie))!=null?Pt:[],Ir=[Y,...xt];return l.delete(ie),new Ue.GraphQLEnumType({name:ie,description:(us=Y.description)==null?void 0:us.value,values:gn(Ir),astNode:Y,extensionASTNodes:xt})}case Ue.Kind.UNION_TYPE_DEFINITION:{let xt=(Qr=c.get(ie))!=null?Qr:[],Ir=[Y,...xt];return c.delete(ie),new Ue.GraphQLUnionType({name:ie,description:(cs=Y.description)==null?void 0:cs.value,types:()=>Ln(Ir),astNode:Y,extensionASTNodes:xt})}case Ue.Kind.SCALAR_TYPE_DEFINITION:{let xt=(Hc=i.get(ie))!=null?Hc:[];return i.delete(ie),new Ue.GraphQLScalarType({name:ie,description:(Pa=Y.description)==null?void 0:Pa.value,specifiedByURL:TB(Y),astNode:Y,extensionASTNodes:xt})}case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let xt=(yr=d.get(ie))!=null?yr:[],Ir=[Y,...xt];return d.delete(ie),new Ue.GraphQLInputObjectType({name:ie,description:(si=Y.description)==null?void 0:si.value,fields:()=>lr(Ir),astNode:Y,extensionASTNodes:xt})}}}}var NB=new Map([...Ue.specifiedScalarTypes,...Ue.introspectionTypes].map(e=>[e.name,e]));function iT(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function TB(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var Cv=w(Lv=>{"use strict";m();T();N();Object.defineProperty(Lv,"__esModule",{value:!0});Lv.buildASTSchema=L7;var hB=Oe(),F7=bl(),w7=EB();function L7(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,F7.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,w7.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...hB.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new hB.GraphQLSchema(Q(M({},r),{directives:i}))}});var wl=w(yu=>{"use strict";m();T();N();Object.defineProperty(yu,"__esModule",{value:!0});yu.MAX_INT32=yu.MAX_SUBSCRIPTION_FILTER_DEPTH=yu.MAXIMUM_TYPE_NESTING=void 0;yu.MAXIMUM_TYPE_NESTING=30;yu.MAX_SUBSCRIPTION_FILTER_DEPTH=5;yu.MAX_INT32=cn(2,31)-1});var Fr=w(ur=>{"use strict";m();T();N();Object.defineProperty(ur,"__esModule",{value:!0});ur.getOrThrowError=B7;ur.getEntriesNotInHashSet=U7;ur.numberToOrdinal=k7;ur.addIterableToSet=M7;ur.addOptionalIterableToSet=x7;ur.addSets=q7;ur.kindToNodeType=V7;ur.getValueOrDefault=j7;ur.add=K7;ur.generateSimpleDirective=G7;ur.generateRequiresScopesDirective=$7;ur.generateSemanticNonNullDirective=Q7;ur.copyObjectValueMap=Y7;ur.addNewObjectValueMapEntries=J7;ur.copyArrayValueMap=H7;ur.addMapEntries=z7;ur.getFirstEntry=W7;var Vt=Oe(),Nr=zn(),C7=qi(),Bf=Pr();function B7(e,t,n){let r=e.get(t);if(r===void 0)throw(0,C7.invalidKeyFatalError)(t,n);return r}function U7(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function k7(e){let t=e.toString();switch(t[t.length-1]){case"1":return`${t}st`;case"2":return`${t}nd`;case"3":return`${t}rd`;default:return`${t}th`}}function M7({source:e,target:t}){for(let n of e)t.add(n)}function x7({source:e,target:t}){if(e)for(let n of e)t.add(n)}function q7(e,t){let n=new Set(e);for(let r of t)n.add(r);return n}function V7(e){switch(e){case Vt.Kind.BOOLEAN:return Nr.BOOLEAN_SCALAR;case Vt.Kind.ENUM:case Vt.Kind.ENUM_TYPE_DEFINITION:return Nr.ENUM;case Vt.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case Vt.Kind.ENUM_VALUE_DEFINITION:return Nr.ENUM_VALUE;case Vt.Kind.FIELD_DEFINITION:return Nr.FIELD;case Vt.Kind.FLOAT:return Nr.FLOAT_SCALAR;case Vt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return Nr.INPUT_OBJECT;case Vt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case Vt.Kind.INPUT_VALUE_DEFINITION:return Nr.INPUT_VALUE;case Vt.Kind.INT:return Nr.INT_SCALAR;case Vt.Kind.INTERFACE_TYPE_DEFINITION:return Nr.INTERFACE;case Vt.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case Vt.Kind.NULL:return Nr.NULL;case Vt.Kind.OBJECT:case Vt.Kind.OBJECT_TYPE_DEFINITION:return Nr.OBJECT;case Vt.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case Vt.Kind.STRING:return Nr.STRING_SCALAR;case Vt.Kind.SCALAR_TYPE_DEFINITION:return Nr.SCALAR;case Vt.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case Vt.Kind.UNION_TYPE_DEFINITION:return Nr.UNION;case Vt.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function j7(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function K7(e,t){return e.has(t)?!1:(e.add(t),!0)}function G7(e){return{kind:Vt.Kind.DIRECTIVE,name:(0,Bf.stringToNameNode)(e)}}function $7(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:Vt.Kind.STRING,value:i});t.push({kind:Vt.Kind.LIST,values:r})}return{kind:Vt.Kind.DIRECTIVE,name:(0,Bf.stringToNameNode)(Nr.REQUIRES_SCOPES),arguments:[{kind:Vt.Kind.ARGUMENT,name:(0,Bf.stringToNameNode)(Nr.SCOPES),value:{kind:Vt.Kind.LIST,values:t}}]}}function Q7(e){let t=Array.from(e).sort((r,i)=>r-i),n=new Array;for(let r of t)n.push({kind:Vt.Kind.INT,value:r.toString()});return{kind:Vt.Kind.DIRECTIVE,name:(0,Bf.stringToNameNode)(Nr.SEMANTIC_NON_NULL),arguments:[{kind:Vt.Kind.ARGUMENT,name:(0,Bf.stringToNameNode)(Nr.LEVELS),value:{kind:Vt.Kind.LIST,values:n}}]}}function Y7(e){let t=new Map;for(let[n,r]of e)t.set(n,M({},r));return t}function J7(e,t){for(let[n,r]of e)t.set(n,M({},r))}function H7(e){let t=new Map;for(let[n,r]of e)t.set(n,[...r]);return t}function z7({source:e,target:t}){for(let[n,r]of e)t.set(n,r)}function W7(e){let{value:t,done:n}=e.values().next();if(!n)return t}});var Uf=w(aT=>{"use strict";m();T();N();Object.defineProperty(aT,"__esModule",{value:!0});aT.ExtensionType=void 0;var yB;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(yB||(aT.ExtensionType=yB={}))});var Iu=w(Lr=>{"use strict";m();T();N();Object.defineProperty(Lr,"__esModule",{value:!0});Lr.getMutableDirectiveDefinitionNode=Z7;Lr.getMutableEnumNode=eZ;Lr.getMutableEnumValueNode=tZ;Lr.getMutableFieldNode=nZ;Lr.getMutableInputObjectNode=rZ;Lr.getMutableInputValueNode=iZ;Lr.getMutableInterfaceNode=aZ;Lr.getMutableObjectNode=sZ;Lr.getMutableObjectExtensionNode=oZ;Lr.getMutableScalarNode=uZ;Lr.getMutableTypeNode=Bv;Lr.getMutableUnionNode=cZ;Lr.getTypeNodeNamedTypeName=Uv;Lr.getNamedTypeNode=gB;var wr=Oe(),Ll=Pr(),IB=qi(),X7=wl();function Z7(e){return{arguments:[],kind:e.kind,locations:[],name:M({},e.name),repeatable:e.repeatable,description:(0,Ll.formatDescription)(e.description)}}function eZ(e){return{kind:wr.Kind.ENUM_TYPE_DEFINITION,name:M({},e)}}function tZ(e){return{directives:[],kind:e.kind,name:M({},e.name),description:(0,Ll.formatDescription)(e.description)}}function nZ(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:M({},e.name),type:Bv(e.type,t,n),description:(0,Ll.formatDescription)(e.description)}}function rZ(e){return{kind:wr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:M({},e)}}function iZ(e,t,n){return{directives:[],kind:e.kind,name:M({},e.name),type:Bv(e.type,t,n),defaultValue:e.defaultValue,description:(0,Ll.formatDescription)(e.description)}}function aZ(e){return{kind:wr.Kind.INTERFACE_TYPE_DEFINITION,name:M({},e)}}function sZ(e){return{kind:wr.Kind.OBJECT_TYPE_DEFINITION,name:M({},e)}}function oZ(e){let t=e.kind===wr.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:wr.Kind.OBJECT_TYPE_EXTENSION,name:M({},e.name),description:(0,Ll.formatDescription)(t)}}function uZ(e){return{kind:wr.Kind.SCALAR_TYPE_DEFINITION,name:M({},e)}}function Bv(e,t,n){let r={kind:e.kind},i=r;for(let a=0;a{"use strict";m();T();N();Object.defineProperty(Cl,"__esModule",{value:!0});Cl.REQUIRED_FIELDSET_TYPE_NODE=Cl.REQUIRED_STRING_TYPE_NODE=void 0;var _B=Oe(),vB=Pr(),OB=zn();Cl.REQUIRED_STRING_TYPE_NODE={kind:_B.Kind.NON_NULL_TYPE,type:(0,vB.stringToNamedTypeNode)(OB.STRING_SCALAR)};Cl.REQUIRED_FIELDSET_TYPE_NODE={kind:_B.Kind.NON_NULL_TYPE,type:(0,vB.stringToNamedTypeNode)(OB.FIELD_SET_SCALAR)}});var kf=w(Ke=>{"use strict";m();T();N();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.TAG_DEFINITION=Ke.SUBSCRIPTION_FILTER_DEFINITION=Ke.SPECIFIED_BY_DEFINITION=Ke.SHAREABLE_DEFINITION=Ke.SEMANTIC_NON_NULL_DEFINITION=Ke.REQUIRES_SCOPES_DEFINITION=Ke.REQUIRES_DEFINITION=Ke.REQUIRE_FETCH_REASONS_DEFINITION=Ke.PROVIDES_DEFINITION=Ke.OVERRIDE_DEFINITION=Ke.ONE_OF_DEFINITION=Ke.LINK_DEFINITION=Ke.KEY_DEFINITION=Ke.INTERFACE_OBJECT_DEFINITION=Ke.INACCESSIBLE_DEFINITION=Ke.EDFS_REDIS_SUBSCRIBE_DEFINITION=Ke.EDFS_REDIS_PUBLISH_DEFINITION=Ke.EDFS_NATS_SUBSCRIBE_DEFINITION=Ke.EDFS_NATS_REQUEST_DEFINITION=Ke.EDFS_NATS_PUBLISH_DEFINITION=Ke.EDFS_KAFKA_SUBSCRIBE_DEFINITION=Ke.EDFS_KAFKA_PUBLISH_DEFINITION=Ke.EXTERNAL_DEFINITION=Ke.EXTENDS_DEFINITION=Ke.DEPRECATED_DEFINITION=Ke.CONNECT_FIELD_RESOLVER_DEFINITION=Ke.CONFIGURE_DESCRIPTION_DEFINITION=Ke.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=Ke.COMPOSE_DIRECTIVE_DEFINITION=Ke.AUTHENTICATED_DEFINITION=void 0;var Ee=Oe(),pe=Pr(),H=zn(),_r=sT();Ke.AUTHENTICATED_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.AUTHENTICATED),repeatable:!1};Ke.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.NAME),type:_r.REQUIRED_STRING_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCHEMA_UPPER]),name:(0,pe.stringToNameNode)(H.COMPOSE_DIRECTIVE),repeatable:!0};Ke.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROPAGATE),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.BOOLEAN_SCALAR)},defaultValue:{kind:Ee.Kind.BOOLEAN,value:!0}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};Ke.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROPAGATE),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.BOOLEAN_SCALAR)},defaultValue:{kind:Ee.Kind.BOOLEAN,value:!0}},{directives:[],kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.DESCRIPTION_OVERRIDE),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.INPUT_OBJECT_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.SCHEMA_UPPER,H.UNION_UPPER]),name:(0,pe.stringToNameNode)(H.CONFIGURE_DESCRIPTION),repeatable:!1};Ke.CONNECT_FIELD_RESOLVER_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CONTEXT),type:_r.REQUIRED_FIELDSET_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.CONNECT_FIELD_RESOLVER),repeatable:!1};Ke.DEPRECATED_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.REASON),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR),defaultValue:{kind:Ee.Kind.STRING,value:Ee.DEFAULT_DEPRECATION_REASON}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.DEPRECATED),repeatable:!1};Ke.EXTENDS_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.EXTENDS),repeatable:!1};Ke.EXTERNAL_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.EXTERNAL),repeatable:!1};Ke.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.TOPIC),type:_r.REQUIRED_STRING_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:_r.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_KAFKA_PUBLISH),repeatable:!1};Ke.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.TOPICS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:_r.REQUIRED_STRING_TYPE_NODE}}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:_r.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};Ke.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECT),type:_r.REQUIRED_STRING_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_PUBLISH),repeatable:!1};Ke.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECT),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_REQUEST),repeatable:!1};Ke.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECTS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:_r.REQUIRED_STRING_TYPE_NODE}}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:_r.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.STREAM_CONFIGURATION),type:(0,pe.stringToNamedTypeNode)(H.EDFS_NATS_STREAM_CONFIGURATION)}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_SUBSCRIBE),repeatable:!1};Ke.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CHANNEL),type:_r.REQUIRED_STRING_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:_r.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_REDIS_PUBLISH),repeatable:!1};Ke.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CHANNELS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:_r.REQUIRED_STRING_TYPE_NODE}}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:_r.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_REDIS_SUBSCRIBE),repeatable:!1};Ke.INACCESSIBLE_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.UNION_UPPER]),name:(0,pe.stringToNameNode)(H.INACCESSIBLE),repeatable:!1};Ke.INTERFACE_OBJECT_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.INTERFACE_OBJECT),repeatable:!1};Ke.KEY_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:_r.REQUIRED_FIELDSET_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.RESOLVABLE),type:(0,pe.stringToNamedTypeNode)(H.BOOLEAN_SCALAR),defaultValue:{kind:Ee.Kind.BOOLEAN,value:!0}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.KEY),repeatable:!0};Ke.LINK_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.URL_LOWER),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.AS),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FOR),type:(0,pe.stringToNamedTypeNode)(H.LINK_PURPOSE)},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.IMPORT),type:{kind:Ee.Kind.LIST_TYPE,type:(0,pe.stringToNamedTypeNode)(H.LINK_IMPORT)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCHEMA_UPPER]),name:(0,pe.stringToNameNode)(H.LINK),repeatable:!0};Ke.ONE_OF_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.INPUT_OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.ONE_OF),repeatable:!1};Ke.OVERRIDE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FROM),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.OVERRIDE),repeatable:!1};Ke.PROVIDES_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:_r.REQUIRED_FIELDSET_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.PROVIDES),repeatable:!1};Ke.REQUIRE_FETCH_REASONS_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.REQUIRE_FETCH_REASONS),repeatable:!0};Ke.REQUIRES_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:_r.REQUIRED_FIELDSET_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.REQUIRES),repeatable:!1};Ke.REQUIRES_SCOPES_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SCOPES),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SCOPE_SCALAR)}}}}}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.REQUIRES_SCOPES),repeatable:!1};Ke.SEMANTIC_NON_NULL_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.LEVELS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.INT_SCALAR)}}},defaultValue:{kind:Ee.Kind.LIST,values:[{kind:Ee.Kind.INT,value:"0"}]}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.SEMANTIC_NON_NULL),repeatable:!1};Ke.SHAREABLE_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.SHAREABLE),repeatable:!0};Ke.SPECIFIED_BY_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.URL_LOWER),type:_r.REQUIRED_STRING_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.SPECIFIED_BY),repeatable:!1};Ke.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CONDITION),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_CONDITION)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.SUBSCRIPTION_FILTER),repeatable:!1};Ke.TAG_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.NAME),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.UNION_UPPER]),name:(0,pe.stringToNameNode)(H.TAG),repeatable:!0}});var gu=w(Vi=>{"use strict";m();T();N();Object.defineProperty(Vi,"__esModule",{value:!0});Vi.MAX_OR_SCOPES=Vi.EDFS_ARGS_REGEXP=Vi.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=Vi.BASE_SCALARS=Vi.DIRECTIVE_DEFINITION_BY_NAME=void 0;var ut=zn(),Ot=kf();Vi.DIRECTIVE_DEFINITION_BY_NAME=new Map([[ut.AUTHENTICATED,Ot.AUTHENTICATED_DEFINITION],[ut.COMPOSE_DIRECTIVE,Ot.COMPOSE_DIRECTIVE_DEFINITION],[ut.CONFIGURE_DESCRIPTION,Ot.CONFIGURE_DESCRIPTION_DEFINITION],[ut.CONFIGURE_CHILD_DESCRIPTIONS,Ot.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION],[ut.CONNECT_FIELD_RESOLVER,Ot.CONNECT_FIELD_RESOLVER_DEFINITION],[ut.DEPRECATED,Ot.DEPRECATED_DEFINITION],[ut.EDFS_KAFKA_PUBLISH,Ot.EDFS_KAFKA_PUBLISH_DEFINITION],[ut.EDFS_KAFKA_SUBSCRIBE,Ot.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[ut.EDFS_NATS_PUBLISH,Ot.EDFS_NATS_PUBLISH_DEFINITION],[ut.EDFS_NATS_REQUEST,Ot.EDFS_NATS_REQUEST_DEFINITION],[ut.EDFS_NATS_SUBSCRIBE,Ot.EDFS_NATS_SUBSCRIBE_DEFINITION],[ut.EDFS_REDIS_PUBLISH,Ot.EDFS_REDIS_PUBLISH_DEFINITION],[ut.EDFS_REDIS_SUBSCRIBE,Ot.EDFS_REDIS_SUBSCRIBE_DEFINITION],[ut.EXTENDS,Ot.EXTENDS_DEFINITION],[ut.EXTERNAL,Ot.EXTERNAL_DEFINITION],[ut.INACCESSIBLE,Ot.INACCESSIBLE_DEFINITION],[ut.INTERFACE_OBJECT,Ot.INTERFACE_OBJECT_DEFINITION],[ut.KEY,Ot.KEY_DEFINITION],[ut.LINK,Ot.LINK_DEFINITION],[ut.ONE_OF,Ot.ONE_OF_DEFINITION],[ut.OVERRIDE,Ot.OVERRIDE_DEFINITION],[ut.PROVIDES,Ot.PROVIDES_DEFINITION],[ut.REQUIRE_FETCH_REASONS,Ot.REQUIRE_FETCH_REASONS_DEFINITION],[ut.REQUIRES,Ot.REQUIRES_DEFINITION],[ut.REQUIRES_SCOPES,Ot.REQUIRES_SCOPES_DEFINITION],[ut.SEMANTIC_NON_NULL,Ot.SEMANTIC_NON_NULL_DEFINITION],[ut.SHAREABLE,Ot.SHAREABLE_DEFINITION],[ut.SPECIFIED_BY,Ot.SPECIFIED_BY_DEFINITION],[ut.SUBSCRIPTION_FILTER,Ot.SUBSCRIPTION_FILTER_DEFINITION],[ut.TAG,Ot.TAG_DEFINITION]]);Vi.BASE_SCALARS=new Set(["_Any","_Entities",ut.BOOLEAN_SCALAR,ut.FLOAT_SCALAR,ut.ID_SCALAR,ut.INT_SCALAR,ut.FIELD_SET_SCALAR,ut.SCOPE_SCALAR,ut.STRING_SCALAR]);Vi.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[ut.AUTHENTICATED,Ot.AUTHENTICATED_DEFINITION],[ut.COMPOSE_DIRECTIVE,Ot.COMPOSE_DIRECTIVE_DEFINITION],[ut.INACCESSIBLE,Ot.INACCESSIBLE_DEFINITION],[ut.INTERFACE_OBJECT,Ot.INTERFACE_OBJECT_DEFINITION],[ut.LINK,Ot.LINK_DEFINITION],[ut.OVERRIDE,Ot.OVERRIDE_DEFINITION],[ut.REQUIRES_SCOPES,Ot.REQUIRES_SCOPES_DEFINITION],[ut.SHAREABLE,Ot.SHAREABLE_DEFINITION]]);Vi.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;Vi.MAX_OR_SCOPES=16});var oT=w(Tc=>{"use strict";m();T();N();Object.defineProperty(Tc,"__esModule",{value:!0});Tc.newParentTagData=mZ;Tc.newChildTagData=NZ;Tc.validateImplicitFieldSets=TZ;Tc.newContractTagOptionsFromArrays=EZ;Tc.getDescriptionFromString=hZ;var ei=Oe(),lZ=Iu(),dZ=gu(),fZ=Pr(),SB=Fr(),pZ=zn();function mZ(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function NZ(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function TZ({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let c=(0,SB.getValueOrDefault)(n.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,d]of n.documentNodeByKeyFieldSet){if(c.has(l))continue;let p=[i],E=[],I=[],v=-1,A=!0,U=!0;(0,ei.visit)(d,{Argument:{enter(){return U=!1,ei.BREAK}},Field:{enter(j){let $=p[v];if(A)return U=!1,ei.BREAK;let re=j.name.value;if(re===pZ.TYPENAME)return;let ee=$.fieldDataByName.get(re);if(!ee||ee.argumentDataByName.size||E[v].has(re))return U=!1,ei.BREAK;let{isUnconditionallyProvided:me}=(0,SB.getOrThrowError)(ee.externalFieldDataBySubgraphName,t,`${ee.originalParentTypeName}.${re}.externalFieldDataBySubgraphName`),ue=e.get(`${ee.renamedParentTypeName}.${re}`);if(ue){if(ue.providedBy.length>0)I.push(...ue.providedBy);else if(ue.requiredBy.length>0)return U=!1,ei.BREAK}else if(!me)return U=!1,ei.BREAK;E[v].add(re);let Ae=(0,lZ.getTypeNodeNamedTypeName)(ee.node.type);if(dZ.BASE_SCALARS.has(Ae))return;let xe=a.get(Ae);if(!xe)return U=!1,ei.BREAK;if(xe.kind===ei.Kind.OBJECT_TYPE_DEFINITION){A=!0,p.push(xe);return}if((0,fZ.isKindAbstract)(xe.kind))return U=!1,ei.BREAK}},InlineFragment:{enter(){return U=!1,ei.BREAK}},SelectionSet:{enter(){if(!A||(v+=1,A=!1,v<0||v>=p.length))return U=!1,ei.BREAK;E.push(new Set)},leave(){if(A)return U=!1,ei.BREAK;v-=1,p.pop(),E.pop()}}}),U&&(r.push(Q(M({fieldName:"",selectionSet:l},I.length>0?{conditions:I}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function EZ(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function hZ(e){if(e)return{block:!0,kind:ei.Kind.STRING,value:e}}});var Ul=w(mt=>{"use strict";m();T();N();Object.defineProperty(mt,"__esModule",{value:!0});mt.MergeMethod=void 0;mt.newPersistedDirectivesData=gZ;mt.isNodeExternalOrShareable=_Z;mt.isTypeRequired=vZ;mt.areDefaultValuesCompatible=bB;mt.compareAndValidateInputValueDefaultValues=OZ;mt.setMutualExecutableLocations=SZ;mt.isTypeNameRootType=DZ;mt.getRenamedRootTypeName=bZ;mt.childMapToValueArray=RZ;mt.setLongestDescription=PZ;mt.isParentDataRootType=AB;mt.isInterfaceDefinitionData=FZ;mt.setParentDataExtensionType=wZ;mt.upsertDeprecatedDirective=LZ;mt.upsertTagDirectives=CZ;mt.propagateAuthDirectives=BZ;mt.propagateFieldAuthDirectives=UZ;mt.generateDeprecatedDirective=qv;mt.getClientPersistedDirectiveNodes=Mv;mt.getClientSchemaFieldNodeByFieldData=xZ;mt.getNodeWithPersistedDirectivesByInputValueData=RB;mt.addValidPersistedDirectiveDefinitionNodeByData=VZ;mt.newInvalidFieldNames=jZ;mt.validateExternalAndShareable=KZ;mt.isTypeValidImplementation=uT;mt.isNodeDataInaccessible=PB;mt.isLeafKind=GZ;mt.getSubscriptionFilterValue=$Z;mt.getParentTypeName=QZ;mt.newConditionalFieldData=YZ;mt.getDefinitionDataCoords=JZ;mt.isParentDataCompositeOutputType=HZ;mt.newExternalFieldData=zZ;mt.getInitialFederatedDescription=WZ;mt.areKindsEqual=XZ;mt.isFieldData=Vv;mt.isInputObjectDefinitionData=ZZ;mt.isInputNodeKind=eee;mt.isOutputNodeKind=tee;var rt=Oe(),kv=Uf(),Bl=Pr(),xv=qi(),jt=zn(),Ec=Fr(),yZ=oT(),IZ=Oe();function gZ(){return{deprecatedReason:"",directivesByName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function _Z(e,t,n){var i;let r={isExternal:n.has(jt.EXTERNAL),isShareable:t||n.has(jt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let a of e.directives){let o=a.name.value;if(o===jt.EXTERNAL){r.isExternal=!0;continue}o===jt.SHAREABLE&&(r.isShareable=!0)}return r}function vZ(e){return e.kind===rt.Kind.NON_NULL_TYPE}function bB(e,t){switch(e.kind){case rt.Kind.LIST_TYPE:return t.kind===rt.Kind.LIST||t.kind===rt.Kind.NULL;case rt.Kind.NAMED_TYPE:if(t.kind===rt.Kind.NULL)return!0;switch(e.name.value){case jt.BOOLEAN_SCALAR:return t.kind===rt.Kind.BOOLEAN;case jt.FLOAT_SCALAR:return t.kind===rt.Kind.INT||t.kind===rt.Kind.FLOAT;case jt.INT_SCALAR:return t.kind===rt.Kind.INT;case jt.STRING_SCALAR:return t.kind===rt.Kind.STRING;default:return!0}case rt.Kind.NON_NULL_TYPE:return t.kind===rt.Kind.NULL?!1:bB(e.type,t)}}function OZ(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,rt.print)(e.defaultValue),i=(0,rt.print)(t.defaultValue);if(r!==i){n.push((0,xv.incompatibleInputValueDefaultValuesError)(`${e.isArgument?jt.ARGUMENT:jt.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,i));return}}function SZ(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function DZ(e,t){return jt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function bZ(e,t){let n=t.get(e);if(!n)return e;switch(n){case rt.OperationTypeNode.MUTATION:return jt.MUTATION;case rt.OperationTypeNode.SUBSCRIPTION:return jt.SUBSCRIPTION;default:return jt.QUERY}}function AZ(e){for(let t of e.argumentDataByName.values()){for(let n of t.directivesByName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function RZ(e){var n;let t=[];for(let r of e.values()){Vv(r)&&AZ(r);for(let[i,a]of r.directivesByName){if(i===jt.DEPRECATED){let o=a[0];if(!o)continue;if((n=o.arguments)!=null&&n.length){r.node.directives.push(o);continue}r.node.directives.push(Q(M({},o),{arguments:[{kind:rt.Kind.ARGUMENT,value:{kind:rt.Kind.STRING,value:IZ.DEFAULT_DEPRECATION_REASON},name:(0,Bl.stringToNameNode)(jt.REASON)}]}));continue}r.node.directives.push(...a)}t.push(r.node)}return t}function PZ(e,t){if(t.description){if("configureDescriptionDataBySubgraphName"in t){for(let{propagate:n}of t.configureDescriptionDataBySubgraphName.values())if(!n)return}(!e.description||e.description.value.length0&&e.persistedDirectivesData.directivesByName.set(jt.REQUIRES_SCOPES,[(0,Ec.generateRequiresScopesDirective)(t.requiredScopes)]))}function UZ(e,t){if(!t)return;let n=t.fieldAuthDataByFieldName.get(e.name);n&&(n.originalData.requiresAuthentication&&e.persistedDirectivesData.directivesByName.set(jt.AUTHENTICATED,[(0,Ec.generateSimpleDirective)(jt.AUTHENTICATED)]),n.originalData.requiredScopes.length>0&&e.persistedDirectivesData.directivesByName.set(jt.REQUIRES_SCOPES,[(0,Ec.generateRequiresScopesDirective)(n.originalData.requiredScopes)]))}function qv(e){return{kind:rt.Kind.DIRECTIVE,name:(0,Bl.stringToNameNode)(jt.DEPRECATED),arguments:[{kind:rt.Kind.ARGUMENT,name:(0,Bl.stringToNameNode)(jt.REASON),value:{kind:rt.Kind.STRING,value:e||jt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function kZ(e,t,n,r){let i=[];for(let[a,o]of e){let c=t.get(a);if(c){if(o.length<2){i.push(...o);continue}if(!c.repeatable){r.push((0,xv.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}i.push(...o)}}return i}function MZ(e,t,n){let r=[...e.persistedDirectivesData.tagDirectiveByName.values()];return e.persistedDirectivesData.isDeprecated&&r.push(qv(e.persistedDirectivesData.deprecatedReason)),r.push(...kZ(e.persistedDirectivesData.directivesByName,t,e.name,n)),r}function Mv(e){var n;let t=[];e.persistedDirectivesData.isDeprecated&&t.push(qv(e.persistedDirectivesData.deprecatedReason));for(let[r,i]of e.persistedDirectivesData.directivesByName){if(r===jt.SEMANTIC_NON_NULL&&Vv(e)){t.push((0,Ec.generateSemanticNonNullDirective)((n=(0,Ec.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?n:new Set([0])));continue}jt.PERSISTED_CLIENT_DIRECTIVES.has(r)&&t.push(i[0])}return t}function xZ(e){let t=Mv(e),n=[];for(let r of e.argumentDataByName.values())PB(r)||n.push(Q(M({},r.node),{directives:Mv(r)}));return Q(M({},e.node),{directives:t,arguments:n})}function RB(e,t,n){return e.node.name=(0,Bl.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=MZ(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function qZ(e,t,n,r,i){let a=[];for(let[o,c]of t.argumentDataByName){let l=(0,Ec.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames);if(l.length>0){c.requiredSubgraphNames.size>0&&a.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...c.requiredSubgraphNames]});continue}e.push(RB(c,n,r)),i&&i.add(o)}return a.length>0?(r.push((0,xv.invalidRequiredInputValueError)(jt.DIRECTIVE_DEFINITION,`@${t.name}`,a)),!1):!0}function VZ(e,t,n,r){let i=[];qZ(i,t,n,r)&&e.push({arguments:i,kind:rt.Kind.DIRECTIVE_DEFINITION,locations:(0,Bl.setToNameNodeArray)(t.executableLocations),name:(0,Bl.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function jZ(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function KZ(e,t){let n=e.isShareableBySubgraphName.size,r=new Array,i=0;for(let[a,o]of e.isShareableBySubgraphName){let c=e.externalFieldDataBySubgraphName.get(a);if(c&&!c.isUnconditionallyProvided){r.push(a);continue}o||(i+=1)}switch(i){case 0:n===r.length&&t.subgraphNamesByExternalFieldName.set(e.name,r);return;case 1:if(n===1)return;n-r.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var DB;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(DB||(mt.MergeMethod=DB={}));function uT(e,t,n){if(e.kind===rt.Kind.NON_NULL_TYPE)return t.kind!==rt.Kind.NON_NULL_TYPE?!1:uT(e.type,t.type,n);if(t.kind===rt.Kind.NON_NULL_TYPE)return uT(e,t.type,n);switch(e.kind){case rt.Kind.NAMED_TYPE:if(t.kind===rt.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let a=n.get(r);return a?a.has(i):!1}return!1;default:return t.kind===rt.Kind.LIST_TYPE?uT(e.type,t.type,n):!1}}function PB(e){return e.persistedDirectivesData.directivesByName.has(jt.INACCESSIBLE)||e.directivesByName.has(jt.INACCESSIBLE)}function GZ(e){return e===rt.Kind.SCALAR_TYPE_DEFINITION||e===rt.Kind.ENUM_TYPE_DEFINITION}function $Z(e){switch(e.kind){case rt.Kind.BOOLEAN:return e.value;case rt.Kind.ENUM:case rt.Kind.STRING:return e.value;case rt.Kind.FLOAT:case rt.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case rt.Kind.NULL:return null}}function QZ(e){return e.kind===rt.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function YZ(){return{providedBy:[],requiredBy:[]}}function JZ(e,t){switch(e.kind){case rt.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case rt.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case rt.Kind.ARGUMENT:case rt.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case rt.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function HZ(e){return e.kind===rt.Kind.OBJECT_TYPE_DEFINITION||e.kind===rt.Kind.INTERFACE_TYPE_DEFINITION}function zZ(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function WZ(e){let{value:t,done:n}=e.configureDescriptionDataBySubgraphName.values().next();if(n)return e.description;if(t.propagate)return(0,yZ.getDescriptionFromString)(t.description)||e.description}function XZ(e,t){return e.kind===t.kind}function Vv(e){return e.kind===rt.Kind.FIELD_DEFINITION}function ZZ(e){return e.kind===rt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function eee(e){return jt.INPUT_NODE_KINDS.has(e)}function tee(e){return jt.OUTPUT_NODE_KINDS.has(e)}});var Gv={};wm(Gv,{__addDisposableResource:()=>WB,__assign:()=>cT,__asyncDelegator:()=>KB,__asyncGenerator:()=>jB,__asyncValues:()=>GB,__await:()=>kl,__awaiter:()=>UB,__classPrivateFieldGet:()=>JB,__classPrivateFieldIn:()=>zB,__classPrivateFieldSet:()=>HB,__createBinding:()=>dT,__decorate:()=>LB,__disposeResources:()=>XB,__esDecorate:()=>nee,__exportStar:()=>MB,__extends:()=>FB,__generator:()=>kB,__importDefault:()=>YB,__importStar:()=>QB,__makeTemplateObject:()=>$B,__metadata:()=>BB,__param:()=>CB,__propKey:()=>iee,__read:()=>Kv,__rest:()=>wB,__runInitializers:()=>ree,__setFunctionName:()=>aee,__spread:()=>xB,__spreadArray:()=>VB,__spreadArrays:()=>qB,__values:()=>lT,default:()=>uee});function FB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");jv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function wB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function CB(e,t){return function(n,r){t(n,r,e)}}function nee(e,t,n,r,i,a){function o($){if($!==void 0&&typeof $!="function")throw new TypeError("Function expected");return $}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),E,I=!1,v=n.length-1;v>=0;v--){var A={};for(var U in r)A[U]=U==="access"?{}:r[U];for(var U in r.access)A.access[U]=r.access[U];A.addInitializer=function($){if(I)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o($||null))};var j=(0,n[v])(c==="accessor"?{get:p.get,set:p.set}:p[l],A);if(c==="accessor"){if(j===void 0)continue;if(j===null||typeof j!="object")throw new TypeError("Object expected");(E=o(j.get))&&(p.get=E),(E=o(j.set))&&(p.set=E),(E=o(j.init))&&i.unshift(E)}else(E=o(j))&&(c==="field"?i.unshift(E):p[l]=E)}d&&Object.defineProperty(d,r.name,p),I=!0}function ree(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Kv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function xB(){for(var e=[],t=0;t1||c(I,v)})})}function c(I,v){try{l(r[I](v))}catch(A){E(a[0][3],A)}}function l(I){I.value instanceof kl?Promise.resolve(I.value.v).then(d,p):E(a[0][2],I)}function d(I){c("next",I)}function p(I){c("throw",I)}function E(I,v){I(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function KB(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:kl(e[i](o)),done:!1}:a?a(o):o}:a}}function GB(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof lT=="function"?lT(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(d){a({value:d,done:c})},o)}}function $B(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function QB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&dT(t,e,n);return see(t,e),t}function YB(e){return e&&e.__esModule?e:{default:e}}function JB(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function HB(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function zB(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function WB(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function XB(e){function t(r){e.error=e.hasError?new oee(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var jv,cT,dT,see,oee,uee,$v=Qu(()=>{"use strict";m();T();N();jv=function(e,t){return jv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},jv(e,t)};cT=function(){return cT=Object.assign||function(t){for(var n,r=1,i=arguments.length;rvU,__assign:()=>fT,__asyncDelegator:()=>NU,__asyncGenerator:()=>mU,__asyncValues:()=>TU,__await:()=>Ml,__awaiter:()=>uU,__classPrivateFieldGet:()=>IU,__classPrivateFieldIn:()=>_U,__classPrivateFieldSet:()=>gU,__createBinding:()=>mT,__decorate:()=>tU,__disposeResources:()=>OU,__esDecorate:()=>rU,__exportStar:()=>lU,__extends:()=>ZB,__generator:()=>cU,__importDefault:()=>yU,__importStar:()=>hU,__makeTemplateObject:()=>EU,__metadata:()=>oU,__param:()=>nU,__propKey:()=>aU,__read:()=>Jv,__rest:()=>eU,__rewriteRelativeImportExtension:()=>SU,__runInitializers:()=>iU,__setFunctionName:()=>sU,__spread:()=>dU,__spreadArray:()=>pU,__spreadArrays:()=>fU,__values:()=>pT,default:()=>dee});function ZB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Qv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function eU(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function nU(e,t){return function(n,r){t(n,r,e)}}function rU(e,t,n,r,i,a){function o($){if($!==void 0&&typeof $!="function")throw new TypeError("Function expected");return $}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),E,I=!1,v=n.length-1;v>=0;v--){var A={};for(var U in r)A[U]=U==="access"?{}:r[U];for(var U in r.access)A.access[U]=r.access[U];A.addInitializer=function($){if(I)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o($||null))};var j=(0,n[v])(c==="accessor"?{get:p.get,set:p.set}:p[l],A);if(c==="accessor"){if(j===void 0)continue;if(j===null||typeof j!="object")throw new TypeError("Object expected");(E=o(j.get))&&(p.get=E),(E=o(j.set))&&(p.set=E),(E=o(j.init))&&i.unshift(E)}else(E=o(j))&&(c==="field"?i.unshift(E):p[l]=E)}d&&Object.defineProperty(d,r.name,p),I=!0}function iU(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Jv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function dU(){for(var e=[],t=0;t1||l(v,U)})},A&&(i[v]=A(i[v])))}function l(v,A){try{d(r[v](A))}catch(U){I(a[0][3],U)}}function d(v){v.value instanceof Ml?Promise.resolve(v.value.v).then(p,E):I(a[0][2],v)}function p(v){l("next",v)}function E(v){l("throw",v)}function I(v,A){v(A),a.shift(),a.length&&l(a[0][0],a[0][1])}}function NU(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:Ml(e[i](o)),done:!1}:a?a(o):o}:a}}function TU(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof pT=="function"?pT(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(d){a({value:d,done:c})},o)}}function EU(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function hU(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Yv(e),r=0;r{"use strict";m();T();N();Qv=function(e,t){return Qv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Qv(e,t)};fT=function(){return fT=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();N()});var xl=w(ji=>{"use strict";m();T();N();Object.defineProperty(ji,"__esModule",{value:!0});ji.asArray=void 0;ji.isUrl=RU;ji.isDocumentString=Tee;ji.isValidPath=hee;ji.compareStrings=PU;ji.nodeToString=Hv;ji.compareNodes=yee;ji.isSome=Iee;ji.assertSome=gee;var fee=Oe(),pee=/^(https?|wss?|file):\/\//;function RU(e){if(typeof e!="string"||!pee.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch(t){return!1}}var mee=e=>Array.isArray(e)?e:e?[e]:[];ji.asArray=mee;var Nee=/\.[a-z0-9]+$/i;function Tee(e){if(typeof e!="string"||Nee.test(e)||RU(e))return!1;try{return(0,fee.parse)(e),!0}catch(t){if(!t.message.includes("EOF")&&e.replace(/(\#[^*]*)/g,"").trim()!==""&&e.includes(" "))throw new Error(`Failed to parse the GraphQL document. ${t.message} -${e}`)}return!1}var Eee=/[‘“!%^<>`\n]/;function hee(e){return typeof e=="string"&&!Eee.test(e)}function PU(e,t){return String(e)String(t)?1:0}function Hv(e){var n,r;let t;return"alias"in e&&(t=(n=e.alias)==null?void 0:n.value),t==null&&"name"in e&&(t=(r=e.name)==null?void 0:r.value),t==null&&(t=e.kind),t}function yee(e,t,n){let r=Hv(e),i=Hv(t);return typeof n=="function"?n(r,i):PU(r,i)}function Iee(e){return e!=null}function gee(e,t="Value should be something"){if(e==null)throw new Error(t)}});var Mf=w(TT=>{"use strict";m();T();N();Object.defineProperty(TT,"__esModule",{value:!0});TT.inspect=void 0;var LU=3;function _ee(e){return NT(e,[])}TT.inspect=_ee;function NT(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return vee(e,t);default:return String(e)}}function FU(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; - ${e.stack}`}function vee(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?FU(e)+` -`+wU(e.errors,t):FU(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Oee(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:NT(r,n)}else if(Array.isArray(e))return wU(e,n);return See(e,n)}function Oee(e){return typeof e.toJSON=="function"}function See(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>LU?"["+Dee(e)+"]":"{ "+n.map(([i,a])=>i+": "+NT(a,t)).join(", ")+" }"}function wU(e,t){if(e.length===0)return"[]";if(t.length>LU)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();N();Object.defineProperty(ET,"__esModule",{value:!0});ET.createGraphQLError=Wv;ET.relocatedError=Ree;var zv=Oe(),bee=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function Aee(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>bee.includes(t))}function Wv(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&Aee(t.originalError)&&(t.originalError=Wv(t.originalError.message,t.originalError)),zv.versionInfo.major>=17?new zv.GraphQLError(e,t):new zv.GraphQLError(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions)}function Ree(e,t){return Wv(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}});var xf=w(ti=>{"use strict";m();T();N();Object.defineProperty(ti,"__esModule",{value:!0});ti.isPromise=yT;ti.isActualPromise=BU;ti.handleMaybePromise=_u;ti.fakePromise=Ya;ti.createDeferredPromise=Pee;ti.iterateAsync=UU;ti.iterateAsyncVoid=UU;ti.fakeRejectPromise=hc;ti.mapMaybePromise=Fee;ti.mapAsyncIterator=wee;ti.promiseLikeFinally=kU;ti.unfakePromise=MU;var IT=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function yT(e){return(e==null?void 0:e.then)!=null}function BU(e){let t=e;return t&&t.then&&t.catch&&t.finally}function _u(e,t,n,r){let i=Ya().then(e).then(t,n);return r&&(i=i.finally(r)),MU(i)}function Ya(e){return e&&BU(e)?e:yT(e)?{then:(t,n)=>Ya(e.then(t,n)),catch:t=>Ya(e.then(n=>n,t)),finally:t=>Ya(t?kU(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return Ya(t(e))}catch(n){return hc(n)}return this},catch(){return this},finally(t){if(t)try{return Ya(t()).then(()=>e,()=>e)}catch(n){return hc(n)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[IT]:"resolved"}}function Pee(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;return{promise:new Promise(function(i,a){e=i,t=a}),get resolve(){return e},get reject(){return t}}}function UU(e,t,n){if((e==null?void 0:e.length)===0)return;let r=e[Symbol.iterator](),i=0;function a(){let{done:o,value:c}=r.next();if(o)return;let l=!1;function d(){l=!0}return _u(function(){return t(c,d,i++)},function(E){if(E&&(n==null||n.push(E)),!l)return a()})}return a()}function hc(e){return{then(t,n){if(n)try{return Ya(n(e))}catch(r){return hc(r)}return this},catch(t){if(t)try{return Ya(t(e))}catch(n){return hc(n)}return this},finally(t){if(t)try{t()}catch(n){return hc(n)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[IT]:"rejected"}}function Fee(e,t,n){return _u(()=>e,t,n)}function wee(e,t,n,r){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,a,o;if(r){let d;o=p=>(d||(d=_u(r,()=>p,()=>p)),d)}typeof e.return=="function"&&(i=e.return,a=d=>{let p=()=>{throw d};return i.call(e).then(p,p)});function c(d){return d.done?o?o(d):d:_u(()=>d.value,p=>_u(()=>t(p),CU,a))}let l;if(n){let d,p=n;l=E=>(d||(d=_u(()=>E,I=>_u(()=>p(I),CU,a))),d)}return{next(){return e.next().then(c,l)},return(){let d=i?i.call(e).then(c,l):Ya({value:void 0,done:!0});return o?d.then(o):d},throw(d){return typeof e.throw=="function"?e.throw(d).then(c,l):a?a(d):hc(d)},[Symbol.asyncIterator](){return this}}}function CU(e){return{value:e,done:!1}}function Lee(e){return(e==null?void 0:e[IT])==="resolved"}function Cee(e){return(e==null?void 0:e[IT])==="rejected"}function kU(e,t){return"finally"in e?e.finally(t):e.then(n=>{let r=t();return yT(r)?r.then(()=>n):n},n=>{let r=t();if(yT(r))return r.then(()=>{throw n});throw n})}function MU(e){if(Lee(e))return e.__fakePromiseValue;if(Cee(e))throw e.__fakeRejectError;return e}});var gT=w(vu=>{"use strict";m();T();N();Object.defineProperty(vu,"__esModule",{value:!0});vu.isPromise=void 0;vu.isIterableObject=Bee;vu.isObjectLike=Uee;vu.promiseReduce=kee;vu.hasOwnProperty=Mee;var xU=xf();Object.defineProperty(vu,"isPromise",{enumerable:!0,get:function(){return xU.isPromise}});function Bee(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function Uee(e){return typeof e=="object"&&e!==null}function kee(e,t,n){let r=n;for(let i of e)r=(0,xU.handleMaybePromise)(()=>r,a=>t(a,i));return r}function Mee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var eO=w(Zv=>{"use strict";m();T();N();Object.defineProperty(Zv,"__esModule",{value:!0});Zv.getArgumentValues=qee;var Xv=Mf(),yc=Oe(),_T=hT(),xee=gT();function qee(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((c,l)=>Q(M({},c),{[l.name.value]:l}),{});for(let{name:c,type:l,defaultValue:d}of e.args){let p=a[c];if(!p){if(d!==void 0)r[c]=d;else if((0,yc.isNonNullType)(l))throw(0,_T.createGraphQLError)(`Argument "${c}" of required type "${(0,Xv.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let E=p.value,I=E.kind===yc.Kind.NULL;if(E.kind===yc.Kind.VARIABLE){let A=E.name.value;if(n==null||!(0,xee.hasOwnProperty)(n,A)){if(d!==void 0)r[c]=d;else if((0,yc.isNonNullType)(l))throw(0,_T.createGraphQLError)(`Argument "${c}" of required type "${(0,Xv.inspect)(l)}" was provided the variable "$${A}" which was not provided a runtime value.`,{nodes:[E]});continue}I=n[A]==null}if(I&&(0,yc.isNonNullType)(l))throw(0,_T.createGraphQLError)(`Argument "${c}" of non-null type "${(0,Xv.inspect)(l)}" must not be null.`,{nodes:[E]});let v=(0,yc.valueFromAST)(E,l,n);if(v===void 0)throw(0,_T.createGraphQLError)(`Argument "${c}" has invalid value ${(0,yc.print)(E)}.`,{nodes:[E]});r[c]=v}return r}});var Ou=w(Ps=>{"use strict";m();T();N();Object.defineProperty(Ps,"__esModule",{value:!0});Ps.memoize1=Vee;Ps.memoize2=jee;Ps.memoize3=Kee;Ps.memoize4=Gee;Ps.memoize5=$ee;Ps.memoize2of4=Qee;Ps.memoize2of5=Yee;function Vee(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}function jee(e){let t=new WeakMap;return function(r,i){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let c=e(r,i);return a.set(i,c),c}let o=a.get(i);if(o===void 0){let c=e(r,i);return a.set(i,c),c}return o}}function Kee(e){let t=new WeakMap;return function(r,i,a){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let d=new WeakMap;o.set(i,d);let p=e(r,i,a);return d.set(a,p),p}let c=o.get(i);if(!c){c=new WeakMap,o.set(i,c);let d=e(r,i,a);return c.set(a,d),d}let l=c.get(a);if(l===void 0){let d=e(r,i,a);return c.set(a,d),d}return l}}function Gee(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let E=new WeakMap;c.set(i,E);let I=new WeakMap;E.set(a,I);let v=e(r,i,a,o);return I.set(o,v),v}let l=c.get(i);if(!l){l=new WeakMap,c.set(i,l);let E=new WeakMap;l.set(a,E);let I=e(r,i,a,o);return E.set(o,I),I}let d=l.get(a);if(!d){let E=new WeakMap;l.set(a,E);let I=e(r,i,a,o);return E.set(o,I),I}let p=d.get(o);if(p===void 0){let E=e(r,i,a,o);return d.set(o,E),E}return p}}function $ee(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let v=new WeakMap;l.set(i,v);let A=new WeakMap;v.set(a,A);let U=new WeakMap;A.set(o,U);let j=e(r,i,a,o,c);return U.set(c,j),j}let d=l.get(i);if(!d){d=new WeakMap,l.set(i,d);let v=new WeakMap;d.set(a,v);let A=new WeakMap;v.set(o,A);let U=e(r,i,a,o,c);return A.set(c,U),U}let p=d.get(a);if(!p){p=new WeakMap,d.set(a,p);let v=new WeakMap;p.set(o,v);let A=e(r,i,a,o,c);return v.set(c,A),A}let E=p.get(o);if(!E){E=new WeakMap,p.set(o,E);let v=e(r,i,a,o,c);return E.set(c,v),v}let I=E.get(c);if(I===void 0){let v=e(r,i,a,o,c);return E.set(c,v),v}return I}}function Qee(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let d=e(r,i,a,o);return c.set(i,d),d}let l=c.get(i);if(l===void 0){let d=e(r,i,a,o);return c.set(i,d),d}return l}}function Yee(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let p=e(r,i,a,o,c);return l.set(i,p),p}let d=l.get(i);if(d===void 0){let p=e(r,i,a,o,c);return l.set(i,p),p}return d}}});var nO=w(tO=>{"use strict";m();T();N();Object.defineProperty(tO,"__esModule",{value:!0});tO.getDirectiveExtensions=zee;var qU=Oe(),Jee=eO(),Hee=Ou();function zee(e,t,n=["directives"]){var o;let r={};if(e.extensions){let c=e.extensions;for(let l of n)c=c==null?void 0:c[l];if(c!=null)for(let l in c){let d=c[l],p=l;if(Array.isArray(d))for(let E of d){let I=r[p];I||(I=[],r[p]=I),I.push(E)}else{let E=r[p];E||(E=[],r[p]=E),E.push(d)}}}let i=(0,Hee.memoize1)(c=>JSON.stringify(c)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let c of a)if((o=c.directives)!=null&&o.length)for(let l of c.directives){let d=l.name.value,p=r[d];p||(p=[],r[d]=p);let E=t==null?void 0:t.getDirective(d),I={};if(E&&(I=(0,Jee.getArgumentValues)(E,l)),l.arguments)for(let v of l.arguments){let A=v.name.value;if(I[A]==null){let U=E==null?void 0:E.args.find(j=>j.name===A);U&&(I[A]=(0,qU.valueFromAST)(v.value,U.type))}I[A]==null&&(I[A]=(0,qU.valueFromASTUntyped)(v.value))}if(a.length>0&&p.length>0){let v=i(I);if(p.some(A=>i(A)===v))continue}p.push(I)}return r}});var rO=w(ql=>{"use strict";m();T();N();Object.defineProperty(ql,"__esModule",{value:!0});ql.getDirectivesInExtensions=Wee;ql.getDirectiveInExtensions=Xee;ql.getDirectives=Zee;ql.getDirective=ete;var vT=nO();function Wee(e,t=["directives"]){let n=(0,vT.getDirectiveExtensions)(e,void 0,t);return Object.entries(n).map(([r,i])=>i==null?void 0:i.map(a=>({name:r,args:a}))).flat(1/0).filter(Boolean)}function Xee(e,t,n=["directives"]){return(0,vT.getDirectiveExtensions)(e,void 0,n)[t]}function Zee(e,t,n=["directives"]){let r=(0,vT.getDirectiveExtensions)(t,e,n);return Object.entries(r).map(([i,a])=>a==null?void 0:a.map(o=>({name:i,args:o}))).flat(1/0).filter(Boolean)}function ete(e,t,n,r=["directives"]){return(0,vT.getDirectiveExtensions)(t,e,r)[n]}});var aO=w(iO=>{"use strict";m();T();N();Object.defineProperty(iO,"__esModule",{value:!0});iO.getFieldsWithDirectives=nte;var tte=Oe();function nte(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(a=>r.includes(a.kind));for(let a of i){let o=a.name.value;if(a.fields!=null){for(let c of a.fields)if(c.directives&&c.directives.length>0){let l=c.name.value,d=`${o}.${l}`,p=c.directives.map(E=>({name:E.name.value,args:(E.arguments||[]).reduce((I,v)=>Q(M({},I),{[v.name.value]:(0,tte.valueFromASTUntyped)(v.value)}),{})}));n[d]=p}}}return n}});var VU=w(oO=>{"use strict";m();T();N();Object.defineProperty(oO,"__esModule",{value:!0});oO.getArgumentsWithDirectives=ite;var sO=Oe();function rte(e){return e.kind===sO.Kind.OBJECT_TYPE_DEFINITION||e.kind===sO.Kind.OBJECT_TYPE_EXTENSION}function ite(e){var r;let t={},n=e.definitions.filter(rte);for(let i of n)if(i.fields!=null)for(let a of i.fields){let o=(r=a.arguments)==null?void 0:r.filter(l=>{var d;return(d=l.directives)==null?void 0:d.length});if(!(o!=null&&o.length))continue;let c=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let d=l.directives.map(p=>({name:p.name.value,args:(p.arguments||[]).reduce((E,I)=>Q(M({},E),{[I.name.value]:(0,sO.valueFromASTUntyped)(I.value)}),{})}));c[l.name.value]=d}}return t}});var cO=w(uO=>{"use strict";m();T();N();Object.defineProperty(uO,"__esModule",{value:!0});uO.getImplementingTypes=ate;function ate(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let a=n[i];"getInterfaces"in a&&a.getInterfaces().find(c=>c.name===e)&&r.push(a.name)}return r}});var OT=w(dO=>{"use strict";m();T();N();Object.defineProperty(dO,"__esModule",{value:!0});dO.astFromType=lO;var ste=Mf(),Ic=Oe();function lO(e){if((0,Ic.isNonNullType)(e)){let t=lO(e.ofType);if(t.kind===Ic.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,ste.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Ic.Kind.NON_NULL_TYPE,type:t}}else if((0,Ic.isListType)(e))return{kind:Ic.Kind.LIST_TYPE,type:lO(e.ofType)};return{kind:Ic.Kind.NAMED_TYPE,name:{kind:Ic.Kind.NAME,value:e.name}}}});var qf=w(fO=>{"use strict";m();T();N();Object.defineProperty(fO,"__esModule",{value:!0});fO.astFromValueUntyped=ST;var Ja=Oe();function ST(e){if(e===null)return{kind:Ja.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=ST(n);r!=null&&t.push(r)}return{kind:Ja.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return ST(e.toJSON());let t=[];for(let n in e){let r=e[n],i=ST(r);i&&t.push({kind:Ja.Kind.OBJECT_FIELD,name:{kind:Ja.Kind.NAME,value:n},value:i})}return{kind:Ja.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ja.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:Ja.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return ote.test(t)?{kind:Ja.Kind.INT,value:t}:{kind:Ja.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ja.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var ote=/^-?(?:0|[1-9][0-9]*)$/});var KU=w(pO=>{"use strict";m();T();N();Object.defineProperty(pO,"__esModule",{value:!0});pO.astFromValue=Vf;var ute=Mf(),Ti=Oe(),cte=qf(),jU=gT();function Vf(e,t){if((0,Ti.isNonNullType)(t)){let n=Vf(e,t.ofType);return(n==null?void 0:n.kind)===Ti.Kind.NULL?null:n}if(e===null)return{kind:Ti.Kind.NULL};if(e===void 0)return null;if((0,Ti.isListType)(t)){let n=t.ofType;if((0,jU.isIterableObject)(e)){let r=[];for(let i of e){let a=Vf(i,n);a!=null&&r.push(a)}return{kind:Ti.Kind.LIST,values:r}}return Vf(e,n)}if((0,Ti.isInputObjectType)(t)){if(!(0,jU.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Vf(e[r.name],r.type);i&&n.push({kind:Ti.Kind.OBJECT_FIELD,name:{kind:Ti.Kind.NAME,value:r.name},value:i})}return{kind:Ti.Kind.OBJECT,fields:n}}if((0,Ti.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,Ti.isEnumType)(t)?{kind:Ti.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&<e.test(n)?{kind:Ti.Kind.INT,value:n}:(0,cte.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,ute.inspect)(t))}var lte=/^-?(?:0|[1-9][0-9]*)$/});var GU=w(mO=>{"use strict";m();T();N();Object.defineProperty(mO,"__esModule",{value:!0});mO.getDescriptionNode=fte;var dte=Oe();function fte(e){var t;if((t=e.astNode)!=null&&t.description)return Q(M({},e.astNode.description),{block:!0});if(e.description)return{kind:dte.Kind.STRING,value:e.description,block:!0}}});var jf=w(Ki=>{"use strict";m();T();N();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.getRootTypeMap=Ki.getRootTypes=Ki.getRootTypeNames=void 0;Ki.getDefinedRootType=mte;var pte=hT(),NO=Ou();function mte(e,t,n){let i=(0,Ki.getRootTypeMap)(e).get(t);if(i==null)throw(0,pte.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}Ki.getRootTypeNames=(0,NO.memoize1)(function(t){let n=(0,Ki.getRootTypes)(t);return new Set([...n].map(r=>r.name))});Ki.getRootTypes=(0,NO.memoize1)(function(t){let n=(0,Ki.getRootTypeMap)(t);return new Set(n.values())});Ki.getRootTypeMap=(0,NO.memoize1)(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let a=t.getSubscriptionType();return a&&n.set("subscription",a),n})});var IO=w(Xn=>{"use strict";m();T();N();Object.defineProperty(Xn,"__esModule",{value:!0});Xn.getDocumentNodeFromSchema=QU;Xn.printSchemaWithDirectives=hte;Xn.astFromSchema=YU;Xn.astFromDirective=JU;Xn.getDirectiveNodes=Na;Xn.astFromArg=EO;Xn.astFromObjectType=HU;Xn.astFromInterfaceType=zU;Xn.astFromUnionType=WU;Xn.astFromInputObjectType=XU;Xn.astFromEnumType=ZU;Xn.astFromScalarType=ek;Xn.astFromField=hO;Xn.astFromInputField=tk;Xn.astFromEnumValue=nk;Xn.makeDeprecatedDirective=rk;Xn.makeDirectiveNode=Vl;Xn.makeDirectiveNodes=yO;var Nt=Oe(),gc=OT(),TO=KU(),Nte=qf(),Gi=GU(),$U=rO(),Tte=xl(),Ete=jf();function QU(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=YU(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,Nt.isSpecifiedDirective)(c)||a.push(JU(c,e,n));for(let c in r){let l=r[c],d=(0,Nt.isSpecifiedScalarType)(l),p=(0,Nt.isIntrospectionType)(l);if(!(d||p))if((0,Nt.isObjectType)(l))a.push(HU(l,e,n));else if((0,Nt.isInterfaceType)(l))a.push(zU(l,e,n));else if((0,Nt.isUnionType)(l))a.push(WU(l,e,n));else if((0,Nt.isInputObjectType)(l))a.push(XU(l,e,n));else if((0,Nt.isEnumType)(l))a.push(ZU(l,e,n));else if((0,Nt.isScalarType)(l))a.push(ek(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:Nt.Kind.DOCUMENT,definitions:a}}function hte(e,t={}){let n=QU(e,t);return(0,Nt.print)(n)}function YU(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let p of d.operationTypes)n.set(p.operation,p);let i=(0,Ete.getRootTypeMap)(e);for(let[d,p]of n){let E=i.get(d);if(E!=null){let I=(0,gc.astFromType)(E);p!=null?p.type=I:n.set(d,{kind:Nt.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:I})}}let a=[...n.values()].filter(Tte.isSome),o=Na(e,e,t);if(!a.length&&!o.length)return null;let c={kind:a.length?Nt.Kind.SCHEMA_DEFINITION:Nt.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,Gi.getDescriptionNode)(e);return l&&(c.description=l),c}function JU(e,t,n){var r,i;return{kind:Nt.Kind.DIRECTIVE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>EO(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:Nt.Kind.NAME,value:a})))||[]}}function Na(e,t,n){let r=[],i=(0,$U.getDirectivesInExtensions)(e,n),a;i!=null&&(a=yO(t,i));let o=null,c=null,l=null;if(a!=null&&(r=a.filter(d=>Nt.specifiedDirectives.every(p=>p.name!==d.name.value)),o=a.find(d=>d.name.value==="deprecated"),c=a.find(d=>d.name.value==="specifiedBy"),l=a.find(d=>d.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=rk(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&c==null){let p={url:e.specifiedByUrl||e.specifiedByURL};c=Vl("specifiedBy",p)}return e.isOneOf&&l==null&&(l=Vl("oneOf")),o!=null&&r.push(o),c!=null&&r.push(c),l!=null&&r.push(l),r}function EO(e,t,n){var r;return{kind:Nt.Kind.INPUT_VALUE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},type:(0,gc.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,TO.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Na(e,t,n)}}function HU(e,t,n){return{kind:Nt.Kind.OBJECT_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>hO(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,gc.astFromType)(r)),directives:Na(e,t,n)}}function zU(e,t,n){let r={kind:Nt.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>hO(i,t,n)),directives:Na(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,gc.astFromType)(i))),r}function WU(e,t,n){return{kind:Nt.Kind.UNION_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},directives:Na(e,t,n),types:e.getTypes().map(r=>(0,gc.astFromType)(r))}}function XU(e,t,n){return{kind:Nt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>tk(r,t,n)),directives:Na(e,t,n)}}function ZU(e,t,n){return{kind:Nt.Kind.ENUM_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>nk(r,t,n)),directives:Na(e,t,n)}}function ek(e,t,n){let r=(0,$U.getDirectivesInExtensions)(e,n),i=yO(t,r),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(Vl("specifiedBy",o))}return{kind:Nt.Kind.SCALAR_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},directives:i}}function hO(e,t,n){return{kind:Nt.Kind.FIELD_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},arguments:e.args.map(r=>EO(r,t,n)),type:(0,gc.astFromType)(e.type),directives:Na(e,t,n)}}function tk(e,t,n){var r;return{kind:Nt.Kind.INPUT_VALUE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},type:(0,gc.astFromType)(e.type),directives:Na(e,t,n),defaultValue:(r=(0,TO.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}function nk(e,t,n){return{kind:Nt.Kind.ENUM_VALUE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},directives:Na(e,t,n)}}function rk(e){return Vl("deprecated",{reason:e},Nt.GraphQLDeprecatedDirective)}function Vl(e,t,n){let r=[];for(let i in t){let a=t[i],o;if(n!=null){let c=n.args.find(l=>l.name===i);c&&(o=(0,TO.astFromValue)(a,c.type))}o==null&&(o=(0,Nte.astFromValueUntyped)(a)),o!=null&&r.push({kind:Nt.Kind.ARGUMENT,name:{kind:Nt.Kind.NAME,value:i},value:o})}return{kind:Nt.Kind.DIRECTIVE,name:{kind:Nt.Kind.NAME,value:e},arguments:r}}function yO(e,t){let n=[];for(let{name:r,args:i}of t){let a=e==null?void 0:e.getDirective(r);n.push(Vl(r,i,a))}return n}});var ak=w(DT=>{"use strict";m();T();N();Object.defineProperty(DT,"__esModule",{value:!0});DT.validateGraphQlDocuments=yte;DT.createDefaultRules=ik;var Kf=Oe();function yte(e,t,n=ik()){var c;let r=new Set,i=new Map;for(let l of t)for(let d of l.definitions)d.kind===Kf.Kind.FRAGMENT_DEFINITION?i.set(d.name.value,d):r.add(d);let a={kind:Kf.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Kf.validate)(e,a,n);for(let l of o)if(l.stack=l.message,l.locations)for(let d of l.locations)l.stack+=` - at ${(c=l.source)==null?void 0:c.name}:${d.line}:${d.column}`;return o}function ik(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return Kf.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),Kf.specifiedRules.filter(t=>!e.includes(t.name))}});var sk=w(gO=>{"use strict";m();T();N();Object.defineProperty(gO,"__esModule",{value:!0});gO.parseGraphQLJSON=vte;var Ite=Oe();function gte(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function _te(e){return JSON.parse(gte(e))}function vte(e,t,n){let r=_te(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,Ite.buildClientSchema)(r,n);return{location:e,schema:i}}else if(typeof r=="string")return{location:e,rawSDL:r};throw new Error("Not valid JSON content")}});var vO=w($i=>{"use strict";m();T();N();Object.defineProperty($i,"__esModule",{value:!0});$i.resetComments=Ste;$i.collectComment=Dte;$i.pushComment=Gf;$i.printComment=dk;$i.printWithComments=Pte;$i.getDescription=wte;$i.getComment=_O;$i.getLeadingCommentBlock=fk;$i.dedentBlockStringValue=pk;$i.getBlockStringIndentation=mk;var lk=Oe(),Ote=80,jl={};function Ste(){jl={}}function Dte(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(Gf(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)Gf(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(Gf(r,t,r.name.value),Fte(r)&&r.arguments)for(let i of r.arguments)Gf(i,t,r.name.value,i.name.value)}break}}function Gf(e,t,n,r){let i=_O(e);if(typeof i!="string"||i.length===0)return;let a=[t];n&&(a.push(n),r&&a.push(r));let o=a.join(".");jl[o]||(jl[o]=[]),jl[o].push(i)}function dk(e){return` +`))}return K(x({},e),{value:t,block:!0})}function vB(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function Th(e){let t=e.selections;return K(x({},e),{selections:t.sort((n,r)=>{var s,a,u,l;return Gn.NAME in n?Gn.NAME in r?n.name.value.localeCompare(r.name.value):-1:Gn.NAME in r?1:((a=(s=n.typeCondition)==null?void 0:s.name.value)!=null?a:"").localeCompare((l=(u=r.typeCondition)==null?void 0:u.name.value)!=null?l:"")}).map(n=>{switch(n.kind){case Yt.Kind.FIELD:return K(x({},n),{arguments:vB(n),selectionSet:n.selectionSet?Th(n.selectionSet):n.selectionSet});case Yt.Kind.FRAGMENT_SPREAD:return n;case Yt.Kind.INLINE_FRAGMENT:return K(x({},n),{selectionSet:Th(n.selectionSet)})}})})}function W8(e){return K(x({},e),{definitions:e.definitions.map(t=>t.kind!==Yt.Kind.OPERATION_DEFINITION?t:K(x({},t),{selectionSet:Th(t.selectionSet)}))})}function SB(e,t=!0){return(0,Yt.parse)(e,{noLocation:t})}function X8(e,t=!0){try{return{documentNode:SB(e,t)}}catch(n){return{error:n}}}});var Dl=C(sD=>{"use strict";p();N();m();Object.defineProperty(sD,"__esModule",{value:!0});sD.devAssert=Z8;function Z8(e,t){if(!!!e)throw new Error(t)}});var _c=C(aD=>{"use strict";p();N();m();Object.defineProperty(aD,"__esModule",{value:!0});aD.isObjectLike=eX;function eX(e){return typeof e=="object"&&e!==null}});var So=C(oD=>{"use strict";p();N();m();Object.defineProperty(oD,"__esModule",{value:!0});oD.invariant=tX;function tX(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var cD=C(uD=>{"use strict";p();N();m();Object.defineProperty(uD,"__esModule",{value:!0});uD.getLocation=iX;var nX=So(),rX=/\r\n|[\n\r]/g;function iX(e,t){let n=0,r=1;for(let i of e.body.matchAll(rX)){if(typeof i.index=="number"||(0,nX.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var bB=C(hh=>{"use strict";p();N();m();Object.defineProperty(hh,"__esModule",{value:!0});hh.printLocation=aX;hh.printSourceLocation=OB;var sX=cD();function aX(e){return OB(e.source,(0,sX.getLocation)(e.source,e.start))}function OB(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,l=t.column+u,d=`${e.name}:${a}:${l} +`,f=r.split(/\r\n|[\n\r]/g),E=f[i];if(E.length>120){let h=Math.floor(l/80),_=l%80,A=[];for(let U=0;U["|",U]),["|","^".padStart(_)],["|",A[h+1]]])}return d+DB([[`${a-1} |`,f[i-1]],[`${a} |`,E],["|","^".padStart(l)],[`${a+1} |`,f[i+1]]])}function DB(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` +`)}});var gt=C(uf=>{"use strict";p();N();m();Object.defineProperty(uf,"__esModule",{value:!0});uf.GraphQLError=void 0;uf.formatError=lX;uf.printError=cX;var oX=_c(),AB=cD(),RB=bB();function uX(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var lD=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:a,source:u,positions:l,path:d,originalError:f,extensions:E}=uX(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=f!=null?f:void 0,this.nodes=FB(Array.isArray(a)?a:a?[a]:void 0);let h=FB((r=this.nodes)===null||r===void 0?void 0:r.map(A=>A.loc).filter(A=>A!=null));this.source=u!=null?u:h==null||(i=h[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:h==null?void 0:h.map(A=>A.start),this.locations=l&&u?l.map(A=>(0,AB.getLocation)(u,A)):h==null?void 0:h.map(A=>(0,AB.getLocation)(A.source,A.start));let _=(0,oX.isObjectLike)(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(s=E!=null?E:_)!==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}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` + +`+(0,RB.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` + +`+(0,RB.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};uf.GraphQLError=lD;function FB(e){return e===void 0||e.length===0?void 0:e}function cX(e){return e.toString()}function lX(e){return e.toJSON()}});var ar=C(dD=>{"use strict";p();N();m();Object.defineProperty(dD,"__esModule",{value:!0});dD.inspect=fX;var dX=10,wB=2;function fX(e){return yh(e,[])}function yh(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return pX(e,t);default:return String(e)}}function pX(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(mX(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:yh(r,n)}else if(Array.isArray(e))return TX(e,n);return NX(e,n)}function mX(e){return typeof e.toJSON=="function"}function NX(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>wB?"["+EX(e)+"]":"{ "+n.map(([i,s])=>i+": "+yh(s,t)).join(", ")+" }"}function TX(e,t){if(e.length===0)return"[]";if(t.length>wB)return"[Array]";let n=Math.min(dX,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function EX(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}});var cf=C(vs=>{"use strict";p();N();m();Object.defineProperty(vs,"__esModule",{value:!0});vs.Token=vs.QueryDocumentKeys=vs.OperationTypeNode=vs.Location=void 0;vs.isNode=yX;var fD=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};vs.Location=fD;var pD=class{constructor(t,n,r,i,s,a){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=a,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}}};vs.Token=pD;var LB={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};vs.QueryDocumentKeys=LB;var hX=new Set(Object.keys(LB));function yX(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&hX.has(t)}var mD;vs.OperationTypeNode=mD;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(mD||(vs.OperationTypeNode=mD={}))});var Fn=C(Wm=>{"use strict";p();N();m();Object.defineProperty(Wm,"__esModule",{value:!0});Wm.Kind=void 0;var ND;Wm.Kind=ND;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(ND||(Wm.Kind=ND={}))});var Xm=C(vc=>{"use strict";p();N();m();Object.defineProperty(vc,"__esModule",{value:!0});vc.BREAK=void 0;vc.getEnterLeaveForKind=Ih;vc.getVisitFn=SX;vc.visit=_X;vc.visitInParallel=vX;var IX=Dl(),gX=ar(),TD=cf(),PB=Fn(),lf=Object.freeze({});vc.BREAK=lf;function _X(e,t,n=TD.QueryDocumentKeys){let r=new Map;for(let j of Object.values(PB.Kind))r.set(j,Ih(t,j));let i,s=Array.isArray(e),a=[e],u=-1,l=[],d=e,f,E,h=[],_=[];do{u++;let j=u===a.length,re=j&&l.length!==0;if(j){if(f=_.length===0?void 0:h[h.length-1],d=E,E=_.pop(),re)if(s){d=d.slice();let me=0;for(let[ce,be]of l){let xe=ce-me;be===null?(d.splice(xe,1),me++):d[xe]=be}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[me,ce]of l)d[me]=ce}u=i.index,a=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(E){if(f=s?u:a[u],d=E[f],d==null)continue;h.push(f)}let ee;if(!Array.isArray(d)){var A,U;(0,TD.isNode)(d)||(0,IX.devAssert)(!1,`Invalid AST Node: ${(0,gX.inspect)(d)}.`);let me=j?(A=r.get(d.kind))===null||A===void 0?void 0:A.leave:(U=r.get(d.kind))===null||U===void 0?void 0:U.enter;if(ee=me==null?void 0:me.call(t,d,f,E,h,_),ee===lf)break;if(ee===!1){if(!j){h.pop();continue}}else if(ee!==void 0&&(l.push([f,ee]),!j))if((0,TD.isNode)(ee))d=ee;else{h.pop();continue}}if(ee===void 0&&re&&l.push([f,d]),j)h.pop();else{var q;i={inArray:s,index:u,keys:a,edits:l,prev:i},s=Array.isArray(d),a=s?d:(q=n[d.kind])!==null&&q!==void 0?q:[],u=-1,l=[],E&&_.push(E),E=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function vX(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(PB.Kind)){let i=!1,s=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";p();N();m();Object.defineProperty(ED,"__esModule",{value:!0});ED.didYouMean=OX;var DX=5;function OX(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(l=>`"${l}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let a=s.slice(0,DX),u=a.pop();return i+a.join(", ")+", or "+u+"?"}});var CB=C(hD=>{"use strict";p();N();m();Object.defineProperty(hD,"__esModule",{value:!0});hD.identityFunc=bX;function bX(e){return e}});var _h=C(gh=>{"use strict";p();N();m();Object.defineProperty(gh,"__esModule",{value:!0});gh.instanceOf=void 0;var AX=ar(),RX=globalThis.process&&S.env.NODE_ENV==="production",FX=RX?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let a=(0,AX.inspect)(t);throw new Error(`Cannot use ${i} "${a}" from another module or realm. + +Ensure that there is only one instance of "graphql" in the node_modules +directory. If different versions of "graphql" are the dependencies of other +relied on modules, use "resolutions" to ensure only one version is installed. + +https://yarnpkg.com/en/docs/selective-version-resolutions + +Duplicate "graphql" modules cannot be used at the same time since different +versions may have different capabilities and behavior. The data from one +version used in the function from another could produce confusing and +spurious results.`)}}return!1};gh.instanceOf=FX});var df=C(yD=>{"use strict";p();N();m();Object.defineProperty(yD,"__esModule",{value:!0});yD.keyMap=wX;function wX(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var gD=C(ID=>{"use strict";p();N();m();Object.defineProperty(ID,"__esModule",{value:!0});ID.keyValMap=LX;function LX(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var UB=C(_D=>{"use strict";p();N();m();Object.defineProperty(_D,"__esModule",{value:!0});_D.mapValue=PX;function PX(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var Sh=C(SD=>{"use strict";p();N();m();Object.defineProperty(SD,"__esModule",{value:!0});SD.naturalCompare=CX;function CX(e,t){let n=0,r=0;for(;n0);let u=0;do++r,u=u*10+s-vD,s=t.charCodeAt(r);while(vh(s)&&u>0);if(au)return 1}else{if(is)return 1;++n,++r}}return e.length-t.length}var vD=48,UX=57;function vh(e){return!isNaN(e)&&vD<=e&&e<=UX}});var Dc=C(OD=>{"use strict";p();N();m();Object.defineProperty(OD,"__esModule",{value:!0});OD.suggestionList=kX;var BX=Sh();function kX(e,t){let n=Object.create(null),r=new DD(e),i=Math.floor(e.length*.4)+1;for(let s of t){let a=r.measure(s,i);a!==void 0&&(n[s]=a)}return Object.keys(n).sort((s,a)=>{let u=n[s]-n[a];return u!==0?u:(0,BX.naturalCompare)(s,a)})}var DD=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=BB(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=BB(r),s=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let f=0;f<=u;f++)l[0][f]=f;for(let f=1;f<=a;f++){let E=l[(f-1)%3],h=l[f%3],_=h[0]=f;for(let A=1;A<=u;A++){let U=i[f-1]===s[A-1]?0:1,q=Math.min(E[A]+1,h[A-1]+1,E[A-1]+U);if(f>1&&A>1&&i[f-1]===s[A-2]&&i[f-2]===s[A-1]){let j=l[(f-2)%3][A-2];q=Math.min(q,j+1)}q<_&&(_=q),h[A]=q}if(_>n)return}let d=l[a%3][u];return d<=n?d:void 0}};function BB(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";p();N();m();Object.defineProperty(bD,"__esModule",{value:!0});bD.toObjMap=xX;function xX(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}});var RD=C(Ol=>{"use strict";p();N();m();Object.defineProperty(Ol,"__esModule",{value:!0});Ol.isDigit=kB;Ol.isLetter=AD;Ol.isNameContinue=qX;Ol.isNameStart=VX;Ol.isWhiteSpace=MX;function MX(e){return e===9||e===32}function kB(e){return e>=48&&e<=57}function AD(e){return e>=97&&e<=122||e>=65&&e<=90}function VX(e){return AD(e)||e===95}function qX(e){return AD(e)||kB(e)||e===95}});var xB=C(Zm=>{"use strict";p();N();m();Object.defineProperty(Zm,"__esModule",{value:!0});Zm.dedentBlockStringLines=$X;Zm.isPrintableAsBlockString=KX;Zm.printBlockString=GX;var FD=RD();function $X(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;au===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function jX(e){let t=0;for(;t1&&r.slice(1).every(_=>_.length===0||(0,FD.isWhiteSpace)(_.charCodeAt(0))),a=n.endsWith('\\"""'),u=e.endsWith('"')&&!a,l=e.endsWith("\\"),d=u||l,f=!(t!=null&&t.minimize)&&(!i||e.length>70||d||s||a),E="",h=i&&(0,FD.isWhiteSpace)(e.charCodeAt(0));return(f&&!h||s)&&(E+=` +`),E+=n,(f||d)&&(E+=` +`),'"""'+E+'"""'}});var MB=C(wD=>{"use strict";p();N();m();Object.defineProperty(wD,"__esModule",{value:!0});wD.printString=QX;function QX(e){return`"${e.replace(YX,JX)}"`}var YX=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function JX(e){return HX[e.charCodeAt(0)]}var HX=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var Ua=C(LD=>{"use strict";p();N();m();Object.defineProperty(LD,"__esModule",{value:!0});LD.print=ZX;var zX=xB(),WX=MB(),XX=Xm();function ZX(e){return(0,XX.visit)(e,t5)}var e5=80,t5={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ge(e.definitions,` + +`)},OperationDefinition:{leave(e){let t=xt("(",Ge(e.variableDefinitions,", "),")"),n=Ge([e.operation,Ge([e.name,t]),Ge(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+xt(" = ",n)+xt(" ",Ge(r," "))},SelectionSet:{leave:({selections:e})=>ea(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=xt("",e,": ")+t,a=s+xt("(",Ge(n,", "),")");return a.length>e5&&(a=s+xt(`( +`,Oh(Ge(n,` +`)),` +)`)),Ge([a,Ge(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+xt(" ",Ge(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ge(["...",xt("on ",e),Ge(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${xt("(",Ge(n,", "),")")} on ${t} ${xt("",Ge(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,zX.printBlockString)(e):(0,WX.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ge(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ge(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+xt("(",Ge(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>xt("",e,` +`)+Ge(["schema",Ge(t," "),ea(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>xt("",e,` +`)+Ge(["scalar",t,Ge(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>xt("",e,` +`)+Ge(["type",t,xt("implements ",Ge(n," & ")),Ge(r," "),ea(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>xt("",e,` +`)+t+(VB(n)?xt(`( +`,Oh(Ge(n,` +`)),` +)`):xt("(",Ge(n,", "),")"))+": "+r+xt(" ",Ge(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>xt("",e,` +`)+Ge([t+": "+n,xt("= ",r),Ge(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>xt("",e,` +`)+Ge(["interface",t,xt("implements ",Ge(n," & ")),Ge(r," "),ea(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>xt("",e,` +`)+Ge(["union",t,Ge(n," "),xt("= ",Ge(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>xt("",e,` +`)+Ge(["enum",t,Ge(n," "),ea(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>xt("",e,` +`)+Ge([t,Ge(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>xt("",e,` +`)+Ge(["input",t,Ge(n," "),ea(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>xt("",e,` +`)+"directive @"+t+(VB(n)?xt(`( +`,Oh(Ge(n,` +`)),` +)`):xt("(",Ge(n,", "),")"))+(r?" repeatable":"")+" on "+Ge(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ge(["extend schema",Ge(e," "),ea(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ge(["extend scalar",e,Ge(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ge(["extend type",e,xt("implements ",Ge(t," & ")),Ge(n," "),ea(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ge(["extend interface",e,xt("implements ",Ge(t," & ")),Ge(n," "),ea(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ge(["extend union",e,Ge(t," "),xt("= ",Ge(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ge(["extend enum",e,Ge(t," "),ea(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ge(["extend input",e,Ge(t," "),ea(n)]," ")}};function Ge(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function ea(e){return xt(`{ +`,Oh(Ge(e,` +`)),` +}`)}function xt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Oh(e){return xt(" ",e.replace(/\n/g,` + `))}function VB(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` +`)))!==null&&t!==void 0?t:!1}});var qB=C(CD=>{"use strict";p();N();m();Object.defineProperty(CD,"__esModule",{value:!0});CD.valueFromASTUntyped=PD;var n5=gD(),Do=Fn();function PD(e,t){switch(e.kind){case Do.Kind.NULL:return null;case Do.Kind.INT:return parseInt(e.value,10);case Do.Kind.FLOAT:return parseFloat(e.value);case Do.Kind.STRING:case Do.Kind.ENUM:case Do.Kind.BOOLEAN:return e.value;case Do.Kind.LIST:return e.values.map(n=>PD(n,t));case Do.Kind.OBJECT:return(0,n5.keyValMap)(e.fields,n=>n.name.value,n=>PD(n.value,t));case Do.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var UD=C(Ah=>{"use strict";p();N();m();Object.defineProperty(Ah,"__esModule",{value:!0});Ah.assertEnumValueName=r5;Ah.assertName=KB;var $B=Dl(),bh=gt(),jB=RD();function KB(e){if(e!=null||(0,$B.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,$B.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new bh.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";p();N();m();Object.defineProperty(We,"__esModule",{value:!0});We.GraphQLUnionType=We.GraphQLScalarType=We.GraphQLObjectType=We.GraphQLNonNull=We.GraphQLList=We.GraphQLInterfaceType=We.GraphQLInputObjectType=We.GraphQLEnumType=void 0;We.argsToArgsConfig=rk;We.assertAbstractType=v5;We.assertCompositeType=_5;We.assertEnumType=N5;We.assertInputObjectType=T5;We.assertInputType=y5;We.assertInterfaceType=p5;We.assertLeafType=g5;We.assertListType=E5;We.assertNamedType=b5;We.assertNonNullType=h5;We.assertNullableType=D5;We.assertObjectType=f5;We.assertOutputType=I5;We.assertScalarType=d5;We.assertType=l5;We.assertUnionType=m5;We.assertWrappingType=S5;We.defineArguments=tk;We.getNamedType=A5;We.getNullableType=O5;We.isAbstractType=WB;We.isCompositeType=zB;We.isEnumType=Fl;We.isInputObjectType=tN;We.isInputType=BD;We.isInterfaceType=Al;We.isLeafType=HB;We.isListType=Vh;We.isNamedType=XB;We.isNonNullType=bc;We.isNullableType=xD;We.isObjectType=pf;We.isOutputType=kD;We.isRequiredArgument=R5;We.isRequiredInputField=L5;We.isScalarType=bl;We.isType=Mh;We.isUnionType=Rl;We.isWrappingType=nN;We.resolveObjMapThunk=VD;We.resolveReadonlyArrayThunk=MD;var xr=Dl(),i5=Sc(),GB=CB(),vn=ar(),Oc=_h(),s5=_c(),a5=df(),JB=gD(),xh=UB(),o5=Dc(),Ba=Dh(),eN=gt(),u5=Fn(),QB=Ua(),c5=qB(),ka=UD();function Mh(e){return bl(e)||pf(e)||Al(e)||Rl(e)||Fl(e)||tN(e)||Vh(e)||bc(e)}function l5(e){if(!Mh(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL type.`);return e}function bl(e){return(0,Oc.instanceOf)(e,Lh)}function d5(e){if(!bl(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL Scalar type.`);return e}function pf(e){return(0,Oc.instanceOf)(e,Ph)}function f5(e){if(!pf(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL Object type.`);return e}function Al(e){return(0,Oc.instanceOf)(e,Ch)}function p5(e){if(!Al(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL Interface type.`);return e}function Rl(e){return(0,Oc.instanceOf)(e,Uh)}function m5(e){if(!Rl(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL Union type.`);return e}function Fl(e){return(0,Oc.instanceOf)(e,Bh)}function N5(e){if(!Fl(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL Enum type.`);return e}function tN(e){return(0,Oc.instanceOf)(e,kh)}function T5(e){if(!tN(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL Input Object type.`);return e}function Vh(e){return(0,Oc.instanceOf)(e,Fh)}function E5(e){if(!Vh(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL List type.`);return e}function bc(e){return(0,Oc.instanceOf)(e,wh)}function h5(e){if(!bc(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function BD(e){return bl(e)||Fl(e)||tN(e)||nN(e)&&BD(e.ofType)}function y5(e){if(!BD(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL input type.`);return e}function kD(e){return bl(e)||pf(e)||Al(e)||Rl(e)||Fl(e)||nN(e)&&kD(e.ofType)}function I5(e){if(!kD(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL output type.`);return e}function HB(e){return bl(e)||Fl(e)}function g5(e){if(!HB(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL leaf type.`);return e}function zB(e){return pf(e)||Al(e)||Rl(e)}function _5(e){if(!zB(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL composite type.`);return e}function WB(e){return Al(e)||Rl(e)}function v5(e){if(!WB(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL abstract type.`);return e}var Fh=class{constructor(t){Mh(t)||(0,xr.devAssert)(!1,`Expected ${(0,vn.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};We.GraphQLList=Fh;var wh=class{constructor(t){xD(t)||(0,xr.devAssert)(!1,`Expected ${(0,vn.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};We.GraphQLNonNull=wh;function nN(e){return Vh(e)||bc(e)}function S5(e){if(!nN(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL wrapping type.`);return e}function xD(e){return Mh(e)&&!bc(e)}function D5(e){if(!xD(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL nullable type.`);return e}function O5(e){if(e)return bc(e)?e.ofType:e}function XB(e){return bl(e)||pf(e)||Al(e)||Rl(e)||Fl(e)||tN(e)}function b5(e){if(!XB(e))throw new Error(`Expected ${(0,vn.inspect)(e)} to be a GraphQL named type.`);return e}function A5(e){if(e){let t=e;for(;nN(t);)t=t.ofType;return t}}function MD(e){return typeof e=="function"?e():e}function VD(e){return typeof e=="function"?e():e}var Lh=class{constructor(t){var n,r,i,s;let a=(n=t.parseValue)!==null&&n!==void 0?n:GB.identityFunc;this.name=(0,ka.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:GB.identityFunc,this.parseValue=a,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>a((0,c5.valueFromASTUntyped)(u,l)),this.extensions=(0,Ba.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,xr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,vn.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,xr.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,xr.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLScalarType=Lh;var Ph=class{constructor(t){var n;this.name=(0,ka.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Ba.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>ek(t),this._interfaces=()=>ZB(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,xr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,vn.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:nk(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLObjectType=Ph;function ZB(e){var t;let n=MD((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,xr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function ek(e){let t=VD(e.fields);return ff(t)||(0,xr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,xh.mapValue)(t,(n,r)=>{var i;ff(n)||(0,xr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,xr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,vn.inspect)(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return ff(s)||(0,xr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,ka.assertName)(r),description:n.description,type:n.type,args:tk(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Ba.toObjMap)(n.extensions),astNode:n.astNode}})}function tk(e){return Object.entries(e).map(([t,n])=>({name:(0,ka.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Ba.toObjMap)(n.extensions),astNode:n.astNode}))}function ff(e){return(0,s5.isObjectLike)(e)&&!Array.isArray(e)}function nk(e){return(0,xh.mapValue)(e,t=>({description:t.description,type:t.type,args:rk(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function rk(e){return(0,JB.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function R5(e){return bc(e.type)&&e.defaultValue===void 0}var Ch=class{constructor(t){var n;this.name=(0,ka.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Ba.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=ek.bind(void 0,t),this._interfaces=ZB.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,xr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,vn.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:nk(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLInterfaceType=Ch;var Uh=class{constructor(t){var n;this.name=(0,ka.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Ba.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=F5.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,xr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,vn.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLUnionType=Uh;function F5(e){let t=MD(e.types);return Array.isArray(t)||(0,xr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var Bh=class{constructor(t){var n;this.name=(0,ka.assertName)(t.name),this.description=t.description,this.extensions=(0,Ba.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:YB(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=YB(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,a5.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new eN.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,vn.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,vn.inspect)(t);throw new eN.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Rh(this,r))}let n=this.getValue(t);if(n==null)throw new eN.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+Rh(this,t));return n.value}parseLiteral(t,n){if(t.kind!==u5.Kind.ENUM){let i=(0,QB.print)(t);throw new eN.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Rh(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,QB.print)(t);throw new eN.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+Rh(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,JB.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLEnumType=Bh;function Rh(e,t){let n=e.getValues().map(i=>i.name),r=(0,o5.suggestionList)(t,n);return(0,i5.didYouMean)("the enum value",r)}function YB(e,t){return ff(t)||(0,xr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(ff(r)||(0,xr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,vn.inspect)(r)}.`),{name:(0,ka.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,Ba.toObjMap)(r.extensions),astNode:r.astNode}))}var kh=class{constructor(t){var n,r;this.name=(0,ka.assertName)(t.name),this.description=t.description,this.extensions=(0,Ba.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=w5.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,xh.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLInputObjectType=kh;function w5(e){let t=VD(e.fields);return ff(t)||(0,xr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,xh.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,xr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,ka.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Ba.toObjMap)(n.extensions),astNode:n.astNode}))}function L5(e){return bc(e.type)&&e.defaultValue===void 0}});var $h=C(rN=>{"use strict";p();N();m();Object.defineProperty(rN,"__esModule",{value:!0});rN.doTypesOverlap=P5;rN.isEqualType=qD;rN.isTypeSubTypeOf=qh;var ci=wn();function qD(e,t){return e===t?!0:(0,ci.isNonNullType)(e)&&(0,ci.isNonNullType)(t)||(0,ci.isListType)(e)&&(0,ci.isListType)(t)?qD(e.ofType,t.ofType):!1}function qh(e,t,n){return t===n?!0:(0,ci.isNonNullType)(n)?(0,ci.isNonNullType)(t)?qh(e,t.ofType,n.ofType):!1:(0,ci.isNonNullType)(t)?qh(e,t.ofType,n):(0,ci.isListType)(n)?(0,ci.isListType)(t)?qh(e,t.ofType,n.ofType):!1:(0,ci.isListType)(t)?!1:(0,ci.isAbstractType)(n)&&((0,ci.isInterfaceType)(t)||(0,ci.isObjectType)(t))&&e.isSubType(n,t)}function P5(e,t,n){return t===n?!0:(0,ci.isAbstractType)(t)?(0,ci.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,ci.isAbstractType)(n)?e.isSubType(n,t):!1}});var jh=C(iN=>{"use strict";p();N();m();Object.defineProperty(iN,"__esModule",{value:!0});iN.DirectiveLocation=void 0;var $D;iN.DirectiveLocation=$D;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})($D||(iN.DirectiveLocation=$D={}))});var uN=C(Or=>{"use strict";p();N();m();Object.defineProperty(Or,"__esModule",{value:!0});Or.GraphQLString=Or.GraphQLInt=Or.GraphQLID=Or.GraphQLFloat=Or.GraphQLBoolean=Or.GRAPHQL_MIN_INT=Or.GRAPHQL_MAX_INT=void 0;Or.isSpecifiedScalarType=C5;Or.specifiedScalarTypes=void 0;var ta=ar(),ik=_c(),Mr=gt(),wl=Fn(),sN=Ua(),aN=wn(),Kh=2147483647;Or.GRAPHQL_MAX_INT=Kh;var Gh=-2147483648;Or.GRAPHQL_MIN_INT=Gh;var sk=new aN.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=oN(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new Mr.GraphQLError(`Int cannot represent non-integer value: ${(0,ta.inspect)(t)}`);if(n>Kh||nKh||eKh||te.name===t)}function oN(e){if((0,ik.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,ik.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Ac=C(or=>{"use strict";p();N();m();Object.defineProperty(or,"__esModule",{value:!0});or.GraphQLSpecifiedByDirective=or.GraphQLSkipDirective=or.GraphQLOneOfDirective=or.GraphQLIncludeDirective=or.GraphQLDirective=or.GraphQLDeprecatedDirective=or.DEFAULT_DEPRECATION_REASON=void 0;or.assertDirective=V5;or.isDirective=fk;or.isSpecifiedDirective=q5;or.specifiedDirectives=void 0;var dk=Dl(),U5=ar(),B5=_h(),k5=_c(),x5=Dh(),Ss=jh(),M5=UD(),cN=wn(),Qh=uN();function fk(e){return(0,B5.instanceOf)(e,Oo)}function V5(e){if(!fk(e))throw new Error(`Expected ${(0,U5.inspect)(e)} to be a GraphQL directive.`);return e}var Oo=class{constructor(t){var n,r;this.name=(0,M5.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,x5.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,dk.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,k5.isObjectLike)(i)&&!Array.isArray(i)||(0,dk.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,cN.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,cN.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};or.GraphQLDirective=Oo;var pk=new Oo({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ss.DirectiveLocation.FIELD,Ss.DirectiveLocation.FRAGMENT_SPREAD,Ss.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new cN.GraphQLNonNull(Qh.GraphQLBoolean),description:"Included when true."}}});or.GraphQLIncludeDirective=pk;var mk=new Oo({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ss.DirectiveLocation.FIELD,Ss.DirectiveLocation.FRAGMENT_SPREAD,Ss.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new cN.GraphQLNonNull(Qh.GraphQLBoolean),description:"Skipped when true."}}});or.GraphQLSkipDirective=mk;var Nk="No longer supported";or.DEFAULT_DEPRECATION_REASON=Nk;var Tk=new Oo({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ss.DirectiveLocation.FIELD_DEFINITION,Ss.DirectiveLocation.ARGUMENT_DEFINITION,Ss.DirectiveLocation.INPUT_FIELD_DEFINITION,Ss.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Qh.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Nk}}});or.GraphQLDeprecatedDirective=Tk;var Ek=new Oo({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ss.DirectiveLocation.SCALAR],args:{url:{type:new cN.GraphQLNonNull(Qh.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});or.GraphQLSpecifiedByDirective=Ek;var hk=new Oo({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ss.DirectiveLocation.INPUT_OBJECT],args:{}});or.GraphQLOneOfDirective=hk;var yk=Object.freeze([pk,mk,Tk,Ek,hk]);or.specifiedDirectives=yk;function q5(e){return yk.some(({name:t})=>t===e.name)}});var KD=C(jD=>{"use strict";p();N();m();Object.defineProperty(jD,"__esModule",{value:!0});jD.isIterableObject=$5;function $5(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var _k=C(GD=>{"use strict";p();N();m();Object.defineProperty(GD,"__esModule",{value:!0});GD.astFromValue=dN;var Ik=ar(),j5=So(),K5=KD(),G5=_c(),Ds=Fn(),lN=wn(),Q5=uN();function dN(e,t){if((0,lN.isNonNullType)(t)){let n=dN(e,t.ofType);return(n==null?void 0:n.kind)===Ds.Kind.NULL?null:n}if(e===null)return{kind:Ds.Kind.NULL};if(e===void 0)return null;if((0,lN.isListType)(t)){let n=t.ofType;if((0,K5.isIterableObject)(e)){let r=[];for(let i of e){let s=dN(i,n);s!=null&&r.push(s)}return{kind:Ds.Kind.LIST,values:r}}return dN(e,n)}if((0,lN.isInputObjectType)(t)){if(!(0,G5.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=dN(e[r.name],r.type);i&&n.push({kind:Ds.Kind.OBJECT_FIELD,name:{kind:Ds.Kind.NAME,value:r.name},value:i})}return{kind:Ds.Kind.OBJECT,fields:n}}if((0,lN.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Ds.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return gk.test(r)?{kind:Ds.Kind.INT,value:r}:{kind:Ds.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,lN.isEnumType)(t)?{kind:Ds.Kind.ENUM,value:n}:t===Q5.GraphQLID&&gk.test(n)?{kind:Ds.Kind.INT,value:n}:{kind:Ds.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,Ik.inspect)(n)}.`)}(0,j5.invariant)(!1,"Unexpected input type: "+(0,Ik.inspect)(t))}var gk=/^-?(?:0|[1-9][0-9]*)$/});var pN=C(on=>{"use strict";p();N();m();Object.defineProperty(on,"__esModule",{value:!0});on.introspectionTypes=on.__TypeKind=on.__Type=on.__Schema=on.__InputValue=on.__Field=on.__EnumValue=on.__DirectiveLocation=on.__Directive=on.TypeNameMetaFieldDef=on.TypeMetaFieldDef=on.TypeKind=on.SchemaMetaFieldDef=void 0;on.isIntrospectionType=e9;var Y5=ar(),J5=So(),br=jh(),H5=Ua(),z5=_k(),Ve=wn(),hn=uN(),QD=new Ve.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:hn.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Ve.GraphQLNonNull(new Ve.GraphQLList(new Ve.GraphQLNonNull(Os))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ve.GraphQLNonNull(Os),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Os,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Os,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ve.GraphQLNonNull(new Ve.GraphQLList(new Ve.GraphQLNonNull(YD))),resolve:e=>e.getDirectives()}})});on.__Schema=QD;var YD=new Ve.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. + +In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new Ve.GraphQLNonNull(hn.GraphQLString),resolve:e=>e.name},description:{type:hn.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new Ve.GraphQLNonNull(hn.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new Ve.GraphQLNonNull(new Ve.GraphQLList(new Ve.GraphQLNonNull(JD))),resolve:e=>e.locations},args:{type:new Ve.GraphQLNonNull(new Ve.GraphQLList(new Ve.GraphQLNonNull(fN))),args:{includeDeprecated:{type:hn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});on.__Directive=YD;var JD=new Ve.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:br.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:br.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:br.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:br.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:br.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:br.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:br.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:br.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:br.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:br.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:br.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:br.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:br.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:br.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:br.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:br.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:br.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:br.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:br.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});on.__DirectiveLocation=JD;var Os=new Ve.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Ve.GraphQLNonNull(WD),resolve(e){if((0,Ve.isScalarType)(e))return Ar.SCALAR;if((0,Ve.isObjectType)(e))return Ar.OBJECT;if((0,Ve.isInterfaceType)(e))return Ar.INTERFACE;if((0,Ve.isUnionType)(e))return Ar.UNION;if((0,Ve.isEnumType)(e))return Ar.ENUM;if((0,Ve.isInputObjectType)(e))return Ar.INPUT_OBJECT;if((0,Ve.isListType)(e))return Ar.LIST;if((0,Ve.isNonNullType)(e))return Ar.NON_NULL;(0,J5.invariant)(!1,`Unexpected type: "${(0,Y5.inspect)(e)}".`)}},name:{type:hn.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:hn.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:hn.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ve.GraphQLList(new Ve.GraphQLNonNull(HD)),args:{includeDeprecated:{type:hn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ve.isObjectType)(e)||(0,Ve.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Ve.GraphQLList(new Ve.GraphQLNonNull(Os)),resolve(e){if((0,Ve.isObjectType)(e)||(0,Ve.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new Ve.GraphQLList(new Ve.GraphQLNonNull(Os)),resolve(e,t,n,{schema:r}){if((0,Ve.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new Ve.GraphQLList(new Ve.GraphQLNonNull(zD)),args:{includeDeprecated:{type:hn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ve.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Ve.GraphQLList(new Ve.GraphQLNonNull(fN)),args:{includeDeprecated:{type:hn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ve.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Os,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:hn.GraphQLBoolean,resolve:e=>{if((0,Ve.isInputObjectType)(e))return e.isOneOf}}})});on.__Type=Os;var HD=new Ve.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Ve.GraphQLNonNull(hn.GraphQLString),resolve:e=>e.name},description:{type:hn.GraphQLString,resolve:e=>e.description},args:{type:new Ve.GraphQLNonNull(new Ve.GraphQLList(new Ve.GraphQLNonNull(fN))),args:{includeDeprecated:{type:hn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new Ve.GraphQLNonNull(Os),resolve:e=>e.type},isDeprecated:{type:new Ve.GraphQLNonNull(hn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:hn.GraphQLString,resolve:e=>e.deprecationReason}})});on.__Field=HD;var fN=new Ve.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Ve.GraphQLNonNull(hn.GraphQLString),resolve:e=>e.name},description:{type:hn.GraphQLString,resolve:e=>e.description},type:{type:new Ve.GraphQLNonNull(Os),resolve:e=>e.type},defaultValue:{type:hn.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,z5.astFromValue)(n,t);return r?(0,H5.print)(r):null}},isDeprecated:{type:new Ve.GraphQLNonNull(hn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:hn.GraphQLString,resolve:e=>e.deprecationReason}})});on.__InputValue=fN;var zD=new Ve.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Ve.GraphQLNonNull(hn.GraphQLString),resolve:e=>e.name},description:{type:hn.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new Ve.GraphQLNonNull(hn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:hn.GraphQLString,resolve:e=>e.deprecationReason}})});on.__EnumValue=zD;var Ar;on.TypeKind=Ar;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Ar||(on.TypeKind=Ar={}));var WD=new Ve.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Ar.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Ar.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Ar.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Ar.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Ar.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Ar.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Ar.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Ar.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});on.__TypeKind=WD;var W5={name:"__schema",type:new Ve.GraphQLNonNull(QD),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};on.SchemaMetaFieldDef=W5;var X5={name:"__type",type:Os,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ve.GraphQLNonNull(hn.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};on.TypeMetaFieldDef=X5;var Z5={name:"__typename",type:new Ve.GraphQLNonNull(hn.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};on.TypeNameMetaFieldDef=Z5;var vk=Object.freeze([QD,YD,JD,Os,HD,fN,zD,WD]);on.introspectionTypes=vk;function e9(e){return vk.some(({name:t})=>e.name===t)}});var Ok=C(mf=>{"use strict";p();N();m();Object.defineProperty(mf,"__esModule",{value:!0});mf.GraphQLSchema=void 0;mf.assertSchema=s9;mf.isSchema=Dk;var Yh=Dl(),ZD=ar(),t9=_h(),n9=_c(),r9=Dh(),XD=cf(),na=wn(),Sk=Ac(),i9=pN();function Dk(e){return(0,t9.instanceOf)(e,Jh)}function s9(e){if(!Dk(e))throw new Error(`Expected ${(0,ZD.inspect)(e)} to be a GraphQL schema.`);return e}var Jh=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,n9.isObjectLike)(t)||(0,Yh.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,Yh.devAssert)(!1,`"types" must be Array if provided but got: ${(0,ZD.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,Yh.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,ZD.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,r9.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:Sk.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),ra(s,i);this._queryType!=null&&ra(this._queryType,i),this._mutationType!=null&&ra(this._mutationType,i),this._subscriptionType!=null&&ra(this._subscriptionType,i);for(let s of this._directives)if((0,Sk.isDirective)(s))for(let a of s.args)ra(a.type,i);ra(i9.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let a=s.name;if(a||(0,Yh.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[a]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${a}".`);if(this._typeMap[a]=s,(0,na.isInterfaceType)(s)){for(let u of s.getInterfaces())if((0,na.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(s)}}else if((0,na.isObjectType)(s)){for(let u of s.getInterfaces())if((0,na.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case XD.OperationTypeNode.QUERY:return this.getQueryType();case XD.OperationTypeNode.MUTATION:return this.getMutationType();case XD.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,na.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),(0,na.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};mf.GraphQLSchema=Jh;function ra(e,t){let n=(0,na.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,na.isUnionType)(n))for(let r of n.getTypes())ra(r,t);else if((0,na.isObjectType)(n)||(0,na.isInterfaceType)(n)){for(let r of n.getInterfaces())ra(r,t);for(let r of Object.values(n.getFields())){ra(r.type,t);for(let i of r.args)ra(i.type,t)}}else if((0,na.isInputObjectType)(n))for(let r of Object.values(n.getFields()))ra(r.type,t)}return t}});var Pk=C(Hh=>{"use strict";p();N();m();Object.defineProperty(Hh,"__esModule",{value:!0});Hh.assertValidSchema=c9;Hh.validateSchema=Lk;var li=ar(),a9=gt(),eO=cf(),bk=$h(),Zn=wn(),wk=Ac(),o9=pN(),u9=Ok();function Lk(e){if((0,u9.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new nO(e);l9(t),d9(t),f9(t);let n=t.getErrors();return e.__validationErrors=n,n}function c9(e){let t=Lk(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` + +`))}var nO=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new a9.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function l9(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Zn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,li.inspect)(n)}.`,(r=tO(t,eO.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,Zn.isObjectType)(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,li.inspect)(i)}.`,(s=tO(t,eO.OperationTypeNode.MUTATION))!==null&&s!==void 0?s:i.astNode)}let a=t.getSubscriptionType();if(a&&!(0,Zn.isObjectType)(a)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,li.inspect)(a)}.`,(u=tO(t,eO.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:a.astNode)}}function tO(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function d9(e){for(let n of e.schema.getDirectives()){if(!(0,wk.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,li.inspect)(n)}.`,n==null?void 0:n.astNode);continue}Ll(e,n);for(let r of n.args)if(Ll(e,r),(0,Zn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,li.inspect)(r.type)}.`,r.astNode),(0,Zn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[rO(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Ll(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function f9(e){let t=y9(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,Zn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,li.inspect)(r)}.`,r.astNode);continue}(0,o9.isIntrospectionType)(r)||Ll(e,r),(0,Zn.isObjectType)(r)||(0,Zn.isInterfaceType)(r)?(Ak(e,r),Rk(e,r)):(0,Zn.isUnionType)(r)?N9(e,r):(0,Zn.isEnumType)(r)?T9(e,r):(0,Zn.isInputObjectType)(r)&&(E9(e,r),t(r))}}function Ak(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of n){if(Ll(e,a),!(0,Zn.isOutputType)(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,li.inspect)(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}for(let u of a.args){let l=u.name;if(Ll(e,u),!(0,Zn.isInputType)(u.type)){var i;e.reportError(`The type of ${t.name}.${a.name}(${l}:) must be Input Type but got: ${(0,li.inspect)(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if((0,Zn.isRequiredArgument)(u)&&u.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${a.name}(${l}:) cannot be deprecated.`,[rO(u.astNode),(s=u.astNode)===null||s===void 0?void 0:s.type])}}}}function Rk(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,Zn.isInterfaceType)(r)){e.reportError(`Type ${(0,li.inspect)(t)} must only implement Interface types, it cannot implement ${(0,li.inspect)(r)}.`,mN(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,mN(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,mN(t,r));continue}n[r.name]=!0,m9(e,t,r),p9(e,t,r)}}function p9(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,f=r[d];if(!f){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,bk.isTypeSubTypeOf)(e.schema,f.type,l.type)){var i,s;e.reportError(`Interface field ${n.name}.${d} expects type ${(0,li.inspect)(l.type)} but ${t.name}.${d} is type ${(0,li.inspect)(f.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(s=f.astNode)===null||s===void 0?void 0:s.type])}for(let E of l.args){let h=E.name,_=f.args.find(A=>A.name===h);if(!_){e.reportError(`Interface field argument ${n.name}.${d}(${h}:) expected but ${t.name}.${d} does not provide it.`,[E.astNode,f.astNode]);continue}if(!(0,bk.isEqualType)(E.type,_.type)){var a,u;e.reportError(`Interface field argument ${n.name}.${d}(${h}:) expects type ${(0,li.inspect)(E.type)} but ${t.name}.${d}(${h}:) is type ${(0,li.inspect)(_.type)}.`,[(a=E.astNode)===null||a===void 0?void 0:a.type,(u=_.astNode)===null||u===void 0?void 0:u.type])}}for(let E of f.args){let h=E.name;!l.args.find(A=>A.name===h)&&(0,Zn.isRequiredArgument)(E)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${h} that is missing from the Interface field ${n.name}.${d}.`,[E.astNode,l.astNode])}}}function m9(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...mN(n,i),...mN(t,n)])}function N9(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Fk(t,i.name));continue}r[i.name]=!0,(0,Zn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,li.inspect)(i)}.`,Fk(t,String(i)))}}function T9(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)Ll(e,r)}function E9(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(Ll(e,s),!(0,Zn.isInputType)(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${(0,li.inspect)(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if((0,Zn.isRequiredInputField)(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[rO(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&h9(t,s,e)}}function h9(e,t,n){if((0,Zn.isNonNullType)(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function y9(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let a=Object.values(s.getFields());for(let u of a)if((0,Zn.isNonNullType)(u.type)&&(0,Zn.isInputObjectType)(u.type.ofType)){let l=u.type.ofType,d=r[l.name];if(n.push(u),d===void 0)i(l);else{let f=n.slice(d),E=f.map(h=>h.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${E}".`,f.map(h=>h.astNode))}n.pop()}r[s.name]=void 0}}function mN(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var a;return(a=s.interfaces)!==null&&a!==void 0?a:[]}).filter(s=>s.name.value===t.name)}function Fk(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var a;return(a=s.types)!==null&&a!==void 0?a:[]}).filter(s=>s.name.value===t)}function rO(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===wk.GraphQLDeprecatedDirective.name)}});var bo=C(aO=>{"use strict";p();N();m();Object.defineProperty(aO,"__esModule",{value:!0});aO.typeFromAST=sO;var iO=Fn(),Ck=wn();function sO(e,t){switch(t.kind){case iO.Kind.LIST_TYPE:{let n=sO(e,t.type);return n&&new Ck.GraphQLList(n)}case iO.Kind.NON_NULL_TYPE:{let n=sO(e,t.type);return n&&new Ck.GraphQLNonNull(n)}case iO.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var uO=C(NN=>{"use strict";p();N();m();Object.defineProperty(NN,"__esModule",{value:!0});NN.TypeInfo=void 0;NN.visitWithTypeInfo=_9;var I9=cf(),er=Fn(),Uk=Xm(),tr=wn(),Nf=pN(),Bk=bo(),oO=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:g9,n&&((0,tr.isInputType)(n)&&this._inputTypeStack.push(n),(0,tr.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,tr.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case er.Kind.SELECTION_SET:{let i=(0,tr.getNamedType)(this.getType());this._parentTypeStack.push((0,tr.isCompositeType)(i)?i:void 0);break}case er.Kind.FIELD:{let i=this.getParentType(),s,a;i&&(s=this._getFieldDef(n,i,t),s&&(a=s.type)),this._fieldDefStack.push(s),this._typeStack.push((0,tr.isOutputType)(a)?a:void 0);break}case er.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case er.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,tr.isObjectType)(i)?i:void 0);break}case er.Kind.INLINE_FRAGMENT:case er.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?(0,Bk.typeFromAST)(n,i):(0,tr.getNamedType)(this.getType());this._typeStack.push((0,tr.isOutputType)(s)?s:void 0);break}case er.Kind.VARIABLE_DEFINITION:{let i=(0,Bk.typeFromAST)(n,t.type);this._inputTypeStack.push((0,tr.isInputType)(i)?i:void 0);break}case er.Kind.ARGUMENT:{var r;let i,s,a=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();a&&(i=a.args.find(u=>u.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,tr.isInputType)(s)?s:void 0);break}case er.Kind.LIST:{let i=(0,tr.getNullableType)(this.getInputType()),s=(0,tr.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,tr.isInputType)(s)?s:void 0);break}case er.Kind.OBJECT_FIELD:{let i=(0,tr.getNamedType)(this.getInputType()),s,a;(0,tr.isInputObjectType)(i)&&(a=i.getFields()[t.name.value],a&&(s=a.type)),this._defaultValueStack.push(a?a.defaultValue:void 0),this._inputTypeStack.push((0,tr.isInputType)(s)?s:void 0);break}case er.Kind.ENUM:{let i=(0,tr.getNamedType)(this.getInputType()),s;(0,tr.isEnumType)(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case er.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case er.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case er.Kind.DIRECTIVE:this._directive=null;break;case er.Kind.OPERATION_DEFINITION:case er.Kind.INLINE_FRAGMENT:case er.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case er.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case er.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case er.Kind.LIST:case er.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case er.Kind.ENUM:this._enumValue=null;break;default:}}};NN.TypeInfo=oO;function g9(e,t,n){let r=n.name.value;if(r===Nf.SchemaMetaFieldDef.name&&e.getQueryType()===t)return Nf.SchemaMetaFieldDef;if(r===Nf.TypeMetaFieldDef.name&&e.getQueryType()===t)return Nf.TypeMetaFieldDef;if(r===Nf.TypeNameMetaFieldDef.name&&(0,tr.isCompositeType)(t))return Nf.TypeNameMetaFieldDef;if((0,tr.isObjectType)(t)||(0,tr.isInterfaceType)(t))return t.getFields()[r]}function _9(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,Uk.getEnterLeaveForKind)(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),(0,I9.isNode)(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=(0,Uk.getEnterLeaveForKind)(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}});var TN=C(bs=>{"use strict";p();N();m();Object.defineProperty(bs,"__esModule",{value:!0});bs.isConstValueNode=cO;bs.isDefinitionNode=v9;bs.isExecutableDefinitionNode=kk;bs.isSelectionNode=S9;bs.isTypeDefinitionNode=Vk;bs.isTypeExtensionNode=$k;bs.isTypeNode=D9;bs.isTypeSystemDefinitionNode=Mk;bs.isTypeSystemExtensionNode=qk;bs.isValueNode=xk;var Kt=Fn();function v9(e){return kk(e)||Mk(e)||qk(e)}function kk(e){return e.kind===Kt.Kind.OPERATION_DEFINITION||e.kind===Kt.Kind.FRAGMENT_DEFINITION}function S9(e){return e.kind===Kt.Kind.FIELD||e.kind===Kt.Kind.FRAGMENT_SPREAD||e.kind===Kt.Kind.INLINE_FRAGMENT}function xk(e){return e.kind===Kt.Kind.VARIABLE||e.kind===Kt.Kind.INT||e.kind===Kt.Kind.FLOAT||e.kind===Kt.Kind.STRING||e.kind===Kt.Kind.BOOLEAN||e.kind===Kt.Kind.NULL||e.kind===Kt.Kind.ENUM||e.kind===Kt.Kind.LIST||e.kind===Kt.Kind.OBJECT}function cO(e){return xk(e)&&(e.kind===Kt.Kind.LIST?e.values.some(cO):e.kind===Kt.Kind.OBJECT?e.fields.some(t=>cO(t.value)):e.kind!==Kt.Kind.VARIABLE)}function D9(e){return e.kind===Kt.Kind.NAMED_TYPE||e.kind===Kt.Kind.LIST_TYPE||e.kind===Kt.Kind.NON_NULL_TYPE}function Mk(e){return e.kind===Kt.Kind.SCHEMA_DEFINITION||Vk(e)||e.kind===Kt.Kind.DIRECTIVE_DEFINITION}function Vk(e){return e.kind===Kt.Kind.SCALAR_TYPE_DEFINITION||e.kind===Kt.Kind.OBJECT_TYPE_DEFINITION||e.kind===Kt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Kt.Kind.UNION_TYPE_DEFINITION||e.kind===Kt.Kind.ENUM_TYPE_DEFINITION||e.kind===Kt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function qk(e){return e.kind===Kt.Kind.SCHEMA_EXTENSION||$k(e)}function $k(e){return e.kind===Kt.Kind.SCALAR_TYPE_EXTENSION||e.kind===Kt.Kind.OBJECT_TYPE_EXTENSION||e.kind===Kt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Kt.Kind.UNION_TYPE_EXTENSION||e.kind===Kt.Kind.ENUM_TYPE_EXTENSION||e.kind===Kt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var Kk=C(lO=>{"use strict";p();N();m();Object.defineProperty(lO,"__esModule",{value:!0});lO.ExecutableDefinitionsRule=A9;var O9=gt(),jk=Fn(),b9=TN();function A9(e){return{Document(t){for(let n of t.definitions)if(!(0,b9.isExecutableDefinitionNode)(n)){let r=n.kind===jk.Kind.SCHEMA_DEFINITION||n.kind===jk.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new O9.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var Qk=C(dO=>{"use strict";p();N();m();Object.defineProperty(dO,"__esModule",{value:!0});dO.FieldsOnCorrectTypeRule=L9;var Gk=Sc(),R9=Sh(),F9=Dc(),w9=gt(),EN=wn();function L9(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,a=(0,Gk.didYouMean)("to use an inline fragment on",P9(i,n,s));a===""&&(a=(0,Gk.didYouMean)(C9(n,s))),e.reportError(new w9.GraphQLError(`Cannot query field "${s}" on type "${n.name}".`+a,{nodes:t}))}}}}function P9(e,t,n){if(!(0,EN.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(let u of a.getInterfaces()){var s;u.getFields()[n]&&(r.add(u),i[u.name]=((s=i[u.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((a,u)=>{let l=i[u.name]-i[a.name];return l!==0?l:(0,EN.isInterfaceType)(a)&&e.isSubType(a,u)?-1:(0,EN.isInterfaceType)(u)&&e.isSubType(u,a)?1:(0,R9.naturalCompare)(a.name,u.name)}).map(a=>a.name)}function C9(e,t){if((0,EN.isObjectType)(e)||(0,EN.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,F9.suggestionList)(t,n)}return[]}});var Wk=C(fO=>{"use strict";p();N();m();Object.defineProperty(fO,"__esModule",{value:!0});fO.FragmentsOnCompositeTypesRule=U9;var Yk=gt(),Jk=Ua(),Hk=wn(),zk=bo();function U9(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,zk.typeFromAST)(e.getSchema(),n);if(r&&!(0,Hk.isCompositeType)(r)){let i=(0,Jk.print)(n);e.reportError(new Yk.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,zk.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,Hk.isCompositeType)(n)){let r=(0,Jk.print)(t.typeCondition);e.reportError(new Yk.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var nx=C(zh=>{"use strict";p();N();m();Object.defineProperty(zh,"__esModule",{value:!0});zh.KnownArgumentNamesOnDirectivesRule=tx;zh.KnownArgumentNamesRule=x9;var Xk=Sc(),Zk=Dc(),ex=gt(),B9=Fn(),k9=Ac();function x9(e){return K(x({},tx(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,a=r.args.map(l=>l.name),u=(0,Zk.suggestionList)(s,a);e.reportError(new ex.GraphQLError(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+(0,Xk.didYouMean)(u),{nodes:t}))}}})}function tx(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():k9.specifiedDirectives;for(let a of r)t[a.name]=a.args.map(u=>u.name);let i=e.getDocument().definitions;for(let a of i)if(a.kind===B9.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];t[a.name.value]=u.map(l=>l.name.value)}return{Directive(a){let u=a.name.value,l=t[u];if(a.arguments&&l)for(let d of a.arguments){let f=d.name.value;if(!l.includes(f)){let E=(0,Zk.suggestionList)(f,l);e.reportError(new ex.GraphQLError(`Unknown argument "${f}" on directive "@${u}".`+(0,Xk.didYouMean)(E),{nodes:d}))}}return!1}}}});var ix=C(NO=>{"use strict";p();N();m();Object.defineProperty(NO,"__esModule",{value:!0});NO.KnownDirectivesRule=q9;var M9=ar(),pO=So(),rx=gt(),mO=cf(),Rr=jh(),Pn=Fn(),V9=Ac();function q9(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():V9.specifiedDirectives;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===Pn.Kind.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(a=>a.value));return{Directive(s,a,u,l,d){let f=s.name.value,E=t[f];if(!E){e.reportError(new rx.GraphQLError(`Unknown directive "@${f}".`,{nodes:s}));return}let h=$9(d);h&&!E.includes(h)&&e.reportError(new rx.GraphQLError(`Directive "@${f}" may not be used on ${h}.`,{nodes:s}))}}}function $9(e){let t=e[e.length-1];switch("kind"in t||(0,pO.invariant)(!1),t.kind){case Pn.Kind.OPERATION_DEFINITION:return j9(t.operation);case Pn.Kind.FIELD:return Rr.DirectiveLocation.FIELD;case Pn.Kind.FRAGMENT_SPREAD:return Rr.DirectiveLocation.FRAGMENT_SPREAD;case Pn.Kind.INLINE_FRAGMENT:return Rr.DirectiveLocation.INLINE_FRAGMENT;case Pn.Kind.FRAGMENT_DEFINITION:return Rr.DirectiveLocation.FRAGMENT_DEFINITION;case Pn.Kind.VARIABLE_DEFINITION:return Rr.DirectiveLocation.VARIABLE_DEFINITION;case Pn.Kind.SCHEMA_DEFINITION:case Pn.Kind.SCHEMA_EXTENSION:return Rr.DirectiveLocation.SCHEMA;case Pn.Kind.SCALAR_TYPE_DEFINITION:case Pn.Kind.SCALAR_TYPE_EXTENSION:return Rr.DirectiveLocation.SCALAR;case Pn.Kind.OBJECT_TYPE_DEFINITION:case Pn.Kind.OBJECT_TYPE_EXTENSION:return Rr.DirectiveLocation.OBJECT;case Pn.Kind.FIELD_DEFINITION:return Rr.DirectiveLocation.FIELD_DEFINITION;case Pn.Kind.INTERFACE_TYPE_DEFINITION:case Pn.Kind.INTERFACE_TYPE_EXTENSION:return Rr.DirectiveLocation.INTERFACE;case Pn.Kind.UNION_TYPE_DEFINITION:case Pn.Kind.UNION_TYPE_EXTENSION:return Rr.DirectiveLocation.UNION;case Pn.Kind.ENUM_TYPE_DEFINITION:case Pn.Kind.ENUM_TYPE_EXTENSION:return Rr.DirectiveLocation.ENUM;case Pn.Kind.ENUM_VALUE_DEFINITION:return Rr.DirectiveLocation.ENUM_VALUE;case Pn.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Pn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Rr.DirectiveLocation.INPUT_OBJECT;case Pn.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,pO.invariant)(!1),n.kind===Pn.Kind.INPUT_OBJECT_TYPE_DEFINITION?Rr.DirectiveLocation.INPUT_FIELD_DEFINITION:Rr.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,pO.invariant)(!1,"Unexpected kind: "+(0,M9.inspect)(t.kind))}}function j9(e){switch(e){case mO.OperationTypeNode.QUERY:return Rr.DirectiveLocation.QUERY;case mO.OperationTypeNode.MUTATION:return Rr.DirectiveLocation.MUTATION;case mO.OperationTypeNode.SUBSCRIPTION:return Rr.DirectiveLocation.SUBSCRIPTION}}});var sx=C(TO=>{"use strict";p();N();m();Object.defineProperty(TO,"__esModule",{value:!0});TO.KnownFragmentNamesRule=G9;var K9=gt();function G9(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new K9.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var ox=C(hO=>{"use strict";p();N();m();Object.defineProperty(hO,"__esModule",{value:!0});hO.KnownTypeNamesRule=W9;var Q9=Sc(),Y9=Dc(),J9=gt(),EO=TN(),H9=pN(),z9=uN();function W9(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)(0,EO.isTypeDefinitionNode)(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,a,u,l,d){let f=s.name.value;if(!n[f]&&!r[f]){var E;let h=(E=d[2])!==null&&E!==void 0?E:u,_=h!=null&&X9(h);if(_&&ax.includes(f))return;let A=(0,Y9.suggestionList)(f,_?ax.concat(i):i);e.reportError(new J9.GraphQLError(`Unknown type "${f}".`+(0,Q9.didYouMean)(A),{nodes:s}))}}}}var ax=[...z9.specifiedScalarTypes,...H9.introspectionTypes].map(e=>e.name);function X9(e){return"kind"in e&&((0,EO.isTypeSystemDefinitionNode)(e)||(0,EO.isTypeSystemExtensionNode)(e))}});var ux=C(yO=>{"use strict";p();N();m();Object.defineProperty(yO,"__esModule",{value:!0});yO.LoneAnonymousOperationRule=t7;var Z9=gt(),e7=Fn();function t7(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===e7.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new Z9.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var lx=C(IO=>{"use strict";p();N();m();Object.defineProperty(IO,"__esModule",{value:!0});IO.LoneSchemaDefinitionRule=n7;var cx=gt();function n7(e){var t,n,r;let i=e.getSchema(),s=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(u){if(s){e.reportError(new cx.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:u}));return}a>0&&e.reportError(new cx.GraphQLError("Must provide only one schema definition.",{nodes:u})),++a}}}});var fx=C(gO=>{"use strict";p();N();m();Object.defineProperty(gO,"__esModule",{value:!0});gO.MaxIntrospectionDepthRule=s7;var r7=gt(),dx=Fn(),i7=3;function s7(e){function t(n,r=Object.create(null),i=0){if(n.kind===dx.Kind.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let a=e.getFragment(s);if(!a)return!1;try{return r[s]=!0,t(a,r,i)}finally{r[s]=void 0}}if(n.kind===dx.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=i7))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new r7.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var px=C(_O=>{"use strict";p();N();m();Object.defineProperty(_O,"__esModule",{value:!0});_O.NoFragmentCyclesRule=o7;var a7=gt();function o7(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let a=s.name.value;t[a]=!0;let u=e.getFragmentSpreads(s.selectionSet);if(u.length!==0){r[a]=n.length;for(let l of u){let d=l.name.value,f=r[d];if(n.push(l),f===void 0){let E=e.getFragment(d);E&&i(E)}else{let E=n.slice(f),h=E.slice(0,-1).map(_=>'"'+_.name.value+'"').join(", ");e.reportError(new a7.GraphQLError(`Cannot spread fragment "${d}" within itself`+(h!==""?` via ${h}.`:"."),{nodes:E}))}n.pop()}r[a]=void 0}}}});var mx=C(vO=>{"use strict";p();N();m();Object.defineProperty(vO,"__esModule",{value:!0});vO.NoUndefinedVariablesRule=c7;var u7=gt();function c7(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let s=i.name.value;t[s]!==!0&&e.reportError(new u7.GraphQLError(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var Nx=C(SO=>{"use strict";p();N();m();Object.defineProperty(SO,"__esModule",{value:!0});SO.NoUnusedFragmentsRule=d7;var l7=gt();function d7(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new l7.GraphQLError(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}});var Tx=C(DO=>{"use strict";p();N();m();Object.defineProperty(DO,"__esModule",{value:!0});DO.NoUnusedVariablesRule=p7;var f7=gt();function p7(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let a=s.variable.name.value;r[a]!==!0&&e.reportError(new f7.GraphQLError(n.name?`Variable "$${a}" is never used in operation "${n.name.value}".`:`Variable "$${a}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}});var Ex=C(bO=>{"use strict";p();N();m();Object.defineProperty(bO,"__esModule",{value:!0});bO.sortValueNode=OO;var m7=Sh(),Ao=Fn();function OO(e){switch(e.kind){case Ao.Kind.OBJECT:return K(x({},e),{fields:N7(e.fields)});case Ao.Kind.LIST:return K(x({},e),{values:e.values.map(OO)});case Ao.Kind.INT:case Ao.Kind.FLOAT:case Ao.Kind.STRING:case Ao.Kind.BOOLEAN:case Ao.Kind.NULL:case Ao.Kind.ENUM:case Ao.Kind.VARIABLE:return e}}function N7(e){return e.map(t=>K(x({},t),{value:OO(t.value)})).sort((t,n)=>(0,m7.naturalCompare)(t.name.value,n.name.value))}});var Sx=C(PO=>{"use strict";p();N();m();Object.defineProperty(PO,"__esModule",{value:!0});PO.OverlappingFieldsCanBeMergedRule=y7;var hx=ar(),T7=gt(),AO=Fn(),E7=Ua(),xi=wn(),h7=Ex(),Ix=bo();function gx(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+gx(n)).join(" and "):e}function y7(e){let t=new wO,n=new Map;return{SelectionSet(r){let i=I7(e,n,t,e.getParentType(),r);for(let[[s,a],u,l]of i){let d=gx(a);e.reportError(new T7.GraphQLError(`Fields "${s}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function I7(e,t,n,r,i){let s=[],[a,u]=Zh(e,t,r,i);if(_7(e,s,t,n,a),u.length!==0)for(let l=0;l1)for(let u=0;u[s.value,a]));return n.every(s=>{let a=s.value,u=i.get(s.name.value);return u===void 0?!1:yx(a)===yx(u)})}function yx(e){return(0,E7.print)((0,h7.sortValueNode)(e))}function RO(e,t){return(0,xi.isListType)(e)?(0,xi.isListType)(t)?RO(e.ofType,t.ofType):!0:(0,xi.isListType)(t)?!0:(0,xi.isNonNullType)(e)?(0,xi.isNonNullType)(t)?RO(e.ofType,t.ofType):!0:(0,xi.isNonNullType)(t)?!0:(0,xi.isLeafType)(e)||(0,xi.isLeafType)(t)?e!==t:!1}function Zh(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),a=Object.create(null);vx(e,n,r,s,a);let u=[s,Object.keys(a)];return t.set(r,u),u}function FO(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,Ix.typeFromAST)(e.getSchema(),n.typeCondition);return Zh(e,t,i,n.selectionSet)}function vx(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case AO.Kind.FIELD:{let a=s.name.value,u;((0,xi.isObjectType)(t)||(0,xi.isInterfaceType)(t))&&(u=t.getFields()[a]);let l=s.alias?s.alias.value:a;r[l]||(r[l]=[]),r[l].push([t,s,u]);break}case AO.Kind.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case AO.Kind.INLINE_FRAGMENT:{let a=s.typeCondition,u=a?(0,Ix.typeFromAST)(e.getSchema(),a):t;vx(e,u,s.selectionSet,r,i);break}}}function S7(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var wO=class{constructor(){this._data=new Map}has(t,n,r){var i;let[s,a]=t{"use strict";p();N();m();Object.defineProperty(UO,"__esModule",{value:!0});UO.PossibleFragmentSpreadsRule=O7;var ey=ar(),Dx=gt(),CO=wn(),Ox=$h(),D7=bo();function O7(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,CO.isCompositeType)(n)&&(0,CO.isCompositeType)(r)&&!(0,Ox.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,ey.inspect)(r),s=(0,ey.inspect)(n);e.reportError(new Dx.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=b7(e,n),i=e.getParentType();if(r&&i&&!(0,Ox.doTypesOverlap)(e.getSchema(),r,i)){let s=(0,ey.inspect)(i),a=(0,ey.inspect)(r);e.reportError(new Dx.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${a}".`,{nodes:t}))}}}}function b7(e,t){let n=e.getFragment(t);if(n){let r=(0,D7.typeFromAST)(e.getSchema(),n.typeCondition);if((0,CO.isCompositeType)(r))return r}}});var wx=C(BO=>{"use strict";p();N();m();Object.defineProperty(BO,"__esModule",{value:!0});BO.PossibleTypeExtensionsRule=w7;var A7=Sc(),Rx=ar(),Fx=So(),R7=Dc(),Ax=gt(),Vn=Fn(),F7=TN(),Tf=wn();function w7(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,F7.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,a=n[s],u=t==null?void 0:t.getType(s),l;if(a?l=L7[a.kind]:u&&(l=P7(u)),l){if(l!==i.kind){let d=C7(i.kind);e.reportError(new Ax.GraphQLError(`Cannot extend non-${d} type "${s}".`,{nodes:a?[a,i]:i}))}}else{let d=Object.keys(x(x({},n),t==null?void 0:t.getTypeMap())),f=(0,R7.suggestionList)(s,d);e.reportError(new Ax.GraphQLError(`Cannot extend type "${s}" because it is not defined.`+(0,A7.didYouMean)(f),{nodes:i.name}))}}}var L7={[Vn.Kind.SCALAR_TYPE_DEFINITION]:Vn.Kind.SCALAR_TYPE_EXTENSION,[Vn.Kind.OBJECT_TYPE_DEFINITION]:Vn.Kind.OBJECT_TYPE_EXTENSION,[Vn.Kind.INTERFACE_TYPE_DEFINITION]:Vn.Kind.INTERFACE_TYPE_EXTENSION,[Vn.Kind.UNION_TYPE_DEFINITION]:Vn.Kind.UNION_TYPE_EXTENSION,[Vn.Kind.ENUM_TYPE_DEFINITION]:Vn.Kind.ENUM_TYPE_EXTENSION,[Vn.Kind.INPUT_OBJECT_TYPE_DEFINITION]:Vn.Kind.INPUT_OBJECT_TYPE_EXTENSION};function P7(e){if((0,Tf.isScalarType)(e))return Vn.Kind.SCALAR_TYPE_EXTENSION;if((0,Tf.isObjectType)(e))return Vn.Kind.OBJECT_TYPE_EXTENSION;if((0,Tf.isInterfaceType)(e))return Vn.Kind.INTERFACE_TYPE_EXTENSION;if((0,Tf.isUnionType)(e))return Vn.Kind.UNION_TYPE_EXTENSION;if((0,Tf.isEnumType)(e))return Vn.Kind.ENUM_TYPE_EXTENSION;if((0,Tf.isInputObjectType)(e))return Vn.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,Fx.invariant)(!1,"Unexpected type: "+(0,Rx.inspect)(e))}function C7(e){switch(e){case Vn.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case Vn.Kind.OBJECT_TYPE_EXTENSION:return"object";case Vn.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case Vn.Kind.UNION_TYPE_EXTENSION:return"union";case Vn.Kind.ENUM_TYPE_EXTENSION:return"enum";case Vn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,Fx.invariant)(!1,"Unexpected kind: "+(0,Rx.inspect)(e))}}});var kx=C(ty=>{"use strict";p();N();m();Object.defineProperty(ty,"__esModule",{value:!0});ty.ProvidedRequiredArgumentsOnDirectivesRule=Bx;ty.ProvidedRequiredArgumentsRule=k7;var Px=ar(),Lx=df(),Cx=gt(),Ux=Fn(),U7=Ua(),kO=wn(),B7=Ac();function k7(e){return K(x({},Bx(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&(0,kO.isRequiredArgument)(s)){let a=(0,Px.inspect)(s.type);e.reportError(new Cx.GraphQLError(`Field "${r.name}" argument "${s.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}})}function Bx(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:B7.specifiedDirectives;for(let u of i)n[u.name]=(0,Lx.keyMap)(u.args.filter(kO.isRequiredArgument),l=>l.name);let s=e.getDocument().definitions;for(let u of s)if(u.kind===Ux.Kind.DIRECTIVE_DEFINITION){var a;let l=(a=u.arguments)!==null&&a!==void 0?a:[];n[u.name.value]=(0,Lx.keyMap)(l.filter(x7),d=>d.name.value)}return{Directive:{leave(u){let l=u.name.value,d=n[l];if(d){var f;let E=(f=u.arguments)!==null&&f!==void 0?f:[],h=new Set(E.map(_=>_.name.value));for(let[_,A]of Object.entries(d))if(!h.has(_)){let U=(0,kO.isType)(A.type)?(0,Px.inspect)(A.type):(0,U7.print)(A.type);e.reportError(new Cx.GraphQLError(`Directive "@${l}" argument "${_}" of type "${U}" is required, but it was not provided.`,{nodes:u}))}}}}}}function x7(e){return e.type.kind===Ux.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var qx=C(xO=>{"use strict";p();N();m();Object.defineProperty(xO,"__esModule",{value:!0});xO.ScalarLeafsRule=M7;var xx=ar(),Mx=gt(),Vx=wn();function M7(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,Vx.isLeafType)((0,Vx.getNamedType)(n))){if(r){let i=t.name.value,s=(0,xx.inspect)(n);e.reportError(new Mx.GraphQLError(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,s=(0,xx.inspect)(n);e.reportError(new Mx.GraphQLError(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var VO=C(MO=>{"use strict";p();N();m();Object.defineProperty(MO,"__esModule",{value:!0});MO.printPathArray=V7;function V7(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var $x=C(ny=>{"use strict";p();N();m();Object.defineProperty(ny,"__esModule",{value:!0});ny.addPath=q7;ny.pathToArray=$7;function q7(e,t,n){return{prev:e,key:t,typename:n}}function $7(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var jx=C(qO=>{"use strict";p();N();m();Object.defineProperty(qO,"__esModule",{value:!0});qO.coerceInputValue=H7;var j7=Sc(),ry=ar(),K7=So(),G7=KD(),Q7=_c(),ia=$x(),Y7=VO(),J7=Dc(),Ro=gt(),hN=wn();function H7(e,t,n=z7){return yN(e,t,n,void 0)}function z7(e,t,n){let r="Invalid value "+(0,ry.inspect)(t);throw e.length>0&&(r+=` at "value${(0,Y7.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function yN(e,t,n,r){if((0,hN.isNonNullType)(t)){if(e!=null)return yN(e,t.ofType,n,r);n((0,ia.pathToArray)(r),e,new Ro.GraphQLError(`Expected non-nullable type "${(0,ry.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,hN.isListType)(t)){let i=t.ofType;return(0,G7.isIterableObject)(e)?Array.from(e,(s,a)=>{let u=(0,ia.addPath)(r,a,void 0);return yN(s,i,n,u)}):[yN(e,i,n,r)]}if((0,hN.isInputObjectType)(t)){if(!(0,Q7.isObjectLike)(e)){n((0,ia.pathToArray)(r),e,new Ro.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},s=t.getFields();for(let a of Object.values(s)){let u=e[a.name];if(u===void 0){if(a.defaultValue!==void 0)i[a.name]=a.defaultValue;else if((0,hN.isNonNullType)(a.type)){let l=(0,ry.inspect)(a.type);n((0,ia.pathToArray)(r),e,new Ro.GraphQLError(`Field "${a.name}" of required type "${l}" was not provided.`))}continue}i[a.name]=yN(u,a.type,n,(0,ia.addPath)(r,a.name,t.name))}for(let a of Object.keys(e))if(!s[a]){let u=(0,J7.suggestionList)(a,Object.keys(t.getFields()));n((0,ia.pathToArray)(r),e,new Ro.GraphQLError(`Field "${a}" is not defined by type "${t.name}".`+(0,j7.didYouMean)(u)))}if(t.isOneOf){let a=Object.keys(i);a.length!==1&&n((0,ia.pathToArray)(r),e,new Ro.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=a[0],l=i[u];l===null&&n((0,ia.pathToArray)(r).concat(u),l,new Ro.GraphQLError(`Field "${u}" must be non-null.`))}return i}if((0,hN.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof Ro.GraphQLError?n((0,ia.pathToArray)(r),e,s):n((0,ia.pathToArray)(r),e,new Ro.GraphQLError(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n((0,ia.pathToArray)(r),e,new Ro.GraphQLError(`Expected type "${t.name}".`)),i}(0,K7.invariant)(!1,"Unexpected input type: "+(0,ry.inspect)(t))}});var Gx=C($O=>{"use strict";p();N();m();Object.defineProperty($O,"__esModule",{value:!0});$O.valueFromAST=IN;var W7=ar(),X7=So(),Z7=df(),Ef=Fn(),Pl=wn();function IN(e,t,n){if(e){if(e.kind===Ef.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,Pl.isNonNullType)(t)?void 0:i}if((0,Pl.isNonNullType)(t))return e.kind===Ef.Kind.NULL?void 0:IN(e,t.ofType,n);if(e.kind===Ef.Kind.NULL)return null;if((0,Pl.isListType)(t)){let r=t.ofType;if(e.kind===Ef.Kind.LIST){let s=[];for(let a of e.values)if(Kx(a,n)){if((0,Pl.isNonNullType)(r))return;s.push(null)}else{let u=IN(a,r,n);if(u===void 0)return;s.push(u)}return s}let i=IN(e,r,n);return i===void 0?void 0:[i]}if((0,Pl.isInputObjectType)(t)){if(e.kind!==Ef.Kind.OBJECT)return;let r=Object.create(null),i=(0,Z7.keyMap)(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let a=i[s.name];if(!a||Kx(a.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if((0,Pl.isNonNullType)(s.type))return;continue}let u=IN(a.value,s.type,n);if(u===void 0)return;r[s.name]=u}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if((0,Pl.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,X7.invariant)(!1,"Unexpected input type: "+(0,W7.inspect)(t))}}function Kx(e,t){return e.kind===Ef.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var Wx=C(gN=>{"use strict";p();N();m();Object.defineProperty(gN,"__esModule",{value:!0});gN.getArgumentValues=Hx;gN.getDirectiveValues=aZ;gN.getVariableValues=iZ;var hf=ar(),eZ=df(),tZ=VO(),Fo=gt(),Qx=Fn(),Yx=Ua(),yf=wn(),nZ=jx(),rZ=bo(),Jx=Gx();function iZ(e,t,n,r){let i=[],s=r==null?void 0:r.maxErrors;try{let a=sZ(e,t,n,u=>{if(s!=null&&i.length>=s)throw new Fo.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(u)});if(i.length===0)return{coerced:a}}catch(a){i.push(a)}return{errors:i}}function sZ(e,t,n,r){let i={};for(let s of t){let a=s.variable.name.value,u=(0,rZ.typeFromAST)(e,s.type);if(!(0,yf.isInputType)(u)){let d=(0,Yx.print)(s.type);r(new Fo.GraphQLError(`Variable "$${a}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!zx(n,a)){if(s.defaultValue)i[a]=(0,Jx.valueFromAST)(s.defaultValue,u);else if((0,yf.isNonNullType)(u)){let d=(0,hf.inspect)(u);r(new Fo.GraphQLError(`Variable "$${a}" of required type "${d}" was not provided.`,{nodes:s}))}continue}let l=n[a];if(l===null&&(0,yf.isNonNullType)(u)){let d=(0,hf.inspect)(u);r(new Fo.GraphQLError(`Variable "$${a}" of non-null type "${d}" must not be null.`,{nodes:s}));continue}i[a]=(0,nZ.coerceInputValue)(l,u,(d,f,E)=>{let h=`Variable "$${a}" got invalid value `+(0,hf.inspect)(f);d.length>0&&(h+=` at "${a}${(0,tZ.printPathArray)(d)}"`),r(new Fo.GraphQLError(h+"; "+E.message,{nodes:s,originalError:E}))})}return i}function Hx(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],a=(0,eZ.keyMap)(s,u=>u.name.value);for(let u of e.args){let l=u.name,d=u.type,f=a[l];if(!f){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,yf.isNonNullType)(d))throw new Fo.GraphQLError(`Argument "${l}" of required type "${(0,hf.inspect)(d)}" was not provided.`,{nodes:t});continue}let E=f.value,h=E.kind===Qx.Kind.NULL;if(E.kind===Qx.Kind.VARIABLE){let A=E.name.value;if(n==null||!zx(n,A)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,yf.isNonNullType)(d))throw new Fo.GraphQLError(`Argument "${l}" of required type "${(0,hf.inspect)(d)}" was provided the variable "$${A}" which was not provided a runtime value.`,{nodes:E});continue}h=n[A]==null}if(h&&(0,yf.isNonNullType)(d))throw new Fo.GraphQLError(`Argument "${l}" of non-null type "${(0,hf.inspect)(d)}" must not be null.`,{nodes:E});let _=(0,Jx.valueFromAST)(E,d,n);if(_===void 0)throw new Fo.GraphQLError(`Argument "${l}" has invalid value ${(0,Yx.print)(E)}.`,{nodes:E});i[l]=_}return i}function aZ(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return Hx(e,i,n)}function zx(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var tM=C(sy=>{"use strict";p();N();m();Object.defineProperty(sy,"__esModule",{value:!0});sy.collectFields=cZ;sy.collectSubfields=lZ;var jO=Fn(),oZ=wn(),Xx=Ac(),uZ=bo(),Zx=Wx();function cZ(e,t,n,r,i){let s=new Map;return iy(e,t,n,r,i,s,new Set),s}function lZ(e,t,n,r,i){let s=new Map,a=new Set;for(let u of i)u.selectionSet&&iy(e,t,n,r,u.selectionSet,s,a);return s}function iy(e,t,n,r,i,s,a){for(let u of i.selections)switch(u.kind){case jO.Kind.FIELD:{if(!KO(n,u))continue;let l=dZ(u),d=s.get(l);d!==void 0?d.push(u):s.set(l,[u]);break}case jO.Kind.INLINE_FRAGMENT:{if(!KO(n,u)||!eM(e,u,r))continue;iy(e,t,n,r,u.selectionSet,s,a);break}case jO.Kind.FRAGMENT_SPREAD:{let l=u.name.value;if(a.has(l)||!KO(n,u))continue;a.add(l);let d=t[l];if(!d||!eM(e,d,r))continue;iy(e,t,n,r,d.selectionSet,s,a);break}}}function KO(e,t){let n=(0,Zx.getDirectiveValues)(Xx.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,Zx.getDirectiveValues)(Xx.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function eM(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,uZ.typeFromAST)(e,r);return i===n?!0:(0,oZ.isAbstractType)(i)?e.isSubType(i,n):!1}function dZ(e){return e.alias?e.alias.value:e.name.value}});var rM=C(GO=>{"use strict";p();N();m();Object.defineProperty(GO,"__esModule",{value:!0});GO.SingleFieldSubscriptionsRule=mZ;var nM=gt(),fZ=Fn(),pZ=tM();function mZ(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,s=Object.create(null),a=e.getDocument(),u=Object.create(null);for(let d of a.definitions)d.kind===fZ.Kind.FRAGMENT_DEFINITION&&(u[d.name.value]=d);let l=(0,pZ.collectFields)(n,u,s,r,t.selectionSet);if(l.size>1){let E=[...l.values()].slice(1).flat();e.reportError(new nM.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:E}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new nM.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}});var ay=C(QO=>{"use strict";p();N();m();Object.defineProperty(QO,"__esModule",{value:!0});QO.groupBy=NZ;function NZ(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}});var iM=C(YO=>{"use strict";p();N();m();Object.defineProperty(YO,"__esModule",{value:!0});YO.UniqueArgumentDefinitionNamesRule=hZ;var TZ=ay(),EZ=gt();function hZ(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,a=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of a){var u;let d=l.name.value,f=(u=l.arguments)!==null&&u!==void 0?u:[];n(`${s}.${d}`,f)}return!1}function n(r,i){let s=(0,TZ.groupBy)(i,a=>a.name.value);for(let[a,u]of s)u.length>1&&e.reportError(new EZ.GraphQLError(`Argument "${r}(${a}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}});var sM=C(JO=>{"use strict";p();N();m();Object.defineProperty(JO,"__esModule",{value:!0});JO.UniqueArgumentNamesRule=gZ;var yZ=ay(),IZ=gt();function gZ(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=(0,yZ.groupBy)(i,a=>a.name.value);for(let[a,u]of s)u.length>1&&e.reportError(new IZ.GraphQLError(`There can be only one argument named "${a}".`,{nodes:u.map(l=>l.name)}))}}});var oM=C(HO=>{"use strict";p();N();m();Object.defineProperty(HO,"__esModule",{value:!0});HO.UniqueDirectiveNamesRule=_Z;var aM=gt();function _Z(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new aM.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new aM.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var cM=C(WO=>{"use strict";p();N();m();Object.defineProperty(WO,"__esModule",{value:!0});WO.UniqueDirectivesPerLocationRule=DZ;var vZ=gt(),zO=Fn(),uM=TN(),SZ=Ac();function DZ(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():SZ.specifiedDirectives;for(let u of r)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===zO.Kind.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let s=Object.create(null),a=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===zO.Kind.SCHEMA_DEFINITION||u.kind===zO.Kind.SCHEMA_EXTENSION)l=s;else if((0,uM.isTypeDefinitionNode)(u)||(0,uM.isTypeExtensionNode)(u)){let d=u.name.value;l=a[d],l===void 0&&(a[d]=l=Object.create(null))}else l=Object.create(null);for(let d of u.directives){let f=d.name.value;t[f]&&(l[f]?e.reportError(new vZ.GraphQLError(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],d]})):l[f]=d)}}}}});var dM=C(XO=>{"use strict";p();N();m();Object.defineProperty(XO,"__esModule",{value:!0});XO.UniqueEnumValueNamesRule=bZ;var lM=gt(),OZ=wn();function bZ(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var a;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(a=s.values)!==null&&a!==void 0?a:[],d=r[u];for(let f of l){let E=f.name.value,h=n[u];(0,OZ.isEnumType)(h)&&h.getValue(E)?e.reportError(new lM.GraphQLError(`Enum value "${u}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):d[E]?e.reportError(new lM.GraphQLError(`Enum value "${u}.${E}" can only be defined once.`,{nodes:[d[E],f.name]})):d[E]=f.name}return!1}}});var pM=C(eb=>{"use strict";p();N();m();Object.defineProperty(eb,"__esModule",{value:!0});eb.UniqueFieldDefinitionNamesRule=AZ;var fM=gt(),ZO=wn();function AZ(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(s){var a;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(a=s.fields)!==null&&a!==void 0?a:[],d=r[u];for(let f of l){let E=f.name.value;RZ(n[u],E)?e.reportError(new fM.GraphQLError(`Field "${u}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):d[E]?e.reportError(new fM.GraphQLError(`Field "${u}.${E}" can only be defined once.`,{nodes:[d[E],f.name]})):d[E]=f.name}return!1}}function RZ(e,t){return(0,ZO.isObjectType)(e)||(0,ZO.isInterfaceType)(e)||(0,ZO.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var mM=C(tb=>{"use strict";p();N();m();Object.defineProperty(tb,"__esModule",{value:!0});tb.UniqueFragmentNamesRule=wZ;var FZ=gt();function wZ(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new FZ.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var NM=C(nb=>{"use strict";p();N();m();Object.defineProperty(nb,"__esModule",{value:!0});nb.UniqueInputFieldNamesRule=CZ;var LZ=So(),PZ=gt();function CZ(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,LZ.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new PZ.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var TM=C(rb=>{"use strict";p();N();m();Object.defineProperty(rb,"__esModule",{value:!0});rb.UniqueOperationNamesRule=BZ;var UZ=gt();function BZ(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new UZ.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var hM=C(ib=>{"use strict";p();N();m();Object.defineProperty(ib,"__esModule",{value:!0});ib.UniqueOperationTypesRule=kZ;var EM=gt();function kZ(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(s){var a;let u=(a=s.operationTypes)!==null&&a!==void 0?a:[];for(let l of u){let d=l.operation,f=n[d];r[d]?e.reportError(new EM.GraphQLError(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):f?e.reportError(new EM.GraphQLError(`There can be only one ${d} type in schema.`,{nodes:[f,l]})):n[d]=l}return!1}}});var IM=C(sb=>{"use strict";p();N();m();Object.defineProperty(sb,"__esModule",{value:!0});sb.UniqueTypeNamesRule=xZ;var yM=gt();function xZ(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new yM.GraphQLError(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new yM.GraphQLError(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}});var gM=C(ab=>{"use strict";p();N();m();Object.defineProperty(ab,"__esModule",{value:!0});ab.UniqueVariableNamesRule=qZ;var MZ=ay(),VZ=gt();function qZ(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,MZ.groupBy)(r,s=>s.variable.name.value);for(let[s,a]of i)a.length>1&&e.reportError(new VZ.GraphQLError(`There can be only one variable named "$${s}".`,{nodes:a.map(u=>u.variable.name)}))}}}});var _M=C(ub=>{"use strict";p();N();m();Object.defineProperty(ub,"__esModule",{value:!0});ub.ValuesOfCorrectTypeRule=GZ;var $Z=Sc(),_N=ar(),jZ=df(),KZ=Dc(),Ma=gt(),ob=Fn(),oy=Ua(),xa=wn();function GZ(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,xa.getNullableType)(e.getParentInputType());if(!(0,xa.isListType)(r))return Cl(e,n),!1},ObjectValue(n){let r=(0,xa.getNamedType)(e.getInputType());if(!(0,xa.isInputObjectType)(r))return Cl(e,n),!1;let i=(0,jZ.keyMap)(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&(0,xa.isRequiredInputField)(s)){let u=(0,_N.inspect)(s.type);e.reportError(new Ma.GraphQLError(`Field "${r.name}.${s.name}" of required type "${u}" was not provided.`,{nodes:n}))}r.isOneOf&&QZ(e,n,r,i,t)},ObjectField(n){let r=(0,xa.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,xa.isInputObjectType)(r)){let s=(0,KZ.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new Ma.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,$Z.didYouMean)(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,xa.isNonNullType)(r)&&e.reportError(new Ma.GraphQLError(`Expected value of type "${(0,_N.inspect)(r)}", found ${(0,oy.print)(n)}.`,{nodes:n}))},EnumValue:n=>Cl(e,n),IntValue:n=>Cl(e,n),FloatValue:n=>Cl(e,n),StringValue:n=>Cl(e,n),BooleanValue:n=>Cl(e,n)}}function Cl(e,t){let n=e.getInputType();if(!n)return;let r=(0,xa.getNamedType)(n);if(!(0,xa.isLeafType)(r)){let i=(0,_N.inspect)(n);e.reportError(new Ma.GraphQLError(`Expected value of type "${i}", found ${(0,oy.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=(0,_N.inspect)(n);e.reportError(new Ma.GraphQLError(`Expected value of type "${s}", found ${(0,oy.print)(t)}.`,{nodes:t}))}}catch(i){let s=(0,_N.inspect)(n);i instanceof Ma.GraphQLError?e.reportError(i):e.reportError(new Ma.GraphQLError(`Expected value of type "${s}", found ${(0,oy.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function QZ(e,t,n,r,i){var s;let a=Object.keys(r);if(a.length!==1){e.reportError(new Ma.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(s=r[a[0]])===null||s===void 0?void 0:s.value,d=!l||l.kind===ob.Kind.NULL,f=(l==null?void 0:l.kind)===ob.Kind.VARIABLE;if(d){e.reportError(new Ma.GraphQLError(`Field "${n.name}.${a[0]}" must be non-null.`,{nodes:[t]}));return}if(f){let E=l.name.value;i[E].type.kind!==ob.Kind.NON_NULL_TYPE&&e.reportError(new Ma.GraphQLError(`Variable "${E}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var vM=C(cb=>{"use strict";p();N();m();Object.defineProperty(cb,"__esModule",{value:!0});cb.VariablesAreInputTypesRule=WZ;var YZ=gt(),JZ=Ua(),HZ=wn(),zZ=bo();function WZ(e){return{VariableDefinition(t){let n=(0,zZ.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,HZ.isInputType)(n)){let r=t.variable.name.value,i=(0,JZ.print)(t.type);e.reportError(new YZ.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var bM=C(lb=>{"use strict";p();N();m();Object.defineProperty(lb,"__esModule",{value:!0});lb.VariablesInAllowedPositionRule=tee;var SM=ar(),XZ=gt(),ZZ=Fn(),DM=wn(),OM=$h(),eee=bo();function tee(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:s,defaultValue:a}of r){let u=i.name.value,l=t[u];if(l&&s){let d=e.getSchema(),f=(0,eee.typeFromAST)(d,l.type);if(f&&!nee(d,f,l.defaultValue,s,a)){let E=(0,SM.inspect)(f),h=(0,SM.inspect)(s);e.reportError(new XZ.GraphQLError(`Variable "$${u}" of type "${E}" used in position expecting type "${h}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function nee(e,t,n,r,i){if((0,DM.isNonNullType)(r)&&!(0,DM.isNonNullType)(t)){if(!(n!=null&&n.kind!==ZZ.Kind.NULL)&&!(i!==void 0))return!1;let u=r.ofType;return(0,OM.isTypeSubTypeOf)(e,t,u)}return(0,OM.isTypeSubTypeOf)(e,t,r)}});var BM=C(Rc=>{"use strict";p();N();m();Object.defineProperty(Rc,"__esModule",{value:!0});Rc.specifiedSDLRules=Rc.specifiedRules=Rc.recommendedRules=void 0;var ree=Kk(),iee=Qk(),see=Wk(),AM=nx(),RM=ix(),aee=sx(),FM=ox(),oee=ux(),uee=lx(),cee=fx(),lee=px(),dee=mx(),fee=Nx(),pee=Tx(),mee=Sx(),Nee=bx(),Tee=wx(),wM=kx(),Eee=qx(),hee=rM(),yee=iM(),LM=sM(),Iee=oM(),PM=cM(),gee=dM(),_ee=pM(),vee=mM(),CM=NM(),See=TM(),Dee=hM(),Oee=IM(),bee=gM(),Aee=_M(),Ree=vM(),Fee=bM(),UM=Object.freeze([cee.MaxIntrospectionDepthRule]);Rc.recommendedRules=UM;var wee=Object.freeze([ree.ExecutableDefinitionsRule,See.UniqueOperationNamesRule,oee.LoneAnonymousOperationRule,hee.SingleFieldSubscriptionsRule,FM.KnownTypeNamesRule,see.FragmentsOnCompositeTypesRule,Ree.VariablesAreInputTypesRule,Eee.ScalarLeafsRule,iee.FieldsOnCorrectTypeRule,vee.UniqueFragmentNamesRule,aee.KnownFragmentNamesRule,fee.NoUnusedFragmentsRule,Nee.PossibleFragmentSpreadsRule,lee.NoFragmentCyclesRule,bee.UniqueVariableNamesRule,dee.NoUndefinedVariablesRule,pee.NoUnusedVariablesRule,RM.KnownDirectivesRule,PM.UniqueDirectivesPerLocationRule,AM.KnownArgumentNamesRule,LM.UniqueArgumentNamesRule,Aee.ValuesOfCorrectTypeRule,wM.ProvidedRequiredArgumentsRule,Fee.VariablesInAllowedPositionRule,mee.OverlappingFieldsCanBeMergedRule,CM.UniqueInputFieldNamesRule,...UM]);Rc.specifiedRules=wee;var Lee=Object.freeze([uee.LoneSchemaDefinitionRule,Dee.UniqueOperationTypesRule,Oee.UniqueTypeNamesRule,gee.UniqueEnumValueNamesRule,_ee.UniqueFieldDefinitionNamesRule,yee.UniqueArgumentDefinitionNamesRule,Iee.UniqueDirectiveNamesRule,FM.KnownTypeNamesRule,RM.KnownDirectivesRule,PM.UniqueDirectivesPerLocationRule,Tee.PossibleTypeExtensionsRule,AM.KnownArgumentNamesOnDirectivesRule,LM.UniqueArgumentNamesRule,CM.UniqueInputFieldNamesRule,wM.ProvidedRequiredArgumentsOnDirectivesRule]);Rc.specifiedSDLRules=Lee});var MM=C(Fc=>{"use strict";p();N();m();Object.defineProperty(Fc,"__esModule",{value:!0});Fc.ValidationContext=Fc.SDLValidationContext=Fc.ASTValidationContext=void 0;var kM=Fn(),Pee=Xm(),xM=uO(),vN=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===kM.Kind.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let s of i.selections)s.kind===kM.Kind.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],s;for(;s=i.pop();)for(let a of this.getFragmentSpreads(s)){let u=a.name.value;if(r[u]!==!0){r[u]=!0;let l=this.getFragment(u);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};Fc.ASTValidationContext=vN;var db=class extends vN{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Fc.SDLValidationContext=db;var fb=class extends vN{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new xM.TypeInfo(this._schema);(0,Pee.visit)(t,(0,xM.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};Fc.ValidationContext=fb});var jM=C(If=>{"use strict";p();N();m();Object.defineProperty(If,"__esModule",{value:!0});If.assertValidSDL=xee;If.assertValidSDLExtension=Mee;If.validate=kee;If.validateSDL=pb;var Cee=Dl(),Uee=gt(),uy=Xm(),Bee=Pk(),VM=uO(),qM=BM(),$M=MM();function kee(e,t,n=qM.specifiedRules,r,i=new VM.TypeInfo(e)){var s;let a=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||(0,Cee.devAssert)(!1,"Must provide document."),(0,Bee.assertValidSchema)(e);let u=Object.freeze({}),l=[],d=new $M.ValidationContext(e,t,i,E=>{if(l.length>=a)throw l.push(new Uee.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(E)}),f=(0,uy.visitInParallel)(n.map(E=>E(d)));try{(0,uy.visit)(t,(0,VM.visitWithTypeInfo)(i,f))}catch(E){if(E!==u)throw E}return l}function pb(e,t,n=qM.specifiedSDLRules){let r=[],i=new $M.SDLValidationContext(e,t,a=>{r.push(a)}),s=n.map(a=>a(i));return(0,uy.visit)(e,(0,uy.visitInParallel)(s)),r}function xee(e){let t=pb(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` + +`))}function Mee(e,t){let n=pb(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` + +`))}});var QM=C(_f=>{"use strict";p();N();m();Object.defineProperty(_f,"__esModule",{value:!0});_f.AccumulatorMap=void 0;_f.mapValue=gf;_f.extendSchemaImpl=Vee;var Me=(Oe(),Ae(Pe)),wo=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};_f.AccumulatorMap=wo;function gf(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function Vee(e,t,n){var Re,_e,Be,Pt;let r=[],i=new wo,s=new wo,a=new wo,u=new wo,l=new wo,d=new wo,f=[],E,h=[],_=!1;for(let J of t.definitions){switch(J.kind){case Me.Kind.SCHEMA_DEFINITION:E=J;break;case Me.Kind.SCHEMA_EXTENSION:h.push(J);break;case Me.Kind.DIRECTIVE_DEFINITION:f.push(J);break;case Me.Kind.SCALAR_TYPE_DEFINITION:case Me.Kind.OBJECT_TYPE_DEFINITION:case Me.Kind.INTERFACE_TYPE_DEFINITION:case Me.Kind.UNION_TYPE_DEFINITION:case Me.Kind.ENUM_TYPE_DEFINITION:case Me.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(J);break;case Me.Kind.SCALAR_TYPE_EXTENSION:i.add(J.name.value,J);break;case Me.Kind.OBJECT_TYPE_EXTENSION:s.add(J.name.value,J);break;case Me.Kind.INTERFACE_TYPE_EXTENSION:a.add(J.name.value,J);break;case Me.Kind.UNION_TYPE_EXTENSION:u.add(J.name.value,J);break;case Me.Kind.ENUM_TYPE_EXTENSION:l.add(J.name.value,J);break;case Me.Kind.INPUT_OBJECT_TYPE_EXTENSION:d.add(J.name.value,J);break;default:continue}_=!0}if(!_)return e;let A=new Map;for(let J of e.types){let oe=ee(J);oe&&A.set(J.name,oe)}for(let J of r){let oe=J.name.value;A.set(oe,(Re=KM.get(oe))!=null?Re:ue(J))}for(let[J,oe]of s)A.set(J,new Me.GraphQLObjectType({name:J,interfaces:()=>rn(oe),fields:()=>Sn(oe),extensionASTNodes:oe}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[J,oe]of a)A.set(J,new Me.GraphQLInterfaceType({name:J,interfaces:()=>rn(oe),fields:()=>Sn(oe),extensionASTNodes:oe}));for(let[J,oe]of l)A.set(J,new Me.GraphQLEnumType({name:J,values:Cn(oe),extensionASTNodes:oe}));for(let[J,oe]of u)A.set(J,new Me.GraphQLUnionType({name:J,types:()=>zn(oe),extensionASTNodes:oe}));for(let[J,oe]of i)A.set(J,new Me.GraphQLScalarType({name:J,extensionASTNodes:oe}));for(let[J,oe]of d)A.set(J,new Me.GraphQLInputObjectType({name:J,fields:()=>Lr(oe),extensionASTNodes:oe}))}let U=x(x({query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription)},E&&fn([E])),fn(h));return K(x({description:(Be=(_e=E==null?void 0:E.description)==null?void 0:_e.value)!=null?Be:e.description},U),{types:Array.from(A.values()),directives:[...e.directives.map(re),...f.map(Zt)],extensions:e.extensions,astNode:E!=null?E:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(h),assumeValid:(Pt=n==null?void 0:n.assumeValid)!=null?Pt:!1});function q(J){return(0,Me.isListType)(J)?new Me.GraphQLList(q(J.ofType)):(0,Me.isNonNullType)(J)?new Me.GraphQLNonNull(q(J.ofType)):j(J)}function j(J){return A.get(J.name)}function re(J){if((0,Me.isSpecifiedDirective)(J))return J;let oe=J.toConfig();return new Me.GraphQLDirective(K(x({},oe),{args:gf(oe.args,wt)}))}function ee(J){if((0,Me.isIntrospectionType)(J)||(0,Me.isSpecifiedScalarType)(J))return J;if((0,Me.isScalarType)(J))return be(J);if((0,Me.isObjectType)(J))return xe(J);if((0,Me.isInterfaceType)(J))return at(J);if((0,Me.isUnionType)(J))return te(J);if((0,Me.isEnumType)(J))return ce(J);if((0,Me.isInputObjectType)(J))return me(J)}function me(J){var et;let oe=J.toConfig(),$e=(et=d.get(oe.name))!=null?et:[];return new Me.GraphQLInputObjectType(K(x({},oe),{fields:()=>x(x({},gf(oe.fields,Qt=>K(x({},Qt),{type:q(Qt.type)}))),Lr($e)),extensionASTNodes:oe.extensionASTNodes.concat($e)}))}function ce(J){var et;let oe=J.toConfig(),$e=(et=l.get(J.name))!=null?et:[];return new Me.GraphQLEnumType(K(x({},oe),{values:x(x({},oe.values),Cn($e)),extensionASTNodes:oe.extensionASTNodes.concat($e)}))}function be(J){var Qt,ft;let oe=J.toConfig(),$e=(Qt=i.get(oe.name))!=null?Qt:[],et=oe.specifiedByURL;for(let Vt of $e)et=(ft=GM(Vt))!=null?ft:et;return new Me.GraphQLScalarType(K(x({},oe),{specifiedByURL:et,extensionASTNodes:oe.extensionASTNodes.concat($e)}))}function xe(J){var et;let oe=J.toConfig(),$e=(et=s.get(oe.name))!=null?et:[];return new Me.GraphQLObjectType(K(x({},oe),{interfaces:()=>[...J.getInterfaces().map(j),...rn($e)],fields:()=>x(x({},gf(oe.fields,Se)),Sn($e)),extensionASTNodes:oe.extensionASTNodes.concat($e)}))}function at(J){var et;let oe=J.toConfig(),$e=(et=a.get(oe.name))!=null?et:[];return new Me.GraphQLInterfaceType(K(x({},oe),{interfaces:()=>[...J.getInterfaces().map(j),...rn($e)],fields:()=>x(x({},gf(oe.fields,Se)),Sn($e)),extensionASTNodes:oe.extensionASTNodes.concat($e)}))}function te(J){var et;let oe=J.toConfig(),$e=(et=u.get(oe.name))!=null?et:[];return new Me.GraphQLUnionType(K(x({},oe),{types:()=>[...J.getTypes().map(j),...zn($e)],extensionASTNodes:oe.extensionASTNodes.concat($e)}))}function Se(J){return K(x({},J),{type:q(J.type),args:J.args&&gf(J.args,wt)})}function wt(J){return K(x({},J),{type:q(J.type)})}function fn(J){var $e;let oe={};for(let et of J){let Qt=($e=et.operationTypes)!=null?$e:[];for(let ft of Qt)oe[ft.operation]=pn(ft.type)}return oe}function pn(J){var et;let oe=J.name.value,$e=(et=KM.get(oe))!=null?et:A.get(oe);if($e===void 0)throw new Error(`Unknown type: "${oe}".`);return $e}function Hn(J){return J.kind===Me.Kind.LIST_TYPE?new Me.GraphQLList(Hn(J.type)):J.kind===Me.Kind.NON_NULL_TYPE?new Me.GraphQLNonNull(Hn(J.type)):pn(J)}function Zt(J){var oe;return new Me.GraphQLDirective({name:J.name.value,description:(oe=J.description)==null?void 0:oe.value,locations:J.locations.map(({value:$e})=>$e),isRepeatable:J.repeatable,args:Ti(J.arguments),astNode:J})}function Sn(J){var $e,et;let oe=Object.create(null);for(let Qt of J){let ft=($e=Qt.fields)!=null?$e:[];for(let Vt of ft)oe[Vt.name.value]={type:Hn(Vt.type),description:(et=Vt.description)==null?void 0:et.value,args:Ti(Vt.arguments),deprecationReason:cy(Vt),astNode:Vt}}return oe}function Ti(J){var et;let oe=J!=null?J:[],$e=Object.create(null);for(let Qt of oe){let ft=Hn(Qt.type);$e[Qt.name.value]={type:ft,description:(et=Qt.description)==null?void 0:et.value,defaultValue:(0,Me.valueFromAST)(Qt.defaultValue,ft),deprecationReason:cy(Qt),astNode:Qt}}return $e}function Lr(J){var $e,et;let oe=Object.create(null);for(let Qt of J){let ft=($e=Qt.fields)!=null?$e:[];for(let Vt of ft){let Za=Hn(Vt.type);oe[Vt.name.value]={type:Za,description:(et=Vt.description)==null?void 0:et.value,defaultValue:(0,Me.valueFromAST)(Vt.defaultValue,Za),deprecationReason:cy(Vt),astNode:Vt}}}return oe}function Cn(J){var $e,et;let oe=Object.create(null);for(let Qt of J){let ft=($e=Qt.values)!=null?$e:[];for(let Vt of ft)oe[Vt.name.value]={description:(et=Vt.description)==null?void 0:et.value,deprecationReason:cy(Vt),astNode:Vt}}return oe}function rn(J){return J.flatMap(oe=>{var $e,et;return(et=($e=oe.interfaces)==null?void 0:$e.map(pn))!=null?et:[]})}function zn(J){return J.flatMap(oe=>{var $e,et;return(et=($e=oe.types)==null?void 0:$e.map(pn))!=null?et:[]})}function ue(J){var $e,et,Qt,ft,Vt,Za,Fi,eo,pd,Ia,Kr,Gi;let oe=J.name.value;switch(J.kind){case Me.Kind.OBJECT_TYPE_DEFINITION:{let Jt=($e=s.get(oe))!=null?$e:[],Gr=[J,...Jt];return s.delete(oe),new Me.GraphQLObjectType({name:oe,description:(et=J.description)==null?void 0:et.value,interfaces:()=>rn(Gr),fields:()=>Sn(Gr),astNode:J,extensionASTNodes:Jt})}case Me.Kind.INTERFACE_TYPE_DEFINITION:{let Jt=(Qt=a.get(oe))!=null?Qt:[],Gr=[J,...Jt];return a.delete(oe),new Me.GraphQLInterfaceType({name:oe,description:(ft=J.description)==null?void 0:ft.value,interfaces:()=>rn(Gr),fields:()=>Sn(Gr),astNode:J,extensionASTNodes:Jt})}case Me.Kind.ENUM_TYPE_DEFINITION:{let Jt=(Vt=l.get(oe))!=null?Vt:[],Gr=[J,...Jt];return l.delete(oe),new Me.GraphQLEnumType({name:oe,description:(Za=J.description)==null?void 0:Za.value,values:Cn(Gr),astNode:J,extensionASTNodes:Jt})}case Me.Kind.UNION_TYPE_DEFINITION:{let Jt=(Fi=u.get(oe))!=null?Fi:[],Gr=[J,...Jt];return u.delete(oe),new Me.GraphQLUnionType({name:oe,description:(eo=J.description)==null?void 0:eo.value,types:()=>zn(Gr),astNode:J,extensionASTNodes:Jt})}case Me.Kind.SCALAR_TYPE_DEFINITION:{let Jt=(pd=i.get(oe))!=null?pd:[];return i.delete(oe),new Me.GraphQLScalarType({name:oe,description:(Ia=J.description)==null?void 0:Ia.value,specifiedByURL:GM(J),astNode:J,extensionASTNodes:Jt})}case Me.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let Jt=(Kr=d.get(oe))!=null?Kr:[],Gr=[J,...Jt];return d.delete(oe),new Me.GraphQLInputObjectType({name:oe,description:(Gi=J.description)==null?void 0:Gi.value,fields:()=>Lr(Gr),astNode:J,extensionASTNodes:Jt})}}}}var KM=new Map([...Me.specifiedScalarTypes,...Me.introspectionTypes].map(e=>[e.name,e]));function cy(e){let t=(0,Me.getDirectiveValues)(Me.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function GM(e){let t=(0,Me.getDirectiveValues)(Me.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var Nb=C(mb=>{"use strict";p();N();m();Object.defineProperty(mb,"__esModule",{value:!0});mb.buildASTSchema=jee;var YM=(Oe(),Ae(Pe)),qee=jM(),$ee=QM();function jee(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,qee.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,$ee.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...YM.specifiedDirectives.filter(s=>r.directives.every(a=>a.name!==s.name))];return new YM.GraphQLSchema(K(x({},r),{directives:i}))}});var vf=C(wc=>{"use strict";p();N();m();Object.defineProperty(wc,"__esModule",{value:!0});wc.MAX_INT32=wc.MAX_SUBSCRIPTION_FILTER_DEPTH=wc.MAXIMUM_TYPE_NESTING=void 0;wc.MAXIMUM_TYPE_NESTING=30;wc.MAX_SUBSCRIPTION_FILTER_DEPTH=5;wc.MAX_INT32=En(2,31)-1});var di=C(Fr=>{"use strict";p();N();m();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.getOrThrowError=Gee;Fr.getEntriesNotInHashSet=Qee;Fr.numberToOrdinal=Yee;Fr.addIterableToSet=Jee;Fr.addOptionalIterableToSet=Hee;Fr.addSets=zee;Fr.kindToNodeType=Wee;Fr.getValueOrDefault=Xee;Fr.add=Zee;Fr.generateSimpleDirective=ete;Fr.generateRequiresScopesDirective=tte;Fr.generateSemanticNonNullDirective=nte;Fr.copyObjectValueMap=rte;Fr.addNewObjectValueMapEntries=ite;Fr.copyArrayValueMap=ste;Fr.addMapEntries=ate;Fr.getFirstEntry=ote;var Ht=(Oe(),Ae(Pe)),Vr=Er(),Kee=As(),SN=ui();function Gee(e,t,n){let r=e.get(t);if(r===void 0)throw(0,Kee.invalidKeyFatalError)(t,n);return r}function Qee(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function Yee(e){let t=e.toString();switch(t[t.length-1]){case"1":return`${t}st`;case"2":return`${t}nd`;case"3":return`${t}rd`;default:return`${t}th`}}function Jee({source:e,target:t}){for(let n of e)t.add(n)}function Hee({source:e,target:t}){if(e)for(let n of e)t.add(n)}function zee(e,t){let n=new Set(e);for(let r of t)n.add(r);return n}function Wee(e){switch(e){case Ht.Kind.BOOLEAN:return Vr.BOOLEAN_SCALAR;case Ht.Kind.ENUM:case Ht.Kind.ENUM_TYPE_DEFINITION:return Vr.ENUM;case Ht.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case Ht.Kind.ENUM_VALUE_DEFINITION:return Vr.ENUM_VALUE;case Ht.Kind.FIELD_DEFINITION:return Vr.FIELD;case Ht.Kind.FLOAT:return Vr.FLOAT_SCALAR;case Ht.Kind.INPUT_OBJECT_TYPE_DEFINITION:return Vr.INPUT_OBJECT;case Ht.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case Ht.Kind.INPUT_VALUE_DEFINITION:return Vr.INPUT_VALUE;case Ht.Kind.INT:return Vr.INT_SCALAR;case Ht.Kind.INTERFACE_TYPE_DEFINITION:return Vr.INTERFACE;case Ht.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case Ht.Kind.NULL:return Vr.NULL;case Ht.Kind.OBJECT:case Ht.Kind.OBJECT_TYPE_DEFINITION:return Vr.OBJECT;case Ht.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case Ht.Kind.STRING:return Vr.STRING_SCALAR;case Ht.Kind.SCALAR_TYPE_DEFINITION:return Vr.SCALAR;case Ht.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case Ht.Kind.UNION_TYPE_DEFINITION:return Vr.UNION;case Ht.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function Xee(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function Zee(e,t){return e.has(t)?!1:(e.add(t),!0)}function ete(e){return{kind:Ht.Kind.DIRECTIVE,name:(0,SN.stringToNameNode)(e)}}function tte(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:Ht.Kind.STRING,value:i});t.push({kind:Ht.Kind.LIST,values:r})}return{kind:Ht.Kind.DIRECTIVE,name:(0,SN.stringToNameNode)(Vr.REQUIRES_SCOPES),arguments:[{kind:Ht.Kind.ARGUMENT,name:(0,SN.stringToNameNode)(Vr.SCOPES),value:{kind:Ht.Kind.LIST,values:t}}]}}function nte(e){let t=Array.from(e).sort((r,i)=>r-i),n=new Array;for(let r of t)n.push({kind:Ht.Kind.INT,value:r.toString()});return{kind:Ht.Kind.DIRECTIVE,name:(0,SN.stringToNameNode)(Vr.SEMANTIC_NON_NULL),arguments:[{kind:Ht.Kind.ARGUMENT,name:(0,SN.stringToNameNode)(Vr.LEVELS),value:{kind:Ht.Kind.LIST,values:n}}]}}function rte(e){let t=new Map;for(let[n,r]of e)t.set(n,x({},r));return t}function ite(e,t){for(let[n,r]of e)t.set(n,x({},r))}function ste(e){let t=new Map;for(let[n,r]of e)t.set(n,[...r]);return t}function ate({source:e,target:t}){for(let[n,r]of e)t.set(n,r)}function ote(e){let{value:t,done:n}=e.values().next();if(!n)return t}});var DN=C(ly=>{"use strict";p();N();m();Object.defineProperty(ly,"__esModule",{value:!0});ly.ExtensionType=void 0;var JM;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(JM||(ly.ExtensionType=JM={}))});var Lc=C(pi=>{"use strict";p();N();m();Object.defineProperty(pi,"__esModule",{value:!0});pi.getMutableDirectiveDefinitionNode=cte;pi.getMutableEnumNode=lte;pi.getMutableEnumValueNode=dte;pi.getMutableFieldNode=fte;pi.getMutableInputObjectNode=pte;pi.getMutableInputValueNode=mte;pi.getMutableInterfaceNode=Nte;pi.getMutableObjectNode=Tte;pi.getMutableObjectExtensionNode=Ete;pi.getMutableScalarNode=hte;pi.getMutableTypeNode=Tb;pi.getMutableUnionNode=yte;pi.getTypeNodeNamedTypeName=Eb;pi.getNamedTypeNode=zM;var fi=(Oe(),Ae(Pe)),Sf=ui(),HM=As(),ute=vf();function cte(e){return{arguments:[],kind:e.kind,locations:[],name:x({},e.name),repeatable:e.repeatable,description:(0,Sf.formatDescription)(e.description)}}function lte(e){return{kind:fi.Kind.ENUM_TYPE_DEFINITION,name:x({},e)}}function dte(e){return{directives:[],kind:e.kind,name:x({},e.name),description:(0,Sf.formatDescription)(e.description)}}function fte(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:x({},e.name),type:Tb(e.type,t,n),description:(0,Sf.formatDescription)(e.description)}}function pte(e){return{kind:fi.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:x({},e)}}function mte(e,t,n){return{directives:[],kind:e.kind,name:x({},e.name),type:Tb(e.type,t,n),defaultValue:e.defaultValue,description:(0,Sf.formatDescription)(e.description)}}function Nte(e){return{kind:fi.Kind.INTERFACE_TYPE_DEFINITION,name:x({},e)}}function Tte(e){return{kind:fi.Kind.OBJECT_TYPE_DEFINITION,name:x({},e)}}function Ete(e){let t=e.kind===fi.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:fi.Kind.OBJECT_TYPE_EXTENSION,name:x({},e.name),description:(0,Sf.formatDescription)(t)}}function hte(e){return{kind:fi.Kind.SCALAR_TYPE_DEFINITION,name:x({},e)}}function Tb(e,t,n){let r={kind:e.kind},i=r;for(let s=0;s{"use strict";p();N();m();Object.defineProperty(Df,"__esModule",{value:!0});Df.REQUIRED_FIELDSET_TYPE_NODE=Df.REQUIRED_STRING_TYPE_NODE=void 0;var WM=(Oe(),Ae(Pe)),XM=ui(),ZM=Er();Df.REQUIRED_STRING_TYPE_NODE={kind:WM.Kind.NON_NULL_TYPE,type:(0,XM.stringToNamedTypeNode)(ZM.STRING_SCALAR)};Df.REQUIRED_FIELDSET_TYPE_NODE={kind:WM.Kind.NON_NULL_TYPE,type:(0,XM.stringToNamedTypeNode)(ZM.FIELD_SET_SCALAR)}});var ON=C(Ye=>{"use strict";p();N();m();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.TAG_DEFINITION=Ye.SUBSCRIPTION_FILTER_DEFINITION=Ye.SPECIFIED_BY_DEFINITION=Ye.SHAREABLE_DEFINITION=Ye.SEMANTIC_NON_NULL_DEFINITION=Ye.REQUIRES_SCOPES_DEFINITION=Ye.REQUIRES_DEFINITION=Ye.REQUIRE_FETCH_REASONS_DEFINITION=Ye.PROVIDES_DEFINITION=Ye.OVERRIDE_DEFINITION=Ye.ONE_OF_DEFINITION=Ye.LINK_DEFINITION=Ye.KEY_DEFINITION=Ye.INTERFACE_OBJECT_DEFINITION=Ye.INACCESSIBLE_DEFINITION=Ye.EDFS_REDIS_SUBSCRIBE_DEFINITION=Ye.EDFS_REDIS_PUBLISH_DEFINITION=Ye.EDFS_NATS_SUBSCRIBE_DEFINITION=Ye.EDFS_NATS_REQUEST_DEFINITION=Ye.EDFS_NATS_PUBLISH_DEFINITION=Ye.EDFS_KAFKA_SUBSCRIBE_DEFINITION=Ye.EDFS_KAFKA_PUBLISH_DEFINITION=Ye.EXTERNAL_DEFINITION=Ye.EXTENDS_DEFINITION=Ye.DEPRECATED_DEFINITION=Ye.CONNECT_FIELD_RESOLVER_DEFINITION=Ye.CONFIGURE_DESCRIPTION_DEFINITION=Ye.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=Ye.COMPOSE_DIRECTIVE_DEFINITION=Ye.AUTHENTICATED_DEFINITION=void 0;var ge=(Oe(),Ae(Pe)),he=ui(),z=Er(),zr=dy();Ye.AUTHENTICATED_DEFINITION={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.ENUM_UPPER,z.FIELD_DEFINITION_UPPER,z.INTERFACE_UPPER,z.OBJECT_UPPER,z.SCALAR_UPPER]),name:(0,he.stringToNameNode)(z.AUTHENTICATED),repeatable:!1};Ye.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.NAME),type:zr.REQUIRED_STRING_TYPE_NODE}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.SCHEMA_UPPER]),name:(0,he.stringToNameNode)(z.COMPOSE_DIRECTIVE),repeatable:!0};Ye.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.PROPAGATE),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,he.stringToNamedTypeNode)(z.BOOLEAN_SCALAR)},defaultValue:{kind:ge.Kind.BOOLEAN,value:!0}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.ENUM_UPPER,z.INPUT_OBJECT_UPPER,z.INTERFACE_UPPER,z.OBJECT_UPPER]),name:(0,he.stringToNameNode)(z.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};Ye.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.PROPAGATE),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,he.stringToNamedTypeNode)(z.BOOLEAN_SCALAR)},defaultValue:{kind:ge.Kind.BOOLEAN,value:!0}},{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.DESCRIPTION_OVERRIDE),type:(0,he.stringToNamedTypeNode)(z.STRING_SCALAR)}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.ARGUMENT_DEFINITION_UPPER,z.ENUM_UPPER,z.ENUM_VALUE_UPPER,z.FIELD_DEFINITION_UPPER,z.INTERFACE_UPPER,z.INPUT_OBJECT_UPPER,z.INPUT_FIELD_DEFINITION_UPPER,z.OBJECT_UPPER,z.SCALAR_UPPER,z.SCHEMA_UPPER,z.UNION_UPPER]),name:(0,he.stringToNameNode)(z.CONFIGURE_DESCRIPTION),repeatable:!1};Ye.CONNECT_FIELD_RESOLVER_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.CONTEXT),type:zr.REQUIRED_FIELDSET_TYPE_NODE}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.FIELD_DEFINITION_UPPER]),name:(0,he.stringToNameNode)(z.CONNECT_FIELD_RESOLVER),repeatable:!1};Ye.DEPRECATED_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.REASON),type:(0,he.stringToNamedTypeNode)(z.STRING_SCALAR),defaultValue:{kind:ge.Kind.STRING,value:ge.DEFAULT_DEPRECATION_REASON}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.ARGUMENT_DEFINITION_UPPER,z.ENUM_VALUE_UPPER,z.FIELD_DEFINITION_UPPER,z.INPUT_FIELD_DEFINITION_UPPER]),name:(0,he.stringToNameNode)(z.DEPRECATED),repeatable:!1};Ye.EXTENDS_DEFINITION={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.INTERFACE_UPPER,z.OBJECT_UPPER]),name:(0,he.stringToNameNode)(z.EXTENDS),repeatable:!1};Ye.EXTERNAL_DEFINITION={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.FIELD_DEFINITION_UPPER,z.OBJECT_UPPER]),name:(0,he.stringToNameNode)(z.EXTERNAL),repeatable:!1};Ye.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.TOPIC),type:zr.REQUIRED_STRING_TYPE_NODE},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.PROVIDER_ID),type:zr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ge.Kind.STRING,value:z.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,he.stringToNameNode)(z.FIELD_DEFINITION_UPPER)],name:(0,he.stringToNameNode)(z.EDFS_KAFKA_PUBLISH),repeatable:!1};Ye.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.TOPICS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:zr.REQUIRED_STRING_TYPE_NODE}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.PROVIDER_ID),type:zr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ge.Kind.STRING,value:z.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,he.stringToNameNode)(z.FIELD_DEFINITION_UPPER)],name:(0,he.stringToNameNode)(z.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};Ye.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.SUBJECT),type:zr.REQUIRED_STRING_TYPE_NODE},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,he.stringToNamedTypeNode)(z.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:z.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,he.stringToNameNode)(z.FIELD_DEFINITION_UPPER)],name:(0,he.stringToNameNode)(z.EDFS_NATS_PUBLISH),repeatable:!1};Ye.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.SUBJECT),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,he.stringToNamedTypeNode)(z.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,he.stringToNamedTypeNode)(z.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:z.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,he.stringToNameNode)(z.FIELD_DEFINITION_UPPER)],name:(0,he.stringToNameNode)(z.EDFS_NATS_REQUEST),repeatable:!1};Ye.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.SUBJECTS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:zr.REQUIRED_STRING_TYPE_NODE}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.PROVIDER_ID),type:zr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ge.Kind.STRING,value:z.DEFAULT_EDFS_PROVIDER_ID}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.STREAM_CONFIGURATION),type:(0,he.stringToNamedTypeNode)(z.EDFS_NATS_STREAM_CONFIGURATION)}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,he.stringToNameNode)(z.FIELD_DEFINITION_UPPER)],name:(0,he.stringToNameNode)(z.EDFS_NATS_SUBSCRIBE),repeatable:!1};Ye.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.CHANNEL),type:zr.REQUIRED_STRING_TYPE_NODE},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.PROVIDER_ID),type:zr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ge.Kind.STRING,value:z.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,he.stringToNameNode)(z.FIELD_DEFINITION_UPPER)],name:(0,he.stringToNameNode)(z.EDFS_REDIS_PUBLISH),repeatable:!1};Ye.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.CHANNELS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:zr.REQUIRED_STRING_TYPE_NODE}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.PROVIDER_ID),type:zr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ge.Kind.STRING,value:z.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,he.stringToNameNode)(z.FIELD_DEFINITION_UPPER)],name:(0,he.stringToNameNode)(z.EDFS_REDIS_SUBSCRIBE),repeatable:!1};Ye.INACCESSIBLE_DEFINITION={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.ARGUMENT_DEFINITION_UPPER,z.ENUM_UPPER,z.ENUM_VALUE_UPPER,z.FIELD_DEFINITION_UPPER,z.INPUT_FIELD_DEFINITION_UPPER,z.INPUT_OBJECT_UPPER,z.INTERFACE_UPPER,z.OBJECT_UPPER,z.SCALAR_UPPER,z.UNION_UPPER]),name:(0,he.stringToNameNode)(z.INACCESSIBLE),repeatable:!1};Ye.INTERFACE_OBJECT_DEFINITION={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.OBJECT_UPPER]),name:(0,he.stringToNameNode)(z.INTERFACE_OBJECT),repeatable:!1};Ye.KEY_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.FIELDS),type:zr.REQUIRED_FIELDSET_TYPE_NODE},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.RESOLVABLE),type:(0,he.stringToNamedTypeNode)(z.BOOLEAN_SCALAR),defaultValue:{kind:ge.Kind.BOOLEAN,value:!0}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.INTERFACE_UPPER,z.OBJECT_UPPER]),name:(0,he.stringToNameNode)(z.KEY),repeatable:!0};Ye.LINK_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.URL_LOWER),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,he.stringToNamedTypeNode)(z.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.AS),type:(0,he.stringToNamedTypeNode)(z.STRING_SCALAR)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.FOR),type:(0,he.stringToNamedTypeNode)(z.LINK_PURPOSE)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.IMPORT),type:{kind:ge.Kind.LIST_TYPE,type:(0,he.stringToNamedTypeNode)(z.LINK_IMPORT)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.SCHEMA_UPPER]),name:(0,he.stringToNameNode)(z.LINK),repeatable:!0};Ye.ONE_OF_DEFINITION={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.INPUT_OBJECT_UPPER]),name:(0,he.stringToNameNode)(z.ONE_OF),repeatable:!1};Ye.OVERRIDE_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.FROM),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,he.stringToNamedTypeNode)(z.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.FIELD_DEFINITION_UPPER]),name:(0,he.stringToNameNode)(z.OVERRIDE),repeatable:!1};Ye.PROVIDES_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.FIELDS),type:zr.REQUIRED_FIELDSET_TYPE_NODE}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,he.stringToNameNode)(z.FIELD_DEFINITION_UPPER)],name:(0,he.stringToNameNode)(z.PROVIDES),repeatable:!1};Ye.REQUIRE_FETCH_REASONS_DEFINITION={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.FIELD_DEFINITION_UPPER,z.INTERFACE_UPPER,z.OBJECT_UPPER]),name:(0,he.stringToNameNode)(z.REQUIRE_FETCH_REASONS),repeatable:!0};Ye.REQUIRES_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.FIELDS),type:zr.REQUIRED_FIELDSET_TYPE_NODE}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,he.stringToNameNode)(z.FIELD_DEFINITION_UPPER)],name:(0,he.stringToNameNode)(z.REQUIRES),repeatable:!1};Ye.REQUIRES_SCOPES_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.SCOPES),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,he.stringToNamedTypeNode)(z.SCOPE_SCALAR)}}}}}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.ENUM_UPPER,z.FIELD_DEFINITION_UPPER,z.INTERFACE_UPPER,z.OBJECT_UPPER,z.SCALAR_UPPER]),name:(0,he.stringToNameNode)(z.REQUIRES_SCOPES),repeatable:!1};Ye.SEMANTIC_NON_NULL_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.LEVELS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,he.stringToNamedTypeNode)(z.INT_SCALAR)}}},defaultValue:{kind:ge.Kind.LIST,values:[{kind:ge.Kind.INT,value:"0"}]}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,he.stringToNameNode)(z.FIELD_DEFINITION_UPPER)],name:(0,he.stringToNameNode)(z.SEMANTIC_NON_NULL),repeatable:!1};Ye.SHAREABLE_DEFINITION={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.FIELD_DEFINITION_UPPER,z.OBJECT_UPPER]),name:(0,he.stringToNameNode)(z.SHAREABLE),repeatable:!0};Ye.SPECIFIED_BY_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.URL_LOWER),type:zr.REQUIRED_STRING_TYPE_NODE}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.SCALAR_UPPER]),name:(0,he.stringToNameNode)(z.SPECIFIED_BY),repeatable:!1};Ye.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.CONDITION),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,he.stringToNamedTypeNode)(z.SUBSCRIPTION_FILTER_CONDITION)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.FIELD_DEFINITION_UPPER]),name:(0,he.stringToNameNode)(z.SUBSCRIPTION_FILTER),repeatable:!1};Ye.TAG_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,he.stringToNameNode)(z.NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,he.stringToNamedTypeNode)(z.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,he.stringArrayToNameNodeArray)([z.ARGUMENT_DEFINITION_UPPER,z.ENUM_UPPER,z.ENUM_VALUE_UPPER,z.FIELD_DEFINITION_UPPER,z.INPUT_FIELD_DEFINITION_UPPER,z.INPUT_OBJECT_UPPER,z.INTERFACE_UPPER,z.OBJECT_UPPER,z.SCALAR_UPPER,z.UNION_UPPER]),name:(0,he.stringToNameNode)(z.TAG),repeatable:!0}});var Pc=C(Rs=>{"use strict";p();N();m();Object.defineProperty(Rs,"__esModule",{value:!0});Rs.MAX_OR_SCOPES=Rs.EDFS_ARGS_REGEXP=Rs.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=Rs.BASE_SCALARS=Rs.DIRECTIVE_DEFINITION_BY_NAME=void 0;var Tt=Er(),Lt=ON();Rs.DIRECTIVE_DEFINITION_BY_NAME=new Map([[Tt.AUTHENTICATED,Lt.AUTHENTICATED_DEFINITION],[Tt.COMPOSE_DIRECTIVE,Lt.COMPOSE_DIRECTIVE_DEFINITION],[Tt.CONFIGURE_DESCRIPTION,Lt.CONFIGURE_DESCRIPTION_DEFINITION],[Tt.CONFIGURE_CHILD_DESCRIPTIONS,Lt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION],[Tt.CONNECT_FIELD_RESOLVER,Lt.CONNECT_FIELD_RESOLVER_DEFINITION],[Tt.DEPRECATED,Lt.DEPRECATED_DEFINITION],[Tt.EDFS_KAFKA_PUBLISH,Lt.EDFS_KAFKA_PUBLISH_DEFINITION],[Tt.EDFS_KAFKA_SUBSCRIBE,Lt.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[Tt.EDFS_NATS_PUBLISH,Lt.EDFS_NATS_PUBLISH_DEFINITION],[Tt.EDFS_NATS_REQUEST,Lt.EDFS_NATS_REQUEST_DEFINITION],[Tt.EDFS_NATS_SUBSCRIBE,Lt.EDFS_NATS_SUBSCRIBE_DEFINITION],[Tt.EDFS_REDIS_PUBLISH,Lt.EDFS_REDIS_PUBLISH_DEFINITION],[Tt.EDFS_REDIS_SUBSCRIBE,Lt.EDFS_REDIS_SUBSCRIBE_DEFINITION],[Tt.EXTENDS,Lt.EXTENDS_DEFINITION],[Tt.EXTERNAL,Lt.EXTERNAL_DEFINITION],[Tt.INACCESSIBLE,Lt.INACCESSIBLE_DEFINITION],[Tt.INTERFACE_OBJECT,Lt.INTERFACE_OBJECT_DEFINITION],[Tt.KEY,Lt.KEY_DEFINITION],[Tt.LINK,Lt.LINK_DEFINITION],[Tt.ONE_OF,Lt.ONE_OF_DEFINITION],[Tt.OVERRIDE,Lt.OVERRIDE_DEFINITION],[Tt.PROVIDES,Lt.PROVIDES_DEFINITION],[Tt.REQUIRE_FETCH_REASONS,Lt.REQUIRE_FETCH_REASONS_DEFINITION],[Tt.REQUIRES,Lt.REQUIRES_DEFINITION],[Tt.REQUIRES_SCOPES,Lt.REQUIRES_SCOPES_DEFINITION],[Tt.SEMANTIC_NON_NULL,Lt.SEMANTIC_NON_NULL_DEFINITION],[Tt.SHAREABLE,Lt.SHAREABLE_DEFINITION],[Tt.SPECIFIED_BY,Lt.SPECIFIED_BY_DEFINITION],[Tt.SUBSCRIPTION_FILTER,Lt.SUBSCRIPTION_FILTER_DEFINITION],[Tt.TAG,Lt.TAG_DEFINITION]]);Rs.BASE_SCALARS=new Set(["_Any","_Entities",Tt.BOOLEAN_SCALAR,Tt.FLOAT_SCALAR,Tt.ID_SCALAR,Tt.INT_SCALAR,Tt.FIELD_SET_SCALAR,Tt.SCOPE_SCALAR,Tt.STRING_SCALAR]);Rs.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[Tt.AUTHENTICATED,Lt.AUTHENTICATED_DEFINITION],[Tt.COMPOSE_DIRECTIVE,Lt.COMPOSE_DIRECTIVE_DEFINITION],[Tt.INACCESSIBLE,Lt.INACCESSIBLE_DEFINITION],[Tt.INTERFACE_OBJECT,Lt.INTERFACE_OBJECT_DEFINITION],[Tt.LINK,Lt.LINK_DEFINITION],[Tt.OVERRIDE,Lt.OVERRIDE_DEFINITION],[Tt.REQUIRES_SCOPES,Lt.REQUIRES_SCOPES_DEFINITION],[Tt.SHAREABLE,Lt.SHAREABLE_DEFINITION]]);Rs.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;Rs.MAX_OR_SCOPES=16});var fy=C(Ul=>{"use strict";p();N();m();Object.defineProperty(Ul,"__esModule",{value:!0});Ul.newParentTagData=Ste;Ul.newChildTagData=Dte;Ul.validateImplicitFieldSets=Ote;Ul.newContractTagOptionsFromArrays=bte;Ul.getDescriptionFromString=Ate;var Mi=(Oe(),Ae(Pe)),Ite=Lc(),gte=Pc(),_te=ui(),e1=di(),vte=Er();function Ste(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function Dte(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function Ote({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:s,graphNode:a}){let u=(0,e1.getValueOrDefault)(n.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,d]of n.documentNodeByKeyFieldSet){if(u.has(l))continue;let f=[i],E=[],h=[],_=-1,A=!0,U=!0;(0,Mi.visit)(d,{Argument:{enter(){return U=!1,Mi.BREAK}},Field:{enter(q){let j=f[_];if(A)return U=!1,Mi.BREAK;let re=q.name.value;if(re===vte.TYPENAME)return;let ee=j.fieldDataByName.get(re);if(!ee||ee.argumentDataByName.size||E[_].has(re))return U=!1,Mi.BREAK;let{isUnconditionallyProvided:me}=(0,e1.getOrThrowError)(ee.externalFieldDataBySubgraphName,t,`${ee.originalParentTypeName}.${re}.externalFieldDataBySubgraphName`),ce=e.get(`${ee.renamedParentTypeName}.${re}`);if(ce){if(ce.providedBy.length>0)h.push(...ce.providedBy);else if(ce.requiredBy.length>0)return U=!1,Mi.BREAK}else if(!me)return U=!1,Mi.BREAK;E[_].add(re);let be=(0,Ite.getTypeNodeNamedTypeName)(ee.node.type);if(gte.BASE_SCALARS.has(be))return;let xe=s.get(be);if(!xe)return U=!1,Mi.BREAK;if(xe.kind===Mi.Kind.OBJECT_TYPE_DEFINITION){A=!0,f.push(xe);return}if((0,_te.isKindAbstract)(xe.kind))return U=!1,Mi.BREAK}},InlineFragment:{enter(){return U=!1,Mi.BREAK}},SelectionSet:{enter(){if(!A||(_+=1,A=!1,_<0||_>=f.length))return U=!1,Mi.BREAK;E.push(new Set)},leave(){if(A)return U=!1,Mi.BREAK;_-=1,f.pop(),E.pop()}}}),U&&(r.push(K(x({fieldName:"",selectionSet:l},h.length>0?{conditions:h}:{}),{disableEntityResolver:!0})),a&&a.satisfiedFieldSets.add(l))}}function bte(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function Ate(e){if(e)return{block:!0,kind:Mi.Kind.STRING,value:e}}});var bf=C(_t=>{"use strict";p();N();m();Object.defineProperty(_t,"__esModule",{value:!0});_t.MergeMethod=void 0;_t.newPersistedDirectivesData=wte;_t.isNodeExternalOrShareable=Lte;_t.isTypeRequired=Pte;_t.areDefaultValuesCompatible=n1;_t.compareAndValidateInputValueDefaultValues=Cte;_t.setMutualExecutableLocations=Ute;_t.isTypeNameRootType=Bte;_t.getRenamedRootTypeName=kte;_t.childMapToValueArray=Mte;_t.setLongestDescription=Vte;_t.isParentDataRootType=r1;_t.isInterfaceDefinitionData=qte;_t.setParentDataExtensionType=$te;_t.upsertDeprecatedDirective=jte;_t.upsertTagDirectives=Kte;_t.propagateAuthDirectives=Gte;_t.propagateFieldAuthDirectives=Qte;_t.generateDeprecatedDirective=gb;_t.getClientPersistedDirectiveNodes=yb;_t.getClientSchemaFieldNodeByFieldData=Hte;_t.getNodeWithPersistedDirectivesByInputValueData=i1;_t.addValidPersistedDirectiveDefinitionNodeByData=Wte;_t.newInvalidFieldNames=Xte;_t.validateExternalAndShareable=Zte;_t.isTypeValidImplementation=py;_t.isNodeDataInaccessible=s1;_t.isLeafKind=ene;_t.getSubscriptionFilterValue=tne;_t.getParentTypeName=nne;_t.newConditionalFieldData=rne;_t.getDefinitionDataCoords=ine;_t.isParentDataCompositeOutputType=sne;_t.newExternalFieldData=ane;_t.getInitialFederatedDescription=one;_t.areKindsEqual=une;_t.isFieldData=_b;_t.isInputObjectDefinitionData=cne;_t.isInputNodeKind=lne;_t.isOutputNodeKind=dne;var dt=(Oe(),Ae(Pe)),hb=DN(),Of=ui(),Ib=As(),zt=Er(),Bl=di(),Rte=fy(),Fte=(Oe(),Ae(Pe));function wte(){return{deprecatedReason:"",directivesByName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function Lte(e,t,n){var i;let r={isExternal:n.has(zt.EXTERNAL),isShareable:t||n.has(zt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let s of e.directives){let a=s.name.value;if(a===zt.EXTERNAL){r.isExternal=!0;continue}a===zt.SHAREABLE&&(r.isShareable=!0)}return r}function Pte(e){return e.kind===dt.Kind.NON_NULL_TYPE}function n1(e,t){switch(e.kind){case dt.Kind.LIST_TYPE:return t.kind===dt.Kind.LIST||t.kind===dt.Kind.NULL;case dt.Kind.NAMED_TYPE:if(t.kind===dt.Kind.NULL)return!0;switch(e.name.value){case zt.BOOLEAN_SCALAR:return t.kind===dt.Kind.BOOLEAN;case zt.FLOAT_SCALAR:return t.kind===dt.Kind.INT||t.kind===dt.Kind.FLOAT;case zt.INT_SCALAR:return t.kind===dt.Kind.INT;case zt.STRING_SCALAR:return t.kind===dt.Kind.STRING;default:return!0}case dt.Kind.NON_NULL_TYPE:return t.kind===dt.Kind.NULL?!1:n1(e.type,t)}}function Cte(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,dt.print)(e.defaultValue),i=(0,dt.print)(t.defaultValue);if(r!==i){n.push((0,Ib.incompatibleInputValueDefaultValuesError)(`${e.isArgument?zt.ARGUMENT:zt.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,i));return}}function Ute(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function Bte(e,t){return zt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function kte(e,t){let n=t.get(e);if(!n)return e;switch(n){case dt.OperationTypeNode.MUTATION:return zt.MUTATION;case dt.OperationTypeNode.SUBSCRIPTION:return zt.SUBSCRIPTION;default:return zt.QUERY}}function xte(e){for(let t of e.argumentDataByName.values()){for(let n of t.directivesByName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function Mte(e){var n;let t=[];for(let r of e.values()){_b(r)&&xte(r);for(let[i,s]of r.directivesByName){if(i===zt.DEPRECATED){let a=s[0];if(!a)continue;if((n=a.arguments)!=null&&n.length){r.node.directives.push(a);continue}r.node.directives.push(K(x({},a),{arguments:[{kind:dt.Kind.ARGUMENT,value:{kind:dt.Kind.STRING,value:Fte.DEFAULT_DEPRECATION_REASON},name:(0,Of.stringToNameNode)(zt.REASON)}]}));continue}r.node.directives.push(...s)}t.push(r.node)}return t}function Vte(e,t){if(t.description){if("configureDescriptionDataBySubgraphName"in t){for(let{propagate:n}of t.configureDescriptionDataBySubgraphName.values())if(!n)return}(!e.description||e.description.value.length0&&e.persistedDirectivesData.directivesByName.set(zt.REQUIRES_SCOPES,[(0,Bl.generateRequiresScopesDirective)(t.requiredScopes)]))}function Qte(e,t){if(!t)return;let n=t.fieldAuthDataByFieldName.get(e.name);n&&(n.originalData.requiresAuthentication&&e.persistedDirectivesData.directivesByName.set(zt.AUTHENTICATED,[(0,Bl.generateSimpleDirective)(zt.AUTHENTICATED)]),n.originalData.requiredScopes.length>0&&e.persistedDirectivesData.directivesByName.set(zt.REQUIRES_SCOPES,[(0,Bl.generateRequiresScopesDirective)(n.originalData.requiredScopes)]))}function gb(e){return{kind:dt.Kind.DIRECTIVE,name:(0,Of.stringToNameNode)(zt.DEPRECATED),arguments:[{kind:dt.Kind.ARGUMENT,name:(0,Of.stringToNameNode)(zt.REASON),value:{kind:dt.Kind.STRING,value:e||zt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function Yte(e,t,n,r){let i=[];for(let[s,a]of e){let u=t.get(s);if(u){if(a.length<2){i.push(...a);continue}if(!u.repeatable){r.push((0,Ib.invalidRepeatedFederatedDirectiveErrorMessage)(s,n));continue}i.push(...a)}}return i}function Jte(e,t,n){let r=[...e.persistedDirectivesData.tagDirectiveByName.values()];return e.persistedDirectivesData.isDeprecated&&r.push(gb(e.persistedDirectivesData.deprecatedReason)),r.push(...Yte(e.persistedDirectivesData.directivesByName,t,e.name,n)),r}function yb(e){var n;let t=[];e.persistedDirectivesData.isDeprecated&&t.push(gb(e.persistedDirectivesData.deprecatedReason));for(let[r,i]of e.persistedDirectivesData.directivesByName){if(r===zt.SEMANTIC_NON_NULL&&_b(e)){t.push((0,Bl.generateSemanticNonNullDirective)((n=(0,Bl.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?n:new Set([0])));continue}zt.PERSISTED_CLIENT_DIRECTIVES.has(r)&&t.push(i[0])}return t}function Hte(e){let t=yb(e),n=[];for(let r of e.argumentDataByName.values())s1(r)||n.push(K(x({},r.node),{directives:yb(r)}));return K(x({},e.node),{directives:t,arguments:n})}function i1(e,t,n){return e.node.name=(0,Of.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=Jte(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function zte(e,t,n,r,i){let s=[];for(let[a,u]of t.argumentDataByName){let l=(0,Bl.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames);if(l.length>0){u.requiredSubgraphNames.size>0&&s.push({inputValueName:a,missingSubgraphs:l,requiredSubgraphs:[...u.requiredSubgraphNames]});continue}e.push(i1(u,n,r)),i&&i.add(a)}return s.length>0?(r.push((0,Ib.invalidRequiredInputValueError)(zt.DIRECTIVE_DEFINITION,`@${t.name}`,s)),!1):!0}function Wte(e,t,n,r){let i=[];zte(i,t,n,r)&&e.push({arguments:i,kind:dt.Kind.DIRECTIVE_DEFINITION,locations:(0,Of.setToNameNodeArray)(t.executableLocations),name:(0,Of.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function Xte(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function Zte(e,t){let n=e.isShareableBySubgraphName.size,r=new Array,i=0;for(let[s,a]of e.isShareableBySubgraphName){let u=e.externalFieldDataBySubgraphName.get(s);if(u&&!u.isUnconditionallyProvided){r.push(s);continue}a||(i+=1)}switch(i){case 0:n===r.length&&t.subgraphNamesByExternalFieldName.set(e.name,r);return;case 1:if(n===1)return;n-r.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var t1;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(t1||(_t.MergeMethod=t1={}));function py(e,t,n){if(e.kind===dt.Kind.NON_NULL_TYPE)return t.kind!==dt.Kind.NON_NULL_TYPE?!1:py(e.type,t.type,n);if(t.kind===dt.Kind.NON_NULL_TYPE)return py(e,t.type,n);switch(e.kind){case dt.Kind.NAMED_TYPE:if(t.kind===dt.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let s=n.get(r);return s?s.has(i):!1}return!1;default:return t.kind===dt.Kind.LIST_TYPE?py(e.type,t.type,n):!1}}function s1(e){return e.persistedDirectivesData.directivesByName.has(zt.INACCESSIBLE)||e.directivesByName.has(zt.INACCESSIBLE)}function ene(e){return e===dt.Kind.SCALAR_TYPE_DEFINITION||e===dt.Kind.ENUM_TYPE_DEFINITION}function tne(e){switch(e.kind){case dt.Kind.BOOLEAN:return e.value;case dt.Kind.ENUM:case dt.Kind.STRING:return e.value;case dt.Kind.FLOAT:case dt.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case dt.Kind.NULL:return null}}function nne(e){return e.kind===dt.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function rne(){return{providedBy:[],requiredBy:[]}}function ine(e,t){switch(e.kind){case dt.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case dt.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case dt.Kind.ARGUMENT:case dt.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case dt.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function sne(e){return e.kind===dt.Kind.OBJECT_TYPE_DEFINITION||e.kind===dt.Kind.INTERFACE_TYPE_DEFINITION}function ane(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function one(e){let{value:t,done:n}=e.configureDescriptionDataBySubgraphName.values().next();if(n)return e.description;if(t.propagate)return(0,Rte.getDescriptionFromString)(t.description)||e.description}function une(e,t){return e.kind===t.kind}function _b(e){return e.kind===dt.Kind.FIELD_DEFINITION}function cne(e){return e.kind===dt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function lne(e){return zt.INPUT_NODE_KINDS.has(e)}function dne(e){return zt.OUTPUT_NODE_KINDS.has(e)}});var Db={};Ap(Db,{__addDisposableResource:()=>O1,__assign:()=>my,__asyncDelegator:()=>h1,__asyncGenerator:()=>E1,__asyncValues:()=>y1,__await:()=>Af,__awaiter:()=>d1,__classPrivateFieldGet:()=>v1,__classPrivateFieldIn:()=>D1,__classPrivateFieldSet:()=>S1,__createBinding:()=>Ty,__decorate:()=>u1,__disposeResources:()=>b1,__esDecorate:()=>fne,__exportStar:()=>p1,__extends:()=>a1,__generator:()=>f1,__importDefault:()=>_1,__importStar:()=>g1,__makeTemplateObject:()=>I1,__metadata:()=>l1,__param:()=>c1,__propKey:()=>mne,__read:()=>Sb,__rest:()=>o1,__runInitializers:()=>pne,__setFunctionName:()=>Nne,__spread:()=>m1,__spreadArray:()=>T1,__spreadArrays:()=>N1,__values:()=>Ny,default:()=>hne});function a1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function o1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;u--)(a=e[u])&&(s=(i<3?a(s):i>3?a(t,n,s):a(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function c1(e,t){return function(n,r){t(n,r,e)}}function fne(e,t,n,r,i,s){function a(j){if(j!==void 0&&typeof j!="function")throw new TypeError("Function expected");return j}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,f=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),E,h=!1,_=n.length-1;_>=0;_--){var A={};for(var U in r)A[U]=U==="access"?{}:r[U];for(var U in r.access)A.access[U]=r.access[U];A.addInitializer=function(j){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(j||null))};var q=(0,n[_])(u==="accessor"?{get:f.get,set:f.set}:f[l],A);if(u==="accessor"){if(q===void 0)continue;if(q===null||typeof q!="object")throw new TypeError("Object expected");(E=a(q.get))&&(f.get=E),(E=a(q.set))&&(f.set=E),(E=a(q.init))&&i.unshift(E)}else(E=a(q))&&(u==="field"?i.unshift(E):f[l]=E)}d&&Object.defineProperty(d,r.name,f),h=!0}function pne(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Sb(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function m1(){for(var e=[],t=0;t1||u(h,_)})})}function u(h,_){try{l(r[h](_))}catch(A){E(s[0][3],A)}}function l(h){h.value instanceof Af?Promise.resolve(h.value.v).then(d,f):E(s[0][2],h)}function d(h){u("next",h)}function f(h){u("throw",h)}function E(h,_){h(_),s.shift(),s.length&&u(s[0][0],s[0][1])}}function h1(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(a){return(n=!n)?{value:Af(e[i](a)),done:!1}:s?s(a):a}:s}}function y1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ny=="function"?Ny(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(a){return new Promise(function(u,l){a=e[s](a),i(u,l,a.done,a.value)})}}function i(s,a,u,l){Promise.resolve(l).then(function(d){s({value:d,done:u})},a)}}function I1(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function g1(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Ty(t,e,n);return Tne(t,e),t}function _1(e){return e&&e.__esModule?e:{default:e}}function v1(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function S1(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function D1(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function O1(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function b1(e){function t(r){e.error=e.hasError?new Ene(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(s){return t(s),n()})}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}var vb,my,Ty,Tne,Ene,hne,Ob=ae(()=>{"use strict";p();N();m();vb=function(e,t){return vb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},vb(e,t)};my=function(){return my=Object.assign||function(t){for(var n,r=1,i=arguments.length;rX1,__assign:()=>Ey,__asyncDelegator:()=>K1,__asyncGenerator:()=>j1,__asyncValues:()=>G1,__await:()=>Rf,__awaiter:()=>k1,__classPrivateFieldGet:()=>H1,__classPrivateFieldIn:()=>W1,__classPrivateFieldSet:()=>z1,__createBinding:()=>yy,__decorate:()=>F1,__disposeResources:()=>Z1,__esDecorate:()=>L1,__exportStar:()=>M1,__extends:()=>A1,__generator:()=>x1,__importDefault:()=>J1,__importStar:()=>Y1,__makeTemplateObject:()=>Q1,__metadata:()=>B1,__param:()=>w1,__propKey:()=>C1,__read:()=>Rb,__rest:()=>R1,__rewriteRelativeImportExtension:()=>eV,__runInitializers:()=>P1,__setFunctionName:()=>U1,__spread:()=>V1,__spreadArray:()=>$1,__spreadArrays:()=>q1,__values:()=>hy,default:()=>gne});function A1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function R1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;u--)(a=e[u])&&(s=(i<3?a(s):i>3?a(t,n,s):a(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function w1(e,t){return function(n,r){t(n,r,e)}}function L1(e,t,n,r,i,s){function a(j){if(j!==void 0&&typeof j!="function")throw new TypeError("Function expected");return j}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,f=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),E,h=!1,_=n.length-1;_>=0;_--){var A={};for(var U in r)A[U]=U==="access"?{}:r[U];for(var U in r.access)A.access[U]=r.access[U];A.addInitializer=function(j){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(j||null))};var q=(0,n[_])(u==="accessor"?{get:f.get,set:f.set}:f[l],A);if(u==="accessor"){if(q===void 0)continue;if(q===null||typeof q!="object")throw new TypeError("Object expected");(E=a(q.get))&&(f.get=E),(E=a(q.set))&&(f.set=E),(E=a(q.init))&&i.unshift(E)}else(E=a(q))&&(u==="field"?i.unshift(E):f[l]=E)}d&&Object.defineProperty(d,r.name,f),h=!0}function P1(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rb(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function V1(){for(var e=[],t=0;t1||l(_,U)})},A&&(i[_]=A(i[_])))}function l(_,A){try{d(r[_](A))}catch(U){h(s[0][3],U)}}function d(_){_.value instanceof Rf?Promise.resolve(_.value.v).then(f,E):h(s[0][2],_)}function f(_){l("next",_)}function E(_){l("throw",_)}function h(_,A){_(A),s.shift(),s.length&&l(s[0][0],s[0][1])}}function K1(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(a){return(n=!n)?{value:Rf(e[i](a)),done:!1}:s?s(a):a}:s}}function G1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof hy=="function"?hy(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(a){return new Promise(function(u,l){a=e[s](a),i(u,l,a.done,a.value)})}}function i(s,a,u,l){Promise.resolve(l).then(function(d){s({value:d,done:u})},a)}}function Q1(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Y1(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Ab(e),r=0;r{"use strict";p();N();m();bb=function(e,t){return bb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},bb(e,t)};Ey=function(){return Ey=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";p();N();m()});var Ff=C(Fs=>{"use strict";p();N();m();Object.defineProperty(Fs,"__esModule",{value:!0});Fs.asArray=void 0;Fs.isUrl=iV;Fs.isDocumentString=One;Fs.isValidPath=Ane;Fs.compareStrings=sV;Fs.nodeToString=Fb;Fs.compareNodes=Rne;Fs.isSome=Fne;Fs.assertSome=wne;var _ne=(Oe(),Ae(Pe)),vne=/^(https?|wss?|file):\/\//;function iV(e){if(typeof e!="string"||!vne.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch(t){return!1}}var Sne=e=>Array.isArray(e)?e:e?[e]:[];Fs.asArray=Sne;var Dne=/\.[a-z0-9]+$/i;function One(e){if(typeof e!="string"||Dne.test(e)||iV(e))return!1;try{return(0,_ne.parse)(e),!0}catch(t){if(!t.message.includes("EOF")&&e.replace(/(\#[^*]*)/g,"").trim()!==""&&e.includes(" "))throw new Error(`Failed to parse the GraphQL document. ${t.message} +${e}`)}return!1}var bne=/[‘“!%^<>`\n]/;function Ane(e){return typeof e=="string"&&!bne.test(e)}function sV(e,t){return String(e)String(t)?1:0}function Fb(e){var n,r;let t;return"alias"in e&&(t=(n=e.alias)==null?void 0:n.value),t==null&&"name"in e&&(t=(r=e.name)==null?void 0:r.value),t==null&&(t=e.kind),t}function Rne(e,t,n){let r=Fb(e),i=Fb(t);return typeof n=="function"?n(r,i):sV(r,i)}function Fne(e){return e!=null}function wne(e,t="Value should be something"){if(e==null)throw new Error(t)}});var bN=C(gy=>{"use strict";p();N();m();Object.defineProperty(gy,"__esModule",{value:!0});gy.inspect=void 0;var uV=3;function Lne(e){return Iy(e,[])}gy.inspect=Lne;function Iy(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Pne(e,t);default:return String(e)}}function aV(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; + ${e.stack}`}function Pne(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?aV(e)+` +`+oV(e.errors,t):aV(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Cne(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Iy(r,n)}else if(Array.isArray(e))return oV(e,n);return Une(e,n)}function Cne(e){return typeof e.toJSON=="function"}function Une(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>uV?"["+Bne(e)+"]":"{ "+n.map(([i,s])=>i+": "+Iy(s,t)).join(", ")+" }"}function oV(e,t){if(e.length===0)return"[]";if(t.length>uV)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";p();N();m();Object.defineProperty(_y,"__esModule",{value:!0});_y.createGraphQLError=Lb;_y.relocatedError=Mne;var wb=(Oe(),Ae(Pe)),kne=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function xne(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>kne.includes(t))}function Lb(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&xne(t.originalError)&&(t.originalError=Lb(t.originalError.message,t.originalError)),wb.versionInfo.major>=17?new wb.GraphQLError(e,t):new wb.GraphQLError(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions)}function Mne(e,t){return Lb(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}});var AN=C(Vi=>{"use strict";p();N();m();Object.defineProperty(Vi,"__esModule",{value:!0});Vi.isPromise=Sy;Vi.isActualPromise=lV;Vi.handleMaybePromise=Cc;Vi.fakePromise=Va;Vi.createDeferredPromise=Vne;Vi.iterateAsync=dV;Vi.iterateAsyncVoid=dV;Vi.fakeRejectPromise=kl;Vi.mapMaybePromise=qne;Vi.mapAsyncIterator=$ne;Vi.promiseLikeFinally=fV;Vi.unfakePromise=pV;var Dy=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function Sy(e){return(e==null?void 0:e.then)!=null}function lV(e){let t=e;return t&&t.then&&t.catch&&t.finally}function Cc(e,t,n,r){let i=Va().then(e).then(t,n);return r&&(i=i.finally(r)),pV(i)}function Va(e){return e&&lV(e)?e:Sy(e)?{then:(t,n)=>Va(e.then(t,n)),catch:t=>Va(e.then(n=>n,t)),finally:t=>Va(t?fV(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return Va(t(e))}catch(n){return kl(n)}return this},catch(){return this},finally(t){if(t)try{return Va(t()).then(()=>e,()=>e)}catch(n){return kl(n)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[Dy]:"resolved"}}function Vne(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;return{promise:new Promise(function(i,s){e=i,t=s}),get resolve(){return e},get reject(){return t}}}function dV(e,t,n){if((e==null?void 0:e.length)===0)return;let r=e[Symbol.iterator](),i=0;function s(){let{done:a,value:u}=r.next();if(a)return;let l=!1;function d(){l=!0}return Cc(function(){return t(u,d,i++)},function(E){if(E&&(n==null||n.push(E)),!l)return s()})}return s()}function kl(e){return{then(t,n){if(n)try{return Va(n(e))}catch(r){return kl(r)}return this},catch(t){if(t)try{return Va(t(e))}catch(n){return kl(n)}return this},finally(t){if(t)try{t()}catch(n){return kl(n)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[Dy]:"rejected"}}function qne(e,t,n){return Cc(()=>e,t,n)}function $ne(e,t,n,r){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,s,a;if(r){let d;a=f=>(d||(d=Cc(r,()=>f,()=>f)),d)}typeof e.return=="function"&&(i=e.return,s=d=>{let f=()=>{throw d};return i.call(e).then(f,f)});function u(d){return d.done?a?a(d):d:Cc(()=>d.value,f=>Cc(()=>t(f),cV,s))}let l;if(n){let d,f=n;l=E=>(d||(d=Cc(()=>E,h=>Cc(()=>f(h),cV,s))),d)}return{next(){return e.next().then(u,l)},return(){let d=i?i.call(e).then(u,l):Va({value:void 0,done:!0});return a?d.then(a):d},throw(d){return typeof e.throw=="function"?e.throw(d).then(u,l):s?s(d):kl(d)},[Symbol.asyncIterator](){return this}}}function cV(e){return{value:e,done:!1}}function jne(e){return(e==null?void 0:e[Dy])==="resolved"}function Kne(e){return(e==null?void 0:e[Dy])==="rejected"}function fV(e,t){return"finally"in e?e.finally(t):e.then(n=>{let r=t();return Sy(r)?r.then(()=>n):n},n=>{let r=t();if(Sy(r))return r.then(()=>{throw n});throw n})}function pV(e){if(jne(e))return e.__fakePromiseValue;if(Kne(e))throw e.__fakeRejectError;return e}});var Oy=C(Uc=>{"use strict";p();N();m();Object.defineProperty(Uc,"__esModule",{value:!0});Uc.isPromise=void 0;Uc.isIterableObject=Gne;Uc.isObjectLike=Qne;Uc.promiseReduce=Yne;Uc.hasOwnProperty=Jne;var mV=AN();Object.defineProperty(Uc,"isPromise",{enumerable:!0,get:function(){return mV.isPromise}});function Gne(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function Qne(e){return typeof e=="object"&&e!==null}function Yne(e,t,n){let r=n;for(let i of e)r=(0,mV.handleMaybePromise)(()=>r,s=>t(s,i));return r}function Jne(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var Ub=C(Cb=>{"use strict";p();N();m();Object.defineProperty(Cb,"__esModule",{value:!0});Cb.getArgumentValues=zne;var Pb=bN(),xl=(Oe(),Ae(Pe)),by=vy(),Hne=Oy();function zne(e,t,n={}){var a;let r={},s=((a=t.arguments)!=null?a:[]).reduce((u,l)=>K(x({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:d}of e.args){let f=s[u];if(!f){if(d!==void 0)r[u]=d;else if((0,xl.isNonNullType)(l))throw(0,by.createGraphQLError)(`Argument "${u}" of required type "${(0,Pb.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let E=f.value,h=E.kind===xl.Kind.NULL;if(E.kind===xl.Kind.VARIABLE){let A=E.name.value;if(n==null||!(0,Hne.hasOwnProperty)(n,A)){if(d!==void 0)r[u]=d;else if((0,xl.isNonNullType)(l))throw(0,by.createGraphQLError)(`Argument "${u}" of required type "${(0,Pb.inspect)(l)}" was provided the variable "$${A}" which was not provided a runtime value.`,{nodes:[E]});continue}h=n[A]==null}if(h&&(0,xl.isNonNullType)(l))throw(0,by.createGraphQLError)(`Argument "${u}" of non-null type "${(0,Pb.inspect)(l)}" must not be null.`,{nodes:[E]});let _=(0,xl.valueFromAST)(E,l,n);if(_===void 0)throw(0,by.createGraphQLError)(`Argument "${u}" has invalid value ${(0,xl.print)(E)}.`,{nodes:[E]});r[u]=_}return r}});var Bc=C(Lo=>{"use strict";p();N();m();Object.defineProperty(Lo,"__esModule",{value:!0});Lo.memoize1=Wne;Lo.memoize2=Xne;Lo.memoize3=Zne;Lo.memoize4=ere;Lo.memoize5=tre;Lo.memoize2of4=nre;Lo.memoize2of5=rre;function Wne(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let s=e(r);return t.set(r,s),s}return i}}function Xne(e){let t=new WeakMap;return function(r,i){let s=t.get(r);if(!s){s=new WeakMap,t.set(r,s);let u=e(r,i);return s.set(i,u),u}let a=s.get(i);if(a===void 0){let u=e(r,i);return s.set(i,u),u}return a}}function Zne(e){let t=new WeakMap;return function(r,i,s){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let d=new WeakMap;a.set(i,d);let f=e(r,i,s);return d.set(s,f),f}let u=a.get(i);if(!u){u=new WeakMap,a.set(i,u);let d=e(r,i,s);return u.set(s,d),d}let l=u.get(s);if(l===void 0){let d=e(r,i,s);return u.set(s,d),d}return l}}function ere(e){let t=new WeakMap;return function(r,i,s,a){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let E=new WeakMap;u.set(i,E);let h=new WeakMap;E.set(s,h);let _=e(r,i,s,a);return h.set(a,_),_}let l=u.get(i);if(!l){l=new WeakMap,u.set(i,l);let E=new WeakMap;l.set(s,E);let h=e(r,i,s,a);return E.set(a,h),h}let d=l.get(s);if(!d){let E=new WeakMap;l.set(s,E);let h=e(r,i,s,a);return E.set(a,h),h}let f=d.get(a);if(f===void 0){let E=e(r,i,s,a);return d.set(a,E),E}return f}}function tre(e){let t=new WeakMap;return function(r,i,s,a,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let _=new WeakMap;l.set(i,_);let A=new WeakMap;_.set(s,A);let U=new WeakMap;A.set(a,U);let q=e(r,i,s,a,u);return U.set(u,q),q}let d=l.get(i);if(!d){d=new WeakMap,l.set(i,d);let _=new WeakMap;d.set(s,_);let A=new WeakMap;_.set(a,A);let U=e(r,i,s,a,u);return A.set(u,U),U}let f=d.get(s);if(!f){f=new WeakMap,d.set(s,f);let _=new WeakMap;f.set(a,_);let A=e(r,i,s,a,u);return _.set(u,A),A}let E=f.get(a);if(!E){E=new WeakMap,f.set(a,E);let _=e(r,i,s,a,u);return E.set(u,_),_}let h=E.get(u);if(h===void 0){let _=e(r,i,s,a,u);return E.set(u,_),_}return h}}function nre(e){let t=new WeakMap;return function(r,i,s,a){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let d=e(r,i,s,a);return u.set(i,d),d}let l=u.get(i);if(l===void 0){let d=e(r,i,s,a);return u.set(i,d),d}return l}}function rre(e){let t=new WeakMap;return function(r,i,s,a,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let f=e(r,i,s,a,u);return l.set(i,f),f}let d=l.get(i);if(d===void 0){let f=e(r,i,s,a,u);return l.set(i,f),f}return d}}});var kb=C(Bb=>{"use strict";p();N();m();Object.defineProperty(Bb,"__esModule",{value:!0});Bb.getDirectiveExtensions=are;var NV=(Oe(),Ae(Pe)),ire=Ub(),sre=Bc();function are(e,t,n=["directives"]){var a;let r={};if(e.extensions){let u=e.extensions;for(let l of n)u=u==null?void 0:u[l];if(u!=null)for(let l in u){let d=u[l],f=l;if(Array.isArray(d))for(let E of d){let h=r[f];h||(h=[],r[f]=h),h.push(E)}else{let E=r[f];E||(E=[],r[f]=E),E.push(d)}}}let i=(0,sre.memoize1)(u=>JSON.stringify(u)),s=[];e.astNode&&s.push(e.astNode),e.extensionASTNodes&&s.push(...e.extensionASTNodes);for(let u of s)if((a=u.directives)!=null&&a.length)for(let l of u.directives){let d=l.name.value,f=r[d];f||(f=[],r[d]=f);let E=t==null?void 0:t.getDirective(d),h={};if(E&&(h=(0,ire.getArgumentValues)(E,l)),l.arguments)for(let _ of l.arguments){let A=_.name.value;if(h[A]==null){let U=E==null?void 0:E.args.find(q=>q.name===A);U&&(h[A]=(0,NV.valueFromAST)(_.value,U.type))}h[A]==null&&(h[A]=(0,NV.valueFromASTUntyped)(_.value))}if(s.length>0&&f.length>0){let _=i(h);if(f.some(A=>i(A)===_))continue}f.push(h)}return r}});var xb=C(wf=>{"use strict";p();N();m();Object.defineProperty(wf,"__esModule",{value:!0});wf.getDirectivesInExtensions=ore;wf.getDirectiveInExtensions=ure;wf.getDirectives=cre;wf.getDirective=lre;var Ay=kb();function ore(e,t=["directives"]){let n=(0,Ay.getDirectiveExtensions)(e,void 0,t);return Object.entries(n).map(([r,i])=>i==null?void 0:i.map(s=>({name:r,args:s}))).flat(1/0).filter(Boolean)}function ure(e,t,n=["directives"]){return(0,Ay.getDirectiveExtensions)(e,void 0,n)[t]}function cre(e,t,n=["directives"]){let r=(0,Ay.getDirectiveExtensions)(t,e,n);return Object.entries(r).map(([i,s])=>s==null?void 0:s.map(a=>({name:i,args:a}))).flat(1/0).filter(Boolean)}function lre(e,t,n,r=["directives"]){return(0,Ay.getDirectiveExtensions)(t,e,r)[n]}});var Vb=C(Mb=>{"use strict";p();N();m();Object.defineProperty(Mb,"__esModule",{value:!0});Mb.getFieldsWithDirectives=fre;var dre=(Oe(),Ae(Pe));function fre(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(s=>r.includes(s.kind));for(let s of i){let a=s.name.value;if(s.fields!=null){for(let u of s.fields)if(u.directives&&u.directives.length>0){let l=u.name.value,d=`${a}.${l}`,f=u.directives.map(E=>({name:E.name.value,args:(E.arguments||[]).reduce((h,_)=>K(x({},h),{[_.name.value]:(0,dre.valueFromASTUntyped)(_.value)}),{})}));n[d]=f}}}return n}});var TV=C($b=>{"use strict";p();N();m();Object.defineProperty($b,"__esModule",{value:!0});$b.getArgumentsWithDirectives=mre;var qb=(Oe(),Ae(Pe));function pre(e){return e.kind===qb.Kind.OBJECT_TYPE_DEFINITION||e.kind===qb.Kind.OBJECT_TYPE_EXTENSION}function mre(e){var r;let t={},n=e.definitions.filter(pre);for(let i of n)if(i.fields!=null)for(let s of i.fields){let a=(r=s.arguments)==null?void 0:r.filter(l=>{var d;return(d=l.directives)==null?void 0:d.length});if(!(a!=null&&a.length))continue;let u=t[`${i.name.value}.${s.name.value}`]={};for(let l of a){let d=l.directives.map(f=>({name:f.name.value,args:(f.arguments||[]).reduce((E,h)=>K(x({},E),{[h.name.value]:(0,qb.valueFromASTUntyped)(h.value)}),{})}));u[l.name.value]=d}}return t}});var Kb=C(jb=>{"use strict";p();N();m();Object.defineProperty(jb,"__esModule",{value:!0});jb.getImplementingTypes=Nre;function Nre(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let s=n[i];"getInterfaces"in s&&s.getInterfaces().find(u=>u.name===e)&&r.push(s.name)}return r}});var Ry=C(Qb=>{"use strict";p();N();m();Object.defineProperty(Qb,"__esModule",{value:!0});Qb.astFromType=Gb;var Tre=bN(),Ml=(Oe(),Ae(Pe));function Gb(e){if((0,Ml.isNonNullType)(e)){let t=Gb(e.ofType);if(t.kind===Ml.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,Tre.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Ml.Kind.NON_NULL_TYPE,type:t}}else if((0,Ml.isListType)(e))return{kind:Ml.Kind.LIST_TYPE,type:Gb(e.ofType)};return{kind:Ml.Kind.NAMED_TYPE,name:{kind:Ml.Kind.NAME,value:e.name}}}});var RN=C(Yb=>{"use strict";p();N();m();Object.defineProperty(Yb,"__esModule",{value:!0});Yb.astFromValueUntyped=Fy;var qa=(Oe(),Ae(Pe));function Fy(e){if(e===null)return{kind:qa.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=Fy(n);r!=null&&t.push(r)}return{kind:qa.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return Fy(e.toJSON());let t=[];for(let n in e){let r=e[n],i=Fy(r);i&&t.push({kind:qa.Kind.OBJECT_FIELD,name:{kind:qa.Kind.NAME,value:n},value:i})}return{kind:qa.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:qa.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:qa.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Ere.test(t)?{kind:qa.Kind.INT,value:t}:{kind:qa.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:qa.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Ere=/^-?(?:0|[1-9][0-9]*)$/});var hV=C(Jb=>{"use strict";p();N();m();Object.defineProperty(Jb,"__esModule",{value:!0});Jb.astFromValue=FN;var hre=bN(),ss=(Oe(),Ae(Pe)),yre=RN(),EV=Oy();function FN(e,t){if((0,ss.isNonNullType)(t)){let n=FN(e,t.ofType);return(n==null?void 0:n.kind)===ss.Kind.NULL?null:n}if(e===null)return{kind:ss.Kind.NULL};if(e===void 0)return null;if((0,ss.isListType)(t)){let n=t.ofType;if((0,EV.isIterableObject)(e)){let r=[];for(let i of e){let s=FN(i,n);s!=null&&r.push(s)}return{kind:ss.Kind.LIST,values:r}}return FN(e,n)}if((0,ss.isInputObjectType)(t)){if(!(0,EV.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=FN(e[r.name],r.type);i&&n.push({kind:ss.Kind.OBJECT_FIELD,name:{kind:ss.Kind.NAME,value:r.name},value:i})}return{kind:ss.Kind.OBJECT,fields:n}}if((0,ss.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,ss.isEnumType)(t)?{kind:ss.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&Ire.test(n)?{kind:ss.Kind.INT,value:n}:(0,yre.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,hre.inspect)(t))}var Ire=/^-?(?:0|[1-9][0-9]*)$/});var yV=C(Hb=>{"use strict";p();N();m();Object.defineProperty(Hb,"__esModule",{value:!0});Hb.getDescriptionNode=_re;var gre=(Oe(),Ae(Pe));function _re(e){var t;if((t=e.astNode)!=null&&t.description)return K(x({},e.astNode.description),{block:!0});if(e.description)return{kind:gre.Kind.STRING,value:e.description,block:!0}}});var wN=C(ws=>{"use strict";p();N();m();Object.defineProperty(ws,"__esModule",{value:!0});ws.getRootTypeMap=ws.getRootTypes=ws.getRootTypeNames=void 0;ws.getDefinedRootType=Sre;var vre=vy(),zb=Bc();function Sre(e,t,n){let i=(0,ws.getRootTypeMap)(e).get(t);if(i==null)throw(0,vre.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}ws.getRootTypeNames=(0,zb.memoize1)(function(t){let n=(0,ws.getRootTypes)(t);return new Set([...n].map(r=>r.name))});ws.getRootTypes=(0,zb.memoize1)(function(t){let n=(0,ws.getRootTypeMap)(t);return new Set(n.values())});ws.getRootTypeMap=(0,zb.memoize1)(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let s=t.getSubscriptionType();return s&&n.set("subscription",s),n})});var t0=C(yr=>{"use strict";p();N();m();Object.defineProperty(yr,"__esModule",{value:!0});yr.getDocumentNodeFromSchema=gV;yr.printSchemaWithDirectives=Are;yr.astFromSchema=_V;yr.astFromDirective=vV;yr.getDirectiveNodes=sa;yr.astFromArg=Xb;yr.astFromObjectType=SV;yr.astFromInterfaceType=DV;yr.astFromUnionType=OV;yr.astFromInputObjectType=bV;yr.astFromEnumType=AV;yr.astFromScalarType=RV;yr.astFromField=Zb;yr.astFromInputField=FV;yr.astFromEnumValue=wV;yr.makeDeprecatedDirective=LV;yr.makeDirectiveNode=Lf;yr.makeDirectiveNodes=e0;var vt=(Oe(),Ae(Pe)),Vl=Ry(),Wb=hV(),Dre=RN(),Ls=yV(),IV=xb(),Ore=Ff(),bre=wN();function gV(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=_V(e,n),s=i!=null?[i]:[],a=e.getDirectives();for(let u of a)(0,vt.isSpecifiedDirective)(u)||s.push(vV(u,e,n));for(let u in r){let l=r[u],d=(0,vt.isSpecifiedScalarType)(l),f=(0,vt.isIntrospectionType)(l);if(!(d||f))if((0,vt.isObjectType)(l))s.push(SV(l,e,n));else if((0,vt.isInterfaceType)(l))s.push(DV(l,e,n));else if((0,vt.isUnionType)(l))s.push(OV(l,e,n));else if((0,vt.isInputObjectType)(l))s.push(bV(l,e,n));else if((0,vt.isEnumType)(l))s.push(AV(l,e,n));else if((0,vt.isScalarType)(l))s.push(RV(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:vt.Kind.DOCUMENT,definitions:s}}function Are(e,t={}){let n=gV(e,t);return(0,vt.print)(n)}function _V(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let f of d.operationTypes)n.set(f.operation,f);let i=(0,bre.getRootTypeMap)(e);for(let[d,f]of n){let E=i.get(d);if(E!=null){let h=(0,Vl.astFromType)(E);f!=null?f.type=h:n.set(d,{kind:vt.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:h})}}let s=[...n.values()].filter(Ore.isSome),a=sa(e,e,t);if(!s.length&&!a.length)return null;let u={kind:s.length?vt.Kind.SCHEMA_DEFINITION:vt.Kind.SCHEMA_EXTENSION,operationTypes:s,directives:a},l=(0,Ls.getDescriptionNode)(e);return l&&(u.description=l),u}function vV(e,t,n){var r,i;return{kind:vt.Kind.DIRECTIVE_DEFINITION,description:(0,Ls.getDescriptionNode)(e),name:{kind:vt.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(s=>Xb(s,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(s=>({kind:vt.Kind.NAME,value:s})))||[]}}function sa(e,t,n){let r=[],i=(0,IV.getDirectivesInExtensions)(e,n),s;i!=null&&(s=e0(t,i));let a=null,u=null,l=null;if(s!=null&&(r=s.filter(d=>vt.specifiedDirectives.every(f=>f.name!==d.name.value)),a=s.find(d=>d.name.value==="deprecated"),u=s.find(d=>d.name.value==="specifiedBy"),l=s.find(d=>d.name.value==="oneOf")),e.deprecationReason!=null&&a==null&&(a=LV(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&u==null){let f={url:e.specifiedByUrl||e.specifiedByURL};u=Lf("specifiedBy",f)}return e.isOneOf&&l==null&&(l=Lf("oneOf")),a!=null&&r.push(a),u!=null&&r.push(u),l!=null&&r.push(l),r}function Xb(e,t,n){var r;return{kind:vt.Kind.INPUT_VALUE_DEFINITION,description:(0,Ls.getDescriptionNode)(e),name:{kind:vt.Kind.NAME,value:e.name},type:(0,Vl.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,Wb.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:sa(e,t,n)}}function SV(e,t,n){return{kind:vt.Kind.OBJECT_TYPE_DEFINITION,description:(0,Ls.getDescriptionNode)(e),name:{kind:vt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>Zb(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,Vl.astFromType)(r)),directives:sa(e,t,n)}}function DV(e,t,n){let r={kind:vt.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Ls.getDescriptionNode)(e),name:{kind:vt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>Zb(i,t,n)),directives:sa(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,Vl.astFromType)(i))),r}function OV(e,t,n){return{kind:vt.Kind.UNION_TYPE_DEFINITION,description:(0,Ls.getDescriptionNode)(e),name:{kind:vt.Kind.NAME,value:e.name},directives:sa(e,t,n),types:e.getTypes().map(r=>(0,Vl.astFromType)(r))}}function bV(e,t,n){return{kind:vt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Ls.getDescriptionNode)(e),name:{kind:vt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>FV(r,t,n)),directives:sa(e,t,n)}}function AV(e,t,n){return{kind:vt.Kind.ENUM_TYPE_DEFINITION,description:(0,Ls.getDescriptionNode)(e),name:{kind:vt.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>wV(r,t,n)),directives:sa(e,t,n)}}function RV(e,t,n){let r=(0,IV.getDirectivesInExtensions)(e,n),i=e0(t,r),s=e.specifiedByUrl||e.specifiedByURL;if(s&&!i.some(a=>a.name.value==="specifiedBy")){let a={url:s};i.push(Lf("specifiedBy",a))}return{kind:vt.Kind.SCALAR_TYPE_DEFINITION,description:(0,Ls.getDescriptionNode)(e),name:{kind:vt.Kind.NAME,value:e.name},directives:i}}function Zb(e,t,n){return{kind:vt.Kind.FIELD_DEFINITION,description:(0,Ls.getDescriptionNode)(e),name:{kind:vt.Kind.NAME,value:e.name},arguments:e.args.map(r=>Xb(r,t,n)),type:(0,Vl.astFromType)(e.type),directives:sa(e,t,n)}}function FV(e,t,n){var r;return{kind:vt.Kind.INPUT_VALUE_DEFINITION,description:(0,Ls.getDescriptionNode)(e),name:{kind:vt.Kind.NAME,value:e.name},type:(0,Vl.astFromType)(e.type),directives:sa(e,t,n),defaultValue:(r=(0,Wb.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}function wV(e,t,n){return{kind:vt.Kind.ENUM_VALUE_DEFINITION,description:(0,Ls.getDescriptionNode)(e),name:{kind:vt.Kind.NAME,value:e.name},directives:sa(e,t,n)}}function LV(e){return Lf("deprecated",{reason:e},vt.GraphQLDeprecatedDirective)}function Lf(e,t,n){let r=[];for(let i in t){let s=t[i],a;if(n!=null){let u=n.args.find(l=>l.name===i);u&&(a=(0,Wb.astFromValue)(s,u.type))}a==null&&(a=(0,Dre.astFromValueUntyped)(s)),a!=null&&r.push({kind:vt.Kind.ARGUMENT,name:{kind:vt.Kind.NAME,value:i},value:a})}return{kind:vt.Kind.DIRECTIVE,name:{kind:vt.Kind.NAME,value:e},arguments:r}}function e0(e,t){let n=[];for(let{name:r,args:i}of t){let s=e==null?void 0:e.getDirective(r);n.push(Lf(r,i,s))}return n}});var CV=C(wy=>{"use strict";p();N();m();Object.defineProperty(wy,"__esModule",{value:!0});wy.validateGraphQlDocuments=Rre;wy.createDefaultRules=PV;var LN=(Oe(),Ae(Pe));function Rre(e,t,n=PV()){var u;let r=new Set,i=new Map;for(let l of t)for(let d of l.definitions)d.kind===LN.Kind.FRAGMENT_DEFINITION?i.set(d.name.value,d):r.add(d);let s={kind:LN.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},a=(0,LN.validate)(e,s,n);for(let l of a)if(l.stack=l.message,l.locations)for(let d of l.locations)l.stack+=` + at ${(u=l.source)==null?void 0:u.name}:${d.line}:${d.column}`;return a}function PV(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return LN.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),LN.specifiedRules.filter(t=>!e.includes(t.name))}});var UV=C(n0=>{"use strict";p();N();m();Object.defineProperty(n0,"__esModule",{value:!0});n0.parseGraphQLJSON=Pre;var Fre=(Oe(),Ae(Pe));function wre(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Lre(e){return JSON.parse(wre(e))}function Pre(e,t,n){let r=Lre(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,Fre.buildClientSchema)(r,n);return{location:e,schema:i}}else if(typeof r=="string")return{location:e,rawSDL:r};throw new Error("Not valid JSON content")}});var i0=C(Ps=>{"use strict";p();N();m();Object.defineProperty(Ps,"__esModule",{value:!0});Ps.resetComments=Ure;Ps.collectComment=Bre;Ps.pushComment=PN;Ps.printComment=VV;Ps.printWithComments=Vre;Ps.getDescription=$re;Ps.getComment=r0;Ps.getLeadingCommentBlock=qV;Ps.dedentBlockStringValue=$V;Ps.getBlockStringIndentation=jV;var MV=(Oe(),Ae(Pe)),Cre=80,Pf={};function Ure(){Pf={}}function Bre(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(PN(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)PN(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(PN(r,t,r.name.value),qre(r)&&r.arguments)for(let i of r.arguments)PN(i,t,r.name.value,i.name.value)}break}}function PN(e,t,n,r){let i=r0(e);if(typeof i!="string"||i.length===0)return;let s=[t];n&&(s.push(n),r&&s.push(r));let a=s.join(".");Pf[a]||(Pf[a]=[]),Pf[a].push(i)}function VV(e){return` # `+e.replace(/\n/g,` -# `)}function Me(e,t){return e?e.filter(n=>n).join(t||""):""}function ok(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!=null?t:!1}function bte(e){return(t,n,r,i,a)=>{var p;let o=[],c=i.reduce((E,I)=>(["fields","arguments","values"].includes(I)&&E.name&&o.push(E.name.value),E[I]),a[0]),l=[...o,(p=c==null?void 0:c.name)==null?void 0:p.value].filter(Boolean).join("."),d=[];return t.kind.includes("Definition")&&jl[l]&&d.push(...jl[l]),Me([...d.map(dk),t.description,e(t,n,r,i,a)],` -`)}}function $f(e){return e&&` ${e.replace(/\n/g,` - `)}`}function Ta(e){return e&&e.length!==0?`{ -${$f(Me(e,` +# `)}function qe(e,t){return e?e.filter(n=>n).join(t||""):""}function BV(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` +`)))!=null?t:!1}function kre(e){return(t,n,r,i,s)=>{var f;let a=[],u=i.reduce((E,h)=>(["fields","arguments","values"].includes(h)&&E.name&&a.push(E.name.value),E[h]),s[0]),l=[...a,(f=u==null?void 0:u.name)==null?void 0:f.value].filter(Boolean).join("."),d=[];return t.kind.includes("Definition")&&Pf[l]&&d.push(...Pf[l]),qe([...d.map(VV),t.description,e(t,n,r,i,s)],` +`)}}function CN(e){return e&&` ${e.replace(/\n/g,` + `)}`}function aa(e){return e&&e.length!==0?`{ +${CN(qe(e,` `))} -}`:""}function Rn(e,t,n){return t?e+t+(n||""):""}function Ate(e,t=!1){let n=e.replace(/\\/g,"\\\\").replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` +}`:""}function Qn(e,t,n){return t?e+t+(n||""):""}function xre(e,t=!1){let n=e.replace(/\\/g,"\\\\").replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` `)===-1?`"""${n.replace(/"$/,`" `)}"""`:`""" -${t?n:$f(n)} -"""`}var uk={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Me(e.definitions,` +${t?n:CN(n)} +"""`}var kV={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>qe(e.definitions,` -`)},OperationDefinition:{leave:e=>{let t=Rn("(",Me(e.variableDefinitions,", "),")");return Me([e.operation,Me([e.name,t]),Me(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Rn(" = ",n)+Rn(" ",Me(r," "))},SelectionSet:{leave:({selections:e})=>Ta(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=Rn("",e,": ")+t,o=a+Rn("(",Me(n,", "),")");return o.length>Ote&&(o=a+Rn(`( -`,$f(Me(n,` +`)},OperationDefinition:{leave:e=>{let t=Qn("(",qe(e.variableDefinitions,", "),")");return qe([e.operation,qe([e.name,t]),qe(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Qn(" = ",n)+Qn(" ",qe(r," "))},SelectionSet:{leave:({selections:e})=>aa(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=Qn("",e,": ")+t,a=s+Qn("(",qe(n,", "),")");return a.length>Cre&&(a=s+Qn(`( +`,CN(qe(n,` `)),` -)`)),Me([o,Me(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Rn(" ",Me(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Me(["...",Rn("on ",e),Me(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Rn("(",Me(n,", "),")")} on ${t} ${Rn("",Me(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Ate(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Me(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Me(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Rn("(",Me(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>Me(["schema",Me(e," "),Ta(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>Me(["scalar",e,Me(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Me(["type",e,Rn("implements ",Me(t," & ")),Me(n," "),Ta(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(ok(t)?Rn(`( -`,$f(Me(t,` +)`)),qe([a,qe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Qn(" ",qe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>qe(["...",Qn("on ",e),qe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Qn("(",qe(n,", "),")")} on ${t} ${Qn("",qe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?xre(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+qe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+qe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Qn("(",qe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>qe(["schema",qe(e," "),aa(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>qe(["scalar",e,qe(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["type",e,Qn("implements ",qe(t," & ")),qe(n," "),aa(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(BV(t)?Qn(`( +`,CN(qe(t,` `)),` -)`):Rn("(",Me(t,", "),")"))+": "+n+Rn(" ",Me(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>Me([e+": "+t,Rn("= ",n),Me(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Me(["interface",e,Rn("implements ",Me(t," & ")),Me(n," "),Ta(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>Me(["union",e,Me(t," "),Rn("= ",Me(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>Me(["enum",e,Me(t," "),Ta(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>Me([e,Me(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>Me(["input",e,Me(t," "),Ta(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(ok(t)?Rn(`( -`,$f(Me(t,` +)`):Qn("(",qe(t,", "),")"))+": "+n+Qn(" ",qe(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>qe([e+": "+t,Qn("= ",n),qe(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["interface",e,Qn("implements ",qe(t," & ")),qe(n," "),aa(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>qe(["union",e,qe(t," "),Qn("= ",qe(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>qe(["enum",e,qe(t," "),aa(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>qe([e,qe(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>qe(["input",e,qe(t," "),aa(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(BV(t)?Qn(`( +`,CN(qe(t,` `)),` -)`):Rn("(",Me(t,", "),")"))+(n?" repeatable":"")+" on "+Me(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Me(["extend schema",Me(e," "),Ta(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Me(["extend scalar",e,Me(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Me(["extend type",e,Rn("implements ",Me(t," & ")),Me(n," "),Ta(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Me(["extend interface",e,Rn("implements ",Me(t," & ")),Me(n," "),Ta(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Me(["extend union",e,Me(t," "),Rn("= ",Me(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Me(["extend enum",e,Me(t," "),Ta(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Me(["extend input",e,Me(t," "),Ta(n)]," ")}},Rte=Object.keys(uk).reduce((e,t)=>Q(M({},e),{[t]:{leave:bte(uk[t].leave)}}),{});function Pte(e){return(0,lk.visit)(e,Rte)}function Fte(e){return e.kind==="FieldDefinition"}function wte(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return _O(e)}function _O(e){let t=fk(e);if(t!==void 0)return pk(` -${t}`)}function fk(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===lk.TokenKind.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){let i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(` -`):void 0}function pk(e){let t=e.split(/\r\n|[\n\r]/g),n=mk(t);if(n!==0)for(let r=1;r0&&ck(t[0]);)t.shift();for(;t.length>0&&ck(t[t.length-1]);)t.pop();return t.join(` -`)}function mk(e){let t=null;for(let n=1;n{"use strict";m();T();N();Object.defineProperty(Qf,"__esModule",{value:!0});Qf.parseGraphQLSDL=Lte;Qf.transformCommentsToDescriptions=Ek;Qf.isDescribable=hk;var Qi=Oe(),Tk=vO();function Lte(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=Ek(t,n),n.noLocation&&(r=(0,Qi.parse)((0,Qi.print)(r),n))):r=(0,Qi.parse)(new Qi.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Qi.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}function Ek(e,t={}){let n=(0,Qi.parse)(e,Q(M({},t),{noLocation:!1}));return(0,Qi.visit)(n,{leave:i=>{if(hk(i)){let a=(0,Tk.getLeadingCommentBlock)(i);if(a!==void 0){let o=(0,Tk.dedentBlockStringValue)(` -`+a),c=o.includes(` -`);return i.description?Q(M({},i),{description:Q(M({},i.description),{value:i.description.value+` -`+o,block:!0})}):Q(M({},i),{description:{kind:Qi.Kind.STRING,value:o,block:c}})}}}})}function hk(e){return(0,Qi.isTypeSystemDefinitionNode)(e)||e.kind===Qi.Kind.FIELD_DEFINITION||e.kind===Qi.Kind.INPUT_VALUE_DEFINITION||e.kind===Qi.Kind.ENUM_VALUE_DEFINITION}});var bk=w(bO=>{"use strict";m();T();N();Object.defineProperty(bO,"__esModule",{value:!0});bO.buildOperationNodeForField=Bte;var ct=Oe(),Cte=qf(),vk=jf(),DO=[],bT=new Map;function Ok(e){DO.push(e)}function Ik(){DO=[]}function gk(){bT=new Map}function Bte({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l=!0}){Ik(),gk();let d=(0,vk.getRootTypeNames)(e),p=Ute({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:c,selectedFields:l,rootTypeNames:d});return p.variableDefinitions=[...DO],Ik(),gk(),p}function Ute({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l,rootTypeNames:d}){let p=(0,vk.getDefinedRootType)(e,n),E=p.getFields()[t],I=`${t}_${n}`;if(E.args)for(let v of E.args){let A=v.name;(!c||c.includes(A))&&Ok(Sk(v,A))}return{kind:ct.Kind.OPERATION_DEFINITION,operation:n,name:{kind:ct.Kind.NAME,value:I},variableDefinitions:[],selectionSet:{kind:ct.Kind.SELECTION_SET,selections:[Dk({type:p,field:E,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:c,selectedFields:l,rootTypeNames:d})]}}}function SO({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:I,rootTypeNames:v}){if(!(typeof I=="boolean"&&p>c)){if((0,ct.isUnionType)(t)){let A=t.getTypes();return{kind:ct.Kind.SELECTION_SET,selections:A.filter(U=>!OO([...a,U],{depth:l})).map(U=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:U.name}},selectionSet:SO({parent:t,type:U,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:I,rootTypeNames:v})})).filter(U=>{var j,$;return(($=(j=U==null?void 0:U.selectionSet)==null?void 0:j.selections)==null?void 0:$.length)>0})}}if((0,ct.isInterfaceType)(t)){let A=Object.values(d.getTypeMap()).filter(U=>(0,ct.isObjectType)(U)&&U.getInterfaces().includes(t));return{kind:ct.Kind.SELECTION_SET,selections:A.filter(U=>!OO([...a,U],{depth:l})).map(U=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:U.name}},selectionSet:SO({parent:t,type:U,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:I,rootTypeNames:v})})).filter(U=>{var j,$;return(($=(j=U==null?void 0:U.selectionSet)==null?void 0:j.selections)==null?void 0:$.length)>0})}}if((0,ct.isObjectType)(t)&&!v.has(t.name)){let A=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),U=n.includes(t.name);if(!r&&U&&!A)return{kind:ct.Kind.SELECTION_SET,selections:[{kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:"id"}}]};let j=t.getFields();return{kind:ct.Kind.SELECTION_SET,selections:Object.keys(j).filter($=>!OO([...a,(0,ct.getNamedType)(j[$].type)],{depth:l})).map($=>{let re=typeof I=="object"?I[$]:!0;return re?Dk({type:t,field:j[$],models:n,path:[...i,$],ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:re,rootTypeNames:v}):null}).filter($=>{var re,ee;return $==null?!1:"selectionSet"in $?!!((ee=(re=$.selectionSet)==null?void 0:re.selections)!=null&&ee.length):!0})}}}}function Sk(e,t){function n(i){return(0,ct.isListType)(i)?{kind:ct.Kind.LIST_TYPE,type:n(i.ofType)}:(0,ct.isNonNullType)(i)?{kind:ct.Kind.NON_NULL_TYPE,type:n(i.ofType)}:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:i.name}}}let r;try{let i=(0,ct.astFromValue)(e.defaultValue,e.type);i==null?r=void 0:r=i}catch(i){let a=(0,Cte.astFromValueUntyped)(e.defaultValue);a==null?r=void 0:r=a}return{kind:ct.Kind.VARIABLE_DEFINITION,variable:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:t||e.name}},type:n(e.type),defaultValue:r}}function _k(e,t){return[...t,e].join("_")}function Dk({type:e,field:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:I,rootTypeNames:v}){let A=(0,ct.getNamedType)(t.type),U=[],j=!1;if(t.args&&t.args.length&&(U=t.args.map(me=>{let ue=_k(me.name,i);return E&&!E.includes(ue)?((0,ct.isNonNullType)(me.type)&&(j=!0),null):(r||Ok(Sk(me,ue)),{kind:ct.Kind.ARGUMENT,name:{kind:ct.Kind.NAME,value:me.name},value:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:_k(me.name,i)}}})}).filter(Boolean)),j)return null;let $=[...i,t.name],re=$.join("."),ee=t.name;return bT.has(re)&&bT.get(re)!==t.type.toString()&&(ee+=t.type.toString().replace(/!/g,"NonNull").replace(/\[/g,"List").replace(/\]/g,"")),bT.set(re,t.type.toString()),!(0,ct.isScalarType)(A)&&!(0,ct.isEnumType)(A)?Q(M({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},ee!==t.name&&{alias:{kind:ct.Kind.NAME,value:ee}}),{selectionSet:SO({parent:e,type:A,models:n,firstCall:r,path:$,ancestors:[...a,e],ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p+1,argNames:E,selectedFields:I,rootTypeNames:v})||void 0,arguments:U}):Q(M({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},ee!==t.name&&{alias:{kind:ct.Kind.NAME,value:ee}}),{arguments:U})}function OO(e,t={depth:1}){let n=e[e.length-1];return(0,ct.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var Rk=w(AT=>{"use strict";m();T();N();Object.defineProperty(AT,"__esModule",{value:!0});AT.DirectiveLocation=void 0;var Ak;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Ak||(AT.DirectiveLocation=Ak={}))});var _c=w(RT=>{"use strict";m();T();N();Object.defineProperty(RT,"__esModule",{value:!0});RT.MapperKind=void 0;var Pk;(function(e){e.TYPE="MapperKind.TYPE",e.SCALAR_TYPE="MapperKind.SCALAR_TYPE",e.ENUM_TYPE="MapperKind.ENUM_TYPE",e.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",e.OBJECT_TYPE="MapperKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",e.UNION_TYPE="MapperKind.UNION_TYPE",e.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",e.ROOT_OBJECT="MapperKind.ROOT_OBJECT",e.QUERY="MapperKind.QUERY",e.MUTATION="MapperKind.MUTATION",e.SUBSCRIPTION="MapperKind.SUBSCRIPTION",e.DIRECTIVE="MapperKind.DIRECTIVE",e.FIELD="MapperKind.FIELD",e.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",e.OBJECT_FIELD="MapperKind.OBJECT_FIELD",e.ROOT_FIELD="MapperKind.ROOT_FIELD",e.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",e.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",e.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",e.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",e.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",e.ARGUMENT="MapperKind.ARGUMENT",e.ENUM_VALUE="MapperKind.ENUM_VALUE"})(Pk||(RT.MapperKind=Pk={}))});var RO=w(AO=>{"use strict";m();T();N();Object.defineProperty(AO,"__esModule",{value:!0});AO.getObjectTypeFromTypeMap=Mte;var kte=Oe();function Mte(e,t){if(t){let n=e[t.name];if((0,kte.isObjectType)(n))return n}}});var wO=w(Kl=>{"use strict";m();T();N();Object.defineProperty(Kl,"__esModule",{value:!0});Kl.createNamedStub=PO;Kl.createStub=FO;Kl.isNamedStub=xte;Kl.getBuiltInForStub=qte;var Tr=Oe();function PO(e,t){let n;return t==="object"?n=Tr.GraphQLObjectType:t==="interface"?n=Tr.GraphQLInterfaceType:n=Tr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:Tr.GraphQLString}}})}function FO(e,t){switch(e.kind){case Tr.Kind.LIST_TYPE:return new Tr.GraphQLList(FO(e.type,t));case Tr.Kind.NON_NULL_TYPE:return new Tr.GraphQLNonNull(FO(e.type,t));default:return t==="output"?PO(e.name.value,"object"):PO(e.name.value,"input")}}function xte(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}function qte(e){switch(e.name){case Tr.GraphQLInt.name:return Tr.GraphQLInt;case Tr.GraphQLFloat.name:return Tr.GraphQLFloat;case Tr.GraphQLString.name:return Tr.GraphQLString;case Tr.GraphQLBoolean.name:return Tr.GraphQLBoolean;case Tr.GraphQLID.name:return Tr.GraphQLID;default:return e}}});var PT=w(LO=>{"use strict";m();T();N();Object.defineProperty(LO,"__esModule",{value:!0});LO.rewireTypes=Vte;var Zn=Oe(),Fk=wO();function Vte(e,t){let n=Object.create(null);for(let I in e)n[I]=e[I];let r=Object.create(null);for(let I in n){let v=n[I];if(v==null||I.startsWith("__"))continue;let A=v.name;if(!A.startsWith("__")){if(r[A]!=null){console.warn(`Duplicate schema type name ${A} found; keeping the existing one found in the schema`);continue}r[A]=v}}for(let I in r)r[I]=c(r[I]);let i=t.map(I=>a(I));return{typeMap:r,directives:i};function a(I){if((0,Zn.isSpecifiedDirective)(I))return I;let v=I.toConfig();return v.args=o(v.args),new Zn.GraphQLDirective(v)}function o(I){let v={};for(let A in I){let U=I[A],j=E(U.type);j!=null&&(U.type=j,v[A]=U)}return v}function c(I){if((0,Zn.isObjectType)(I)){let v=I.toConfig(),A=Q(M({},v),{fields:()=>l(v.fields),interfaces:()=>p(v.interfaces)});return new Zn.GraphQLObjectType(A)}else if((0,Zn.isInterfaceType)(I)){let v=I.toConfig(),A=Q(M({},v),{fields:()=>l(v.fields)});return"interfaces"in A&&(A.interfaces=()=>p(v.interfaces)),new Zn.GraphQLInterfaceType(A)}else if((0,Zn.isUnionType)(I)){let v=I.toConfig(),A=Q(M({},v),{types:()=>p(v.types)});return new Zn.GraphQLUnionType(A)}else if((0,Zn.isInputObjectType)(I)){let v=I.toConfig(),A=Q(M({},v),{fields:()=>d(v.fields)});return new Zn.GraphQLInputObjectType(A)}else if((0,Zn.isEnumType)(I)){let v=I.toConfig();return new Zn.GraphQLEnumType(v)}else if((0,Zn.isScalarType)(I)){if((0,Zn.isSpecifiedScalarType)(I))return I;let v=I.toConfig();return new Zn.GraphQLScalarType(v)}throw new Error(`Unexpected schema type: ${I}`)}function l(I){let v={};for(let A in I){let U=I[A],j=E(U.type);j!=null&&U.args&&(U.type=j,U.args=o(U.args),v[A]=U)}return v}function d(I){let v={};for(let A in I){let U=I[A],j=E(U.type);j!=null&&(U.type=j,v[A]=U)}return v}function p(I){let v=[];for(let A of I){let U=E(A);U!=null&&v.push(U)}return v}function E(I){if((0,Zn.isListType)(I)){let v=E(I.ofType);return v!=null?new Zn.GraphQLList(v):null}else if((0,Zn.isNonNullType)(I)){let v=E(I.ofType);return v!=null?new Zn.GraphQLNonNull(v):null}else if((0,Zn.isNamedType)(I)){let v=n[I.name];return v===void 0&&(v=(0,Fk.isNamedStub)(I)?(0,Fk.getBuiltInForStub)(I):c(I),r[v.name]=n[I.name]=v),v!=null?r[v.name]:null}return null}}});var CO=w($l=>{"use strict";m();T();N();Object.defineProperty($l,"__esModule",{value:!0});$l.transformInputValue=Gl;$l.serializeInputValue=Kte;$l.parseInputValue=Gte;$l.parseInputValueLiteral=$te;var FT=Oe(),jte=xl();function Gl(e,t,n=null,r=null){if(t==null)return t;let i=(0,FT.getNullableType)(e);if((0,FT.isLeafType)(i))return n!=null?n(i,t):t;if((0,FT.isListType)(i))return(0,jte.asArray)(t).map(a=>Gl(i.ofType,a,n,r));if((0,FT.isInputObjectType)(i)){let a=i.getFields(),o={};for(let c in t){let l=a[c];l!=null&&(o[c]=Gl(l.type,t[c],n,r))}return r!=null?r(i,o):o}}function Kte(e,t){return Gl(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}function Gte(e,t){return Gl(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}function $te(e,t){return Gl(e,t,(n,r)=>n.parseLiteral(r,{}))}});var Yl=w(LT=>{"use strict";m();T();N();Object.defineProperty(LT,"__esModule",{value:!0});LT.mapSchema=Yte;LT.correctASTNodes=Yf;var st=Oe(),Ql=RO(),Rt=_c(),Qte=PT(),wk=CO();function Yte(e,t={}){let n=Bk(Ck(BO(Lk(Hte(BO(Lk(e.getTypeMap(),e,wk.serializeInputValue),e,t,c=>(0,st.isLeafType)(c)),e,t),e,wk.parseInputValue),e,t,c=>!(0,st.isLeafType)(c)),e,t),e,t),r=e.getDirectives(),i=zte(r,e,t),{typeMap:a,directives:o}=(0,Qte.rewireTypes)(n,i);return new st.GraphQLSchema(Q(M({},e.toConfig()),{query:(0,Ql.getObjectTypeFromTypeMap)(a,(0,Ql.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,Ql.getObjectTypeFromTypeMap)(a,(0,Ql.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,Ql.getObjectTypeFromTypeMap)(a,(0,Ql.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(a),directives:o}))}var Jte=["String","ID","Int","Float","Boolean"];function BO(e,t,n,r=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")&&!Jte.includes(a)){let o=e[a];if(o==null||!r(o)){i[a]=o;continue}let c=Xte(t,n,a);if(c==null){i[a]=o;continue}let l=c(o,t);if(l===void 0){i[a]=o;continue}i[a]=l}return i}function Hte(e,t,n){let r=rne(n);return r?BO(e,t,{[Rt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,c={};for(let l in o){let d=o[l],p=r(d,i.name,t,l);if(p===void 0)c[l]=d;else if(Array.isArray(p)){let[E,I]=p;c[E]=I===void 0?d:I}else p!==null&&(c[l]=p)}return Yf(new st.GraphQLEnumType(Q(M({},a),{values:c})))}},i=>(0,st.isEnumType)(i)):e}function Lk(e,t,n){let r=Bk(e,t,{[Rt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=wT(e,i.type);if(a!=null)return Q(M({},i),{defaultValue:n(a,i.defaultValue)})}});return Ck(r,t,{[Rt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=wT(r,i.type);if(a!=null)return Q(M({},i),{defaultValue:n(a,i.defaultValue)})}})}function wT(e,t){if((0,st.isListType)(t)){let n=wT(e,t.ofType);return n!=null?new st.GraphQLList(n):null}else if((0,st.isNonNullType)(t)){let n=wT(e,t.ofType);return n!=null?new st.GraphQLNonNull(n):null}else if((0,st.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function Ck(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,st.isObjectType)(a)&&!(0,st.isInterfaceType)(a)&&!(0,st.isInputObjectType)(a)){r[i]=a;continue}let o=ene(t,n,i);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,d={};for(let p in l){let E=l[p],I=o(E,p,i,t);if(I===void 0)d[p]=E;else if(Array.isArray(I)){let[v,A]=I;A.astNode!=null&&(A.astNode=Q(M({},A.astNode),{name:Q(M({},A.astNode.name),{value:v})})),d[v]=A===void 0?E:A}else I!==null&&(d[p]=I)}(0,st.isObjectType)(a)?r[i]=Yf(new st.GraphQLObjectType(Q(M({},c),{fields:d}))):(0,st.isInterfaceType)(a)?r[i]=Yf(new st.GraphQLInterfaceType(Q(M({},c),{fields:d}))):r[i]=Yf(new st.GraphQLInputObjectType(Q(M({},c),{fields:d})))}return r}function Bk(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,st.isObjectType)(a)&&!(0,st.isInterfaceType)(a)){r[i]=a;continue}let o=tne(n);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,d={};for(let p in l){let E=l[p],I=E.args;if(I==null){d[p]=E;continue}let v=Object.keys(I);if(!v.length){d[p]=E;continue}let A={};for(let U of v){let j=I[U],$=o(j,p,i,t);if($===void 0)A[U]=j;else if(Array.isArray($)){let[re,ee]=$;A[re]=ee}else $!==null&&(A[U]=$)}d[p]=Q(M({},E),{args:A})}(0,st.isObjectType)(a)?r[i]=new st.GraphQLObjectType(Q(M({},c),{fields:d})):(0,st.isInterfaceType)(a)?r[i]=new st.GraphQLInterfaceType(Q(M({},c),{fields:d})):r[i]=new st.GraphQLInputObjectType(Q(M({},c),{fields:d}))}return r}function zte(e,t,n){let r=nne(n);if(r==null)return e.slice();let i=[];for(let a of e){let o=r(a,t);o===void 0?i.push(a):o!==null&&i.push(o)}return i}function Wte(e,t){var i,a,o;let n=e.getType(t),r=[Rt.MapperKind.TYPE];return(0,st.isObjectType)(n)?(r.push(Rt.MapperKind.COMPOSITE_TYPE,Rt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Rt.MapperKind.ROOT_OBJECT,Rt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(Rt.MapperKind.ROOT_OBJECT,Rt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Rt.MapperKind.ROOT_OBJECT,Rt.MapperKind.SUBSCRIPTION)):(0,st.isInputObjectType)(n)?r.push(Rt.MapperKind.INPUT_OBJECT_TYPE):(0,st.isInterfaceType)(n)?r.push(Rt.MapperKind.COMPOSITE_TYPE,Rt.MapperKind.ABSTRACT_TYPE,Rt.MapperKind.INTERFACE_TYPE):(0,st.isUnionType)(n)?r.push(Rt.MapperKind.COMPOSITE_TYPE,Rt.MapperKind.ABSTRACT_TYPE,Rt.MapperKind.UNION_TYPE):(0,st.isEnumType)(n)?r.push(Rt.MapperKind.ENUM_TYPE):(0,st.isScalarType)(n)&&r.push(Rt.MapperKind.SCALAR_TYPE),r}function Xte(e,t,n){let r=Wte(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Zte(e,t){var i,a,o;let n=e.getType(t),r=[Rt.MapperKind.FIELD];return(0,st.isObjectType)(n)?(r.push(Rt.MapperKind.COMPOSITE_FIELD,Rt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Rt.MapperKind.ROOT_FIELD,Rt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(Rt.MapperKind.ROOT_FIELD,Rt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Rt.MapperKind.ROOT_FIELD,Rt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,st.isInterfaceType)(n)?r.push(Rt.MapperKind.COMPOSITE_FIELD,Rt.MapperKind.INTERFACE_FIELD):(0,st.isInputObjectType)(n)&&r.push(Rt.MapperKind.INPUT_OBJECT_FIELD),r}function ene(e,t,n){let r=Zte(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function tne(e){let t=e[Rt.MapperKind.ARGUMENT];return t!=null?t:null}function nne(e){let t=e[Rt.MapperKind.DIRECTIVE];return t!=null?t:null}function rne(e){let t=e[Rt.MapperKind.ENUM_VALUE];return t!=null?t:null}function Yf(e){if((0,st.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(M({},t.astNode),{kind:st.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(M({},n),{kind:st.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new st.GraphQLObjectType(t)}else if((0,st.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(M({},t.astNode),{kind:st.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(M({},n),{kind:st.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new st.GraphQLInterfaceType(t)}else if((0,st.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(M({},t.astNode),{kind:st.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(M({},n),{kind:st.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new st.GraphQLInputObjectType(t)}else if((0,st.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.values){let i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(M({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(M({},n),{values:void 0}))),new st.GraphQLEnumType(t)}else return e}});var Uk=w(MO=>{"use strict";m();T();N();Object.defineProperty(MO,"__esModule",{value:!0});MO.filterSchema=ane;var CT=Oe(),Ea=_c(),ine=Yl();function ane({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:a=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:c=void 0,directiveFilter:l=void 0,enumValueFilter:d=void 0}){return(0,ine.mapSchema)(e,{[Ea.MapperKind.QUERY]:E=>UO(E,"Query",r,c),[Ea.MapperKind.MUTATION]:E=>UO(E,"Mutation",r,c),[Ea.MapperKind.SUBSCRIPTION]:E=>UO(E,"Subscription",r,c),[Ea.MapperKind.OBJECT_TYPE]:E=>t(E.name,E)?kO(CT.GraphQLObjectType,E,i||n,c):null,[Ea.MapperKind.INTERFACE_TYPE]:E=>t(E.name,E)?kO(CT.GraphQLInterfaceType,E,a||n,c):null,[Ea.MapperKind.INPUT_OBJECT_TYPE]:E=>t(E.name,E)?kO(CT.GraphQLInputObjectType,E,o||n):null,[Ea.MapperKind.UNION_TYPE]:E=>t(E.name,E)?void 0:null,[Ea.MapperKind.ENUM_TYPE]:E=>t(E.name,E)?void 0:null,[Ea.MapperKind.SCALAR_TYPE]:E=>t(E.name,E)?void 0:null,[Ea.MapperKind.DIRECTIVE]:E=>l&&!l(E.name,E)?null:void 0,[Ea.MapperKind.ENUM_VALUE]:(E,I,v,A)=>d&&!d(I,A,E)?null:void 0})}function UO(e,t,n,r){if(n||r){let i=e.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t,a,i.fields[a]))delete i.fields[a];else if(r&&o.args)for(let c in o.args)r(e.name,a,c,o.args[c])||delete o.args[c]}return new CT.GraphQLObjectType(i)}return e}function kO(e,t,n,r){if(n||r){let i=t.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t.name,a,i.fields[a]))delete i.fields[a];else if(r&&"args"in o)for(let c in o.args)r(t.name,a,c,o.args[c])||delete o.args[c]}return new e(i)}}});var Mk=w(BT=>{"use strict";m();T();N();Object.defineProperty(BT,"__esModule",{value:!0});BT.healSchema=sne;BT.healTypes=kk;var Ha=Oe();function sne(e){return kk(e.getTypeMap(),e.getDirectives()),e}function kk(e,t){let n=Object.create(null);for(let d in e){let p=e[d];if(p==null||d.startsWith("__"))continue;let E=p.name;if(!E.startsWith("__")){if(n[E]!=null){console.warn(`Duplicate schema type name ${E} found; keeping the existing one found in the schema`);continue}n[E]=p}}for(let d in n){let p=n[d];e[d]=p}for(let d of t)d.args=d.args.filter(p=>(p.type=l(p.type),p.type!==null));for(let d in e){let p=e[d];!d.startsWith("__")&&d in n&&p!=null&&r(p)}for(let d in e)!d.startsWith("__")&&!(d in n)&&delete e[d];function r(d){if((0,Ha.isObjectType)(d)){i(d),a(d);return}else if((0,Ha.isInterfaceType)(d)){i(d),"getInterfaces"in d&&a(d);return}else if((0,Ha.isUnionType)(d)){c(d);return}else if((0,Ha.isInputObjectType)(d)){o(d);return}else if((0,Ha.isLeafType)(d))return;throw new Error(`Unexpected schema type: ${d}`)}function i(d){let p=d.getFields();for(let[E,I]of Object.entries(p))I.args.map(v=>(v.type=l(v.type),v.type===null?null:v)).filter(Boolean),I.type=l(I.type),I.type===null&&delete p[E]}function a(d){if("getInterfaces"in d){let p=d.getInterfaces();p.push(...p.splice(0).map(E=>l(E)).filter(Boolean))}}function o(d){let p=d.getFields();for(let[E,I]of Object.entries(p))I.type=l(I.type),I.type===null&&delete p[E]}function c(d){let p=d.getTypes();p.push(...p.splice(0).map(E=>l(E)).filter(Boolean))}function l(d){if((0,Ha.isListType)(d)){let p=l(d.ofType);return p!=null?new Ha.GraphQLList(p):null}else if((0,Ha.isNonNullType)(d)){let p=l(d.ofType);return p!=null?new Ha.GraphQLNonNull(p):null}else if((0,Ha.isNamedType)(d)){let p=e[d.name];if(p&&d!==p)return p}return d}}});var xk=w(xO=>{"use strict";m();T();N();Object.defineProperty(xO,"__esModule",{value:!0});xO.getResolversFromSchema=one;var vc=Oe();function one(e,t){var i,a;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let c=r[o];if((0,vc.isScalarType)(c)){if(!(0,vc.isSpecifiedScalarType)(c)){let l=c.toConfig();delete l.astNode,n[o]=new vc.GraphQLScalarType(l)}}else if((0,vc.isEnumType)(c)){n[o]={};let l=c.getValues();for(let d of l)n[o][d.name]=d.value}else if((0,vc.isInterfaceType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,vc.isUnionType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,vc.isObjectType)(c)){n[o]={},c.isTypeOf!=null&&(n[o].__isTypeOf=c.isTypeOf);let l=c.getFields();for(let d in l){let p=l[d];if(p.subscribe!=null&&(n[o][d]=n[o][d]||{},n[o][d].subscribe=p.subscribe),p.resolve!=null&&((i=p.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((a=p.resolve)==null?void 0:a.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][d]=n[o][d]||{},n[o][d].resolve=p.resolve}}}}return n}});var Vk=w(qO=>{"use strict";m();T();N();Object.defineProperty(qO,"__esModule",{value:!0});qO.forEachField=une;var qk=Oe();function une(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,qk.getNamedType)(i).name.startsWith("__")&&(0,qk.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];t(c,r,o)}}}}});var jk=w(jO=>{"use strict";m();T();N();Object.defineProperty(jO,"__esModule",{value:!0});jO.forEachDefaultValue=cne;var VO=Oe();function cne(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,VO.getNamedType)(i).name.startsWith("__")){if((0,VO.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];for(let l of c.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,VO.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];c.defaultValue=t(c.type,c.defaultValue)}}}}}});var QO=w($O=>{"use strict";m();T();N();Object.defineProperty($O,"__esModule",{value:!0});$O.addTypes=dne;var KO=Oe(),GO=RO(),lne=PT();function dne(e,t){let n=e.toConfig(),r={};for(let c of n.types)r[c.name]=c;let i={};for(let c of n.directives)i[c.name]=c;for(let c of t)(0,KO.isNamedType)(c)?r[c.name]=c:(0,KO.isDirective)(c)&&(i[c.name]=c);let{typeMap:a,directives:o}=(0,lne.rewireTypes)(r,Object.values(i));return new KO.GraphQLSchema(Q(M({},n),{query:(0,GO.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,GO.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,GO.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}});var Gk=w(YO=>{"use strict";m();T();N();Object.defineProperty(YO,"__esModule",{value:!0});YO.pruneSchema=Tne;var er=Oe(),fne=cO(),pne=_c(),mne=Yl(),Nne=jf();function Tne(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,c=[],l=e;do{let d=Ene(l);if(i){let p=[];for(let E in l.getTypeMap()){if(E.startsWith("__"))continue;let I=l.getType(E);I&&i(I)&&p.push(E)}d=Kk(p,l,d)}c=[],l=(0,mne.mapSchema)(l,{[pne.MapperKind.TYPE]:p=>!d.has(p.name)&&!(0,er.isSpecifiedScalarType)(p)?((0,er.isUnionType)(p)||(0,er.isInputObjectType)(p)||(0,er.isInterfaceType)(p)||(0,er.isObjectType)(p)||(0,er.isScalarType)(p))&&(o||(0,er.isUnionType)(p)&&r&&!Object.keys(p.getTypes()).length||((0,er.isInputObjectType)(p)||(0,er.isInterfaceType)(p)||(0,er.isObjectType)(p))&&n&&!Object.keys(p.getFields()).length||(0,er.isInterfaceType)(p)&&a)?p:(c.push(p.name),d.delete(p.name),null):p})}while(c.length);return l}function Ene(e){let t=[];for(let n of(0,Nne.getRootTypes)(e))t.push(n.name);return Kk(t,e)}function Kk(e,t,n=new Set){let r=new Map;for(;e.length;){let i=e.pop();if(n.has(i)&&r[i]!==!0)continue;let a=t.getType(i);if(a){if((0,er.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,er.isInterfaceType)(a)&&r[i]===!0&&(e.push(...(0,fne.getImplementingTypes)(a.name,t)),r[i]=!1),(0,er.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>UT(t,o))),"getInterfaces"in a&&e.push(...a.getInterfaces().map(o=>o.name)),"getFields"in a){let o=a.getFields(),c=Object.entries(o);if(!c.length)continue;for(let[,l]of c){(0,er.isObjectType)(a)&&e.push(...l.args.flatMap(p=>{let E=[(0,er.getNamedType)(p.type).name];return E.push(...UT(t,p)),E}));let d=(0,er.getNamedType)(l.type);e.push(d.name),e.push(...UT(t,l)),(0,er.isInterfaceType)(d)&&!(d.name in r)&&(r[d.name]=!0)}}e.push(...UT(t,a)),n.add(i)}}return n}function UT(e,t){var r,i;let n=new Set;if((r=t.astNode)!=null&&r.directives)for(let a of t.astNode.directives){let o=e.getDirective(a.name.value);if(o!=null&&o.args)for(let c of o.args){let l=(0,er.getNamedType)(c.type);n.add(l.name)}}if((i=t.extensions)!=null&&i.directives)for(let a in t.extensions.directives){let o=e.getDirective(a);if(o!=null&&o.args)for(let c of o.args){let l=(0,er.getNamedType)(c.type);n.add(l.name)}}return[...n]}});var HO=w(JO=>{"use strict";m();T();N();Object.defineProperty(JO,"__esModule",{value:!0});JO.mergeDeep=kT;var hne=xl();function kT(e,t=!1,n=!1,r=!1){if(e.length===0)return;if(e.length===1)return e[0];let i,a=!0,o=e.every(d=>{if(Array.isArray(d)){if(i===void 0)return i=d.length,!0;if(i===d.length)return!0}else a=!1;return!1});if(r&&o)return new Array(i).fill(null).map((d,p)=>kT(e.map(E=>E[p]),t,n,r));if(a)return e.flat(1);let c,l;t&&(l=e.find(d=>$k(d)),l&&(c==null&&(c={}),Object.setPrototypeOf(c,Object.create(Object.getPrototypeOf(l)))));for(let d of e)if(d!=null)if($k(d)){if(l){let p=Object.getPrototypeOf(c),E=Object.getPrototypeOf(d);if(E)for(let I of Object.getOwnPropertyNames(E)){let v=Object.getOwnPropertyDescriptor(E,I);(0,hne.isSome)(v)&&Object.defineProperty(p,I,v)}}for(let p in d)c==null&&(c={}),p in c?c[p]=kT([c[p],d[p]],t,n,r):c[p]=d[p]}else Array.isArray(d)&&Array.isArray(c)?c=kT([c,d],t,n,r):c=d;return c}function $k(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var Qk=w(zO=>{"use strict";m();T();N();Object.defineProperty(zO,"__esModule",{value:!0});zO.parseSelectionSet=Ine;var yne=Oe();function Ine(e,t){return(0,yne.parse)(e,t).definitions[0].selectionSet}});var Yk=w(WO=>{"use strict";m();T();N();Object.defineProperty(WO,"__esModule",{value:!0});WO.getResponseKeyFromInfo=gne;function gne(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}});var Jk=w(Jl=>{"use strict";m();T();N();Object.defineProperty(Jl,"__esModule",{value:!0});Jl.appendObjectFields=vne;Jl.removeObjectFields=One;Jl.selectObjectFields=Sne;Jl.modifyObjectFields=Dne;var MT=Oe(),_ne=QO(),xT=_c(),Oc=Yl();function vne(e,t,n){return e.getType(t)==null?(0,_ne.addTypes)(e,[new MT.GraphQLObjectType({name:t,fields:n})]):(0,Oc.mapSchema)(e,{[xT.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),a=i.fields,o={};for(let c in a)o[c]=a[c];for(let c in n)o[c]=n[c];return(0,Oc.correctASTNodes)(new MT.GraphQLObjectType(Q(M({},i),{fields:o})))}}})}function One(e,t,n){let r={};return[(0,Oc.mapSchema)(e,{[xT.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),c=o.fields,l={};for(let d in c){let p=c[d];n(d,p)?r[d]=p:l[d]=p}return(0,Oc.correctASTNodes)(new MT.GraphQLObjectType(Q(M({},o),{fields:l})))}}}),r]}function Sne(e,t,n){let r={};return(0,Oc.mapSchema)(e,{[xT.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let c in o){let l=o[c];n(c,l)&&(r[c]=l)}}}}),r}function Dne(e,t,n,r){let i={};return[(0,Oc.mapSchema)(e,{[xT.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let c=o.toConfig(),l=c.fields,d={};for(let p in l){let E=l[p];n(p,E)?i[p]=E:d[p]=E}for(let p in r){let E=r[p];d[p]=E}return(0,Oc.correctASTNodes)(new MT.GraphQLObjectType(Q(M({},c),{fields:d})))}}}),i]}});var Hk=w(XO=>{"use strict";m();T();N();Object.defineProperty(XO,"__esModule",{value:!0});XO.renameType=bne;var Yi=Oe();function bne(e,t){if((0,Yi.isObjectType)(e))return new Yi.GraphQLObjectType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));if((0,Yi.isInterfaceType)(e))return new Yi.GraphQLInterfaceType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));if((0,Yi.isUnionType)(e))return new Yi.GraphQLUnionType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));if((0,Yi.isInputObjectType)(e))return new Yi.GraphQLInputObjectType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));if((0,Yi.isEnumType)(e))return new Yi.GraphQLEnumType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));if((0,Yi.isScalarType)(e))return new Yi.GraphQLScalarType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}});var zk=w(qT=>{"use strict";m();T();N();Object.defineProperty(qT,"__esModule",{value:!0});qT.updateArgument=Rne;qT.createVariableNameGenerator=Pne;var Sc=Oe(),Ane=OT();function Rne(e,t,n,r,i,a,o){if(e[r]={kind:Sc.Kind.ARGUMENT,name:{kind:Sc.Kind.NAME,value:r},value:{kind:Sc.Kind.VARIABLE,name:{kind:Sc.Kind.NAME,value:i}}},t[i]={kind:Sc.Kind.VARIABLE_DEFINITION,variable:{kind:Sc.Kind.VARIABLE,name:{kind:Sc.Kind.NAME,value:i}},type:(0,Ane.astFromType)(a)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}function Pne(e){let t=0;return n=>{let r;do r=t===0?n:`_v${t.toString()}_${n}`,t++;while(r in e);return r}}});var Wk=w(eS=>{"use strict";m();T();N();Object.defineProperty(eS,"__esModule",{value:!0});eS.implementsAbstractType=Fne;var ZO=Oe();function Fne(e,t,n){return n==null||t==null?!1:t===n?!0:(0,ZO.isCompositeType)(t)&&(0,ZO.isCompositeType)(n)?(0,ZO.doTypesOverlap)(e,t,n):!1}});var Zk=w(tS=>{"use strict";m();T();N();Object.defineProperty(tS,"__esModule",{value:!0});tS.observableToAsyncIterable=wne;var Xk=xf();function wne(e){let t=[],n=[],r=!0,i=p=>{t.length!==0?t.shift()({value:p,done:!1}):n.push({value:p,done:!1})},a=p=>{t.length!==0?t.shift()({value:{errors:[p]},done:!1}):n.push({value:{errors:[p]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},c=()=>new Promise(p=>{if(n.length!==0){let E=n.shift();p(E)}else t.push(p)}),l=e.subscribe({next(p){return i(p)},error(p){return a(p)},complete(){return o()}}),d=()=>{if(r){r=!1,l.unsubscribe();for(let p of t)p({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?c():this.return()},return(){return d(),(0,Xk.fakePromise)({value:void 0,done:!0})},throw(p){return d(),(0,Xk.fakeRejectPromise)(p)},[Symbol.asyncIterator](){return this}}}});var eM=w(VT=>{"use strict";m();T();N();Object.defineProperty(VT,"__esModule",{value:!0});VT.AccumulatorMap=void 0;var nS=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};VT.AccumulatorMap=nS});var rS=w(Hl=>{"use strict";m();T();N();Object.defineProperty(Hl,"__esModule",{value:!0});Hl.GraphQLStreamDirective=Hl.GraphQLDeferDirective=void 0;var Ji=Oe();Hl.GraphQLDeferDirective=new Ji.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Ji.DirectiveLocation.FRAGMENT_SPREAD,Ji.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Ji.GraphQLNonNull(Ji.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Ji.GraphQLString,description:"Unique name"}}});Hl.GraphQLStreamDirective=new Ji.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Ji.DirectiveLocation.FIELD],args:{if:{type:new Ji.GraphQLNonNull(Ji.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Ji.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:Ji.GraphQLInt,description:"Number of items to return immediately"}}})});var sS=w(Fs=>{"use strict";m();T();N();Object.defineProperty(Fs,"__esModule",{value:!0});Fs.collectSubFields=void 0;Fs.collectFields=Bne;Fs.shouldIncludeNode=jT;Fs.doesFragmentConditionMatch=iS;Fs.getFieldEntryKey=tM;Fs.getDeferValues=aS;var za=Oe(),KT=eM(),Lne=rS(),Cne=Ou();function zl(e,t,n,r,i,a,o,c){for(let l of i.selections)switch(l.kind){case za.Kind.FIELD:{if(!jT(n,l))continue;a.add(tM(l),l);break}case za.Kind.INLINE_FRAGMENT:{if(!jT(n,l)||!iS(e,l,r))continue;let d=aS(n,l);if(d){let p=new KT.AccumulatorMap;zl(e,t,n,r,l.selectionSet,p,o,c),o.push({label:d.label,fields:p})}else zl(e,t,n,r,l.selectionSet,a,o,c);break}case za.Kind.FRAGMENT_SPREAD:{let d=l.name.value;if(!jT(n,l))continue;let p=aS(n,l);if(c.has(d)&&!p)continue;let E=t[d];if(!E||!iS(e,E,r))continue;if(p||c.add(d),p){let I=new KT.AccumulatorMap;zl(e,t,n,r,E.selectionSet,I,o,c),o.push({label:p.label,fields:I})}else zl(e,t,n,r,E.selectionSet,a,o,c);break}}}function Bne(e,t,n,r,i){let a=new KT.AccumulatorMap,o=[];return zl(e,t,n,r,i,a,o,new Set),{fields:a,patches:o}}function jT(e,t){let n=(0,za.getDirectiveValues)(za.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,za.getDirectiveValues)(za.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function iS(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,za.typeFromAST)(e,r);return i===n?!0:(0,za.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}function tM(e){return e.alias?e.alias.value:e.name.value}function aS(e,t){let n=(0,za.getDirectiveValues)(Lne.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Fs.collectSubFields=(0,Cne.memoize5)(function(t,n,r,i,a){let o=new KT.AccumulatorMap,c=new Set,l=[],d={fields:o,patches:l};for(let p of a)p.selectionSet&&zl(t,n,r,i,p.selectionSet,o,l,c);return d})});var oS=w(Jf=>{"use strict";m();T();N();Object.defineProperty(Jf,"__esModule",{value:!0});Jf.getOperationASTFromRequest=void 0;Jf.getOperationASTFromDocument=nM;var Une=Oe(),kne=Ou();function nM(e,t){let n=(0,Une.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}Jf.getOperationASTFromRequest=(0,kne.memoize1)(function(t){return nM(t.document,t.operationName)})});var aM=w(Hf=>{"use strict";m();T();N();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.visitData=cS;Hf.visitErrors=xne;Hf.visitResult=qne;var Su=Oe(),uS=sS(),Mne=oS();function cS(e,t,n){if(Array.isArray(e))return e.map(r=>cS(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let a=r[i];Object.defineProperty(r,i,{value:cS(a,t,n)})}return n!=null?n(r):r}return e}function xne(e,t){return e.map(n=>t(n))}function qne(e,t,n,r,i){let a=t.document.definitions.reduce((I,v)=>(v.kind===Su.Kind.FRAGMENT_DEFINITION&&(I[v.name.value]=v),I),{}),o=t.variables||{},c={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,d=e.errors,p=d!=null&&i!=null,E=(0,Mne.getOperationASTFromRequest)(t);return l!=null&&E!=null&&(e.data=Kne(l,E,n,a,o,r,p?d:void 0,c)),d!=null&&i&&(e.errors=Vne(d,i,c)),e}function Vne(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,a=t.__unpathed;return e.map(o=>{let c=r.get(o),l=c==null?o:c.reduceRight((d,p)=>{let E=p.type.name,I=t[E];if(I==null)return d;let v=I[p.fieldName];return v==null?d:v(d,p.pathIndex)},o);return a&&i.has(o)?a(l):l})}function jne(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function Kne(e,t,n,r,i,a,o,c){let l=jne(n,t),{fields:d}=(0,uS.collectFields)(n,r,i,l,t.selectionSet);return lS(e,l,d,n,r,i,a,0,o,c)}function lS(e,t,n,r,i,a,o,c,l,d){var re;let p=t.getFields(),E=o==null?void 0:o[t.name],I=E==null?void 0:E.__enter,v=I!=null?I(e):e,A,U=null;if(l!=null){A=$ne(l,c),U=A.errorMap;for(let ee of A.unpathedErrors)d.unpathedErrors.add(ee)}for(let[ee,me]of n){let ue=me[0].name.value,Ae=(re=p[ue])==null?void 0:re.type;if(Ae==null)switch(ue){case"__typename":Ae=Su.TypeNameMetaFieldDef.type;break;case"__schema":Ae=Su.SchemaMetaFieldDef.type;break;case"__type":Ae=Su.TypeMetaFieldDef.type;break}let xe=c+1,Ze;U&&(Ze=U[ee],Ze!=null&&delete U[ee],Qne(t,ue,xe,Ze,d));let Z=iM(e[ee],Ae,me,r,i,a,o,xe,Ze,d);rM(v,ee,Z,E,ue)}let j=v.__typename;if(j!=null&&rM(v,"__typename",j,E,"__typename"),U)for(let ee in U){let me=U[ee];for(let ue of me)d.unpathedErrors.add(ue)}let $=E==null?void 0:E.__leave;return $!=null?$(v):v}function rM(e,t,n,r,i){if(r==null){e[t]=n;return}let a=r[i];if(a==null){e[t]=n;return}let o=a(n);if(o===void 0){delete e[t];return}e[t]=o}function Gne(e,t,n,r,i,a,o,c,l,d){return e.map(p=>iM(p,t,n,r,i,a,o,c+1,l,d))}function iM(e,t,n,r,i,a,o,c,l=[],d){if(e==null)return e;let p=(0,Su.getNullableType)(t);if((0,Su.isListType)(p))return Gne(e,p.ofType,n,r,i,a,o,c,l,d);if((0,Su.isAbstractType)(p)){let v=r.getType(e.__typename),{fields:A,patches:U}=(0,uS.collectSubFields)(r,i,a,v,n);if(U.length){A=new Map(A);for(let j of U)for(let[$,re]of j.fields){let ee=A.get($);ee?ee.push(...re):A.set($,re)}}return lS(e,v,A,r,i,a,o,c,l,d)}else if((0,Su.isObjectType)(p)){let{fields:v,patches:A}=(0,uS.collectSubFields)(r,i,a,p,n);if(A.length){v=new Map(v);for(let U of A)for(let[j,$]of U.fields){let re=v.get(j);re?re.push(...$):v.set(j,$)}}return lS(e,p,v,r,i,a,o,c,l,d)}let E=o==null?void 0:o[p.name];if(E==null)return e;let I=E(e);return I===void 0?e:I}function $ne(e,t){var i;let n=Object.create(null),r=new Set;for(let a of e){let o=(i=a.path)==null?void 0:i[t];if(o==null){r.add(a);continue}o in n?n[o].push(a):n[o]=[a]}return{errorMap:n,unpathedErrors:r}}function Qne(e,t,n,r=[],i){for(let a of r){let o={type:e,fieldName:t,pathIndex:n},c=i.segmentInfoMap.get(a);c==null?i.segmentInfoMap.set(a,[o]):c.push(o)}}});var sM=w(fS=>{"use strict";m();T();N();Object.defineProperty(fS,"__esModule",{value:!0});fS.valueMatchesCriteria=dS;function dS(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>dS(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>dS(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}});var oM=w(pS=>{"use strict";m();T();N();Object.defineProperty(pS,"__esModule",{value:!0});pS.isAsyncIterable=Yne;function Yne(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}});var uM=w(mS=>{"use strict";m();T();N();Object.defineProperty(mS,"__esModule",{value:!0});mS.isDocumentNode=Hne;var Jne=Oe();function Hne(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===Jne.Kind.DOCUMENT}});var cM=w(()=>{"use strict";m();T();N()});var pM=w(zf=>{"use strict";m();T();N();Object.defineProperty(zf,"__esModule",{value:!0});zf.getAsyncIteratorWithCancel=dM;zf.getAsyncIterableWithCancel=fM;zf.withCancel=fM;var zne=Ou();function Wne(e){return Ai(this,null,function*(){return{value:e,done:!0}})}var lM=(0,zne.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function dM(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let a=Reflect.get(n,r,i);if(r==="return"){let o=a||Wne;return function(l){return Ai(this,null,function*(){let d=yield t(l);return Reflect.apply(o,n,[d])})}}else if(typeof a=="function")return lM(n,a);return a}})}function fM(e,t){return new Proxy(e,{get(n,r,i){let a=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let c=Reflect.apply(a,n,[]);return dM(c,t)}:typeof a=="function"?lM(n,a):a}})}});var mM=w(NS=>{"use strict";m();T();N();Object.defineProperty(NS,"__esModule",{value:!0});NS.fixSchemaAst=tre;var Xne=Oe(),Zne=IO();function ere(e,t){let n=(0,Zne.getDocumentNodeFromSchema)(e);return(0,Xne.buildASTSchema)(n,M({},t||{}))}function tre(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=ere(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}});var NM=w(TS=>{"use strict";m();T();N();Object.defineProperty(TS,"__esModule",{value:!0});TS.extractExtensionsFromSchema=ire;var nre=xl(),ws=_c(),rre=Yl();function ha(e,t){e=e||{};let a=e,{directives:n}=a,r=kR(a,["directives"]),i=M({},r);if(!t&&n!=null){let o={};for(let c in n)o[c]=[...(0,nre.asArray)(n[c])];i.directives=o}return i}function ire(e,t=!1){let n={schemaExtensions:ha(e.extensions,t),types:{}};return(0,rre.mapSchema)(e,{[ws.MapperKind.OBJECT_TYPE]:r=>(n.types[r.name]={fields:{},type:"object",extensions:ha(r.extensions,t)},r),[ws.MapperKind.INTERFACE_TYPE]:r=>(n.types[r.name]={fields:{},type:"interface",extensions:ha(r.extensions,t)},r),[ws.MapperKind.FIELD]:(r,i,a)=>{n.types[a].fields[i]={arguments:{},extensions:ha(r.extensions,t)};let o=r.args;if(o!=null)for(let c in o)n.types[a].fields[i].arguments[c]=ha(o[c].extensions,t);return r},[ws.MapperKind.ENUM_TYPE]:r=>(n.types[r.name]={values:{},type:"enum",extensions:ha(r.extensions,t)},r),[ws.MapperKind.ENUM_VALUE]:(r,i,a,o)=>(n.types[i].values[o]=ha(r.extensions,t),r),[ws.MapperKind.SCALAR_TYPE]:r=>(n.types[r.name]={type:"scalar",extensions:ha(r.extensions,t)},r),[ws.MapperKind.UNION_TYPE]:r=>(n.types[r.name]={type:"union",extensions:ha(r.extensions,t)},r),[ws.MapperKind.INPUT_OBJECT_TYPE]:r=>(n.types[r.name]={fields:{},type:"input",extensions:ha(r.extensions,t)},r),[ws.MapperKind.INPUT_OBJECT_FIELD]:(r,i,a)=>(n.types[a].fields[i]={extensions:ha(r.extensions,t)},r)}),n}});var TM=w(Wf=>{"use strict";m();T();N();Object.defineProperty(Wf,"__esModule",{value:!0});Wf.addPath=are;Wf.pathToArray=sre;Wf.printPathArray=ore;function are(e,t,n){return{prev:e,key:t,typename:n}}function sre(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function ore(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var hM=w(hS=>{"use strict";m();T();N();Object.defineProperty(hS,"__esModule",{value:!0});hS.mergeIncrementalResult=EM;var ure=HO();function EM({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)ES(t,n,i),n[n.length-1]++;e.data&&ES(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&ES(t,["extensions"],e.extensions),e.incremental&&e.incremental.forEach(i=>{EM({incrementalResult:i,executionResult:t})})}function ES(e,t,n){let r=e,i;for(i=0;i{"use strict";m();T();N();Object.defineProperty(GT,"__esModule",{value:!0});GT.debugTimerStart=cre;GT.debugTimerEnd=lre;var yM=new Set;function cre(e){var n,r;let t=((r=(n=globalThis.process)==null?void 0:n.env)==null?void 0:r.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(yM.add(e),console.time(e))}function lre(e){yM.has(e)&&console.timeEnd(e)}});var vM=w(Xf=>{"use strict";m();T();N();Object.defineProperty(Xf,"__esModule",{value:!0});Xf.getAbortPromise=void 0;Xf.registerAbortSignalListener=_M;var dre=xf(),gM=Ou(),fre=(0,gM.memoize1)(function(t){let n=new Set;return t.addEventListener("abort",r=>{for(let i of n)i(r)},{once:!0}),n});function _M(e,t){if(e.aborted){t();return}fre(e).add(t)}Xf.getAbortPromise=(0,gM.memoize1)(function(t){return t.aborted?(0,dre.fakeRejectPromise)(t.reason):new Promise((n,r)=>{if(t.aborted){r(t.reason);return}_M(t,()=>{r(t.reason)})})})});var ya=w(Le=>{"use strict";m();T();N();Object.defineProperty(Le,"__esModule",{value:!0});Le.createDeferred=Le.fakePromise=Le.mapMaybePromise=Le.mapAsyncIterator=Le.inspect=void 0;var Ye=(bU(),Lm(DU));Ye.__exportStar(AU(),Le);Ye.__exportStar(xl(),Le);Ye.__exportStar(rO(),Le);Ye.__exportStar(aO(),Le);Ye.__exportStar(VU(),Le);Ye.__exportStar(cO(),Le);Ye.__exportStar(IO(),Le);Ye.__exportStar(aO(),Le);Ye.__exportStar(ak(),Le);Ye.__exportStar(sk(),Le);Ye.__exportStar(yk(),Le);Ye.__exportStar(bk(),Le);Ye.__exportStar(Rk(),Le);Ye.__exportStar(Uk(),Le);Ye.__exportStar(Mk(),Le);Ye.__exportStar(xk(),Le);Ye.__exportStar(Vk(),Le);Ye.__exportStar(jk(),Le);Ye.__exportStar(Yl(),Le);Ye.__exportStar(QO(),Le);Ye.__exportStar(PT(),Le);Ye.__exportStar(Gk(),Le);Ye.__exportStar(HO(),Le);Ye.__exportStar(_c(),Le);Ye.__exportStar(wO(),Le);Ye.__exportStar(Qk(),Le);Ye.__exportStar(Yk(),Le);Ye.__exportStar(Jk(),Le);Ye.__exportStar(Hk(),Le);Ye.__exportStar(CO(),Le);Ye.__exportStar(zk(),Le);Ye.__exportStar(OT(),Le);Ye.__exportStar(Wk(),Le);Ye.__exportStar(hT(),Le);Ye.__exportStar(Zk(),Le);Ye.__exportStar(aM(),Le);Ye.__exportStar(eO(),Le);Ye.__exportStar(sM(),Le);Ye.__exportStar(oM(),Le);Ye.__exportStar(uM(),Le);Ye.__exportStar(qf(),Le);Ye.__exportStar(cM(),Le);Ye.__exportStar(pM(),Le);Ye.__exportStar(jf(),Le);Ye.__exportStar(vO(),Le);Ye.__exportStar(sS(),Le);var pre=Mf();Object.defineProperty(Le,"inspect",{enumerable:!0,get:function(){return pre.inspect}});Ye.__exportStar(Ou(),Le);Ye.__exportStar(mM(),Le);Ye.__exportStar(oS(),Le);Ye.__exportStar(NM(),Le);Ye.__exportStar(TM(),Le);Ye.__exportStar(gT(),Le);Ye.__exportStar(rS(),Le);Ye.__exportStar(hM(),Le);Ye.__exportStar(IM(),Le);Ye.__exportStar(nO(),Le);var $T=xf();Object.defineProperty(Le,"mapAsyncIterator",{enumerable:!0,get:function(){return $T.mapAsyncIterator}});Object.defineProperty(Le,"mapMaybePromise",{enumerable:!0,get:function(){return $T.mapMaybePromise}});Object.defineProperty(Le,"fakePromise",{enumerable:!0,get:function(){return $T.fakePromise}});Object.defineProperty(Le,"createDeferred",{enumerable:!0,get:function(){return $T.createDeferredPromise}});Ye.__exportStar(vM(),Le)});var SM=w(QT=>{"use strict";m();T();N();Object.defineProperty(QT,"__esModule",{value:!0});QT.mergeResolvers=void 0;var mre=ya();function OM(e,t){if(!e||Array.isArray(e)&&e.length===0)return{};if(!Array.isArray(e))return e;if(e.length===1)return e[0]||{};let n=new Array;for(let i of e)Array.isArray(i)&&(i=OM(i)),typeof i=="object"&&i&&n.push(i);let r=(0,mre.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[a,o]=i.split(".");!o||o==="*"?delete r[a]:r[a]&&delete r[a][o]}return r}QT.mergeResolvers=OM});var yS=w(YT=>{"use strict";m();T();N();Object.defineProperty(YT,"__esModule",{value:!0});YT.mergeArguments=void 0;var DM=ya();function Nre(e,t,n){let r=Tre([...t,...e].filter(DM.isSome),n);return n&&n.sort&&r.sort(DM.compareNodes),r}YT.mergeArguments=Nre;function Tre(e,t){return e.reduce((n,r)=>{let i=n.findIndex(a=>a.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var Hi=w(Wl=>{"use strict";m();T();N();Object.defineProperty(Wl,"__esModule",{value:!0});Wl.mergeDirective=Wl.mergeDirectives=void 0;var bM=Oe(),Ere=ya();function hre(e,t){return!!e.find(n=>n.name.value===t.name.value)}function AM(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function yre(e,t){return t.some(({value:n})=>n===e.value)}function RM(e,t){let n=[...t];for(let r of e){let i=n.findIndex(a=>a.name.value===r.name.value);if(i>-1){let a=n[i];if(a.value.kind==="ListValue"){let o=a.value.values,c=r.value.values;a.value.values=Ore(o,c,(l,d)=>{let p=l.value;return!p||!d.some(E=>E.value===p)})}else a.value=r.value}else n.push(r)}return n}function Ire(e,t){return e.map((n,r,i)=>{let a=i.findIndex(o=>o.name.value===n.name.value);if(a!==r&&!AM(n,t)){let o=i[a];return n.arguments=RM(n.arguments,o.arguments),null}return n}).filter(Ere.isSome)}function gre(e=[],t=[],n,r){let i=n&&n.reverseDirectives,a=i?e:t,o=i?t:e,c=Ire([...a],r);for(let l of o)if(hre(c,l)&&!AM(l,r)){let d=c.findIndex(E=>E.name.value===l.name.value),p=c[d];c[d].arguments=RM(l.arguments||[],p.arguments||[])}else c.push(l);return c}Wl.mergeDirectives=gre;function _re(e,t){let n=(0,bM.print)(Q(M({},e),{description:void 0})),r=(0,bM.print)(Q(M({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(n.replace(i,"")===r.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". +)`):Qn("(",qe(t,", "),")"))+(n?" repeatable":"")+" on "+qe(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>qe(["extend schema",qe(e," "),aa(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>qe(["extend scalar",e,qe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["extend type",e,Qn("implements ",qe(t," & ")),qe(n," "),aa(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["extend interface",e,Qn("implements ",qe(t," & ")),qe(n," "),aa(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>qe(["extend union",e,qe(t," "),Qn("= ",qe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>qe(["extend enum",e,qe(t," "),aa(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>qe(["extend input",e,qe(t," "),aa(n)]," ")}},Mre=Object.keys(kV).reduce((e,t)=>K(x({},e),{[t]:{leave:kre(kV[t].leave)}}),{});function Vre(e){return(0,MV.visit)(e,Mre)}function qre(e){return e.kind==="FieldDefinition"}function $re(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return r0(e)}function r0(e){let t=qV(e);if(t!==void 0)return $V(` +${t}`)}function qV(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===MV.TokenKind.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){let i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(` +`):void 0}function $V(e){let t=e.split(/\r\n|[\n\r]/g),n=jV(t);if(n!==0)for(let r=1;r0&&xV(t[0]);)t.shift();for(;t.length>0&&xV(t[t.length-1]);)t.pop();return t.join(` +`)}function jV(e){let t=null;for(let n=1;n{"use strict";p();N();m();Object.defineProperty(UN,"__esModule",{value:!0});UN.parseGraphQLSDL=jre;UN.transformCommentsToDescriptions=QV;UN.isDescribable=YV;var Cs=(Oe(),Ae(Pe)),GV=i0();function jre(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=QV(t,n),n.noLocation&&(r=(0,Cs.parse)((0,Cs.print)(r),n))):r=(0,Cs.parse)(new Cs.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Cs.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}function QV(e,t={}){let n=(0,Cs.parse)(e,K(x({},t),{noLocation:!1}));return(0,Cs.visit)(n,{leave:i=>{if(YV(i)){let s=(0,GV.getLeadingCommentBlock)(i);if(s!==void 0){let a=(0,GV.dedentBlockStringValue)(` +`+s),u=a.includes(` +`);return i.description?K(x({},i),{description:K(x({},i.description),{value:i.description.value+` +`+a,block:!0})}):K(x({},i),{description:{kind:Cs.Kind.STRING,value:a,block:u}})}}}})}function YV(e){return(0,Cs.isTypeSystemDefinitionNode)(e)||e.kind===Cs.Kind.FIELD_DEFINITION||e.kind===Cs.Kind.INPUT_VALUE_DEFINITION||e.kind===Cs.Kind.ENUM_VALUE_DEFINITION}});var nq=C(u0=>{"use strict";p();N();m();Object.defineProperty(u0,"__esModule",{value:!0});u0.buildOperationNodeForField=Gre;var Et=(Oe(),Ae(Pe)),Kre=RN(),XV=wN(),o0=[],Ly=new Map;function ZV(e){o0.push(e)}function HV(){o0=[]}function zV(){Ly=new Map}function Gre({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:s,circularReferenceDepth:a,argNames:u,selectedFields:l=!0}){HV(),zV();let d=(0,XV.getRootTypeNames)(e),f=Qre({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:s||1/0,circularReferenceDepth:a||1,argNames:u,selectedFields:l,rootTypeNames:d});return f.variableDefinitions=[...o0],HV(),zV(),f}function Qre({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:s,circularReferenceDepth:a,argNames:u,selectedFields:l,rootTypeNames:d}){let f=(0,XV.getDefinedRootType)(e,n),E=f.getFields()[t],h=`${t}_${n}`;if(E.args)for(let _ of E.args){let A=_.name;(!u||u.includes(A))&&ZV(eq(_,A))}return{kind:Et.Kind.OPERATION_DEFINITION,operation:n,name:{kind:Et.Kind.NAME,value:h},variableDefinitions:[],selectionSet:{kind:Et.Kind.SELECTION_SET,selections:[tq({type:f,field:E,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:s,circularReferenceDepth:a,schema:e,depth:0,argNames:u,selectedFields:l,rootTypeNames:d})]}}}function a0({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:s,ignore:a,depthLimit:u,circularReferenceDepth:l,schema:d,depth:f,argNames:E,selectedFields:h,rootTypeNames:_}){if(!(typeof h=="boolean"&&f>u)){if((0,Et.isUnionType)(t)){let A=t.getTypes();return{kind:Et.Kind.SELECTION_SET,selections:A.filter(U=>!s0([...s,U],{depth:l})).map(U=>({kind:Et.Kind.INLINE_FRAGMENT,typeCondition:{kind:Et.Kind.NAMED_TYPE,name:{kind:Et.Kind.NAME,value:U.name}},selectionSet:a0({parent:t,type:U,models:n,path:i,ancestors:s,ignore:a,depthLimit:u,circularReferenceDepth:l,schema:d,depth:f,argNames:E,selectedFields:h,rootTypeNames:_})})).filter(U=>{var q,j;return((j=(q=U==null?void 0:U.selectionSet)==null?void 0:q.selections)==null?void 0:j.length)>0})}}if((0,Et.isInterfaceType)(t)){let A=Object.values(d.getTypeMap()).filter(U=>(0,Et.isObjectType)(U)&&U.getInterfaces().includes(t));return{kind:Et.Kind.SELECTION_SET,selections:A.filter(U=>!s0([...s,U],{depth:l})).map(U=>({kind:Et.Kind.INLINE_FRAGMENT,typeCondition:{kind:Et.Kind.NAMED_TYPE,name:{kind:Et.Kind.NAME,value:U.name}},selectionSet:a0({parent:t,type:U,models:n,path:i,ancestors:s,ignore:a,depthLimit:u,circularReferenceDepth:l,schema:d,depth:f,argNames:E,selectedFields:h,rootTypeNames:_})})).filter(U=>{var q,j;return((j=(q=U==null?void 0:U.selectionSet)==null?void 0:q.selections)==null?void 0:j.length)>0})}}if((0,Et.isObjectType)(t)&&!_.has(t.name)){let A=a.includes(t.name)||a.includes(`${e.name}.${i[i.length-1]}`),U=n.includes(t.name);if(!r&&U&&!A)return{kind:Et.Kind.SELECTION_SET,selections:[{kind:Et.Kind.FIELD,name:{kind:Et.Kind.NAME,value:"id"}}]};let q=t.getFields();return{kind:Et.Kind.SELECTION_SET,selections:Object.keys(q).filter(j=>!s0([...s,(0,Et.getNamedType)(q[j].type)],{depth:l})).map(j=>{let re=typeof h=="object"?h[j]:!0;return re?tq({type:t,field:q[j],models:n,path:[...i,j],ancestors:s,ignore:a,depthLimit:u,circularReferenceDepth:l,schema:d,depth:f,argNames:E,selectedFields:re,rootTypeNames:_}):null}).filter(j=>{var re,ee;return j==null?!1:"selectionSet"in j?!!((ee=(re=j.selectionSet)==null?void 0:re.selections)!=null&&ee.length):!0})}}}}function eq(e,t){function n(i){return(0,Et.isListType)(i)?{kind:Et.Kind.LIST_TYPE,type:n(i.ofType)}:(0,Et.isNonNullType)(i)?{kind:Et.Kind.NON_NULL_TYPE,type:n(i.ofType)}:{kind:Et.Kind.NAMED_TYPE,name:{kind:Et.Kind.NAME,value:i.name}}}let r;try{let i=(0,Et.astFromValue)(e.defaultValue,e.type);i==null?r=void 0:r=i}catch(i){let s=(0,Kre.astFromValueUntyped)(e.defaultValue);s==null?r=void 0:r=s}return{kind:Et.Kind.VARIABLE_DEFINITION,variable:{kind:Et.Kind.VARIABLE,name:{kind:Et.Kind.NAME,value:t||e.name}},type:n(e.type),defaultValue:r}}function WV(e,t){return[...t,e].join("_")}function tq({type:e,field:t,models:n,firstCall:r,path:i,ancestors:s,ignore:a,depthLimit:u,circularReferenceDepth:l,schema:d,depth:f,argNames:E,selectedFields:h,rootTypeNames:_}){let A=(0,Et.getNamedType)(t.type),U=[],q=!1;if(t.args&&t.args.length&&(U=t.args.map(me=>{let ce=WV(me.name,i);return E&&!E.includes(ce)?((0,Et.isNonNullType)(me.type)&&(q=!0),null):(r||ZV(eq(me,ce)),{kind:Et.Kind.ARGUMENT,name:{kind:Et.Kind.NAME,value:me.name},value:{kind:Et.Kind.VARIABLE,name:{kind:Et.Kind.NAME,value:WV(me.name,i)}}})}).filter(Boolean)),q)return null;let j=[...i,t.name],re=j.join("."),ee=t.name;return Ly.has(re)&&Ly.get(re)!==t.type.toString()&&(ee+=t.type.toString().replace(/!/g,"NonNull").replace(/\[/g,"List").replace(/\]/g,"")),Ly.set(re,t.type.toString()),!(0,Et.isScalarType)(A)&&!(0,Et.isEnumType)(A)?K(x({kind:Et.Kind.FIELD,name:{kind:Et.Kind.NAME,value:t.name}},ee!==t.name&&{alias:{kind:Et.Kind.NAME,value:ee}}),{selectionSet:a0({parent:e,type:A,models:n,firstCall:r,path:j,ancestors:[...s,e],ignore:a,depthLimit:u,circularReferenceDepth:l,schema:d,depth:f+1,argNames:E,selectedFields:h,rootTypeNames:_})||void 0,arguments:U}):K(x({kind:Et.Kind.FIELD,name:{kind:Et.Kind.NAME,value:t.name}},ee!==t.name&&{alias:{kind:Et.Kind.NAME,value:ee}}),{arguments:U})}function s0(e,t={depth:1}){let n=e[e.length-1];return(0,Et.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var iq=C(Py=>{"use strict";p();N();m();Object.defineProperty(Py,"__esModule",{value:!0});Py.DirectiveLocation=void 0;var rq;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(rq||(Py.DirectiveLocation=rq={}))});var ql=C(Cy=>{"use strict";p();N();m();Object.defineProperty(Cy,"__esModule",{value:!0});Cy.MapperKind=void 0;var sq;(function(e){e.TYPE="MapperKind.TYPE",e.SCALAR_TYPE="MapperKind.SCALAR_TYPE",e.ENUM_TYPE="MapperKind.ENUM_TYPE",e.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",e.OBJECT_TYPE="MapperKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",e.UNION_TYPE="MapperKind.UNION_TYPE",e.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",e.ROOT_OBJECT="MapperKind.ROOT_OBJECT",e.QUERY="MapperKind.QUERY",e.MUTATION="MapperKind.MUTATION",e.SUBSCRIPTION="MapperKind.SUBSCRIPTION",e.DIRECTIVE="MapperKind.DIRECTIVE",e.FIELD="MapperKind.FIELD",e.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",e.OBJECT_FIELD="MapperKind.OBJECT_FIELD",e.ROOT_FIELD="MapperKind.ROOT_FIELD",e.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",e.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",e.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",e.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",e.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",e.ARGUMENT="MapperKind.ARGUMENT",e.ENUM_VALUE="MapperKind.ENUM_VALUE"})(sq||(Cy.MapperKind=sq={}))});var l0=C(c0=>{"use strict";p();N();m();Object.defineProperty(c0,"__esModule",{value:!0});c0.getObjectTypeFromTypeMap=Jre;var Yre=(Oe(),Ae(Pe));function Jre(e,t){if(t){let n=e[t.name];if((0,Yre.isObjectType)(n))return n}}});var p0=C(Cf=>{"use strict";p();N();m();Object.defineProperty(Cf,"__esModule",{value:!0});Cf.createNamedStub=d0;Cf.createStub=f0;Cf.isNamedStub=Hre;Cf.getBuiltInForStub=zre;var qr=(Oe(),Ae(Pe));function d0(e,t){let n;return t==="object"?n=qr.GraphQLObjectType:t==="interface"?n=qr.GraphQLInterfaceType:n=qr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:qr.GraphQLString}}})}function f0(e,t){switch(e.kind){case qr.Kind.LIST_TYPE:return new qr.GraphQLList(f0(e.type,t));case qr.Kind.NON_NULL_TYPE:return new qr.GraphQLNonNull(f0(e.type,t));default:return t==="output"?d0(e.name.value,"object"):d0(e.name.value,"input")}}function Hre(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}function zre(e){switch(e.name){case qr.GraphQLInt.name:return qr.GraphQLInt;case qr.GraphQLFloat.name:return qr.GraphQLFloat;case qr.GraphQLString.name:return qr.GraphQLString;case qr.GraphQLBoolean.name:return qr.GraphQLBoolean;case qr.GraphQLID.name:return qr.GraphQLID;default:return e}}});var Uy=C(m0=>{"use strict";p();N();m();Object.defineProperty(m0,"__esModule",{value:!0});m0.rewireTypes=Wre;var Ir=(Oe(),Ae(Pe)),aq=p0();function Wre(e,t){let n=Object.create(null);for(let h in e)n[h]=e[h];let r=Object.create(null);for(let h in n){let _=n[h];if(_==null||h.startsWith("__"))continue;let A=_.name;if(!A.startsWith("__")){if(r[A]!=null){console.warn(`Duplicate schema type name ${A} found; keeping the existing one found in the schema`);continue}r[A]=_}}for(let h in r)r[h]=u(r[h]);let i=t.map(h=>s(h));return{typeMap:r,directives:i};function s(h){if((0,Ir.isSpecifiedDirective)(h))return h;let _=h.toConfig();return _.args=a(_.args),new Ir.GraphQLDirective(_)}function a(h){let _={};for(let A in h){let U=h[A],q=E(U.type);q!=null&&(U.type=q,_[A]=U)}return _}function u(h){if((0,Ir.isObjectType)(h)){let _=h.toConfig(),A=K(x({},_),{fields:()=>l(_.fields),interfaces:()=>f(_.interfaces)});return new Ir.GraphQLObjectType(A)}else if((0,Ir.isInterfaceType)(h)){let _=h.toConfig(),A=K(x({},_),{fields:()=>l(_.fields)});return"interfaces"in A&&(A.interfaces=()=>f(_.interfaces)),new Ir.GraphQLInterfaceType(A)}else if((0,Ir.isUnionType)(h)){let _=h.toConfig(),A=K(x({},_),{types:()=>f(_.types)});return new Ir.GraphQLUnionType(A)}else if((0,Ir.isInputObjectType)(h)){let _=h.toConfig(),A=K(x({},_),{fields:()=>d(_.fields)});return new Ir.GraphQLInputObjectType(A)}else if((0,Ir.isEnumType)(h)){let _=h.toConfig();return new Ir.GraphQLEnumType(_)}else if((0,Ir.isScalarType)(h)){if((0,Ir.isSpecifiedScalarType)(h))return h;let _=h.toConfig();return new Ir.GraphQLScalarType(_)}throw new Error(`Unexpected schema type: ${h}`)}function l(h){let _={};for(let A in h){let U=h[A],q=E(U.type);q!=null&&U.args&&(U.type=q,U.args=a(U.args),_[A]=U)}return _}function d(h){let _={};for(let A in h){let U=h[A],q=E(U.type);q!=null&&(U.type=q,_[A]=U)}return _}function f(h){let _=[];for(let A of h){let U=E(A);U!=null&&_.push(U)}return _}function E(h){if((0,Ir.isListType)(h)){let _=E(h.ofType);return _!=null?new Ir.GraphQLList(_):null}else if((0,Ir.isNonNullType)(h)){let _=E(h.ofType);return _!=null?new Ir.GraphQLNonNull(_):null}else if((0,Ir.isNamedType)(h)){let _=n[h.name];return _===void 0&&(_=(0,aq.isNamedStub)(h)?(0,aq.getBuiltInForStub)(h):u(h),r[_.name]=n[h.name]=_),_!=null?r[_.name]:null}return null}}});var N0=C(Bf=>{"use strict";p();N();m();Object.defineProperty(Bf,"__esModule",{value:!0});Bf.transformInputValue=Uf;Bf.serializeInputValue=Zre;Bf.parseInputValue=eie;Bf.parseInputValueLiteral=tie;var By=(Oe(),Ae(Pe)),Xre=Ff();function Uf(e,t,n=null,r=null){if(t==null)return t;let i=(0,By.getNullableType)(e);if((0,By.isLeafType)(i))return n!=null?n(i,t):t;if((0,By.isListType)(i))return(0,Xre.asArray)(t).map(s=>Uf(i.ofType,s,n,r));if((0,By.isInputObjectType)(i)){let s=i.getFields(),a={};for(let u in t){let l=s[u];l!=null&&(a[u]=Uf(l.type,t[u],n,r))}return r!=null?r(i,a):a}}function Zre(e,t){return Uf(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}function eie(e,t){return Uf(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}function tie(e,t){return Uf(e,t,(n,r)=>n.parseLiteral(r,{}))}});var xf=C(xy=>{"use strict";p();N();m();Object.defineProperty(xy,"__esModule",{value:!0});xy.mapSchema=rie;xy.correctASTNodes=BN;var pt=(Oe(),Ae(Pe)),kf=l0(),Mt=ql(),nie=Uy(),oq=N0();function rie(e,t={}){let n=lq(cq(T0(uq(sie(T0(uq(e.getTypeMap(),e,oq.serializeInputValue),e,t,u=>(0,pt.isLeafType)(u)),e,t),e,oq.parseInputValue),e,t,u=>!(0,pt.isLeafType)(u)),e,t),e,t),r=e.getDirectives(),i=aie(r,e,t),{typeMap:s,directives:a}=(0,nie.rewireTypes)(n,i);return new pt.GraphQLSchema(K(x({},e.toConfig()),{query:(0,kf.getObjectTypeFromTypeMap)(s,(0,kf.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,kf.getObjectTypeFromTypeMap)(s,(0,kf.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,kf.getObjectTypeFromTypeMap)(s,(0,kf.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(s),directives:a}))}var iie=["String","ID","Int","Float","Boolean"];function T0(e,t,n,r=()=>!0){let i={};for(let s in e)if(!s.startsWith("__")&&!iie.includes(s)){let a=e[s];if(a==null||!r(a)){i[s]=a;continue}let u=uie(t,n,s);if(u==null){i[s]=a;continue}let l=u(a,t);if(l===void 0){i[s]=a;continue}i[s]=l}return i}function sie(e,t,n){let r=pie(n);return r?T0(e,t,{[Mt.MapperKind.ENUM_TYPE]:i=>{let s=i.toConfig(),a=s.values,u={};for(let l in a){let d=a[l],f=r(d,i.name,t,l);if(f===void 0)u[l]=d;else if(Array.isArray(f)){let[E,h]=f;u[E]=h===void 0?d:h}else f!==null&&(u[l]=f)}return BN(new pt.GraphQLEnumType(K(x({},s),{values:u})))}},i=>(0,pt.isEnumType)(i)):e}function uq(e,t,n){let r=lq(e,t,{[Mt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let s=ky(e,i.type);if(s!=null)return K(x({},i),{defaultValue:n(s,i.defaultValue)})}});return cq(r,t,{[Mt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let s=ky(r,i.type);if(s!=null)return K(x({},i),{defaultValue:n(s,i.defaultValue)})}})}function ky(e,t){if((0,pt.isListType)(t)){let n=ky(e,t.ofType);return n!=null?new pt.GraphQLList(n):null}else if((0,pt.isNonNullType)(t)){let n=ky(e,t.ofType);return n!=null?new pt.GraphQLNonNull(n):null}else if((0,pt.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function cq(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!(0,pt.isObjectType)(s)&&!(0,pt.isInterfaceType)(s)&&!(0,pt.isInputObjectType)(s)){r[i]=s;continue}let a=lie(t,n,i);if(a==null){r[i]=s;continue}let u=s.toConfig(),l=u.fields,d={};for(let f in l){let E=l[f],h=a(E,f,i,t);if(h===void 0)d[f]=E;else if(Array.isArray(h)){let[_,A]=h;A.astNode!=null&&(A.astNode=K(x({},A.astNode),{name:K(x({},A.astNode.name),{value:_})})),d[_]=A===void 0?E:A}else h!==null&&(d[f]=h)}(0,pt.isObjectType)(s)?r[i]=BN(new pt.GraphQLObjectType(K(x({},u),{fields:d}))):(0,pt.isInterfaceType)(s)?r[i]=BN(new pt.GraphQLInterfaceType(K(x({},u),{fields:d}))):r[i]=BN(new pt.GraphQLInputObjectType(K(x({},u),{fields:d})))}return r}function lq(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!(0,pt.isObjectType)(s)&&!(0,pt.isInterfaceType)(s)){r[i]=s;continue}let a=die(n);if(a==null){r[i]=s;continue}let u=s.toConfig(),l=u.fields,d={};for(let f in l){let E=l[f],h=E.args;if(h==null){d[f]=E;continue}let _=Object.keys(h);if(!_.length){d[f]=E;continue}let A={};for(let U of _){let q=h[U],j=a(q,f,i,t);if(j===void 0)A[U]=q;else if(Array.isArray(j)){let[re,ee]=j;A[re]=ee}else j!==null&&(A[U]=j)}d[f]=K(x({},E),{args:A})}(0,pt.isObjectType)(s)?r[i]=new pt.GraphQLObjectType(K(x({},u),{fields:d})):(0,pt.isInterfaceType)(s)?r[i]=new pt.GraphQLInterfaceType(K(x({},u),{fields:d})):r[i]=new pt.GraphQLInputObjectType(K(x({},u),{fields:d}))}return r}function aie(e,t,n){let r=fie(n);if(r==null)return e.slice();let i=[];for(let s of e){let a=r(s,t);a===void 0?i.push(s):a!==null&&i.push(a)}return i}function oie(e,t){var i,s,a;let n=e.getType(t),r=[Mt.MapperKind.TYPE];return(0,pt.isObjectType)(n)?(r.push(Mt.MapperKind.COMPOSITE_TYPE,Mt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Mt.MapperKind.ROOT_OBJECT,Mt.MapperKind.QUERY):t===((s=e.getMutationType())==null?void 0:s.name)?r.push(Mt.MapperKind.ROOT_OBJECT,Mt.MapperKind.MUTATION):t===((a=e.getSubscriptionType())==null?void 0:a.name)&&r.push(Mt.MapperKind.ROOT_OBJECT,Mt.MapperKind.SUBSCRIPTION)):(0,pt.isInputObjectType)(n)?r.push(Mt.MapperKind.INPUT_OBJECT_TYPE):(0,pt.isInterfaceType)(n)?r.push(Mt.MapperKind.COMPOSITE_TYPE,Mt.MapperKind.ABSTRACT_TYPE,Mt.MapperKind.INTERFACE_TYPE):(0,pt.isUnionType)(n)?r.push(Mt.MapperKind.COMPOSITE_TYPE,Mt.MapperKind.ABSTRACT_TYPE,Mt.MapperKind.UNION_TYPE):(0,pt.isEnumType)(n)?r.push(Mt.MapperKind.ENUM_TYPE):(0,pt.isScalarType)(n)&&r.push(Mt.MapperKind.SCALAR_TYPE),r}function uie(e,t,n){let r=oie(e,n),i,s=[...r];for(;!i&&s.length>0;){let a=s.pop();i=t[a]}return i!=null?i:null}function cie(e,t){var i,s,a;let n=e.getType(t),r=[Mt.MapperKind.FIELD];return(0,pt.isObjectType)(n)?(r.push(Mt.MapperKind.COMPOSITE_FIELD,Mt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Mt.MapperKind.ROOT_FIELD,Mt.MapperKind.QUERY_ROOT_FIELD):t===((s=e.getMutationType())==null?void 0:s.name)?r.push(Mt.MapperKind.ROOT_FIELD,Mt.MapperKind.MUTATION_ROOT_FIELD):t===((a=e.getSubscriptionType())==null?void 0:a.name)&&r.push(Mt.MapperKind.ROOT_FIELD,Mt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,pt.isInterfaceType)(n)?r.push(Mt.MapperKind.COMPOSITE_FIELD,Mt.MapperKind.INTERFACE_FIELD):(0,pt.isInputObjectType)(n)&&r.push(Mt.MapperKind.INPUT_OBJECT_FIELD),r}function lie(e,t,n){let r=cie(e,n),i,s=[...r];for(;!i&&s.length>0;){let a=s.pop();i=t[a]}return i!=null?i:null}function die(e){let t=e[Mt.MapperKind.ARGUMENT];return t!=null?t:null}function fie(e){let t=e[Mt.MapperKind.DIRECTIVE];return t!=null?t:null}function pie(e){let t=e[Mt.MapperKind.ENUM_VALUE];return t!=null?t:null}function BN(e){if((0,pt.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=K(x({},t.astNode),{kind:pt.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(x({},n),{kind:pt.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new pt.GraphQLObjectType(t)}else if((0,pt.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=K(x({},t.astNode),{kind:pt.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(x({},n),{kind:pt.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new pt.GraphQLInterfaceType(t)}else if((0,pt.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=K(x({},t.astNode),{kind:pt.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(x({},n),{kind:pt.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new pt.GraphQLInputObjectType(t)}else if((0,pt.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.values){let i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=K(x({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(x({},n),{values:void 0}))),new pt.GraphQLEnumType(t)}else return e}});var dq=C(y0=>{"use strict";p();N();m();Object.defineProperty(y0,"__esModule",{value:!0});y0.filterSchema=Nie;var My=(Oe(),Ae(Pe)),oa=ql(),mie=xf();function Nie({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:s=void 0,inputObjectFieldFilter:a=void 0,argumentFilter:u=void 0,directiveFilter:l=void 0,enumValueFilter:d=void 0}){return(0,mie.mapSchema)(e,{[oa.MapperKind.QUERY]:E=>E0(E,"Query",r,u),[oa.MapperKind.MUTATION]:E=>E0(E,"Mutation",r,u),[oa.MapperKind.SUBSCRIPTION]:E=>E0(E,"Subscription",r,u),[oa.MapperKind.OBJECT_TYPE]:E=>t(E.name,E)?h0(My.GraphQLObjectType,E,i||n,u):null,[oa.MapperKind.INTERFACE_TYPE]:E=>t(E.name,E)?h0(My.GraphQLInterfaceType,E,s||n,u):null,[oa.MapperKind.INPUT_OBJECT_TYPE]:E=>t(E.name,E)?h0(My.GraphQLInputObjectType,E,a||n):null,[oa.MapperKind.UNION_TYPE]:E=>t(E.name,E)?void 0:null,[oa.MapperKind.ENUM_TYPE]:E=>t(E.name,E)?void 0:null,[oa.MapperKind.SCALAR_TYPE]:E=>t(E.name,E)?void 0:null,[oa.MapperKind.DIRECTIVE]:E=>l&&!l(E.name,E)?null:void 0,[oa.MapperKind.ENUM_VALUE]:(E,h,_,A)=>d&&!d(h,A,E)?null:void 0})}function E0(e,t,n,r){if(n||r){let i=e.toConfig();for(let s in i.fields){let a=i.fields[s];if(n&&!n(t,s,i.fields[s]))delete i.fields[s];else if(r&&a.args)for(let u in a.args)r(e.name,s,u,a.args[u])||delete a.args[u]}return new My.GraphQLObjectType(i)}return e}function h0(e,t,n,r){if(n||r){let i=t.toConfig();for(let s in i.fields){let a=i.fields[s];if(n&&!n(t.name,s,i.fields[s]))delete i.fields[s];else if(r&&"args"in a)for(let u in a.args)r(t.name,s,u,a.args[u])||delete a.args[u]}return new e(i)}}});var pq=C(Vy=>{"use strict";p();N();m();Object.defineProperty(Vy,"__esModule",{value:!0});Vy.healSchema=Tie;Vy.healTypes=fq;var $a=(Oe(),Ae(Pe));function Tie(e){return fq(e.getTypeMap(),e.getDirectives()),e}function fq(e,t){let n=Object.create(null);for(let d in e){let f=e[d];if(f==null||d.startsWith("__"))continue;let E=f.name;if(!E.startsWith("__")){if(n[E]!=null){console.warn(`Duplicate schema type name ${E} found; keeping the existing one found in the schema`);continue}n[E]=f}}for(let d in n){let f=n[d];e[d]=f}for(let d of t)d.args=d.args.filter(f=>(f.type=l(f.type),f.type!==null));for(let d in e){let f=e[d];!d.startsWith("__")&&d in n&&f!=null&&r(f)}for(let d in e)!d.startsWith("__")&&!(d in n)&&delete e[d];function r(d){if((0,$a.isObjectType)(d)){i(d),s(d);return}else if((0,$a.isInterfaceType)(d)){i(d),"getInterfaces"in d&&s(d);return}else if((0,$a.isUnionType)(d)){u(d);return}else if((0,$a.isInputObjectType)(d)){a(d);return}else if((0,$a.isLeafType)(d))return;throw new Error(`Unexpected schema type: ${d}`)}function i(d){let f=d.getFields();for(let[E,h]of Object.entries(f))h.args.map(_=>(_.type=l(_.type),_.type===null?null:_)).filter(Boolean),h.type=l(h.type),h.type===null&&delete f[E]}function s(d){if("getInterfaces"in d){let f=d.getInterfaces();f.push(...f.splice(0).map(E=>l(E)).filter(Boolean))}}function a(d){let f=d.getFields();for(let[E,h]of Object.entries(f))h.type=l(h.type),h.type===null&&delete f[E]}function u(d){let f=d.getTypes();f.push(...f.splice(0).map(E=>l(E)).filter(Boolean))}function l(d){if((0,$a.isListType)(d)){let f=l(d.ofType);return f!=null?new $a.GraphQLList(f):null}else if((0,$a.isNonNullType)(d)){let f=l(d.ofType);return f!=null?new $a.GraphQLNonNull(f):null}else if((0,$a.isNamedType)(d)){let f=e[d.name];if(f&&d!==f)return f}return d}}});var mq=C(I0=>{"use strict";p();N();m();Object.defineProperty(I0,"__esModule",{value:!0});I0.getResolversFromSchema=Eie;var $l=(Oe(),Ae(Pe));function Eie(e,t){var i,s;let n=Object.create(null),r=e.getTypeMap();for(let a in r)if(!a.startsWith("__")){let u=r[a];if((0,$l.isScalarType)(u)){if(!(0,$l.isSpecifiedScalarType)(u)){let l=u.toConfig();delete l.astNode,n[a]=new $l.GraphQLScalarType(l)}}else if((0,$l.isEnumType)(u)){n[a]={};let l=u.getValues();for(let d of l)n[a][d.name]=d.value}else if((0,$l.isInterfaceType)(u))u.resolveType!=null&&(n[a]={__resolveType:u.resolveType});else if((0,$l.isUnionType)(u))u.resolveType!=null&&(n[a]={__resolveType:u.resolveType});else if((0,$l.isObjectType)(u)){n[a]={},u.isTypeOf!=null&&(n[a].__isTypeOf=u.isTypeOf);let l=u.getFields();for(let d in l){let f=l[d];if(f.subscribe!=null&&(n[a][d]=n[a][d]||{},n[a][d].subscribe=f.subscribe),f.resolve!=null&&((i=f.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((s=f.resolve)==null?void 0:s.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[a][d]=n[a][d]||{},n[a][d].resolve=f.resolve}}}}return n}});var Tq=C(g0=>{"use strict";p();N();m();Object.defineProperty(g0,"__esModule",{value:!0});g0.forEachField=hie;var Nq=(Oe(),Ae(Pe));function hie(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,Nq.getNamedType)(i).name.startsWith("__")&&(0,Nq.isObjectType)(i)){let s=i.getFields();for(let a in s){let u=s[a];t(u,r,a)}}}}});var Eq=C(v0=>{"use strict";p();N();m();Object.defineProperty(v0,"__esModule",{value:!0});v0.forEachDefaultValue=yie;var _0=(Oe(),Ae(Pe));function yie(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,_0.getNamedType)(i).name.startsWith("__")){if((0,_0.isObjectType)(i)){let s=i.getFields();for(let a in s){let u=s[a];for(let l of u.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,_0.isInputObjectType)(i)){let s=i.getFields();for(let a in s){let u=s[a];u.defaultValue=t(u.type,u.defaultValue)}}}}}});var b0=C(O0=>{"use strict";p();N();m();Object.defineProperty(O0,"__esModule",{value:!0});O0.addTypes=gie;var S0=(Oe(),Ae(Pe)),D0=l0(),Iie=Uy();function gie(e,t){let n=e.toConfig(),r={};for(let u of n.types)r[u.name]=u;let i={};for(let u of n.directives)i[u.name]=u;for(let u of t)(0,S0.isNamedType)(u)?r[u.name]=u:(0,S0.isDirective)(u)&&(i[u.name]=u);let{typeMap:s,directives:a}=(0,Iie.rewireTypes)(r,Object.values(i));return new S0.GraphQLSchema(K(x({},n),{query:(0,D0.getObjectTypeFromTypeMap)(s,e.getQueryType()),mutation:(0,D0.getObjectTypeFromTypeMap)(s,e.getMutationType()),subscription:(0,D0.getObjectTypeFromTypeMap)(s,e.getSubscriptionType()),types:Object.values(s),directives:a}))}});var yq=C(A0=>{"use strict";p();N();m();Object.defineProperty(A0,"__esModule",{value:!0});A0.pruneSchema=Oie;var gr=(Oe(),Ae(Pe)),_ie=Kb(),vie=ql(),Sie=xf(),Die=wN();function Oie(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:s,skipUnusedTypesPruning:a}=t,u=[],l=e;do{let d=bie(l);if(i){let f=[];for(let E in l.getTypeMap()){if(E.startsWith("__"))continue;let h=l.getType(E);h&&i(h)&&f.push(E)}d=hq(f,l,d)}u=[],l=(0,Sie.mapSchema)(l,{[vie.MapperKind.TYPE]:f=>!d.has(f.name)&&!(0,gr.isSpecifiedScalarType)(f)?((0,gr.isUnionType)(f)||(0,gr.isInputObjectType)(f)||(0,gr.isInterfaceType)(f)||(0,gr.isObjectType)(f)||(0,gr.isScalarType)(f))&&(a||(0,gr.isUnionType)(f)&&r&&!Object.keys(f.getTypes()).length||((0,gr.isInputObjectType)(f)||(0,gr.isInterfaceType)(f)||(0,gr.isObjectType)(f))&&n&&!Object.keys(f.getFields()).length||(0,gr.isInterfaceType)(f)&&s)?f:(u.push(f.name),d.delete(f.name),null):f})}while(u.length);return l}function bie(e){let t=[];for(let n of(0,Die.getRootTypes)(e))t.push(n.name);return hq(t,e)}function hq(e,t,n=new Set){let r=new Map;for(;e.length;){let i=e.pop();if(n.has(i)&&r[i]!==!0)continue;let s=t.getType(i);if(s){if((0,gr.isUnionType)(s)&&e.push(...s.getTypes().map(a=>a.name)),(0,gr.isInterfaceType)(s)&&r[i]===!0&&(e.push(...(0,_ie.getImplementingTypes)(s.name,t)),r[i]=!1),(0,gr.isEnumType)(s)&&e.push(...s.getValues().flatMap(a=>qy(t,a))),"getInterfaces"in s&&e.push(...s.getInterfaces().map(a=>a.name)),"getFields"in s){let a=s.getFields(),u=Object.entries(a);if(!u.length)continue;for(let[,l]of u){(0,gr.isObjectType)(s)&&e.push(...l.args.flatMap(f=>{let E=[(0,gr.getNamedType)(f.type).name];return E.push(...qy(t,f)),E}));let d=(0,gr.getNamedType)(l.type);e.push(d.name),e.push(...qy(t,l)),(0,gr.isInterfaceType)(d)&&!(d.name in r)&&(r[d.name]=!0)}}e.push(...qy(t,s)),n.add(i)}}return n}function qy(e,t){var r,i;let n=new Set;if((r=t.astNode)!=null&&r.directives)for(let s of t.astNode.directives){let a=e.getDirective(s.name.value);if(a!=null&&a.args)for(let u of a.args){let l=(0,gr.getNamedType)(u.type);n.add(l.name)}}if((i=t.extensions)!=null&&i.directives)for(let s in t.extensions.directives){let a=e.getDirective(s);if(a!=null&&a.args)for(let u of a.args){let l=(0,gr.getNamedType)(u.type);n.add(l.name)}}return[...n]}});var F0=C(R0=>{"use strict";p();N();m();Object.defineProperty(R0,"__esModule",{value:!0});R0.mergeDeep=$y;var Aie=Ff();function $y(e,t=!1,n=!1,r=!1){if(e.length===0)return;if(e.length===1)return e[0];let i,s=!0,a=e.every(d=>{if(Array.isArray(d)){if(i===void 0)return i=d.length,!0;if(i===d.length)return!0}else s=!1;return!1});if(r&&a)return new Array(i).fill(null).map((d,f)=>$y(e.map(E=>E[f]),t,n,r));if(s)return e.flat(1);let u,l;t&&(l=e.find(d=>Iq(d)),l&&(u==null&&(u={}),Object.setPrototypeOf(u,Object.create(Object.getPrototypeOf(l)))));for(let d of e)if(d!=null)if(Iq(d)){if(l){let f=Object.getPrototypeOf(u),E=Object.getPrototypeOf(d);if(E)for(let h of Object.getOwnPropertyNames(E)){let _=Object.getOwnPropertyDescriptor(E,h);(0,Aie.isSome)(_)&&Object.defineProperty(f,h,_)}}for(let f in d)u==null&&(u={}),f in u?u[f]=$y([u[f],d[f]],t,n,r):u[f]=d[f]}else Array.isArray(d)&&Array.isArray(u)?u=$y([u,d],t,n,r):u=d;return u}function Iq(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var gq=C(w0=>{"use strict";p();N();m();Object.defineProperty(w0,"__esModule",{value:!0});w0.parseSelectionSet=Fie;var Rie=(Oe(),Ae(Pe));function Fie(e,t){return(0,Rie.parse)(e,t).definitions[0].selectionSet}});var _q=C(L0=>{"use strict";p();N();m();Object.defineProperty(L0,"__esModule",{value:!0});L0.getResponseKeyFromInfo=wie;function wie(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}});var vq=C(Mf=>{"use strict";p();N();m();Object.defineProperty(Mf,"__esModule",{value:!0});Mf.appendObjectFields=Pie;Mf.removeObjectFields=Cie;Mf.selectObjectFields=Uie;Mf.modifyObjectFields=Bie;var jy=(Oe(),Ae(Pe)),Lie=b0(),Ky=ql(),jl=xf();function Pie(e,t,n){return e.getType(t)==null?(0,Lie.addTypes)(e,[new jy.GraphQLObjectType({name:t,fields:n})]):(0,jl.mapSchema)(e,{[Ky.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),s=i.fields,a={};for(let u in s)a[u]=s[u];for(let u in n)a[u]=n[u];return(0,jl.correctASTNodes)(new jy.GraphQLObjectType(K(x({},i),{fields:a})))}}})}function Cie(e,t,n){let r={};return[(0,jl.mapSchema)(e,{[Ky.MapperKind.OBJECT_TYPE]:s=>{if(s.name===t){let a=s.toConfig(),u=a.fields,l={};for(let d in u){let f=u[d];n(d,f)?r[d]=f:l[d]=f}return(0,jl.correctASTNodes)(new jy.GraphQLObjectType(K(x({},a),{fields:l})))}}}),r]}function Uie(e,t,n){let r={};return(0,jl.mapSchema)(e,{[Ky.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let a=i.toConfig().fields;for(let u in a){let l=a[u];n(u,l)&&(r[u]=l)}}}}),r}function Bie(e,t,n,r){let i={};return[(0,jl.mapSchema)(e,{[Ky.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let u=a.toConfig(),l=u.fields,d={};for(let f in l){let E=l[f];n(f,E)?i[f]=E:d[f]=E}for(let f in r){let E=r[f];d[f]=E}return(0,jl.correctASTNodes)(new jy.GraphQLObjectType(K(x({},u),{fields:d})))}}}),i]}});var Sq=C(P0=>{"use strict";p();N();m();Object.defineProperty(P0,"__esModule",{value:!0});P0.renameType=kie;var Us=(Oe(),Ae(Pe));function kie(e,t){if((0,Us.isObjectType)(e))return new Us.GraphQLObjectType(K(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(x({},e.astNode),{name:K(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(x({},n),{name:K(x({},n.name),{value:t})}))}));if((0,Us.isInterfaceType)(e))return new Us.GraphQLInterfaceType(K(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(x({},e.astNode),{name:K(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(x({},n),{name:K(x({},n.name),{value:t})}))}));if((0,Us.isUnionType)(e))return new Us.GraphQLUnionType(K(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(x({},e.astNode),{name:K(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(x({},n),{name:K(x({},n.name),{value:t})}))}));if((0,Us.isInputObjectType)(e))return new Us.GraphQLInputObjectType(K(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(x({},e.astNode),{name:K(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(x({},n),{name:K(x({},n.name),{value:t})}))}));if((0,Us.isEnumType)(e))return new Us.GraphQLEnumType(K(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(x({},e.astNode),{name:K(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(x({},n),{name:K(x({},n.name),{value:t})}))}));if((0,Us.isScalarType)(e))return new Us.GraphQLScalarType(K(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(x({},e.astNode),{name:K(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(x({},n),{name:K(x({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}});var Dq=C(Gy=>{"use strict";p();N();m();Object.defineProperty(Gy,"__esModule",{value:!0});Gy.updateArgument=Mie;Gy.createVariableNameGenerator=Vie;var Kl=(Oe(),Ae(Pe)),xie=Ry();function Mie(e,t,n,r,i,s,a){if(e[r]={kind:Kl.Kind.ARGUMENT,name:{kind:Kl.Kind.NAME,value:r},value:{kind:Kl.Kind.VARIABLE,name:{kind:Kl.Kind.NAME,value:i}}},t[i]={kind:Kl.Kind.VARIABLE_DEFINITION,variable:{kind:Kl.Kind.VARIABLE,name:{kind:Kl.Kind.NAME,value:i}},type:(0,xie.astFromType)(s)},a!==void 0){n[i]=a;return}i in n&&delete n[i]}function Vie(e){let t=0;return n=>{let r;do r=t===0?n:`_v${t.toString()}_${n}`,t++;while(r in e);return r}}});var Oq=C(U0=>{"use strict";p();N();m();Object.defineProperty(U0,"__esModule",{value:!0});U0.implementsAbstractType=qie;var C0=(Oe(),Ae(Pe));function qie(e,t,n){return n==null||t==null?!1:t===n?!0:(0,C0.isCompositeType)(t)&&(0,C0.isCompositeType)(n)?(0,C0.doTypesOverlap)(e,t,n):!1}});var Aq=C(B0=>{"use strict";p();N();m();Object.defineProperty(B0,"__esModule",{value:!0});B0.observableToAsyncIterable=$ie;var bq=AN();function $ie(e){let t=[],n=[],r=!0,i=f=>{t.length!==0?t.shift()({value:f,done:!1}):n.push({value:f,done:!1})},s=f=>{t.length!==0?t.shift()({value:{errors:[f]},done:!1}):n.push({value:{errors:[f]},done:!1})},a=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},u=()=>new Promise(f=>{if(n.length!==0){let E=n.shift();f(E)}else t.push(f)}),l=e.subscribe({next(f){return i(f)},error(f){return s(f)},complete(){return a()}}),d=()=>{if(r){r=!1,l.unsubscribe();for(let f of t)f({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?u():this.return()},return(){return d(),(0,bq.fakePromise)({value:void 0,done:!0})},throw(f){return d(),(0,bq.fakeRejectPromise)(f)},[Symbol.asyncIterator](){return this}}}});var Rq=C(Qy=>{"use strict";p();N();m();Object.defineProperty(Qy,"__esModule",{value:!0});Qy.AccumulatorMap=void 0;var k0=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};Qy.AccumulatorMap=k0});var x0=C(Vf=>{"use strict";p();N();m();Object.defineProperty(Vf,"__esModule",{value:!0});Vf.GraphQLStreamDirective=Vf.GraphQLDeferDirective=void 0;var Bs=(Oe(),Ae(Pe));Vf.GraphQLDeferDirective=new Bs.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Bs.DirectiveLocation.FRAGMENT_SPREAD,Bs.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Bs.GraphQLNonNull(Bs.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Bs.GraphQLString,description:"Unique name"}}});Vf.GraphQLStreamDirective=new Bs.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Bs.DirectiveLocation.FIELD],args:{if:{type:new Bs.GraphQLNonNull(Bs.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Bs.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:Bs.GraphQLInt,description:"Number of items to return immediately"}}})});var q0=C(Po=>{"use strict";p();N();m();Object.defineProperty(Po,"__esModule",{value:!0});Po.collectSubFields=void 0;Po.collectFields=Gie;Po.shouldIncludeNode=Yy;Po.doesFragmentConditionMatch=M0;Po.getFieldEntryKey=Fq;Po.getDeferValues=V0;var ja=(Oe(),Ae(Pe)),Jy=Rq(),jie=x0(),Kie=Bc();function qf(e,t,n,r,i,s,a,u){for(let l of i.selections)switch(l.kind){case ja.Kind.FIELD:{if(!Yy(n,l))continue;s.add(Fq(l),l);break}case ja.Kind.INLINE_FRAGMENT:{if(!Yy(n,l)||!M0(e,l,r))continue;let d=V0(n,l);if(d){let f=new Jy.AccumulatorMap;qf(e,t,n,r,l.selectionSet,f,a,u),a.push({label:d.label,fields:f})}else qf(e,t,n,r,l.selectionSet,s,a,u);break}case ja.Kind.FRAGMENT_SPREAD:{let d=l.name.value;if(!Yy(n,l))continue;let f=V0(n,l);if(u.has(d)&&!f)continue;let E=t[d];if(!E||!M0(e,E,r))continue;if(f||u.add(d),f){let h=new Jy.AccumulatorMap;qf(e,t,n,r,E.selectionSet,h,a,u),a.push({label:f.label,fields:h})}else qf(e,t,n,r,E.selectionSet,s,a,u);break}}}function Gie(e,t,n,r,i){let s=new Jy.AccumulatorMap,a=[];return qf(e,t,n,r,i,s,a,new Set),{fields:s,patches:a}}function Yy(e,t){let n=(0,ja.getDirectiveValues)(ja.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,ja.getDirectiveValues)(ja.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function M0(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,ja.typeFromAST)(e,r);return i===n?!0:(0,ja.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}function Fq(e){return e.alias?e.alias.value:e.name.value}function V0(e,t){let n=(0,ja.getDirectiveValues)(jie.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Po.collectSubFields=(0,Kie.memoize5)(function(t,n,r,i,s){let a=new Jy.AccumulatorMap,u=new Set,l=[],d={fields:a,patches:l};for(let f of s)f.selectionSet&&qf(t,n,r,i,f.selectionSet,a,l,u);return d})});var $0=C(kN=>{"use strict";p();N();m();Object.defineProperty(kN,"__esModule",{value:!0});kN.getOperationASTFromRequest=void 0;kN.getOperationASTFromDocument=wq;var Qie=(Oe(),Ae(Pe)),Yie=Bc();function wq(e,t){let n=(0,Qie.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}kN.getOperationASTFromRequest=(0,Yie.memoize1)(function(t){return wq(t.document,t.operationName)})});var Cq=C(xN=>{"use strict";p();N();m();Object.defineProperty(xN,"__esModule",{value:!0});xN.visitData=K0;xN.visitErrors=Hie;xN.visitResult=zie;var kc=(Oe(),Ae(Pe)),j0=q0(),Jie=$0();function K0(e,t,n){if(Array.isArray(e))return e.map(r=>K0(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let s=r[i];Object.defineProperty(r,i,{value:K0(s,t,n)})}return n!=null?n(r):r}return e}function Hie(e,t){return e.map(n=>t(n))}function zie(e,t,n,r,i){let s=t.document.definitions.reduce((h,_)=>(_.kind===kc.Kind.FRAGMENT_DEFINITION&&(h[_.name.value]=_),h),{}),a=t.variables||{},u={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,d=e.errors,f=d!=null&&i!=null,E=(0,Jie.getOperationASTFromRequest)(t);return l!=null&&E!=null&&(e.data=Zie(l,E,n,s,a,r,f?d:void 0,u)),d!=null&&i&&(e.errors=Wie(d,i,u)),e}function Wie(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,s=t.__unpathed;return e.map(a=>{let u=r.get(a),l=u==null?a:u.reduceRight((d,f)=>{let E=f.type.name,h=t[E];if(h==null)return d;let _=h[f.fieldName];return _==null?d:_(d,f.pathIndex)},a);return s&&i.has(a)?s(l):l})}function Xie(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function Zie(e,t,n,r,i,s,a,u){let l=Xie(n,t),{fields:d}=(0,j0.collectFields)(n,r,i,l,t.selectionSet);return G0(e,l,d,n,r,i,s,0,a,u)}function G0(e,t,n,r,i,s,a,u,l,d){var re;let f=t.getFields(),E=a==null?void 0:a[t.name],h=E==null?void 0:E.__enter,_=h!=null?h(e):e,A,U=null;if(l!=null){A=tse(l,u),U=A.errorMap;for(let ee of A.unpathedErrors)d.unpathedErrors.add(ee)}for(let[ee,me]of n){let ce=me[0].name.value,be=(re=f[ce])==null?void 0:re.type;if(be==null)switch(ce){case"__typename":be=kc.TypeNameMetaFieldDef.type;break;case"__schema":be=kc.SchemaMetaFieldDef.type;break;case"__type":be=kc.TypeMetaFieldDef.type;break}let xe=u+1,at;U&&(at=U[ee],at!=null&&delete U[ee],nse(t,ce,xe,at,d));let te=Pq(e[ee],be,me,r,i,s,a,xe,at,d);Lq(_,ee,te,E,ce)}let q=_.__typename;if(q!=null&&Lq(_,"__typename",q,E,"__typename"),U)for(let ee in U){let me=U[ee];for(let ce of me)d.unpathedErrors.add(ce)}let j=E==null?void 0:E.__leave;return j!=null?j(_):_}function Lq(e,t,n,r,i){if(r==null){e[t]=n;return}let s=r[i];if(s==null){e[t]=n;return}let a=s(n);if(a===void 0){delete e[t];return}e[t]=a}function ese(e,t,n,r,i,s,a,u,l,d){return e.map(f=>Pq(f,t,n,r,i,s,a,u+1,l,d))}function Pq(e,t,n,r,i,s,a,u,l=[],d){if(e==null)return e;let f=(0,kc.getNullableType)(t);if((0,kc.isListType)(f))return ese(e,f.ofType,n,r,i,s,a,u,l,d);if((0,kc.isAbstractType)(f)){let _=r.getType(e.__typename),{fields:A,patches:U}=(0,j0.collectSubFields)(r,i,s,_,n);if(U.length){A=new Map(A);for(let q of U)for(let[j,re]of q.fields){let ee=A.get(j);ee?ee.push(...re):A.set(j,re)}}return G0(e,_,A,r,i,s,a,u,l,d)}else if((0,kc.isObjectType)(f)){let{fields:_,patches:A}=(0,j0.collectSubFields)(r,i,s,f,n);if(A.length){_=new Map(_);for(let U of A)for(let[q,j]of U.fields){let re=_.get(q);re?re.push(...j):_.set(q,j)}}return G0(e,f,_,r,i,s,a,u,l,d)}let E=a==null?void 0:a[f.name];if(E==null)return e;let h=E(e);return h===void 0?e:h}function tse(e,t){var i;let n=Object.create(null),r=new Set;for(let s of e){let a=(i=s.path)==null?void 0:i[t];if(a==null){r.add(s);continue}a in n?n[a].push(s):n[a]=[s]}return{errorMap:n,unpathedErrors:r}}function nse(e,t,n,r=[],i){for(let s of r){let a={type:e,fieldName:t,pathIndex:n},u=i.segmentInfoMap.get(s);u==null?i.segmentInfoMap.set(s,[a]):u.push(a)}}});var Uq=C(Y0=>{"use strict";p();N();m();Object.defineProperty(Y0,"__esModule",{value:!0});Y0.valueMatchesCriteria=Q0;function Q0(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>Q0(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>Q0(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}});var Bq=C(J0=>{"use strict";p();N();m();Object.defineProperty(J0,"__esModule",{value:!0});J0.isAsyncIterable=rse;function rse(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}});var kq=C(H0=>{"use strict";p();N();m();Object.defineProperty(H0,"__esModule",{value:!0});H0.isDocumentNode=sse;var ise=(Oe(),Ae(Pe));function sse(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===ise.Kind.DOCUMENT}});var xq=C(()=>{"use strict";p();N();m()});var $q=C(MN=>{"use strict";p();N();m();Object.defineProperty(MN,"__esModule",{value:!0});MN.getAsyncIteratorWithCancel=Vq;MN.getAsyncIterableWithCancel=qq;MN.withCancel=qq;var ase=Bc();function ose(e){return Es(this,null,function*(){return{value:e,done:!0}})}var Mq=(0,ase.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function Vq(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let s=Reflect.get(n,r,i);if(r==="return"){let a=s||ose;return function(l){return Es(this,null,function*(){let d=yield t(l);return Reflect.apply(a,n,[d])})}}else if(typeof s=="function")return Mq(n,s);return s}})}function qq(e,t){return new Proxy(e,{get(n,r,i){let s=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let u=Reflect.apply(s,n,[]);return Vq(u,t)}:typeof s=="function"?Mq(n,s):s}})}});var jq=C(z0=>{"use strict";p();N();m();Object.defineProperty(z0,"__esModule",{value:!0});z0.fixSchemaAst=dse;var use=(Oe(),Ae(Pe)),cse=t0();function lse(e,t){let n=(0,cse.getDocumentNodeFromSchema)(e);return(0,use.buildASTSchema)(n,x({},t||{}))}function dse(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=lse(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}});var Kq=C(W0=>{"use strict";p();N();m();Object.defineProperty(W0,"__esModule",{value:!0});W0.extractExtensionsFromSchema=mse;var fse=Ff(),Co=ql(),pse=xf();function ua(e,t){e=e||{};let s=e,{directives:n}=s,r=hP(s,["directives"]),i=x({},r);if(!t&&n!=null){let a={};for(let u in n)a[u]=[...(0,fse.asArray)(n[u])];i.directives=a}return i}function mse(e,t=!1){let n={schemaExtensions:ua(e.extensions,t),types:{}};return(0,pse.mapSchema)(e,{[Co.MapperKind.OBJECT_TYPE]:r=>(n.types[r.name]={fields:{},type:"object",extensions:ua(r.extensions,t)},r),[Co.MapperKind.INTERFACE_TYPE]:r=>(n.types[r.name]={fields:{},type:"interface",extensions:ua(r.extensions,t)},r),[Co.MapperKind.FIELD]:(r,i,s)=>{n.types[s].fields[i]={arguments:{},extensions:ua(r.extensions,t)};let a=r.args;if(a!=null)for(let u in a)n.types[s].fields[i].arguments[u]=ua(a[u].extensions,t);return r},[Co.MapperKind.ENUM_TYPE]:r=>(n.types[r.name]={values:{},type:"enum",extensions:ua(r.extensions,t)},r),[Co.MapperKind.ENUM_VALUE]:(r,i,s,a)=>(n.types[i].values[a]=ua(r.extensions,t),r),[Co.MapperKind.SCALAR_TYPE]:r=>(n.types[r.name]={type:"scalar",extensions:ua(r.extensions,t)},r),[Co.MapperKind.UNION_TYPE]:r=>(n.types[r.name]={type:"union",extensions:ua(r.extensions,t)},r),[Co.MapperKind.INPUT_OBJECT_TYPE]:r=>(n.types[r.name]={fields:{},type:"input",extensions:ua(r.extensions,t)},r),[Co.MapperKind.INPUT_OBJECT_FIELD]:(r,i,s)=>(n.types[s].fields[i]={extensions:ua(r.extensions,t)},r)}),n}});var Gq=C(VN=>{"use strict";p();N();m();Object.defineProperty(VN,"__esModule",{value:!0});VN.addPath=Nse;VN.pathToArray=Tse;VN.printPathArray=Ese;function Nse(e,t,n){return{prev:e,key:t,typename:n}}function Tse(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Ese(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Yq=C(Z0=>{"use strict";p();N();m();Object.defineProperty(Z0,"__esModule",{value:!0});Z0.mergeIncrementalResult=Qq;var hse=F0();function Qq({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)X0(t,n,i),n[n.length-1]++;e.data&&X0(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&X0(t,["extensions"],e.extensions),e.incremental&&e.incremental.forEach(i=>{Qq({incrementalResult:i,executionResult:t})})}function X0(e,t,n){let r=e,i;for(i=0;i{"use strict";p();N();m();Object.defineProperty(Hy,"__esModule",{value:!0});Hy.debugTimerStart=yse;Hy.debugTimerEnd=Ise;var Jq=new Set;function yse(e){var n,r;let t=((r=(n=globalThis.process)==null?void 0:n.env)==null?void 0:r.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(Jq.add(e),console.time(e))}function Ise(e){Jq.has(e)&&console.timeEnd(e)}});var Xq=C(qN=>{"use strict";p();N();m();Object.defineProperty(qN,"__esModule",{value:!0});qN.getAbortPromise=void 0;qN.registerAbortSignalListener=Wq;var gse=AN(),zq=Bc(),_se=(0,zq.memoize1)(function(t){let n=new Set;return t.addEventListener("abort",r=>{for(let i of n)i(r)},{once:!0}),n});function Wq(e,t){if(e.aborted){t();return}_se(e).add(t)}qN.getAbortPromise=(0,zq.memoize1)(function(t){return t.aborted?(0,gse.fakeRejectPromise)(t.reason):new Promise((n,r)=>{if(t.aborted){r(t.reason);return}Wq(t,()=>{r(t.reason)})})})});var ca=C(Ue=>{"use strict";p();N();m();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.createDeferred=Ue.fakePromise=Ue.mapMaybePromise=Ue.mapAsyncIterator=Ue.inspect=void 0;var Xe=(nV(),Ae(tV));Xe.__exportStar(rV(),Ue);Xe.__exportStar(Ff(),Ue);Xe.__exportStar(xb(),Ue);Xe.__exportStar(Vb(),Ue);Xe.__exportStar(TV(),Ue);Xe.__exportStar(Kb(),Ue);Xe.__exportStar(t0(),Ue);Xe.__exportStar(Vb(),Ue);Xe.__exportStar(CV(),Ue);Xe.__exportStar(UV(),Ue);Xe.__exportStar(JV(),Ue);Xe.__exportStar(nq(),Ue);Xe.__exportStar(iq(),Ue);Xe.__exportStar(dq(),Ue);Xe.__exportStar(pq(),Ue);Xe.__exportStar(mq(),Ue);Xe.__exportStar(Tq(),Ue);Xe.__exportStar(Eq(),Ue);Xe.__exportStar(xf(),Ue);Xe.__exportStar(b0(),Ue);Xe.__exportStar(Uy(),Ue);Xe.__exportStar(yq(),Ue);Xe.__exportStar(F0(),Ue);Xe.__exportStar(ql(),Ue);Xe.__exportStar(p0(),Ue);Xe.__exportStar(gq(),Ue);Xe.__exportStar(_q(),Ue);Xe.__exportStar(vq(),Ue);Xe.__exportStar(Sq(),Ue);Xe.__exportStar(N0(),Ue);Xe.__exportStar(Dq(),Ue);Xe.__exportStar(Ry(),Ue);Xe.__exportStar(Oq(),Ue);Xe.__exportStar(vy(),Ue);Xe.__exportStar(Aq(),Ue);Xe.__exportStar(Cq(),Ue);Xe.__exportStar(Ub(),Ue);Xe.__exportStar(Uq(),Ue);Xe.__exportStar(Bq(),Ue);Xe.__exportStar(kq(),Ue);Xe.__exportStar(RN(),Ue);Xe.__exportStar(xq(),Ue);Xe.__exportStar($q(),Ue);Xe.__exportStar(wN(),Ue);Xe.__exportStar(i0(),Ue);Xe.__exportStar(q0(),Ue);var vse=bN();Object.defineProperty(Ue,"inspect",{enumerable:!0,get:function(){return vse.inspect}});Xe.__exportStar(Bc(),Ue);Xe.__exportStar(jq(),Ue);Xe.__exportStar($0(),Ue);Xe.__exportStar(Kq(),Ue);Xe.__exportStar(Gq(),Ue);Xe.__exportStar(Oy(),Ue);Xe.__exportStar(x0(),Ue);Xe.__exportStar(Yq(),Ue);Xe.__exportStar(Hq(),Ue);Xe.__exportStar(kb(),Ue);var zy=AN();Object.defineProperty(Ue,"mapAsyncIterator",{enumerable:!0,get:function(){return zy.mapAsyncIterator}});Object.defineProperty(Ue,"mapMaybePromise",{enumerable:!0,get:function(){return zy.mapMaybePromise}});Object.defineProperty(Ue,"fakePromise",{enumerable:!0,get:function(){return zy.fakePromise}});Object.defineProperty(Ue,"createDeferred",{enumerable:!0,get:function(){return zy.createDeferredPromise}});Xe.__exportStar(Xq(),Ue)});var e$=C(Wy=>{"use strict";p();N();m();Object.defineProperty(Wy,"__esModule",{value:!0});Wy.mergeResolvers=void 0;var Sse=ca();function Zq(e,t){if(!e||Array.isArray(e)&&e.length===0)return{};if(!Array.isArray(e))return e;if(e.length===1)return e[0]||{};let n=new Array;for(let i of e)Array.isArray(i)&&(i=Zq(i)),typeof i=="object"&&i&&n.push(i);let r=(0,Sse.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[s,a]=i.split(".");!a||a==="*"?delete r[s]:r[s]&&delete r[s][a]}return r}Wy.mergeResolvers=Zq});var eA=C(Xy=>{"use strict";p();N();m();Object.defineProperty(Xy,"__esModule",{value:!0});Xy.mergeArguments=void 0;var t$=ca();function Dse(e,t,n){let r=Ose([...t,...e].filter(t$.isSome),n);return n&&n.sort&&r.sort(t$.compareNodes),r}Xy.mergeArguments=Dse;function Ose(e,t){return e.reduce((n,r)=>{let i=n.findIndex(s=>s.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var ks=C($f=>{"use strict";p();N();m();Object.defineProperty($f,"__esModule",{value:!0});$f.mergeDirective=$f.mergeDirectives=void 0;var n$=(Oe(),Ae(Pe)),bse=ca();function Ase(e,t){return!!e.find(n=>n.name.value===t.name.value)}function r$(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function Rse(e,t){return t.some(({value:n})=>n===e.value)}function i$(e,t){let n=[...t];for(let r of e){let i=n.findIndex(s=>s.name.value===r.name.value);if(i>-1){let s=n[i];if(s.value.kind==="ListValue"){let a=s.value.values,u=r.value.values;s.value.values=Cse(a,u,(l,d)=>{let f=l.value;return!f||!d.some(E=>E.value===f)})}else s.value=r.value}else n.push(r)}return n}function Fse(e,t){return e.map((n,r,i)=>{let s=i.findIndex(a=>a.name.value===n.name.value);if(s!==r&&!r$(n,t)){let a=i[s];return n.arguments=i$(n.arguments,a.arguments),null}return n}).filter(bse.isSome)}function wse(e=[],t=[],n,r){let i=n&&n.reverseDirectives,s=i?e:t,a=i?t:e,u=Fse([...s],r);for(let l of a)if(Ase(u,l)&&!r$(l,r)){let d=u.findIndex(E=>E.name.value===l.name.value),f=u[d];u[d].arguments=i$(l.arguments||[],f.arguments||[])}else u.push(l);return u}$f.mergeDirectives=wse;function Lse(e,t){let n=(0,n$.print)(K(x({},e),{description:void 0})),r=(0,n$.print)(K(x({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(n.replace(i,"")===r.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". Existing directive: ${r} Received directive: - ${n}`)}function vre(e,t){return t?(_re(e,t),Q(M({},e),{locations:[...t.locations,...e.locations.filter(n=>!yre(n,t.locations))]})):e}Wl.mergeDirective=vre;function Ore(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var IS=w(JT=>{"use strict";m();T();N();Object.defineProperty(JT,"__esModule",{value:!0});JT.mergeEnumValues=void 0;var Sre=Hi(),Dre=ya();function bre(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let o=[];e&&o.push(...e),e=t,t=o}let i=new Map;if(e)for(let o of e)i.set(o.name.value,o);if(t)for(let o of t){let c=o.name.value;if(i.has(c)){let l=i.get(c);l.description=o.description||l.description,l.directives=(0,Sre.mergeDirectives)(o.directives,l.directives,r)}else i.set(c,o)}let a=[...i.values()];return n&&n.sort&&a.sort(Dre.compareNodes),a}JT.mergeEnumValues=bre});var gS=w(HT=>{"use strict";m();T();N();Object.defineProperty(HT,"__esModule",{value:!0});HT.mergeEnum=void 0;var Are=Oe(),Rre=Hi(),Pre=IS();function Fre(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,Rre.mergeDirectives)(e.directives,t.directives,n,r),values:(0,Pre.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?Q(M({},e),{kind:Are.Kind.ENUM_TYPE_DEFINITION}):e}HT.mergeEnum=Fre});var zT=w(Kn=>{"use strict";m();T();N();Object.defineProperty(Kn,"__esModule",{value:!0});Kn.defaultStringComparator=Kn.CompareVal=Kn.printTypeNode=Kn.isNonNullTypeNode=Kn.isListTypeNode=Kn.isWrappingTypeNode=Kn.extractType=Kn.isSourceTypes=Kn.isStringTypes=void 0;var Zf=Oe();function wre(e){return typeof e=="string"}Kn.isStringTypes=wre;function Lre(e){return e instanceof Zf.Source}Kn.isSourceTypes=Lre;function Cre(e){let t=e;for(;t.kind===Zf.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}Kn.extractType=Cre;function Bre(e){return e.kind!==Zf.Kind.NAMED_TYPE}Kn.isWrappingTypeNode=Bre;function PM(e){return e.kind===Zf.Kind.LIST_TYPE}Kn.isListTypeNode=PM;function FM(e){return e.kind===Zf.Kind.NON_NULL_TYPE}Kn.isNonNullTypeNode=FM;function _S(e){return PM(e)?`[${_S(e.type)}]`:FM(e)?`${_S(e.type)}!`:e.name.value}Kn.printTypeNode=_S;var Dc;(function(e){e[e.A_SMALLER_THAN_B=-1]="A_SMALLER_THAN_B",e[e.A_EQUALS_B=0]="A_EQUALS_B",e[e.A_GREATER_THAN_B=1]="A_GREATER_THAN_B"})(Dc=Kn.CompareVal||(Kn.CompareVal={}));function Ure(e,t){return e==null&&t==null?Dc.A_EQUALS_B:e==null?Dc.A_SMALLER_THAN_B:t==null?Dc.A_GREATER_THAN_B:et?Dc.A_GREATER_THAN_B:Dc.A_EQUALS_B}Kn.defaultStringComparator=Ure});var tp=w(WT=>{"use strict";m();T();N();Object.defineProperty(WT,"__esModule",{value:!0});WT.mergeFields=void 0;var ni=zT(),kre=Hi(),Mre=ya(),xre=yS();function qre(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function Vre(e,t,n,r,i){let a=[];if(n!=null&&a.push(...n),t!=null)for(let o of t){let[c,l]=qre(a,o);if(c&&!(r!=null&&r.ignoreFieldConflicts)){let d=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(c,o,e,r==null?void 0:r.throwOnConflict)||jre(e,c,o,r==null?void 0:r.throwOnConflict);d.arguments=(0,xre.mergeArguments)(o.arguments||[],c.arguments||[],r),d.directives=(0,kre.mergeDirectives)(o.directives,c.directives,r,i),d.description=o.description||c.description,a[l]=d}else a.push(o)}if(r&&r.sort&&a.sort(Mre.compareNodes),r&&r.exclusions){let o=r.exclusions;return a.filter(c=>!o.includes(`${e.name.value}.${c.name.value}`))}return a}WT.mergeFields=Vre;function jre(e,t,n,r=!1){let i=(0,ni.printTypeNode)(t.type),a=(0,ni.printTypeNode)(n.type);if(i!==a){let o=(0,ni.extractType)(t.type),c=(0,ni.extractType)(n.type);if(o.name.value!==c.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${c.name.value}"`);if(!ep(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,ni.isNonNullTypeNode)(n.type)&&!(0,ni.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function ep(e,t,n=!1){if(!(0,ni.isWrappingTypeNode)(e)&&!(0,ni.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,ni.isNonNullTypeNode)(t)){let r=(0,ni.isNonNullTypeNode)(e)?e.type:e;return ep(r,t.type)}return(0,ni.isNonNullTypeNode)(e)?ep(t,e,n):(0,ni.isListTypeNode)(e)?(0,ni.isListTypeNode)(t)&&ep(e.type,t.type)||(0,ni.isNonNullTypeNode)(t)&&ep(e,t.type):!1}});var vS=w(XT=>{"use strict";m();T();N();Object.defineProperty(XT,"__esModule",{value:!0});XT.mergeInputType=void 0;var Kre=Oe(),Gre=tp(),$re=Hi();function Qre(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,Gre.mergeFields)(e,e.fields,t.fields,n),directives:(0,$re.mergeDirectives)(e.directives,t.directives,n,r)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(M({},e),{kind:Kre.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}XT.mergeInputType=Qre});var np=w(ZT=>{"use strict";m();T();N();Object.defineProperty(ZT,"__esModule",{value:!0});ZT.mergeNamedTypeArray=void 0;var Yre=ya();function Jre(e,t){return!!e.find(n=>n.name.value===t.name.value)}function Hre(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!Jre(t,i))];return n&&n.sort&&r.sort(Yre.compareNodes),r}ZT.mergeNamedTypeArray=Hre});var OS=w(eE=>{"use strict";m();T();N();Object.defineProperty(eE,"__esModule",{value:!0});eE.mergeInterface=void 0;var zre=Oe(),Wre=tp(),Xre=Hi(),Zre=np();function eie(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,Wre.mergeFields)(e,e.fields,t.fields,n),directives:(0,Xre.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,Zre.mergeNamedTypeArray)(e.interfaces,t.interfaces,n):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(M({},e),{kind:zre.Kind.INTERFACE_TYPE_DEFINITION}):e}eE.mergeInterface=eie});var SS=w(tE=>{"use strict";m();T();N();Object.defineProperty(tE,"__esModule",{value:!0});tE.mergeType=void 0;var tie=Oe(),nie=tp(),rie=Hi(),iie=np();function aie(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,nie.mergeFields)(e,e.fields,t.fields,n),directives:(0,rie.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,iie.mergeNamedTypeArray)(e.interfaces,t.interfaces,n)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(M({},e),{kind:tie.Kind.OBJECT_TYPE_DEFINITION}):e}tE.mergeType=aie});var DS=w(nE=>{"use strict";m();T();N();Object.defineProperty(nE,"__esModule",{value:!0});nE.mergeScalar=void 0;var sie=Oe(),oie=Hi();function uie(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,oie.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?Q(M({},e),{kind:sie.Kind.SCALAR_TYPE_DEFINITION}):e}nE.mergeScalar=uie});var AS=w(rE=>{"use strict";m();T();N();Object.defineProperty(rE,"__esModule",{value:!0});rE.mergeUnion=void 0;var bS=Oe(),cie=Hi(),lie=np();function die(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,cie.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?bS.Kind.UNION_TYPE_DEFINITION:bS.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,lie.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?Q(M({},e),{kind:bS.Kind.UNION_TYPE_DEFINITION}):e}rE.mergeUnion=die});var RS=w(bc=>{"use strict";m();T();N();Object.defineProperty(bc,"__esModule",{value:!0});bc.mergeSchemaDefs=bc.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var rp=Oe(),fie=Hi();bc.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function pie(e=[],t=[]){let n=[];for(let r in bc.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(a=>a.operation===r)||t.find(a=>a.operation===r);i&&n.push(i)}return n}function mie(e,t,n,r){return t?{kind:e.kind===rp.Kind.SCHEMA_DEFINITION||t.kind===rp.Kind.SCHEMA_DEFINITION?rp.Kind.SCHEMA_DEFINITION:rp.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,fie.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:pie(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?Q(M({},e),{kind:rp.Kind.SCHEMA_DEFINITION}):e}bc.mergeSchemaDefs=mie});var PS=w(Wa=>{"use strict";m();T();N();Object.defineProperty(Wa,"__esModule",{value:!0});Wa.mergeGraphQLNodes=Wa.isNamedDefinitionNode=Wa.schemaDefSymbol=void 0;var jr=Oe(),Nie=SS(),Tie=gS(),Eie=DS(),hie=AS(),yie=vS(),Iie=OS(),gie=Hi(),_ie=RS(),vie=ya();Wa.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function wM(e){return"name"in e}Wa.isNamedDefinitionNode=wM;function Oie(e,t,n={}){var i,a,o;let r=n;for(let c of e)if(wM(c)){let l=(i=c.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,vie.collectComment)(c),l==null)continue;if((a=t==null?void 0:t.exclusions)!=null&&a.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete r[l];else switch(c.kind){case jr.Kind.OBJECT_TYPE_DEFINITION:case jr.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,Nie.mergeType)(c,r[l],t,n);break;case jr.Kind.ENUM_TYPE_DEFINITION:case jr.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,Tie.mergeEnum)(c,r[l],t,n);break;case jr.Kind.UNION_TYPE_DEFINITION:case jr.Kind.UNION_TYPE_EXTENSION:r[l]=(0,hie.mergeUnion)(c,r[l],t,n);break;case jr.Kind.SCALAR_TYPE_DEFINITION:case jr.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,Eie.mergeScalar)(c,r[l],t,n);break;case jr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case jr.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,yie.mergeInputType)(c,r[l],t,n);break;case jr.Kind.INTERFACE_TYPE_DEFINITION:case jr.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,Iie.mergeInterface)(c,r[l],t,n);break;case jr.Kind.DIRECTIVE_DEFINITION:r[l]=(0,gie.mergeDirective)(c,r[l]);break}}else(c.kind===jr.Kind.SCHEMA_DEFINITION||c.kind===jr.Kind.SCHEMA_EXTENSION)&&(r[Wa.schemaDefSymbol]=(0,_ie.mergeSchemaDefs)(c,r[Wa.schemaDefSymbol],t));return r}Wa.mergeGraphQLNodes=Oie});var BM=w(td=>{"use strict";m();T();N();Object.defineProperty(td,"__esModule",{value:!0});td.mergeGraphQLTypes=td.mergeTypeDefs=void 0;var zi=Oe(),FS=zT(),Xl=PS(),ed=ya(),LM=RS();function Sie(e,t){(0,ed.resetComments)();let n={kind:zi.Kind.DOCUMENT,definitions:CM(e,M({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,ed.printWithComments)(n):r=n,(0,ed.resetComments)(),r}td.mergeTypeDefs=Sie;function Zl(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Zl(e(),t,n,r,i);else if(Array.isArray(e))for(let a of e)Zl(a,t,n,r,i);else if((0,zi.isSchema)(e)){let a=(0,ed.getDocumentNodeFromSchema)(e,t);Zl(a.definitions,t,n,r,i)}else if((0,FS.isStringTypes)(e)||(0,FS.isSourceTypes)(e)){let a=(0,zi.parse)(e,t);Zl(a.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,zi.isDefinitionNode)(e))e.kind===zi.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,ed.isDocumentNode)(e))Zl(e.definitions,t,n,r,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:n,allNodes:r}}function CM(e,t){var c,l,d;(0,ed.resetComments)();let{allDirectives:n,allNodes:r}=Zl(e,t),i=(0,Xl.mergeGraphQLNodes)(n,t),a=(0,Xl.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let p=a[Xl.schemaDefSymbol]||{kind:zi.Kind.SCHEMA_DEFINITION,operationTypes:[]},E=p.operationTypes;for(let I in LM.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!E.find(A=>A.operation===I)){let A=LM.DEFAULT_OPERATION_TYPE_NAME_MAP[I],U=a[A];U!=null&&U.name!=null&&E.push({kind:zi.Kind.OPERATION_TYPE_DEFINITION,type:{kind:zi.Kind.NAMED_TYPE,name:U.name},operation:I})}((c=p==null?void 0:p.operationTypes)==null?void 0:c.length)!=null&&p.operationTypes.length>0&&(a[Xl.schemaDefSymbol]=p)}t!=null&&t.forceSchemaDefinition&&!((d=(l=a[Xl.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&d.length)&&(a[Xl.schemaDefSymbol]={kind:zi.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:zi.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:zi.Kind.NAMED_TYPE,name:{kind:zi.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let p=typeof t.sort=="function"?t.sort:FS.defaultStringComparator;o.sort((E,I)=>{var v,A;return p((v=E.name)==null?void 0:v.value,(A=I.name)==null?void 0:A.value)})}return o}td.mergeGraphQLTypes=CM});var UM=w(Cr=>{"use strict";m();T();N();Object.defineProperty(Cr,"__esModule",{value:!0});var ri=($v(),Lm(Gv));ri.__exportStar(yS(),Cr);ri.__exportStar(Hi(),Cr);ri.__exportStar(IS(),Cr);ri.__exportStar(gS(),Cr);ri.__exportStar(tp(),Cr);ri.__exportStar(vS(),Cr);ri.__exportStar(OS(),Cr);ri.__exportStar(np(),Cr);ri.__exportStar(PS(),Cr);ri.__exportStar(BM(),Cr);ri.__exportStar(DS(),Cr);ri.__exportStar(SS(),Cr);ri.__exportStar(AS(),Cr);ri.__exportStar(zT(),Cr)});var MM=w(Du=>{"use strict";m();T();N();Object.defineProperty(Du,"__esModule",{value:!0});Du.applyExtensions=Du.mergeExtensions=Du.extractExtensionsFromSchema=void 0;var kM=ya(),Die=ya();Object.defineProperty(Du,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return Die.extractExtensionsFromSchema}});function bie(e){return(0,kM.mergeDeep)(e)}Du.mergeExtensions=bie;function nd(e,t){e&&(e.extensions=(0,kM.mergeDeep)([e.extensions||{},t||{}]))}function Aie(e,t){nd(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(nd(i,r.extensions),r.type==="object"||r.type==="interface")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];if(c){nd(c,o.extensions);for(let[l,d]of Object.entries(o.arguments))nd(c.args.find(p=>p.name===l),d)}}else if(r.type==="input")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];nd(c,o.extensions)}else if(r.type==="enum")for(let[a,o]of Object.entries(r.values)){let c=i.getValue(a);nd(c,o)}}}return e}Du.applyExtensions=Aie});var iE=w(ip=>{"use strict";m();T();N();Object.defineProperty(ip,"__esModule",{value:!0});var wS=($v(),Lm(Gv));wS.__exportStar(SM(),ip);wS.__exportStar(UM(),ip);wS.__exportStar(MM(),ip)});var qi=w(z=>{"use strict";m();T();N();Object.defineProperty(z,"__esModule",{value:!0});z.semanticNonNullArgumentErrorMessage=z.invalidEventProviderIdErrorMessage=z.invalidNatsStreamConfigurationDefinitionErrorMessage=z.invalidEdfsPublishResultObjectErrorMessage=z.invalidNatsStreamInputErrorMessage=z.inlineFragmentInFieldSetErrorMessage=z.inaccessibleQueryRootTypeError=z.subgraphValidationFailureError=z.minimumSubgraphRequirementError=void 0;z.multipleNamedTypeDefinitionError=Fie;z.incompatibleInputValueDefaultValueTypeError=wie;z.incompatibleMergedTypesError=Lie;z.incompatibleInputValueDefaultValuesError=Cie;z.incompatibleSharedEnumError=Bie;z.invalidSubgraphNamesError=Uie;z.duplicateDirectiveDefinitionError=kie;z.duplicateEnumValueDefinitionError=Mie;z.duplicateFieldDefinitionError=xie;z.duplicateInputFieldDefinitionError=qie;z.duplicateImplementedInterfaceError=Vie;z.duplicateUnionMemberDefinitionError=jie;z.duplicateTypeDefinitionError=Kie;z.duplicateOperationTypeDefinitionError=Gie;z.noBaseDefinitionForExtensionError=$ie;z.noBaseScalarDefinitionError=Qie;z.noDefinedUnionMembersError=Yie;z.noDefinedEnumValuesError=Jie;z.operationDefinitionError=Hie;z.invalidFieldShareabilityError=zie;z.undefinedDirectiveError=Wie;z.undefinedTypeError=Xie;z.invalidRepeatedDirectiveErrorMessage=Zie;z.invalidDirectiveError=eae;z.invalidRepeatedFederatedDirectiveErrorMessage=tae;z.invalidDirectiveLocationErrorMessage=nae;z.undefinedRequiredArgumentsErrorMessage=rae;z.unexpectedDirectiveArgumentErrorMessage=iae;z.duplicateDirectiveArgumentDefinitionsErrorMessage=aae;z.invalidArgumentValueErrorMessage=sae;z.maximumTypeNestingExceededError=oae;z.unexpectedKindFatalError=uae;z.incompatibleParentKindFatalError=cae;z.unexpectedEdgeFatalError=lae;z.incompatibleParentTypeMergeError=fae;z.unexpectedTypeNodeKindFatalError=pae;z.invalidKeyFatalError=mae;z.unexpectedParentKindForChildError=Nae;z.subgraphValidationError=Tae;z.invalidSubgraphNameErrorMessage=Eae;z.invalidOperationTypeDefinitionError=hae;z.invalidRootTypeDefinitionError=yae;z.subgraphInvalidSyntaxError=Iae;z.invalidInterfaceImplementationError=gae;z.invalidRequiredInputValueError=_ae;z.duplicateArgumentsError=vae;z.noQueryRootTypeError=Oae;z.expectedEntityError=Sae;z.abstractTypeInKeyFieldSetErrorMessage=Dae;z.unknownTypeInFieldSetErrorMessage=bae;z.invalidSelectionSetErrorMessage=Aae;z.invalidSelectionSetDefinitionErrorMessage=Rae;z.undefinedFieldInFieldSetErrorMessage=Pae;z.unparsableFieldSetErrorMessage=Fae;z.unparsableFieldSetSelectionErrorMessage=wae;z.undefinedCompositeOutputTypeError=Lae;z.unexpectedArgumentErrorMessage=Cae;z.argumentsInKeyFieldSetErrorMessage=Bae;z.invalidProvidesOrRequiresDirectivesError=Uae;z.duplicateFieldInFieldSetErrorMessage=kae;z.invalidConfigurationDataErrorMessage=Mae;z.incompatibleTypeWithProvidesErrorMessage=xae;z.invalidInlineFragmentTypeErrorMessage=qae;z.inlineFragmentWithoutTypeConditionErrorMessage=Vae;z.unknownInlineFragmentTypeConditionErrorMessage=jae;z.invalidInlineFragmentTypeConditionTypeErrorMessage=Kae;z.invalidInlineFragmentTypeConditionErrorMessage=Gae;z.invalidSelectionOnUnionErrorMessage=$ae;z.duplicateOverriddenFieldErrorMessage=Qae;z.duplicateOverriddenFieldsError=Yae;z.noFieldDefinitionsError=Jae;z.noInputValueDefinitionsError=Hae;z.allChildDefinitionsAreInaccessibleError=zae;z.equivalentSourceAndTargetOverrideErrorMessage=Wae;z.undefinedEntityInterfaceImplementationsError=Xae;z.orScopesLimitError=Zae;z.invalidEventDrivenGraphError=ese;z.invalidRootTypeFieldEventsDirectivesErrorMessage=tse;z.invalidEventDrivenMutationResponseTypeErrorMessage=nse;z.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=rse;z.invalidNatsStreamInputFieldsErrorMessage=ise;z.invalidKeyFieldSetsEventDrivenErrorMessage=ase;z.nonExternalKeyFieldNamesEventDrivenErrorMessage=sse;z.nonKeyFieldNamesEventDrivenErrorMessage=ose;z.nonEntityObjectExtensionsEventDrivenErrorMessage=use;z.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=cse;z.invalidEdfsDirectiveName=lse;z.invalidImplementedTypeError=dse;z.selfImplementationError=fse;z.invalidEventSubjectErrorMessage=pse;z.invalidEventSubjectsErrorMessage=mse;z.invalidEventSubjectsItemErrorMessage=Nse;z.invalidEventSubjectsArgumentErrorMessage=Tse;z.undefinedEventSubjectsArgumentErrorMessage=Ese;z.invalidEventDirectiveError=hse;z.invalidReferencesOfInaccessibleTypeError=yse;z.inaccessibleRequiredInputValueError=Ise;z.invalidUnionMemberTypeError=gse;z.invalidRootTypeError=_se;z.invalidSubscriptionFilterLocationError=vse;z.invalidSubscriptionFilterDirectiveError=Ose;z.subscriptionFilterNamedTypeErrorMessage=Sse;z.subscriptionFilterConditionDepthExceededErrorMessage=Dse;z.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=bse;z.subscriptionFilterConditionInvalidInputFieldErrorMessage=Ase;z.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=Rse;z.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=Pse;z.subscriptionFilterArrayConditionInvalidLengthErrorMessage=Fse;z.invalidInputFieldTypeErrorMessage=wse;z.subscriptionFieldConditionInvalidInputFieldErrorMessage=Lse;z.subscriptionFieldConditionInvalidValuesArrayErrorMessage=Cse;z.subscriptionFieldConditionEmptyValuesArrayErrorMessage=Bse;z.unknownFieldSubgraphNameError=Use;z.invalidSubscriptionFieldConditionFieldPathErrorMessage=kse;z.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=Mse;z.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=xse;z.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=qse;z.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=Vse;z.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=jse;z.unresolvablePathError=Kse;z.allExternalFieldInstancesError=Gse;z.externalInterfaceFieldsError=$se;z.nonExternalConditionalFieldError=Qse;z.incompatibleFederatedFieldNamedTypeError=Yse;z.unknownNamedTypeErrorMessage=GM;z.unknownNamedTypeError=Jse;z.unknownFieldDataError=Hse;z.unexpectedNonCompositeOutputTypeError=zse;z.invalidExternalDirectiveError=Wse;z.configureDescriptionNoDescriptionError=Xse;z.configureDescriptionPropagationError=Zse;z.duplicateDirectiveDefinitionArgumentErrorMessage=eoe;z.duplicateDirectiveDefinitionLocationErrorMessage=toe;z.invalidDirectiveDefinitionLocationErrorMessage=noe;z.invalidDirectiveDefinitionError=roe;z.typeNameAlreadyProvidedErrorMessage=ioe;z.fieldAlreadyProvidedErrorMessage=aoe;z.invalidInterfaceObjectImplementationDefinitionsError=soe;z.invalidNamedTypeError=ooe;z.semanticNonNullLevelsNaNIndexErrorMessage=uoe;z.semanticNonNullLevelsIndexOutOfBoundsErrorMessage=coe;z.semanticNonNullLevelsNonNullErrorMessage=loe;z.semanticNonNullInconsistentLevelsError=doe;z.oneOfRequiredFieldsError=foe;var xM=Oe(),Je=zn(),qM=wl(),Ac=Fr(),Rie=Ul(),Pie=iE();z.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function Fie(e,t,n){return new Error(`The named type "${e}" is defined as both types "${t}" and "${n}". -However, there must be only one type named "${e}".`)}function wie(e,t,n,r){return new Error(`The ${e} of type "${n}" defined on path "${t}" is incompatible with the default value of "${r}".`)}function Lie({actualType:e,coords:t,expectedType:n,isArgument:r}){return new Error(`Incompatible types when merging two instances of ${r?"field argument":Je.FIELD} "${t}": - Expected type "${n}" but received "${e}".`)}function Cie(e,t,n,r,i){return new Error(`Expected the ${e} defined on path "${t}" to define the default value "${r}". + ${n}`)}function Pse(e,t){return t?(Lse(e,t),K(x({},e),{locations:[...t.locations,...e.locations.filter(n=>!Rse(n,t.locations))]})):e}$f.mergeDirective=Pse;function Cse(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var tA=C(Zy=>{"use strict";p();N();m();Object.defineProperty(Zy,"__esModule",{value:!0});Zy.mergeEnumValues=void 0;var Use=ks(),Bse=ca();function kse(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let a=[];e&&a.push(...e),e=t,t=a}let i=new Map;if(e)for(let a of e)i.set(a.name.value,a);if(t)for(let a of t){let u=a.name.value;if(i.has(u)){let l=i.get(u);l.description=a.description||l.description,l.directives=(0,Use.mergeDirectives)(a.directives,l.directives,r)}else i.set(u,a)}let s=[...i.values()];return n&&n.sort&&s.sort(Bse.compareNodes),s}Zy.mergeEnumValues=kse});var nA=C(eI=>{"use strict";p();N();m();Object.defineProperty(eI,"__esModule",{value:!0});eI.mergeEnum=void 0;var xse=(Oe(),Ae(Pe)),Mse=ks(),Vse=tA();function qse(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,Mse.mergeDirectives)(e.directives,t.directives,n,r),values:(0,Vse.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?K(x({},e),{kind:xse.Kind.ENUM_TYPE_DEFINITION}):e}eI.mergeEnum=qse});var tI=C(ur=>{"use strict";p();N();m();Object.defineProperty(ur,"__esModule",{value:!0});ur.defaultStringComparator=ur.CompareVal=ur.printTypeNode=ur.isNonNullTypeNode=ur.isListTypeNode=ur.isWrappingTypeNode=ur.extractType=ur.isSourceTypes=ur.isStringTypes=void 0;var $N=(Oe(),Ae(Pe));function $se(e){return typeof e=="string"}ur.isStringTypes=$se;function jse(e){return e instanceof $N.Source}ur.isSourceTypes=jse;function Kse(e){let t=e;for(;t.kind===$N.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}ur.extractType=Kse;function Gse(e){return e.kind!==$N.Kind.NAMED_TYPE}ur.isWrappingTypeNode=Gse;function s$(e){return e.kind===$N.Kind.LIST_TYPE}ur.isListTypeNode=s$;function a$(e){return e.kind===$N.Kind.NON_NULL_TYPE}ur.isNonNullTypeNode=a$;function rA(e){return s$(e)?`[${rA(e.type)}]`:a$(e)?`${rA(e.type)}!`:e.name.value}ur.printTypeNode=rA;var Gl;(function(e){e[e.A_SMALLER_THAN_B=-1]="A_SMALLER_THAN_B",e[e.A_EQUALS_B=0]="A_EQUALS_B",e[e.A_GREATER_THAN_B=1]="A_GREATER_THAN_B"})(Gl=ur.CompareVal||(ur.CompareVal={}));function Qse(e,t){return e==null&&t==null?Gl.A_EQUALS_B:e==null?Gl.A_SMALLER_THAN_B:t==null?Gl.A_GREATER_THAN_B:et?Gl.A_GREATER_THAN_B:Gl.A_EQUALS_B}ur.defaultStringComparator=Qse});var KN=C(nI=>{"use strict";p();N();m();Object.defineProperty(nI,"__esModule",{value:!0});nI.mergeFields=void 0;var qi=tI(),Yse=ks(),Jse=ca(),Hse=eA();function zse(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function Wse(e,t,n,r,i){let s=[];if(n!=null&&s.push(...n),t!=null)for(let a of t){let[u,l]=zse(s,a);if(u&&!(r!=null&&r.ignoreFieldConflicts)){let d=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(u,a,e,r==null?void 0:r.throwOnConflict)||Xse(e,u,a,r==null?void 0:r.throwOnConflict);d.arguments=(0,Hse.mergeArguments)(a.arguments||[],u.arguments||[],r),d.directives=(0,Yse.mergeDirectives)(a.directives,u.directives,r,i),d.description=a.description||u.description,s[l]=d}else s.push(a)}if(r&&r.sort&&s.sort(Jse.compareNodes),r&&r.exclusions){let a=r.exclusions;return s.filter(u=>!a.includes(`${e.name.value}.${u.name.value}`))}return s}nI.mergeFields=Wse;function Xse(e,t,n,r=!1){let i=(0,qi.printTypeNode)(t.type),s=(0,qi.printTypeNode)(n.type);if(i!==s){let a=(0,qi.extractType)(t.type),u=(0,qi.extractType)(n.type);if(a.name.value!==u.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${a.name.value}", but you tried to override with "${u.name.value}"`);if(!jN(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${s}'`)}return(0,qi.isNonNullTypeNode)(n.type)&&!(0,qi.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function jN(e,t,n=!1){if(!(0,qi.isWrappingTypeNode)(e)&&!(0,qi.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,qi.isNonNullTypeNode)(t)){let r=(0,qi.isNonNullTypeNode)(e)?e.type:e;return jN(r,t.type)}return(0,qi.isNonNullTypeNode)(e)?jN(t,e,n):(0,qi.isListTypeNode)(e)?(0,qi.isListTypeNode)(t)&&jN(e.type,t.type)||(0,qi.isNonNullTypeNode)(t)&&jN(e,t.type):!1}});var iA=C(rI=>{"use strict";p();N();m();Object.defineProperty(rI,"__esModule",{value:!0});rI.mergeInputType=void 0;var Zse=(Oe(),Ae(Pe)),eae=KN(),tae=ks();function nae(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,eae.mergeFields)(e,e.fields,t.fields,n),directives:(0,tae.mergeDirectives)(e.directives,t.directives,n,r)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?K(x({},e),{kind:Zse.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}rI.mergeInputType=nae});var GN=C(iI=>{"use strict";p();N();m();Object.defineProperty(iI,"__esModule",{value:!0});iI.mergeNamedTypeArray=void 0;var rae=ca();function iae(e,t){return!!e.find(n=>n.name.value===t.name.value)}function sae(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!iae(t,i))];return n&&n.sort&&r.sort(rae.compareNodes),r}iI.mergeNamedTypeArray=sae});var sA=C(sI=>{"use strict";p();N();m();Object.defineProperty(sI,"__esModule",{value:!0});sI.mergeInterface=void 0;var aae=(Oe(),Ae(Pe)),oae=KN(),uae=ks(),cae=GN();function lae(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,oae.mergeFields)(e,e.fields,t.fields,n),directives:(0,uae.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,cae.mergeNamedTypeArray)(e.interfaces,t.interfaces,n):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?K(x({},e),{kind:aae.Kind.INTERFACE_TYPE_DEFINITION}):e}sI.mergeInterface=lae});var aA=C(aI=>{"use strict";p();N();m();Object.defineProperty(aI,"__esModule",{value:!0});aI.mergeType=void 0;var dae=(Oe(),Ae(Pe)),fae=KN(),pae=ks(),mae=GN();function Nae(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,fae.mergeFields)(e,e.fields,t.fields,n),directives:(0,pae.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,mae.mergeNamedTypeArray)(e.interfaces,t.interfaces,n)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?K(x({},e),{kind:dae.Kind.OBJECT_TYPE_DEFINITION}):e}aI.mergeType=Nae});var oA=C(oI=>{"use strict";p();N();m();Object.defineProperty(oI,"__esModule",{value:!0});oI.mergeScalar=void 0;var Tae=(Oe(),Ae(Pe)),Eae=ks();function hae(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,Eae.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?K(x({},e),{kind:Tae.Kind.SCALAR_TYPE_DEFINITION}):e}oI.mergeScalar=hae});var cA=C(uI=>{"use strict";p();N();m();Object.defineProperty(uI,"__esModule",{value:!0});uI.mergeUnion=void 0;var uA=(Oe(),Ae(Pe)),yae=ks(),Iae=GN();function gae(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,yae.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?uA.Kind.UNION_TYPE_DEFINITION:uA.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,Iae.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?K(x({},e),{kind:uA.Kind.UNION_TYPE_DEFINITION}):e}uI.mergeUnion=gae});var lA=C(Ql=>{"use strict";p();N();m();Object.defineProperty(Ql,"__esModule",{value:!0});Ql.mergeSchemaDefs=Ql.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var QN=(Oe(),Ae(Pe)),_ae=ks();Ql.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function vae(e=[],t=[]){let n=[];for(let r in Ql.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(s=>s.operation===r)||t.find(s=>s.operation===r);i&&n.push(i)}return n}function Sae(e,t,n,r){return t?{kind:e.kind===QN.Kind.SCHEMA_DEFINITION||t.kind===QN.Kind.SCHEMA_DEFINITION?QN.Kind.SCHEMA_DEFINITION:QN.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,_ae.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:vae(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?K(x({},e),{kind:QN.Kind.SCHEMA_DEFINITION}):e}Ql.mergeSchemaDefs=Sae});var dA=C(Ka=>{"use strict";p();N();m();Object.defineProperty(Ka,"__esModule",{value:!0});Ka.mergeGraphQLNodes=Ka.isNamedDefinitionNode=Ka.schemaDefSymbol=void 0;var Oi=(Oe(),Ae(Pe)),Dae=aA(),Oae=nA(),bae=oA(),Aae=cA(),Rae=iA(),Fae=sA(),wae=ks(),Lae=lA(),Pae=ca();Ka.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function o$(e){return"name"in e}Ka.isNamedDefinitionNode=o$;function Cae(e,t,n={}){var i,s,a;let r=n;for(let u of e)if(o$(u)){let l=(i=u.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,Pae.collectComment)(u),l==null)continue;if((s=t==null?void 0:t.exclusions)!=null&&s.includes(l+".*")||(a=t==null?void 0:t.exclusions)!=null&&a.includes(l))delete r[l];else switch(u.kind){case Oi.Kind.OBJECT_TYPE_DEFINITION:case Oi.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,Dae.mergeType)(u,r[l],t,n);break;case Oi.Kind.ENUM_TYPE_DEFINITION:case Oi.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,Oae.mergeEnum)(u,r[l],t,n);break;case Oi.Kind.UNION_TYPE_DEFINITION:case Oi.Kind.UNION_TYPE_EXTENSION:r[l]=(0,Aae.mergeUnion)(u,r[l],t,n);break;case Oi.Kind.SCALAR_TYPE_DEFINITION:case Oi.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,bae.mergeScalar)(u,r[l],t,n);break;case Oi.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Oi.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,Rae.mergeInputType)(u,r[l],t,n);break;case Oi.Kind.INTERFACE_TYPE_DEFINITION:case Oi.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,Fae.mergeInterface)(u,r[l],t,n);break;case Oi.Kind.DIRECTIVE_DEFINITION:r[l]=(0,wae.mergeDirective)(u,r[l]);break}}else(u.kind===Oi.Kind.SCHEMA_DEFINITION||u.kind===Oi.Kind.SCHEMA_EXTENSION)&&(r[Ka.schemaDefSymbol]=(0,Lae.mergeSchemaDefs)(u,r[Ka.schemaDefSymbol],t));return r}Ka.mergeGraphQLNodes=Cae});var l$=C(Qf=>{"use strict";p();N();m();Object.defineProperty(Qf,"__esModule",{value:!0});Qf.mergeGraphQLTypes=Qf.mergeTypeDefs=void 0;var xs=(Oe(),Ae(Pe)),fA=tI(),jf=dA(),Gf=ca(),u$=lA();function Uae(e,t){(0,Gf.resetComments)();let n={kind:xs.Kind.DOCUMENT,definitions:c$(e,x({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,Gf.printWithComments)(n):r=n,(0,Gf.resetComments)(),r}Qf.mergeTypeDefs=Uae;function Kf(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Kf(e(),t,n,r,i);else if(Array.isArray(e))for(let s of e)Kf(s,t,n,r,i);else if((0,xs.isSchema)(e)){let s=(0,Gf.getDocumentNodeFromSchema)(e,t);Kf(s.definitions,t,n,r,i)}else if((0,fA.isStringTypes)(e)||(0,fA.isSourceTypes)(e)){let s=(0,xs.parse)(e,t);Kf(s.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,xs.isDefinitionNode)(e))e.kind===xs.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,Gf.isDocumentNode)(e))Kf(e.definitions,t,n,r,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:n,allNodes:r}}function c$(e,t){var u,l,d;(0,Gf.resetComments)();let{allDirectives:n,allNodes:r}=Kf(e,t),i=(0,jf.mergeGraphQLNodes)(n,t),s=(0,jf.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let f=s[jf.schemaDefSymbol]||{kind:xs.Kind.SCHEMA_DEFINITION,operationTypes:[]},E=f.operationTypes;for(let h in u$.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!E.find(A=>A.operation===h)){let A=u$.DEFAULT_OPERATION_TYPE_NAME_MAP[h],U=s[A];U!=null&&U.name!=null&&E.push({kind:xs.Kind.OPERATION_TYPE_DEFINITION,type:{kind:xs.Kind.NAMED_TYPE,name:U.name},operation:h})}((u=f==null?void 0:f.operationTypes)==null?void 0:u.length)!=null&&f.operationTypes.length>0&&(s[jf.schemaDefSymbol]=f)}t!=null&&t.forceSchemaDefinition&&!((d=(l=s[jf.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&d.length)&&(s[jf.schemaDefSymbol]={kind:xs.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:xs.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:xs.Kind.NAMED_TYPE,name:{kind:xs.Kind.NAME,value:"Query"}}}]});let a=Object.values(s);if(t!=null&&t.sort){let f=typeof t.sort=="function"?t.sort:fA.defaultStringComparator;a.sort((E,h)=>{var _,A;return f((_=E.name)==null?void 0:_.value,(A=h.name)==null?void 0:A.value)})}return a}Qf.mergeGraphQLTypes=c$});var d$=C(mi=>{"use strict";p();N();m();Object.defineProperty(mi,"__esModule",{value:!0});var $i=(Ob(),Ae(Db));$i.__exportStar(eA(),mi);$i.__exportStar(ks(),mi);$i.__exportStar(tA(),mi);$i.__exportStar(nA(),mi);$i.__exportStar(KN(),mi);$i.__exportStar(iA(),mi);$i.__exportStar(sA(),mi);$i.__exportStar(GN(),mi);$i.__exportStar(dA(),mi);$i.__exportStar(l$(),mi);$i.__exportStar(oA(),mi);$i.__exportStar(aA(),mi);$i.__exportStar(cA(),mi);$i.__exportStar(tI(),mi)});var p$=C(xc=>{"use strict";p();N();m();Object.defineProperty(xc,"__esModule",{value:!0});xc.applyExtensions=xc.mergeExtensions=xc.extractExtensionsFromSchema=void 0;var f$=ca(),Bae=ca();Object.defineProperty(xc,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return Bae.extractExtensionsFromSchema}});function kae(e){return(0,f$.mergeDeep)(e)}xc.mergeExtensions=kae;function Yf(e,t){e&&(e.extensions=(0,f$.mergeDeep)([e.extensions||{},t||{}]))}function xae(e,t){Yf(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(Yf(i,r.extensions),r.type==="object"||r.type==="interface")for(let[s,a]of Object.entries(r.fields)){let u=i.getFields()[s];if(u){Yf(u,a.extensions);for(let[l,d]of Object.entries(a.arguments))Yf(u.args.find(f=>f.name===l),d)}}else if(r.type==="input")for(let[s,a]of Object.entries(r.fields)){let u=i.getFields()[s];Yf(u,a.extensions)}else if(r.type==="enum")for(let[s,a]of Object.entries(r.values)){let u=i.getValue(s);Yf(u,a)}}}return e}xc.applyExtensions=xae});var cI=C(YN=>{"use strict";p();N();m();Object.defineProperty(YN,"__esModule",{value:!0});var pA=(Ob(),Ae(Db));pA.__exportStar(e$(),YN);pA.__exportStar(d$(),YN);pA.__exportStar(p$(),YN)});var As=C(W=>{"use strict";p();N();m();Object.defineProperty(W,"__esModule",{value:!0});W.semanticNonNullArgumentErrorMessage=W.invalidEventProviderIdErrorMessage=W.invalidNatsStreamConfigurationDefinitionErrorMessage=W.invalidEdfsPublishResultObjectErrorMessage=W.invalidNatsStreamInputErrorMessage=W.inlineFragmentInFieldSetErrorMessage=W.inaccessibleQueryRootTypeError=W.subgraphValidationFailureError=W.minimumSubgraphRequirementError=void 0;W.multipleNamedTypeDefinitionError=qae;W.incompatibleInputValueDefaultValueTypeError=$ae;W.incompatibleMergedTypesError=jae;W.incompatibleInputValueDefaultValuesError=Kae;W.incompatibleSharedEnumError=Gae;W.invalidSubgraphNamesError=Qae;W.duplicateDirectiveDefinitionError=Yae;W.duplicateEnumValueDefinitionError=Jae;W.duplicateFieldDefinitionError=Hae;W.duplicateInputFieldDefinitionError=zae;W.duplicateImplementedInterfaceError=Wae;W.duplicateUnionMemberDefinitionError=Xae;W.duplicateTypeDefinitionError=Zae;W.duplicateOperationTypeDefinitionError=eoe;W.noBaseDefinitionForExtensionError=toe;W.noBaseScalarDefinitionError=noe;W.noDefinedUnionMembersError=roe;W.noDefinedEnumValuesError=ioe;W.operationDefinitionError=soe;W.invalidFieldShareabilityError=aoe;W.undefinedDirectiveError=ooe;W.undefinedTypeError=uoe;W.invalidRepeatedDirectiveErrorMessage=coe;W.invalidDirectiveError=loe;W.invalidRepeatedFederatedDirectiveErrorMessage=doe;W.invalidDirectiveLocationErrorMessage=foe;W.undefinedRequiredArgumentsErrorMessage=poe;W.unexpectedDirectiveArgumentErrorMessage=moe;W.duplicateDirectiveArgumentDefinitionsErrorMessage=Noe;W.invalidArgumentValueErrorMessage=Toe;W.maximumTypeNestingExceededError=Eoe;W.unexpectedKindFatalError=hoe;W.incompatibleParentKindFatalError=yoe;W.unexpectedEdgeFatalError=Ioe;W.incompatibleParentTypeMergeError=_oe;W.unexpectedTypeNodeKindFatalError=voe;W.invalidKeyFatalError=Soe;W.unexpectedParentKindForChildError=Doe;W.subgraphValidationError=Ooe;W.invalidSubgraphNameErrorMessage=boe;W.invalidOperationTypeDefinitionError=Aoe;W.invalidRootTypeDefinitionError=Roe;W.subgraphInvalidSyntaxError=Foe;W.invalidInterfaceImplementationError=woe;W.invalidRequiredInputValueError=Loe;W.duplicateArgumentsError=Poe;W.noQueryRootTypeError=Coe;W.expectedEntityError=Uoe;W.abstractTypeInKeyFieldSetErrorMessage=Boe;W.unknownTypeInFieldSetErrorMessage=koe;W.invalidSelectionSetErrorMessage=xoe;W.invalidSelectionSetDefinitionErrorMessage=Moe;W.undefinedFieldInFieldSetErrorMessage=Voe;W.unparsableFieldSetErrorMessage=qoe;W.unparsableFieldSetSelectionErrorMessage=$oe;W.undefinedCompositeOutputTypeError=joe;W.unexpectedArgumentErrorMessage=Koe;W.argumentsInKeyFieldSetErrorMessage=Goe;W.invalidProvidesOrRequiresDirectivesError=Qoe;W.duplicateFieldInFieldSetErrorMessage=Yoe;W.invalidConfigurationDataErrorMessage=Joe;W.incompatibleTypeWithProvidesErrorMessage=Hoe;W.invalidInlineFragmentTypeErrorMessage=zoe;W.inlineFragmentWithoutTypeConditionErrorMessage=Woe;W.unknownInlineFragmentTypeConditionErrorMessage=Xoe;W.invalidInlineFragmentTypeConditionTypeErrorMessage=Zoe;W.invalidInlineFragmentTypeConditionErrorMessage=eue;W.invalidSelectionOnUnionErrorMessage=tue;W.duplicateOverriddenFieldErrorMessage=nue;W.duplicateOverriddenFieldsError=rue;W.noFieldDefinitionsError=iue;W.noInputValueDefinitionsError=sue;W.allChildDefinitionsAreInaccessibleError=aue;W.equivalentSourceAndTargetOverrideErrorMessage=oue;W.undefinedEntityInterfaceImplementationsError=uue;W.orScopesLimitError=cue;W.invalidEventDrivenGraphError=lue;W.invalidRootTypeFieldEventsDirectivesErrorMessage=due;W.invalidEventDrivenMutationResponseTypeErrorMessage=fue;W.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=pue;W.invalidNatsStreamInputFieldsErrorMessage=mue;W.invalidKeyFieldSetsEventDrivenErrorMessage=Nue;W.nonExternalKeyFieldNamesEventDrivenErrorMessage=Tue;W.nonKeyFieldNamesEventDrivenErrorMessage=Eue;W.nonEntityObjectExtensionsEventDrivenErrorMessage=hue;W.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=yue;W.invalidEdfsDirectiveName=Iue;W.invalidImplementedTypeError=gue;W.selfImplementationError=_ue;W.invalidEventSubjectErrorMessage=vue;W.invalidEventSubjectsErrorMessage=Sue;W.invalidEventSubjectsItemErrorMessage=Due;W.invalidEventSubjectsArgumentErrorMessage=Oue;W.undefinedEventSubjectsArgumentErrorMessage=bue;W.invalidEventDirectiveError=Aue;W.invalidReferencesOfInaccessibleTypeError=Rue;W.inaccessibleRequiredInputValueError=Fue;W.invalidUnionMemberTypeError=wue;W.invalidRootTypeError=Lue;W.invalidSubscriptionFilterLocationError=Pue;W.invalidSubscriptionFilterDirectiveError=Cue;W.subscriptionFilterNamedTypeErrorMessage=Uue;W.subscriptionFilterConditionDepthExceededErrorMessage=Bue;W.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=kue;W.subscriptionFilterConditionInvalidInputFieldErrorMessage=xue;W.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=Mue;W.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=Vue;W.subscriptionFilterArrayConditionInvalidLengthErrorMessage=que;W.invalidInputFieldTypeErrorMessage=$ue;W.subscriptionFieldConditionInvalidInputFieldErrorMessage=jue;W.subscriptionFieldConditionInvalidValuesArrayErrorMessage=Kue;W.subscriptionFieldConditionEmptyValuesArrayErrorMessage=Gue;W.unknownFieldSubgraphNameError=Que;W.invalidSubscriptionFieldConditionFieldPathErrorMessage=Yue;W.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=Jue;W.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=Hue;W.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=zue;W.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=Wue;W.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=Xue;W.unresolvablePathError=Zue;W.allExternalFieldInstancesError=ece;W.externalInterfaceFieldsError=tce;W.nonExternalConditionalFieldError=nce;W.incompatibleFederatedFieldNamedTypeError=rce;W.unknownNamedTypeErrorMessage=y$;W.unknownNamedTypeError=ice;W.unknownFieldDataError=sce;W.unexpectedNonCompositeOutputTypeError=ace;W.invalidExternalDirectiveError=oce;W.configureDescriptionNoDescriptionError=uce;W.configureDescriptionPropagationError=cce;W.duplicateDirectiveDefinitionArgumentErrorMessage=lce;W.duplicateDirectiveDefinitionLocationErrorMessage=dce;W.invalidDirectiveDefinitionLocationErrorMessage=fce;W.invalidDirectiveDefinitionError=pce;W.typeNameAlreadyProvidedErrorMessage=mce;W.fieldAlreadyProvidedErrorMessage=Nce;W.invalidInterfaceObjectImplementationDefinitionsError=Tce;W.invalidNamedTypeError=Ece;W.semanticNonNullLevelsNaNIndexErrorMessage=hce;W.semanticNonNullLevelsIndexOutOfBoundsErrorMessage=yce;W.semanticNonNullLevelsNonNullErrorMessage=Ice;W.semanticNonNullInconsistentLevelsError=gce;W.oneOfRequiredFieldsError=_ce;var m$=(Oe(),Ae(Pe)),Ze=Er(),N$=vf(),Yl=di(),Mae=bf(),Vae=cI();W.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function qae(e,t,n){return new Error(`The named type "${e}" is defined as both types "${t}" and "${n}". +However, there must be only one type named "${e}".`)}function $ae(e,t,n,r){return new Error(`The ${e} of type "${n}" defined on path "${t}" is incompatible with the default value of "${r}".`)}function jae({actualType:e,coords:t,expectedType:n,isArgument:r}){return new Error(`Incompatible types when merging two instances of ${r?"field argument":Ze.FIELD} "${t}": + Expected type "${n}" but received "${e}".`)}function Kae(e,t,n,r,i){return new Error(`Expected the ${e} defined on path "${t}" to define the default value "${r}". "However, the default value "${i}" is defined in the following subgraph`+(n.length>1?"s":"")+`: - "`+n.join(Je.QUOTATION_JOIN)+`" -If an instance defines a default value, that default value must be consistently defined across all subgraphs.`)}function Bie(e){return new Error(`Enum "${e}" was used as both an input and output but was inconsistently defined across inclusive subgraphs.`)}function Uie(e,t){let n="Subgraphs to be federated must each have a unique, non-empty name.";e.length>0&&(n+=` + "`+n.join(Ze.QUOTATION_JOIN)+`" +If an instance defines a default value, that default value must be consistently defined across all subgraphs.`)}function Gae(e){return new Error(`Enum "${e}" was used as both an input and output but was inconsistently defined across inclusive subgraphs.`)}function Qae(e,t){let n="Subgraphs to be federated must each have a unique, non-empty name.";e.length>0&&(n+=` The following subgraph names are not unique: "`+e.join('", "')+'"');for(let r of t)n+=` - ${r}`;return new Error(n)}function kie(e){return new Error(`The directive "${e}" must only be defined once.`)}function Mie(e,t){return new Error(`The Enum "${e}" must only define the Enum value definition "${t}" once.`)}function xie(e,t,n){return new Error(`The ${e} "${t}" must only define the field definition "${n}" once.`)}function qie(e,t){return new Error(`The Input Object "${e}" must only define the Input field definition "${t}" once.`)}function Vie(e,t,n){return new Error(`The ${e} "${t}" must only implement the Interface "${n}" once.`)}function jie(e,t){return new Error(`The Union "${e}" must only define the Union member "${t}" once.`)}function Kie(e,t){return new Error(`The ${e} "${t}" must only be defined once.`)}function Gie(e,t,n){return new Error(`The operation type "${e}" cannot be defined as "${t}" because it has already been defined as "${n}".`)}function $ie(e,t){return new Error(`The ${e} "${t}" is an extension, but no base ${e} definition of "${t}" is defined in any subgraph.`)}function Qie(e){return new Error(`The Scalar extension "${e}" is invalid because no base Scalar definition of "${e} is defined in the subgraph.`)}function Yie(e){return new Error(`The Union "${e}" must define at least one Union member.`)}function Jie(e){return new Error(`The Enum "${e}" must define at least one Enum value.`)}function Hie(e,t,n){return new Error(`Expected the response type "${e}" for operation "${t}" to be type Object but received "${n}.`)}function zie(e,t){let n=e.name,r=[];for(let[i,a]of e.fieldDataByName){if(!t.has(i))continue;let o=[],c=[];for(let[l,d]of a.isShareableBySubgraphName)d?o.push(l):c.push(l);o.length<1?r.push(` - The field "${i}" is defined in the following subgraphs: "${[...a.subgraphNames].join('", "')}". + ${r}`;return new Error(n)}function Yae(e){return new Error(`The directive "${e}" must only be defined once.`)}function Jae(e,t){return new Error(`The Enum "${e}" must only define the Enum value definition "${t}" once.`)}function Hae(e,t,n){return new Error(`The ${e} "${t}" must only define the field definition "${n}" once.`)}function zae(e,t){return new Error(`The Input Object "${e}" must only define the Input field definition "${t}" once.`)}function Wae(e,t,n){return new Error(`The ${e} "${t}" must only implement the Interface "${n}" once.`)}function Xae(e,t){return new Error(`The Union "${e}" must only define the Union member "${t}" once.`)}function Zae(e,t){return new Error(`The ${e} "${t}" must only be defined once.`)}function eoe(e,t,n){return new Error(`The operation type "${e}" cannot be defined as "${t}" because it has already been defined as "${n}".`)}function toe(e,t){return new Error(`The ${e} "${t}" is an extension, but no base ${e} definition of "${t}" is defined in any subgraph.`)}function noe(e){return new Error(`The Scalar extension "${e}" is invalid because no base Scalar definition of "${e} is defined in the subgraph.`)}function roe(e){return new Error(`The Union "${e}" must define at least one Union member.`)}function ioe(e){return new Error(`The Enum "${e}" must define at least one Enum value.`)}function soe(e,t,n){return new Error(`Expected the response type "${e}" for operation "${t}" to be type Object but received "${n}.`)}function aoe(e,t){let n=e.name,r=[];for(let[i,s]of e.fieldDataByName){if(!t.has(i))continue;let a=[],u=[];for(let[l,d]of s.isShareableBySubgraphName)d?a.push(l):u.push(l);a.length<1?r.push(` + The field "${i}" is defined in the following subgraphs: "${[...s.subgraphNames].join('", "')}". However, it is not declared "@shareable" in any of them.`):r.push(` - The field "${i}" is defined and declared "@shareable" in the following subgraph`+(o.length>1?"s":"")+': "'+o.join(Je.QUOTATION_JOIN)+`". - However, it is not declared "@shareable" in the following subgraph`+(c.length>1?"s":"")+`: "${c.join(Je.QUOTATION_JOIN)}".`)}return new Error(`The Object "${n}" defines the same fields in multiple subgraphs without the "@shareable" directive:${r.join(` -`)}`)}function Wie(e,t){return new Error(`The directive "@${e}" declared on coordinates "${t}" is not defined in the schema.`)}function Xie(e){return new Error(` The type "${e}" was referenced in the schema, but it was never defined.`)}function Zie(e){return`The definition for the directive "@${e}" does not define it as repeatable, but it is declared more than once on these coordinates.`}function eae(e,t,n,r){return new Error(`The ${n} instance of the directive "@${e}" declared on coordinates "${t}" is invalid for the following reason`+(r.length>1?`s: + The field "${i}" is defined and declared "@shareable" in the following subgraph`+(a.length>1?"s":"")+': "'+a.join(Ze.QUOTATION_JOIN)+`". + However, it is not declared "@shareable" in the following subgraph`+(u.length>1?"s":"")+`: "${u.join(Ze.QUOTATION_JOIN)}".`)}return new Error(`The Object "${n}" defines the same fields in multiple subgraphs without the "@shareable" directive:${r.join(` +`)}`)}function ooe(e,t){return new Error(`The directive "@${e}" declared on coordinates "${t}" is not defined in the schema.`)}function uoe(e){return new Error(` The type "${e}" was referenced in the schema, but it was never defined.`)}function coe(e){return`The definition for the directive "@${e}" does not define it as repeatable, but it is declared more than once on these coordinates.`}function loe(e,t,n,r){return new Error(`The ${n} instance of the directive "@${e}" declared on coordinates "${t}" is invalid for the following reason`+(r.length>1?`s: `:`: `)+r.join(` -`))}function tae(e,t){return new Error(`The definition for the directive "@${e}" does not define it as repeatable, but the directive has been declared on more than one instance of the type "${t}".`)}function nae(e,t){return` The definition for "@${e}" does not define "${t}" as a valid location.`}function rae(e,t,n){let r=` The definition for "@${e}" defines the following `+t.length+" required argument"+(t.length>1?"s: ":": ")+'"'+t.join('", "')+`". - However,`;return n.length<1?r+" no arguments are defined on this instance.":r+" the following required argument"+(n.length>1?"s are":" is")+' not defined on this instance: "'+n.join(Je.QUOTATION_JOIN)+'".'}function iae(e,t){return` The definition for "@${e}" does not define the following argument`+(t.length>1?"s that are":" that is")+' provided: "'+t.join(Je.QUOTATION_JOIN)+'".'}function aae(e){return" The following argument"+(e.length>1?"s are":" is")+' defined more than once: "'+e.join(Je.QUOTATION_JOIN)+'"'}function sae(e,t,n,r){return` The value "${e}" provided to argument "${t}(${n}: ...)" is not a valid "${r}" type.`}function oae(e){return new Error(` The type defined at path "${e}" has more than ${qM.MAXIMUM_TYPE_NESTING} layers of nesting, or there is a cyclical error.`)}function uae(e){return new Error(`Fatal: Unexpected type for "${e}"`)}function cae(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,Ac.kindToNodeType)(t)} but received "${(0,Ac.kindToNodeType)(n)}".`)}function lae(e,t){return new Error(`Fatal: The type "${e}" visited the following unexpected edge`+(t.length>1?"s":"")+`: - " ${t.join(Je.QUOTATION_JOIN)}".`)}var dae='"Interface Object" (an "Object" type that also defines the "@interfaceObject" directive)';function fae({existingData:e,incomingNodeType:t,incomingSubgraphName:n}){let r=[...e.subgraphNames],i=t?`"${t}"`:dae;return new Error(` "${e.name}" is defined using incompatible types across subgraphs. It is defined as type "${(0,Ac.kindToNodeType)(e.kind)}" in subgraph`+(r.length>1?"s":"")+` "${r.join(Je.QUOTATION_JOIN)}" but type ${i} in subgraph "${n}".`)}function pae(e){return new Error(`Fatal: Expected all constituent types at path "${e}" to be one of the following: "LIST_TYPE", "NAMED_TYPE", or "NON_NULL_TYPE".`)}function mae(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}z.subgraphValidationFailureError=new Error(" Fatal: Subgraph validation did not return a valid AST.");function Nae(e,t,n,r,i){return new Error(` Expected "${e}" to be type "${t}" but received "${n}" when handling child "${r}" of type "${i}".`)}function Tae(e,t){return new Error(`The subgraph "${e}" could not be federated for the following reason`+(t.length>1?"s":"")+`: +`))}function doe(e,t){return new Error(`The definition for the directive "@${e}" does not define it as repeatable, but the directive has been declared on more than one instance of the type "${t}".`)}function foe(e,t){return` The definition for "@${e}" does not define "${t}" as a valid location.`}function poe(e,t,n){let r=` The definition for "@${e}" defines the following `+t.length+" required argument"+(t.length>1?"s: ":": ")+'"'+t.join('", "')+`". + However,`;return n.length<1?r+" no arguments are defined on this instance.":r+" the following required argument"+(n.length>1?"s are":" is")+' not defined on this instance: "'+n.join(Ze.QUOTATION_JOIN)+'".'}function moe(e,t){return` The definition for "@${e}" does not define the following argument`+(t.length>1?"s that are":" that is")+' provided: "'+t.join(Ze.QUOTATION_JOIN)+'".'}function Noe(e){return" The following argument"+(e.length>1?"s are":" is")+' defined more than once: "'+e.join(Ze.QUOTATION_JOIN)+'"'}function Toe(e,t,n,r){return` The value "${e}" provided to argument "${t}(${n}: ...)" is not a valid "${r}" type.`}function Eoe(e){return new Error(` The type defined at path "${e}" has more than ${N$.MAXIMUM_TYPE_NESTING} layers of nesting, or there is a cyclical error.`)}function hoe(e){return new Error(`Fatal: Unexpected type for "${e}"`)}function yoe(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,Yl.kindToNodeType)(t)} but received "${(0,Yl.kindToNodeType)(n)}".`)}function Ioe(e,t){return new Error(`Fatal: The type "${e}" visited the following unexpected edge`+(t.length>1?"s":"")+`: + " ${t.join(Ze.QUOTATION_JOIN)}".`)}var goe='"Interface Object" (an "Object" type that also defines the "@interfaceObject" directive)';function _oe({existingData:e,incomingNodeType:t,incomingSubgraphName:n}){let r=[...e.subgraphNames],i=t?`"${t}"`:goe;return new Error(` "${e.name}" is defined using incompatible types across subgraphs. It is defined as type "${(0,Yl.kindToNodeType)(e.kind)}" in subgraph`+(r.length>1?"s":"")+` "${r.join(Ze.QUOTATION_JOIN)}" but type ${i} in subgraph "${n}".`)}function voe(e){return new Error(`Fatal: Expected all constituent types at path "${e}" to be one of the following: "LIST_TYPE", "NAMED_TYPE", or "NON_NULL_TYPE".`)}function Soe(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}W.subgraphValidationFailureError=new Error(" Fatal: Subgraph validation did not return a valid AST.");function Doe(e,t,n,r,i){return new Error(` Expected "${e}" to be type "${t}" but received "${n}" when handling child "${r}" of type "${i}".`)}function Ooe(e,t){return new Error(`The subgraph "${e}" could not be federated for the following reason`+(t.length>1?"s":"")+`: `+t.map(n=>n.message).join(` -`))}function Eae(e,t){return`The ${(0,Ac.numberToOrdinal)(e+1)} subgraph in the array did not define a name. Consequently, any further errors will temporarily identify this subgraph as "${t}".`}function hae(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, "${t}" was also used for the "${n}" operation. - If explicitly defined, each operation type must be a unique and valid Object type.`)}function yae(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, the schema also defines another type named "${n}", which is the default (root) type name for the "${e}" operation. -For federation, it is only possible to use the default root types names ("Mutation", "Query", "Subscription") as operation definitions. No other definitions with these default root type names are valid.`)}function Iae(e){let t="The subgraph has syntax errors and could not be parsed.";return e&&(t+=` - The reason provided was: `+e.message),new Error(t)}function gae(e,t,n){let r=[];for(let[i,a]of n){let o=` The implementation of Interface "${i}" by "${e}" is invalid because: -`,c=a.unimplementedFields.length;c&&(o+=` The following field${c>1?"s are":" is"} not implemented: "`+a.unimplementedFields.join('", "')+`" -`);for(let[l,d]of a.invalidFieldImplementations){let p=d.unimplementedArguments.size,E=d.invalidImplementedArguments.length,I=d.invalidAdditionalArguments.size;if(o+=` The field "${l}" is invalid because: -`,p&&(o+=` The following argument${p>1?"s are":" is"} not implemented: "`+[...d.unimplementedArguments].join('", "')+`" -`),E){o+=` The following implemented argument${E>1?"s are":" is"} invalid: -`;for(let v of d.invalidImplementedArguments)o+=` The argument "${v.argumentName}" must define type "`+v.expectedType+`" and not "${v.actualType}" -`}I&&(o+=` If a field from an Interface is implemented, any additional Arguments that were not defined on the original Interface field must be optional (nullable). -`,o+=" The following additional argument"+(d.invalidAdditionalArguments.size>1?"s are":" is")+' not defined as optional: "'+[...d.invalidAdditionalArguments].join('", "')+`" -`),d.implementedResponseType&&(o+=` The implemented response type "${d.implementedResponseType}" is not a valid subtype (equally or more restrictive) of the response type "`+d.originalResponseType+`" for "${i}.${l}". -`),d.isInaccessible&&(o+=` The field has been declared "@inaccessible"; however, the same field has not been declared "@inaccessible" on the Interface definition. +`))}function boe(e,t){return`The ${(0,Yl.numberToOrdinal)(e+1)} subgraph in the array did not define a name. Consequently, any further errors will temporarily identify this subgraph as "${t}".`}function Aoe(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, "${t}" was also used for the "${n}" operation. + If explicitly defined, each operation type must be a unique and valid Object type.`)}function Roe(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, the schema also defines another type named "${n}", which is the default (root) type name for the "${e}" operation. +For federation, it is only possible to use the default root types names ("Mutation", "Query", "Subscription") as operation definitions. No other definitions with these default root type names are valid.`)}function Foe(e){let t="The subgraph has syntax errors and could not be parsed.";return e&&(t+=` + The reason provided was: `+e.message),new Error(t)}function woe(e,t,n){let r=[];for(let[i,s]of n){let a=` The implementation of Interface "${i}" by "${e}" is invalid because: +`,u=s.unimplementedFields.length;u&&(a+=` The following field${u>1?"s are":" is"} not implemented: "`+s.unimplementedFields.join('", "')+`" +`);for(let[l,d]of s.invalidFieldImplementations){let f=d.unimplementedArguments.size,E=d.invalidImplementedArguments.length,h=d.invalidAdditionalArguments.size;if(a+=` The field "${l}" is invalid because: +`,f&&(a+=` The following argument${f>1?"s are":" is"} not implemented: "`+[...d.unimplementedArguments].join('", "')+`" +`),E){a+=` The following implemented argument${E>1?"s are":" is"} invalid: +`;for(let _ of d.invalidImplementedArguments)a+=` The argument "${_.argumentName}" must define type "`+_.expectedType+`" and not "${_.actualType}" +`}h&&(a+=` If a field from an Interface is implemented, any additional Arguments that were not defined on the original Interface field must be optional (nullable). +`,a+=" The following additional argument"+(d.invalidAdditionalArguments.size>1?"s are":" is")+' not defined as optional: "'+[...d.invalidAdditionalArguments].join('", "')+`" +`),d.implementedResponseType&&(a+=` The implemented response type "${d.implementedResponseType}" is not a valid subtype (equally or more restrictive) of the response type "`+d.originalResponseType+`" for "${i}.${l}". +`),d.isInaccessible&&(a+=` The field has been declared "@inaccessible"; however, the same field has not been declared "@inaccessible" on the Interface definition. Consequently, the Interface implementation cannot be satisfied. -`)}r.push(o)}return new Error(`The ${t} "${e}" has the following Interface implementation errors: +`)}r.push(a)}return new Error(`The ${t} "${e}" has the following Interface implementation errors: `+r.join(` -`))}function _ae(e,t,n,r=!0){let i=r?Je.ARGUMENT:Je.INPUT_FIELD,a=`The ${e} "${t}" could not be federated because: -`;for(let o of n)a+=` The ${i} "${o.inputValueName}" is required in the following subgraph`+(o.requiredSubgraphs.length>1?"s":"")+': "'+o.requiredSubgraphs.join('", "')+`" - However, the ${i} "${o.inputValueName}" is not defined in the following subgraph`+(o.missingSubgraphs.length>1?"s":"")+': "'+o.missingSubgraphs.join('", "')+`" +`))}function Loe(e,t,n,r=!0){let i=r?Ze.ARGUMENT:Ze.INPUT_FIELD,s=`The ${e} "${t}" could not be federated because: +`;for(let a of n)s+=` The ${i} "${a.inputValueName}" is required in the following subgraph`+(a.requiredSubgraphs.length>1?"s":"")+': "'+a.requiredSubgraphs.join('", "')+`" + However, the ${i} "${a.inputValueName}" is not defined in the following subgraph`+(a.missingSubgraphs.length>1?"s":"")+': "'+a.missingSubgraphs.join('", "')+`" If an ${i} is required on a ${e} in any one subgraph, it must be at least defined as optional on all other definitions of that ${e} in all other subgraphs. -`;return new Error(a)}function vae(e,t){return new Error(`The field "${e}" is invalid because: - The following argument`+(t.length>1?"s are":" is")+' defined more than once: "'+t.join(Je.QUOTATION_JOIN)+`" -`)}function Oae(e=!0){return new Error(`The ${e?"router":"client"} schema does not define at least one accessible query root type field after federation was completed, which is necessary for a federated graph to be valid. +`;return new Error(s)}function Poe(e,t){return new Error(`The field "${e}" is invalid because: + The following argument`+(t.length>1?"s are":" is")+' defined more than once: "'+t.join(Ze.QUOTATION_JOIN)+`" +`)}function Coe(e=!0){return new Error(`The ${e?"router":"client"} schema does not define at least one accessible query root type field after federation was completed, which is necessary for a federated graph to be valid. For example: type Query { dummy: String - }`)}z.inaccessibleQueryRootTypeError=new Error('The root query type "Query" must be present in the client schema; consequently, it must not be declared "@inaccessible".');function Sae(e){return new Error(`Expected object "${e}" to define a "key" directive, but it defines no directives.`)}z.inlineFragmentInFieldSetErrorMessage=" Inline fragments are not currently supported within a field set argument.";function Dae(e,t,n,r){return` The following field set is invalid: + }`)}W.inaccessibleQueryRootTypeError=new Error('The root query type "Query" must be present in the client schema; consequently, it must not be declared "@inaccessible".');function Uoe(e){return new Error(`Expected object "${e}" to define a "key" directive, but it defines no directives.`)}W.inlineFragmentInFieldSetErrorMessage=" Inline fragments are not currently supported within a field set argument.";function Boe(e,t,n,r){return` The following field set is invalid: "${e}" This is because "${t}" returns "${n}", which is type "${r}". - Fields that return abstract types (Interfaces and Unions) cannot be included in the field set of "@key" directives.`}function bae(e,t,n){return` The following field set is invalid: + Fields that return abstract types (Interfaces and Unions) cannot be included in the field set of "@key" directives.`}function koe(e,t,n){return` The following field set is invalid: "${e}" - This is because "${t}" returns the unknown type "${n}".`}function Aae(e,t,n,r){return` The following field set is invalid: + This is because "${t}" returns the unknown type "${n}".`}function xoe(e,t,n,r){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+aE(t,n,r)+` Composite types such as "${r}" types must define a selection set with at least one field selection.`}function Rae(e,t,n,r){return` The following field set is invalid: + This is because of the selection set corresponding to the `+lI(t,n,r)+` Composite types such as "${r}" types must define a selection set with at least one field selection.`}function Moe(e,t,n,r){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+aE(t,n,r)+` Non-composite types such as "${r}" cannot define a selection set.`}function Pae(e,t,n){return` The following field set is invalid: + This is because of the selection set corresponding to the `+lI(t,n,r)+` Non-composite types such as "${r}" cannot define a selection set.`}function Voe(e,t,n){return` The following field set is invalid: "${e}" This is because of the selection set corresponding to the field coordinates "${t}.${n}". - The type "${t}" does not define a field named "${n}".`}function Fae(e,t){let n=` The following field set is invalid: + The type "${t}" does not define a field named "${n}".`}function qoe(e,t){let n=` The following field set is invalid: "${e}" The field set could not be parsed.`;return t&&(n+=` - The reason provided was: `+t.message),n}function wae(e,t){return` The following field set is invalid: + The reason provided was: `+t.message),n}function $oe(e,t){return` The following field set is invalid: "${e}" - This is because the selection set defined on "${t}" could not be parsed.`}function Lae(e){return new Error(` Expected an object/interface or object/interface extension named "${e}" to exist.`)}function Cae(e,t,n){return` The following field set is invalid: + This is because the selection set defined on "${t}" could not be parsed.`}function joe(e){return new Error(` Expected an object/interface or object/interface extension named "${e}" to exist.`)}function Koe(e,t,n){return` The following field set is invalid: "${e}" - This is because "${t}" does not define an argument named "${n}".`}function Bae(e,t){return` The following field set is invalid: + This is because "${t}" does not define an argument named "${n}".`}function Goe(e,t){return` The following field set is invalid: "${e}" This is because "${t}" defines arguments. - Fields that define arguments cannot be included in the field set of @key directives.`}function Uae(e,t){return new Error(`The following "${e}" directive`+(t.length>1?"s are":" is")+` invalid: + Fields that define arguments cannot be included in the field set of @key directives.`}function Qoe(e,t){return new Error(`The following "${e}" directive`+(t.length>1?"s are":" is")+` invalid: `+t.join(` -`))}function kae(e,t){return` The following field set is invalid: +`))}function Yoe(e,t){return` The following field set is invalid: "${e}" - This is because "${t}" was included in the field set more than once.`}function Mae(e,t,n){return` Expected ConfigurationData to exist for type "${e}" when adding field "${t}" while validating field set "${n}".`}function xae({fieldCoords:e,responseType:t,subgraphName:n}){return` A "@provides" directive is declared on field "${e}" in subgraph "${n}". - However, the response type "${t}" is not an Object nor Interface.`}function LS(e,t,n=!1){return e.length<1?`enclosing type name "${t}". + This is because "${t}" was included in the field set more than once.`}function Joe(e,t,n){return` Expected ConfigurationData to exist for type "${e}" when adding field "${t}" while validating field set "${n}".`}function Hoe({fieldCoords:e,responseType:t,subgraphName:n}){return` A "@provides" directive is declared on field "${e}" in subgraph "${n}". + However, the response type "${t}" is not an Object nor Interface.`}function mA(e,t,n=!1){return e.length<1?`enclosing type name "${t}". `:`field coordinates "${e[e.length-1]}"`+(n?` that returns "${t}"`:"")+`. -`}function aE(e,t,n){return e.length<1?`enclosing type name "${t}", which is type "${n}". +`}function lI(e,t,n){return e.length<1?`enclosing type name "${t}", which is type "${n}". `:`field coordinates "${e[e.length-1]}" that returns "${t}", which is type "${n}". -`}function qae(e,t,n,r){return` The following field set is invalid: +`}function zoe(e,t,n,r){return` The following field set is invalid: "${e}" - This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+LS(t,r,!0)+` However, "${r}" is not an abstract (Interface or Union) type. - Consequently, the only valid type condition at this selection set would be "${r}".`}function Vae(e,t){return` The following field set is invalid: + This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+mA(t,r,!0)+` However, "${r}" is not an abstract (Interface or Union) type. + Consequently, the only valid type condition at this selection set would be "${r}".`}function Woe(e,t){return` The following field set is invalid: "${e}" - This is because "${t}" defines an inline fragment without a type condition.`}function jae(e,t,n,r){return` The following field set is invalid: + This is because "${t}" defines an inline fragment without a type condition.`}function Xoe(e,t,n,r){return` The following field set is invalid: "${e}" - This is because an inline fragment with the unknown type condition "${r}" is defined on the selection set corresponding to the `+LS(t,n)}function Kae(e,t,n,r,i){return` The following field set is invalid: + This is because an inline fragment with the unknown type condition "${r}" is defined on the selection set corresponding to the `+mA(t,n)}function Zoe(e,t,n,r,i){return` The following field set is invalid: "${e}" - This is because an inline fragment with the type condition "${r}" is defined on the selection set corresponding to the `+LS(t,n)+` However, "${r}" is type "${i}" when types "Interface" or "Object" would be expected.`}function Gae(e,t,n,r,i){let a=` The following field set is invalid: + This is because an inline fragment with the type condition "${r}" is defined on the selection set corresponding to the `+mA(t,n)+` However, "${r}" is type "${i}" when types "Interface" or "Object" would be expected.`}function eue(e,t,n,r,i){let s=` The following field set is invalid: "${e}" - This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+aE(t,i,r);return r===Je.INTERFACE?a+` However, "${n}" does not implement "${i}"`:a+` However, "${n}" is not a member of "${i}".`}function $ae(e,t,n){return` The following field set is invalid: + This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+lI(t,i,r);return r===Ze.INTERFACE?s+` However, "${n}" does not implement "${i}"`:s+` However, "${n}" is not a member of "${i}".`}function tue(e,t,n){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+aE(t,n,Je.UNION)+` Union types such as "${n}" must define field selections (besides "__typename") on an inline fragment whose type condition corresponds to a constituent union member.`}function Qae(e,t){return` The field "${e}" declares an @override directive in the following subgraphs: "`+t.join(Je.QUOTATION_JOIN)+'".'}function Yae(e){return new Error('The "@override" directive must only be declared on one single instance of a field. However, an "@override" directive was declared on more than one instance of the following field'+(e.length>1?"s":"")+': "'+e.join(Je.QUOTATION_JOIN)+`". -`)}function Jae(e,t){return new Error(`The ${e} "${t}" is invalid because it does not define any fields.`)}function Hae(e){return new Error(`The Input Object "${e}" is invalid because it does not define any input values.`)}function zae(e,t,n){return new Error(`The ${e} "${t}" is invalid because all its ${n} definitions are declared "@inaccessible".`)}function Wae(e,t){return`Cannot override field "${t}" because the source and target subgraph names are both "${e}"`}function Xae(e,t){let n=`Federation was unsuccessful because any one subgraph that defines a specific entity Interface must also define each and every entity Object that implements that entity Interface. + This is because of the selection set corresponding to the `+lI(t,n,Ze.UNION)+` Union types such as "${n}" must define field selections (besides "__typename") on an inline fragment whose type condition corresponds to a constituent union member.`}function nue(e,t){return` The field "${e}" declares an @override directive in the following subgraphs: "`+t.join(Ze.QUOTATION_JOIN)+'".'}function rue(e){return new Error('The "@override" directive must only be declared on one single instance of a field. However, an "@override" directive was declared on more than one instance of the following field'+(e.length>1?"s":"")+': "'+e.join(Ze.QUOTATION_JOIN)+`". +`)}function iue(e,t){return new Error(`The ${e} "${t}" is invalid because it does not define any fields.`)}function sue(e){return new Error(`The Input Object "${e}" is invalid because it does not define any input values.`)}function aue(e,t,n){return new Error(`The ${e} "${t}" is invalid because all its ${n} definitions are declared "@inaccessible".`)}function oue(e,t){return`Cannot override field "${t}" because the source and target subgraph names are both "${e}"`}function uue(e,t){let n=`Federation was unsuccessful because any one subgraph that defines a specific entity Interface must also define each and every entity Object that implements that entity Interface. Each entity Object must also explicitly define its implementation of the entity Interface. -`;for(let[r,i]of e){let o=(0,Ac.getOrThrowError)(t,r,"entityInterfaceFederationDataByTypeName").concreteTypeNames;n+=` Across all subgraphs, the entity interface "${r}" is implemented by the following entit`+(o.size>1?"ies":"y")+`: - "`+Array.from(o).join(Je.QUOTATION_JOIN)+`" +`;for(let[r,i]of e){let a=(0,Yl.getOrThrowError)(t,r,"entityInterfaceFederationDataByTypeName").concreteTypeNames;n+=` Across all subgraphs, the entity interface "${r}" is implemented by the following entit`+(a.size>1?"ies":"y")+`: + "`+Array.from(a).join(Ze.QUOTATION_JOIN)+`" However, the definition of at least one of these implementations is missing in a subgraph that defines the entity interface "${r}": -`;for(let{subgraphName:c,definedConcreteTypeNames:l}of i){let d=(0,Ac.getEntriesNotInHashSet)(o,l);n+=` Subgraph "${c}" does not define the following implementations: "`+d.join(Je.QUOTATION_JOIN)+`" -`}}return new Error(n)}function Zae(e,t){return new Error(`The maximum number of OR scopes that can be defined by @requiresScopes on a single field is ${e}. However, the following coordinates attempt to define more: - "`+t.join(Je.QUOTATION_JOIN)+`" -If you require more, please contact support.`)}function ese(e){return new Error(`An "Event Driven" graph\u2014a subgraph that defines event driven directives\u2014must not define any resolvers. +`;for(let{subgraphName:u,definedConcreteTypeNames:l}of i){let d=(0,Yl.getEntriesNotInHashSet)(a,l);n+=` Subgraph "${u}" does not define the following implementations: "`+d.join(Ze.QUOTATION_JOIN)+`" +`}}return new Error(n)}function cue(e,t){return new Error(`The maximum number of OR scopes that can be defined by @requiresScopes on a single field is ${e}. However, the following coordinates attempt to define more: + "`+t.join(Ze.QUOTATION_JOIN)+`" +If you require more, please contact support.`)}function lue(e){return new Error(`An "Event Driven" graph\u2014a subgraph that defines event driven directives\u2014must not define any resolvers. Consequently, any "@key" definitions must also include the "resolvable: false" argument. Moreover, only fields that compose part of an entity's (composite) key and are declared "@external" are permitted. `+e.join(` -`))}function tse(e){let t=` Root type fields defined in an Event Driven graph must define a valid events directive: +`))}function due(e){let t=` Root type fields defined in an Event Driven graph must define a valid events directive: Mutation type fields must define either a edfs publish or request directive." Query type fields must define "@edfs__natsRequest" Subscription type fields must define an edfs subscribe directive The following root field path`+(e.size>1?"s are":" is")+` invalid: `;for(let[n,r]of e)r.definesDirectives?t+=` The root field path "${n}" defines the following invalid events directive`+(r.invalidDirectiveNames.length>1?"s":"")+': "@'+r.invalidDirectiveNames.join('", "@')+`" `:t+=` The root field path "${n}" does not define any valid events directives. -`;return t}function nse(e){let t=` Mutation type fields defined in an Event Driven graph must return the non-nullable type "edfs__PublishResult!", which has the following definition: +`;return t}function fue(e){let t=` Mutation type fields defined in an Event Driven graph must return the non-nullable type "edfs__PublishResult!", which has the following definition: type edfs__PublishResult { success: Boolean! } However, the following mutation field path`+(e.size>1?"s are":" is")+` invalid: `;for(let[n,r]of e)t+=` The mutation field path "${n}" returns "${r}". -`;return t}function rse(e){let t=` The named response type of root type fields defined in an Event Driven graph must be a non-nullable, non-list named type that is either an entity, an interface implemented by an entity, or a union of which an entity is a member. +`;return t}function pue(e){let t=` The named response type of root type fields defined in an Event Driven graph must be a non-nullable, non-list named type that is either an entity, an interface implemented by an entity, or a union of which an entity is a member. Consequently, the following root field path`+(e.size>1?"s are":" is")+` invalid: `;for(let[n,r]of e)t+=` The root field path "${n}", which returns the invalid type "${r}" -`;return t}z.invalidNatsStreamInputErrorMessage=`The "streamConfiguration" argument must be a valid input object with the following form: +`;return t}W.invalidNatsStreamInputErrorMessage=`The "streamConfiguration" argument must be a valid input object with the following form: input edfs__NatsStreamConfiguration { consumerInactiveThreshold: Int! = 30 consumerName: String! streamName: String! - }`;function ise(e,t,n,r){let i=z.invalidNatsStreamInputErrorMessage,a=[];return e.length>0&&a.push("The following required field"+(e.length>1?"s were":" was")+' not defined: "'+e.join(Je.QUOTATION_JOIN)+'".'),t.length>0&&a.push("The following required field"+(t.length>1?"s were":" was")+' defined more than once: "'+t.join(Je.QUOTATION_JOIN)+'".'),n.length>0&&a.push("The following required field"+(n.length>1?"s were":" was")+' not type "String!" with a minimum length of 1: "'+n.join(Je.QUOTATION_JOIN)+'".'),r.length>0&&a.push("The following field"+(r.length>1?"s are":" is")+' not part of a valid "edfs__NatsStreamConfiguration" input definition: "'+r.join(Je.QUOTATION_JOIN)+'".'),i+=` - However, the provided input was invalid for the following reason`+(a.length>1?"s":"")+`: - `+a.join(` - `),i}function ase(e=new Map){let t="";for(let[n,r]of e)t+=' The following "@key" field set'+(r.length>1?"s are":" is")+` defined on the entity "${n}" without a "resolvable: false" argument: - "`+r.join(Je.QUOTATION_JOIN)+`" -`;return t}function sse(e){let t=" The following field"+(e.size>1?"s are referenced":" is referenced")+` within an entity "@key" field without an "@external" declaration: + }`;function mue(e,t,n,r){let i=W.invalidNatsStreamInputErrorMessage,s=[];return e.length>0&&s.push("The following required field"+(e.length>1?"s were":" was")+' not defined: "'+e.join(Ze.QUOTATION_JOIN)+'".'),t.length>0&&s.push("The following required field"+(t.length>1?"s were":" was")+' defined more than once: "'+t.join(Ze.QUOTATION_JOIN)+'".'),n.length>0&&s.push("The following required field"+(n.length>1?"s were":" was")+' not type "String!" with a minimum length of 1: "'+n.join(Ze.QUOTATION_JOIN)+'".'),r.length>0&&s.push("The following field"+(r.length>1?"s are":" is")+' not part of a valid "edfs__NatsStreamConfiguration" input definition: "'+r.join(Ze.QUOTATION_JOIN)+'".'),i+=` + However, the provided input was invalid for the following reason`+(s.length>1?"s":"")+`: + `+s.join(` + `),i}function Nue(e=new Map){let t="";for(let[n,r]of e)t+=' The following "@key" field set'+(r.length>1?"s are":" is")+` defined on the entity "${n}" without a "resolvable: false" argument: + "`+r.join(Ze.QUOTATION_JOIN)+`" +`;return t}function Tue(e){let t=" The following field"+(e.size>1?"s are referenced":" is referenced")+` within an entity "@key" field without an "@external" declaration: `;for(let[n,r]of e)t+=` field "${r}" defined on path "${n}" -`;return t}function ose(e){let t=" The following field"+(e.size>1?"s are":" is")+` defined despite not composing part of a "@key" directive field set: +`;return t}function Eue(e){let t=" The following field"+(e.size>1?"s are":" is")+` defined despite not composing part of a "@key" directive field set: `;for(let[n,r]of e)t+=` Field "${r}" defined on path "${n}" -`;return t}function use(e){return`Only root types and entities (objects that define one or more primary keys with the "@key" directive) may be defined as object extensions in an Event Driven graph. +`;return t}function hue(e){return`Only root types and entities (objects that define one or more primary keys with the "@key" directive) may be defined as object extensions in an Event Driven graph. Consequently, the following object extension definition`+(e.length>1?"s are":" is")+` invalid: - "`+e.join(Je.QUOTATION_JOIN)+`" -`}function cse(e){return` Only object definitions whose fields compose part of a "@key" directive's field set may be defined in an Event Driven graph. Consequently, the following object type definition`+(e.length>1?"s are":" is")+` invalid: - "`+e.join(Je.QUOTATION_JOIN)+`" -`}z.invalidEdfsPublishResultObjectErrorMessage=` The object "edfs__PublishResult" that was defined in the Event Driven graph is invalid and must instead have the following definition: + "`+e.join(Ze.QUOTATION_JOIN)+`" +`}function yue(e){return` Only object definitions whose fields compose part of a "@key" directive's field set may be defined in an Event Driven graph. Consequently, the following object type definition`+(e.length>1?"s are":" is")+` invalid: + "`+e.join(Ze.QUOTATION_JOIN)+`" +`}W.invalidEdfsPublishResultObjectErrorMessage=` The object "edfs__PublishResult" that was defined in the Event Driven graph is invalid and must instead have the following definition: type edfs__PublishResult { success: Boolean! - }`;z.invalidNatsStreamConfigurationDefinitionErrorMessage=` The input object "edfs__NatsStreamConfiguration" that was defined in the Event Driven graph is invalid and must instead have the following definition: + }`;W.invalidNatsStreamConfigurationDefinitionErrorMessage=` The input object "edfs__NatsStreamConfiguration" that was defined in the Event Driven graph is invalid and must instead have the following definition: input edfs__NatsStreamConfiguration { consumerInactiveThreshold: Int! = 30 consumerName: String! streamName: String! - }`;function lse(e){return new Error(`Could not retrieve definition for Event-Driven Federated Subscription directive "${e}".`)}function dse(e,t){let n=` Only interfaces can be implemented. However, the type "${e}" attempts to implement the following invalid type`+(t.size>1?"s":"")+`: + }`;function Iue(e){return new Error(`Could not retrieve definition for Event-Driven Federated Subscription directive "${e}".`)}function gue(e,t){let n=` Only interfaces can be implemented. However, the type "${e}" attempts to implement the following invalid type`+(t.size>1?"s":"")+`: `;for(let[r,i]of t)n+=` "${r}", which is type "${i}" -`;return new Error(n)}function fse(e){return new Error(` The interface "${e}" must not implement itself.`)}function pse(e){return`The "${e}" argument must be string with a minimum length of one.`}function mse(e){return`The "${e}" argument must be a list of strings.`}function Nse(e){return`Each item in the "${e}" argument list must be a string with a minimum length of one. However, at least one value provided in the list was invalid.`}function Tse(e){return`An argument template references the invalid argument "${e}".`}function Ese(e){return`An argument template references the undefined argument "${e}".`}z.invalidEventProviderIdErrorMessage='If explicitly defined, the "providerId" argument must be a string with a minimum length of one.';function hse(e,t,n){return new Error(`The event directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?"s":"")+`: +`;return new Error(n)}function _ue(e){return new Error(` The interface "${e}" must not implement itself.`)}function vue(e){return`The "${e}" argument must be string with a minimum length of one.`}function Sue(e){return`The "${e}" argument must be a list of strings.`}function Due(e){return`Each item in the "${e}" argument list must be a string with a minimum length of one. However, at least one value provided in the list was invalid.`}function Oue(e){return`An argument template references the invalid argument "${e}".`}function bue(e){return`An argument template references the undefined argument "${e}".`}W.invalidEventProviderIdErrorMessage='If explicitly defined, the "providerId" argument must be a string with a minimum length of one.';function Aue(e,t,n){return new Error(`The event directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?"s":"")+`: `+n.join(` - `))}function yse(e,t,n){return new Error(`The ${e} "${t}" is declared "@inaccessible"; however, the ${e} is still referenced at the following paths: - "`+n.join(Je.QUOTATION_JOIN)+`" -`)}function Ise(e,t){return new Error(`The ${e.kind===xM.Kind.ARGUMENT?"argument":"Input field"} "${e.name}" defined at coordinates "${e.federatedCoords}" is declared "@inaccessible"; however, it is a required ${e.kind===xM.Kind.ARGUMENT?"argument of field":"field of Input Object"} "${t}".`)}function gse(e,t){return new Error(` The union "${e}" defines the following member`+(t.length>1?"s that are not object types":" that is not an object type")+`: + `))}function Rue(e,t,n){return new Error(`The ${e} "${t}" is declared "@inaccessible"; however, the ${e} is still referenced at the following paths: + "`+n.join(Ze.QUOTATION_JOIN)+`" +`)}function Fue(e,t){return new Error(`The ${e.kind===m$.Kind.ARGUMENT?"argument":"Input field"} "${e.name}" defined at coordinates "${e.federatedCoords}" is declared "@inaccessible"; however, it is a required ${e.kind===m$.Kind.ARGUMENT?"argument of field":"field of Input Object"} "${t}".`)}function wue(e,t){return new Error(` The union "${e}" defines the following member`+(t.length>1?"s that are not object types":" that is not an object type")+`: `+t.join(` - `))}function _se(e){return new Error(`Expected type "${e}" to be a root type but could not find its respective OperationTypeNode.`)}function vse(e){return new Error(`The "@${Je.SUBSCRIPTION_FILTER}" directive must only be defined on a subscription root field, but it was defined on the path "${e}".`)}function Ose(e,t){return new Error(`The "@${Je.SUBSCRIPTION_FILTER}" directive defined on path "${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: + `))}function Lue(e){return new Error(`Expected type "${e}" to be a root type but could not find its respective OperationTypeNode.`)}function Pue(e){return new Error(`The "@${Ze.SUBSCRIPTION_FILTER}" directive must only be defined on a subscription root field, but it was defined on the path "${e}".`)}function Cue(e,t){return new Error(`The "@${Ze.SUBSCRIPTION_FILTER}" directive defined on path "${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: `+t.join(` -`))}function Sse(e){return` Unknown type "${e}".`}function Dse(e){return` The input path "${e}" exceeds the maximum depth of ${qM.MAX_SUBSCRIPTION_FILTER_DEPTH} for any one filter condition. - If you require a larger maximum depth, please contact support.`}var VM=` Each "${Je.SUBSCRIPTION_FILTER_CONDITION}" input object must define exactly one of the following input value fields: "${Je.AND_UPPER}", "${Je.IN_UPPER}", "${Je.NOT_UPPER}", or "${Je.OR_UPPER}". -`;function bse(e,t){return VM+` However, input path "${e}" defines ${t} fields.`}function Ase(e,t){return VM+` However, input path "${e}" defines the invalid input value field "${t}".`}function Rse(e,t,n){return` Expected the value of input path "${e}" to be type "${t}" but received type "${n}"`}var jM=` An AND or OR input field defined on a "${Je.SUBSCRIPTION_FILTER_CONDITION}" should define a list of 1\u20135 nested conditions. -`;function Pse(e,t){let n=t.length>1;return jM+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+' not type "object": '+t.join(", ")}function Fse(e,t){return jM+` However, the list defined on input path "${e}" has a length of ${t}.`}function wse(e,t,n){return` Expected the input path "${e}" to be type "${t}" but received "${n}".`}function Lse(e,t,n,r,i){let a=` Each "${Je.SUBSCRIPTION_FIELD_CONDITION}" input object must only define the following two input value fields: "${Je.FIELD_PATH}" and "${Je.VALUES}". - However, input path "${e}" is invalid because:`;return t.length>0&&(a+=` +`))}function Uue(e){return` Unknown type "${e}".`}function Bue(e){return` The input path "${e}" exceeds the maximum depth of ${N$.MAX_SUBSCRIPTION_FILTER_DEPTH} for any one filter condition. + If you require a larger maximum depth, please contact support.`}var T$=` Each "${Ze.SUBSCRIPTION_FILTER_CONDITION}" input object must define exactly one of the following input value fields: "${Ze.AND_UPPER}", "${Ze.IN_UPPER}", "${Ze.NOT_UPPER}", or "${Ze.OR_UPPER}". +`;function kue(e,t){return T$+` However, input path "${e}" defines ${t} fields.`}function xue(e,t){return T$+` However, input path "${e}" defines the invalid input value field "${t}".`}function Mue(e,t,n){return` Expected the value of input path "${e}" to be type "${t}" but received type "${n}"`}var E$=` An AND or OR input field defined on a "${Ze.SUBSCRIPTION_FILTER_CONDITION}" should define a list of 1\u20135 nested conditions. +`;function Vue(e,t){let n=t.length>1;return E$+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+' not type "object": '+t.join(", ")}function que(e,t){return E$+` However, the list defined on input path "${e}" has a length of ${t}.`}function $ue(e,t,n){return` Expected the input path "${e}" to be type "${t}" but received "${n}".`}function jue(e,t,n,r,i){let s=` Each "${Ze.SUBSCRIPTION_FIELD_CONDITION}" input object must only define the following two input value fields: "${Ze.FIELD_PATH}" and "${Ze.VALUES}". + However, input path "${e}" is invalid because:`;return t.length>0&&(s+=` The following required field`+(t.length>1?"s are":" is")+` not defined: - "`+t.join(Je.QUOTATION_JOIN)+'"'),n.length>0&&(a+=` + "`+t.join(Ze.QUOTATION_JOIN)+'"'),n.length>0&&(s+=` The following required field`+(n.length>1?"s are":" is")+` defined more than once: - "`+n.join(Je.QUOTATION_JOIN)+'"'),r.length>0&&(a+=` + "`+n.join(Ze.QUOTATION_JOIN)+'"'),r.length>0&&(s+=` The following invalid field`+(r.length>1?"s are":" is")+` defined: - "`+r.join(Je.QUOTATION_JOIN)+'"'),i.length>0&&(a+=` + "`+r.join(Ze.QUOTATION_JOIN)+'"'),i.length>0&&(s+=` `+i.join(` - `)),a}var KM=` A "${Je.SUBSCRIPTION_FIELD_CONDITION}" input object must define a "values" input value field with a list of at least one valid "${Je.SUBSCRIPTION_FILTER_VALUE}" kind (boolean, enum, float, int, null, or string). -`;function Cse(e,t){let n=t.length>1;return KM+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+` not a valid "${Je.SUBSCRIPTION_FILTER_VALUE}": `+t.join(", ")}function Bse(e){return KM+` However, the list defined on input path "${e}" is empty.`}function Use(e){return new Error(` Field "${e}" defined no subgraph names.`)}function kse(e,t){return` Input path "${e}" defines the value "${t}", which is not a period (.) delimited field path.`}function Mse(e,t,n){return` Input path "${e}" defines the value "${t}". - However, "${n}" is not type "object"`}function xse(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". - However, the path "${n}" is invalid because no field named "${r}" exists on type "${i}".`}function qse(e,t,n,r,i){return`Input path "${e}" defines the value "${t}". - However, only fields that are defined in the same graph as the "@${Je.SUBSCRIPTION_FILTER}" directive can compose part of an "IN" condition's "fieldPath" input value field. - Consequently, the path "${n}" is invalid because field "${r}" is not defined in subgraph "${i}".`}function Vse(e,t,n,r){return` Input path "${e}" defines the value "${t}". - The path segment "${n}" is invalid because it refers to "${r}", which is declared "@inaccessible".`}function jse(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". - However, the final field "${n}" is ${r} "${i}", which is not a leaf type; therefore, it requires further selections.`}function Kse({fieldName:e,selectionSet:t},n){let r=`The field "${e}" is unresolvable at the following path: + `)),s}var h$=` A "${Ze.SUBSCRIPTION_FIELD_CONDITION}" input object must define a "values" input value field with a list of at least one valid "${Ze.SUBSCRIPTION_FILTER_VALUE}" kind (boolean, enum, float, int, null, or string). +`;function Kue(e,t){let n=t.length>1;return h$+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+` not a valid "${Ze.SUBSCRIPTION_FILTER_VALUE}": `+t.join(", ")}function Gue(e){return h$+` However, the list defined on input path "${e}" is empty.`}function Que(e){return new Error(` Field "${e}" defined no subgraph names.`)}function Yue(e,t){return` Input path "${e}" defines the value "${t}", which is not a period (.) delimited field path.`}function Jue(e,t,n){return` Input path "${e}" defines the value "${t}". + However, "${n}" is not type "object"`}function Hue(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". + However, the path "${n}" is invalid because no field named "${r}" exists on type "${i}".`}function zue(e,t,n,r,i){return`Input path "${e}" defines the value "${t}". + However, only fields that are defined in the same graph as the "@${Ze.SUBSCRIPTION_FILTER}" directive can compose part of an "IN" condition's "fieldPath" input value field. + Consequently, the path "${n}" is invalid because field "${r}" is not defined in subgraph "${i}".`}function Wue(e,t,n,r){return` Input path "${e}" defines the value "${t}". + The path segment "${n}" is invalid because it refers to "${r}", which is declared "@inaccessible".`}function Xue(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". + However, the final field "${n}" is ${r} "${i}", which is not a leaf type; therefore, it requires further selections.`}function Zue({fieldName:e,selectionSet:t},n){let r=`The field "${e}" is unresolvable at the following path: ${t} This is because: - `+n.join(` - - `);return new Error(r)}function Gse(e,t){let n=`The Object "${e}" is invalid because the following field definition`+(t.size>1?"s are":" is")+` declared "@external" on all instances of that field: -`;for(let[r,i]of t)n+=` "${r}" in subgraph`+(i.length>1?"s":"")+' "'+i.join(Je.QUOTATION_JOIN)+`" -`;return n+='At least one instance of a field definition must always be resolvable (and therefore not declared "@external").',new Error(n)}function $se(e,t){return new Error(`The interface "${e}" is invalid because the following field definition`+(t.length>1?"s are":" is")+` declared "@external": - "`+t.join(Je.QUOTATION_JOIN)+`" -Interface fields should not be declared "@external". This is because interface fields do not resolve directly, but the "@external" directive relates to whether a field instance can be resolved by the subgraph in which it is defined.`)}function Qse({directiveCoords:e,fieldSet:t,directiveName:n,subgraphName:r,targetCoords:i}){let a=i.split(Je.LITERAL_PERIOD),o=a[a.length-1]===Je.TYPENAME;return new Error(`The field "${e}" in subgraph "${r}" defines a "@${n}" directive with the following field set: - "${t}".`+(o?` + - `);return new Error(r)}function ece(e,t){let n=`The Object "${e}" is invalid because the following field definition`+(t.size>1?"s are":" is")+` declared "@external" on all instances of that field: +`;for(let[r,i]of t)n+=` "${r}" in subgraph`+(i.length>1?"s":"")+' "'+i.join(Ze.QUOTATION_JOIN)+`" +`;return n+='At least one instance of a field definition must always be resolvable (and therefore not declared "@external").',new Error(n)}function tce(e,t){return new Error(`The interface "${e}" is invalid because the following field definition`+(t.length>1?"s are":" is")+` declared "@external": + "`+t.join(Ze.QUOTATION_JOIN)+`" +Interface fields should not be declared "@external". This is because interface fields do not resolve directly, but the "@external" directive relates to whether a field instance can be resolved by the subgraph in which it is defined.`)}function nce({directiveCoords:e,fieldSet:t,directiveName:n,subgraphName:r,targetCoords:i}){let s=i.split(Ze.LITERAL_PERIOD),a=s[s.length-1]===Ze.TYPENAME;return new Error(`The field "${e}" in subgraph "${r}" defines a "@${n}" directive with the following field set: + "${t}".`+(a?` However, none of the field set ancestors of "__typename" is declared "@external".`:` However, neither the field "${i}" nor any of its field set ancestors are declared "@external".`)+` -Consequently, "${i}" is already provided by subgraph "${r}" and should not form part of a "@${n}" directive field set.`)}function Yse(e,t){let n=[];for(let[r,i]of t){let a=[...i];n.push(` The named type "${r}" is returned by the following subgraph`+(a.length>1?"s":"")+': "'+a.join(Je.QUOTATION_JOIN)+'".')}return new Error(`Each instance of a shared field must resolve identically across subgraphs. +Consequently, "${i}" is already provided by subgraph "${r}" and should not form part of a "@${n}" directive field set.`)}function rce(e,t){let n=[];for(let[r,i]of t){let s=[...i];n.push(` The named type "${r}" is returned by the following subgraph`+(s.length>1?"s":"")+': "'+s.join(Ze.QUOTATION_JOIN)+'".')}return new Error(`Each instance of a shared field must resolve identically across subgraphs. The field "${e}" could not be federated due to incompatible types across subgraphs. The discrepancies are as follows: `+n.join(` -`))}function GM(e,t){return`The field "${e}" returns the unknown named type "${t}".`}function Jse(e,t){return new Error(GM(e,t))}function Hse(e){return new Error(`Could not find FieldData for field "${e}" -.This should never happen. Please report this issue on GitHub.`)}function zse(e,t){return new Error(`Expected named type "${e}" to be a composite output type (Object or Interface) but received "${t}". -This should never happen. Please report this issue on GitHub.`)}function Wse(e){return new Error(`The Object field "${e}" is invalidly declared "@external". An Object field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" field set, or the field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`)}function Xse(e,t){return new Error(`The "@openfed__configureDescription" directive defined on ${e} "${t}" is invalid because neither a description nor the "descriptionOverride" argument is defined.`)}function Zse(e,t){return new Error(`The coordinates "${e}" declare "@openfed__configureDescription(propagate: true)" in the following subgraphs: - "`+t.join(Je.QUOTATION_JOIN)+`" -A federated graph only supports a single description; consequently, only one subgraph may define argument "propagate" as true (this is the default value).`)}function eoe(e){return"- The following argument"+(e.length>1?"s are":" is")+` defined more than once: - "`+e.join(Je.QUOTATION_JOIN)+'"'}function toe(e){return`- The location "${e}" is defined multiple times.`}function noe(e){return`- "${e}" is not a valid directive location.`}function roe(e,t){return new Error(`The directive definition for "@${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: -`+t.join(Je.LITERAL_NEW_LINE)+'"')}function ioe(e,t){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@provides" field set.`}function aoe(e,t,n){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@${n}" field set. Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`}function soe(e,t,n){return new Error(`The subgraph that defines an entity Interface Object (using "@interfaceObject") must not define any implementation types of that interface. However, the subgraph "${t}" defines the entity Interface "${e}" as an Interface Object alongside the following implementation type`+(n.length>1?"s":"")+` of "${e}": - "`+n.join(Je.QUOTATION_JOIN)+'"')}function ooe({data:e,namedTypeData:t,nodeType:n}){let r=(0,Rie.isFieldData)(e),i=r?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${n} "${i}" is invalid because it defines type `+(0,Pie.printTypeNode)(e.type)+`; however, ${(0,Ac.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(r?"output":"input")+" type.")}function uoe(e){return`Index "${e}" is not a valid integer.`}function coe({maxIndex:e,typeString:t,value:n}){return`Index "${n}" is out of bounds for type ${t}; `+(e>0?`valid indices are 0-${e} inclusive.`:"the only valid index is 0.")}function loe({typeString:e,value:t}){return`Index "${t}" of type ${e} is non-null but must be nullable.`}z.semanticNonNullArgumentErrorMessage=`Argument "${Je.LEVELS}" validation error.`;function doe(e){let t=`${e.renamedParentTypeName}.${e.name}`,n=`The "@semanticNonNull" directive defined on field "${t}" is invalid due to inconsistent values provided to the "levels" argument across the following subgraphs: -`;for(let[r,i]of e.nullLevelsBySubgraphName)n+=` Subgraph "${r}" defines levels ${Array.from(i).sort((a,o)=>a-o)}. -`;return n+=`The list value provided to the "levels" argument must be consistently defined across all subgraphs that define "@semanticNonNull" on field "${t}".`,new Error(n)}function foe({requiredFieldNames:e,typeName:t}){return new Error(`The "@oneOf" directive defined on Input Object "${t}" is invalid because all Input fields must be optional (nullable); however, the following Input field`+(e.length>1?"s are":" is")+' required (non-nullable): "'+e.join(Je.QUOTATION_JOIN)+'".')}});var QM=w($M=>{"use strict";m();T();N();Object.defineProperty($M,"__esModule",{value:!0})});var oE=w(sE=>{"use strict";m();T();N();Object.defineProperty(sE,"__esModule",{value:!0});sE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;sE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var uE=w(Er=>{"use strict";m();T();N();Object.defineProperty(Er,"__esModule",{value:!0});Er.SUBSCRIPTION_FILTER_VALUE_DEFINITION=Er.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=Er.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=Er.SCOPE_SCALAR_DEFINITION=Er.LINK_PURPOSE_DEFINITION=Er.LINK_IMPORT_DEFINITION=Er.FIELD_SET_SCALAR_DEFINITION=Er.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=void 0;var Zt=Oe(),dn=Pr(),fn=zn(),poe=oE();Er.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:Zt.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.CONSUMER_INACTIVE_THRESHOLD),type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.INT_SCALAR)},defaultValue:{kind:Zt.Kind.INT,value:poe.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.CONSUMER_NAME),type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.STRING_SCALAR)}},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.STREAM_NAME),type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.STRING_SCALAR)}}]};Er.FIELD_SET_SCALAR_DEFINITION={kind:Zt.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.FIELD_SET_SCALAR)};Er.LINK_IMPORT_DEFINITION={kind:Zt.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.LINK_IMPORT)};Er.LINK_PURPOSE_DEFINITION={kind:Zt.Kind.ENUM_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.LINK_PURPOSE),values:[{directives:[],kind:Zt.Kind.ENUM_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.EXECUTION)},{directives:[],kind:Zt.Kind.ENUM_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SECURITY)}]};Er.SCOPE_SCALAR_DEFINITION={kind:Zt.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SCOPE_SCALAR)};Er.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.FIELD_PATH),type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.STRING_SCALAR)}},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.VALUES),type:{kind:Zt.Kind.NON_NULL_TYPE,type:{kind:Zt.Kind.LIST_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_VALUE)}}}],kind:Zt.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SUBSCRIPTION_FIELD_CONDITION)};Er.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.AND_UPPER),type:{kind:Zt.Kind.LIST_TYPE,type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.IN_UPPER),type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FIELD_CONDITION)},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.OR_UPPER),type:{kind:Zt.Kind.LIST_TYPE,type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.NOT_UPPER),type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}],kind:Zt.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SUBSCRIPTION_FILTER_CONDITION)};Er.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:Zt.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SUBSCRIPTION_FILTER_VALUE)}});var rd=w(tr=>{"use strict";m();T();N();Object.defineProperty(tr,"__esModule",{value:!0});tr.CLIENT_PERSISTED_DIRECTIVE_NAMES=tr.IGNORED_FEDERATED_TYPE_NAMES=tr.DEPENDENCIES_BY_DIRECTIVE_NAME=tr.COMPOSITE_OUTPUT_NODE_KINDS=tr.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=tr.SUBSCRIPTION_FILTER_INPUT_NAMES=tr.STREAM_CONFIGURATION_FIELD_NAMES=tr.EVENT_DIRECTIVE_NAMES=tr.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var nt=zn(),cE=Oe(),Ia=uE();tr.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([nt.ARGUMENT_DEFINITION_UPPER,nt.ENUM_UPPER,nt.ENUM_VALUE_UPPER,nt.FIELD_DEFINITION_UPPER,nt.INPUT_FIELD_DEFINITION_UPPER,nt.INPUT_OBJECT_UPPER,nt.INTERFACE_UPPER,nt.OBJECT_UPPER,nt.SCALAR_UPPER,nt.SCHEMA_UPPER,nt.UNION_UPPER]);tr.EVENT_DIRECTIVE_NAMES=new Set([nt.EDFS_KAFKA_PUBLISH,nt.EDFS_KAFKA_SUBSCRIBE,nt.EDFS_NATS_PUBLISH,nt.EDFS_NATS_REQUEST,nt.EDFS_NATS_SUBSCRIBE,nt.EDFS_REDIS_PUBLISH,nt.EDFS_REDIS_SUBSCRIBE]);tr.STREAM_CONFIGURATION_FIELD_NAMES=new Set([nt.CONSUMER_INACTIVE_THRESHOLD,nt.CONSUMER_NAME,nt.STREAM_NAME]);tr.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([nt.AND_UPPER,nt.IN_UPPER,nt.NOT_UPPER,nt.OR_UPPER]);tr.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([nt.AND_UPPER,nt.OR_UPPER]);tr.COMPOSITE_OUTPUT_NODE_KINDS=new Set([cE.Kind.INTERFACE_TYPE_DEFINITION,cE.Kind.INTERFACE_TYPE_EXTENSION,cE.Kind.OBJECT_TYPE_DEFINITION,cE.Kind.OBJECT_TYPE_EXTENSION]);tr.DEPENDENCIES_BY_DIRECTIVE_NAME=new Map([[nt.CONNECT_FIELD_RESOLVER,[Ia.FIELD_SET_SCALAR_DEFINITION]],[nt.EDFS_NATS_SUBSCRIBE,[Ia.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION]],[nt.KEY,[Ia.FIELD_SET_SCALAR_DEFINITION]],[nt.LINK,[Ia.LINK_IMPORT_DEFINITION,Ia.LINK_PURPOSE_DEFINITION]],[nt.PROVIDES,[Ia.FIELD_SET_SCALAR_DEFINITION]],[nt.REQUIRES,[Ia.FIELD_SET_SCALAR_DEFINITION]],[nt.REQUIRES_SCOPES,[Ia.SCOPE_SCALAR_DEFINITION]],[nt.SUBSCRIPTION_FILTER,[Ia.SUBSCRIPTION_FIELD_CONDITION_DEFINITION,Ia.SUBSCRIPTION_FILTER_CONDITION_DEFINITION,Ia.SUBSCRIPTION_FILTER_VALUE_DEFINITION]]]);tr.IGNORED_FEDERATED_TYPE_NAMES=new Set([nt.BOOLEAN_SCALAR,nt.EDFS_NATS_STREAM_CONFIGURATION,nt.FIELD_SET_SCALAR,nt.ID_SCALAR,nt.INT_SCALAR,nt.FLOAT_SCALAR,nt.LINK_IMPORT,nt.LINK_PURPOSE,nt.STRING_SCALAR,nt.SUBSCRIPTION_FIELD_CONDITION,nt.SUBSCRIPTION_FILTER_CONDITION,nt.SUBSCRIPTION_FILTER_VALUE]);tr.CLIENT_PERSISTED_DIRECTIVE_NAMES=new Set([nt.DEPRECATED,nt.ONE_OF,nt.SEMANTIC_NON_NULL])});var Wi=w((CS,YM)=>{"use strict";m();T();N();var ap=function(e){return e&&e.Math===Math&&e};YM.exports=ap(typeof globalThis=="object"&&globalThis)||ap(typeof window=="object"&&window)||ap(typeof self=="object"&&self)||ap(typeof global=="object"&&global)||ap(typeof CS=="object"&&CS)||function(){return this}()||Function("return this")()});var Ls=w((NPe,JM)=>{"use strict";m();T();N();JM.exports=function(e){try{return!!e()}catch(t){return!0}}});var bu=w((yPe,HM)=>{"use strict";m();T();N();var moe=Ls();HM.exports=!moe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var BS=w((vPe,zM)=>{"use strict";m();T();N();var Noe=Ls();zM.exports=!Noe(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Rc=w((bPe,WM)=>{"use strict";m();T();N();var Toe=BS(),lE=Function.prototype.call;WM.exports=Toe?lE.bind(lE):function(){return lE.apply(lE,arguments)}});var tx=w(ex=>{"use strict";m();T();N();var XM={}.propertyIsEnumerable,ZM=Object.getOwnPropertyDescriptor,Eoe=ZM&&!XM.call({1:2},1);ex.f=Eoe?function(t){var n=ZM(this,t);return!!n&&n.enumerable}:XM});var US=w((BPe,nx)=>{"use strict";m();T();N();nx.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Ei=w((xPe,ax)=>{"use strict";m();T();N();var rx=BS(),ix=Function.prototype,kS=ix.call,hoe=rx&&ix.bind.bind(kS,kS);ax.exports=rx?hoe:function(e){return function(){return kS.apply(e,arguments)}}});var ux=w((KPe,ox)=>{"use strict";m();T();N();var sx=Ei(),yoe=sx({}.toString),Ioe=sx("".slice);ox.exports=function(e){return Ioe(yoe(e),8,-1)}});var lx=w((YPe,cx)=>{"use strict";m();T();N();var goe=Ei(),_oe=Ls(),voe=ux(),MS=Object,Ooe=goe("".split);cx.exports=_oe(function(){return!MS("z").propertyIsEnumerable(0)})?function(e){return voe(e)==="String"?Ooe(e,""):MS(e)}:MS});var xS=w((WPe,dx)=>{"use strict";m();T();N();dx.exports=function(e){return e==null}});var qS=w((tFe,fx)=>{"use strict";m();T();N();var Soe=xS(),Doe=TypeError;fx.exports=function(e){if(Soe(e))throw new Doe("Can't call method on "+e);return e}});var dE=w((aFe,px)=>{"use strict";m();T();N();var boe=lx(),Aoe=qS();px.exports=function(e){return boe(Aoe(e))}});var ga=w((cFe,mx)=>{"use strict";m();T();N();var VS=typeof document=="object"&&document.all;mx.exports=typeof VS=="undefined"&&VS!==void 0?function(e){return typeof e=="function"||e===VS}:function(e){return typeof e=="function"}});var id=w((pFe,Nx)=>{"use strict";m();T();N();var Roe=ga();Nx.exports=function(e){return typeof e=="object"?e!==null:Roe(e)}});var fE=w((EFe,Tx)=>{"use strict";m();T();N();var jS=Wi(),Poe=ga(),Foe=function(e){return Poe(e)?e:void 0};Tx.exports=function(e,t){return arguments.length<2?Foe(jS[e]):jS[e]&&jS[e][t]}});var hx=w((gFe,Ex)=>{"use strict";m();T();N();var woe=Ei();Ex.exports=woe({}.isPrototypeOf)});var _x=w((SFe,gx)=>{"use strict";m();T();N();var Loe=Wi(),yx=Loe.navigator,Ix=yx&&yx.userAgent;gx.exports=Ix?String(Ix):""});var Rx=w((RFe,Ax)=>{"use strict";m();T();N();var bx=Wi(),KS=_x(),vx=bx.process,Ox=bx.Deno,Sx=vx&&vx.versions||Ox&&Ox.version,Dx=Sx&&Sx.v8,_a,pE;Dx&&(_a=Dx.split("."),pE=_a[0]>0&&_a[0]<4?1:+(_a[0]+_a[1]));!pE&&KS&&(_a=KS.match(/Edge\/(\d+)/),(!_a||_a[1]>=74)&&(_a=KS.match(/Chrome\/(\d+)/),_a&&(pE=+_a[1])));Ax.exports=pE});var GS=w((LFe,Fx)=>{"use strict";m();T();N();var Px=Rx(),Coe=Ls(),Boe=Wi(),Uoe=Boe.String;Fx.exports=!!Object.getOwnPropertySymbols&&!Coe(function(){var e=Symbol("symbol detection");return!Uoe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Px&&Px<41})});var $S=w((kFe,wx)=>{"use strict";m();T();N();var koe=GS();wx.exports=koe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var QS=w((VFe,Lx)=>{"use strict";m();T();N();var Moe=fE(),xoe=ga(),qoe=hx(),Voe=$S(),joe=Object;Lx.exports=Voe?function(e){return typeof e=="symbol"}:function(e){var t=Moe("Symbol");return xoe(t)&&qoe(t.prototype,joe(e))}});var Bx=w(($Fe,Cx)=>{"use strict";m();T();N();var Koe=String;Cx.exports=function(e){try{return Koe(e)}catch(t){return"Object"}}});var mE=w((HFe,Ux)=>{"use strict";m();T();N();var Goe=ga(),$oe=Bx(),Qoe=TypeError;Ux.exports=function(e){if(Goe(e))return e;throw new Qoe($oe(e)+" is not a function")}});var YS=w((ZFe,kx)=>{"use strict";m();T();N();var Yoe=mE(),Joe=xS();kx.exports=function(e,t){var n=e[t];return Joe(n)?void 0:Yoe(n)}});var xx=w((rwe,Mx)=>{"use strict";m();T();N();var JS=Rc(),HS=ga(),zS=id(),Hoe=TypeError;Mx.exports=function(e,t){var n,r;if(t==="string"&&HS(n=e.toString)&&!zS(r=JS(n,e))||HS(n=e.valueOf)&&!zS(r=JS(n,e))||t!=="string"&&HS(n=e.toString)&&!zS(r=JS(n,e)))return r;throw new Hoe("Can't convert object to primitive value")}});var Vx=w((owe,qx)=>{"use strict";m();T();N();qx.exports=!1});var NE=w((dwe,Kx)=>{"use strict";m();T();N();var jx=Wi(),zoe=Object.defineProperty;Kx.exports=function(e,t){try{zoe(jx,e,{value:t,configurable:!0,writable:!0})}catch(n){jx[e]=t}return t}});var TE=w((Nwe,Qx)=>{"use strict";m();T();N();var Woe=Vx(),Xoe=Wi(),Zoe=NE(),Gx="__core-js_shared__",$x=Qx.exports=Xoe[Gx]||Zoe(Gx,{});($x.versions||($x.versions=[])).push({version:"3.41.0",mode:Woe?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var WS=w((ywe,Jx)=>{"use strict";m();T();N();var Yx=TE();Jx.exports=function(e,t){return Yx[e]||(Yx[e]=t||{})}});var zx=w((vwe,Hx)=>{"use strict";m();T();N();var eue=qS(),tue=Object;Hx.exports=function(e){return tue(eue(e))}});var Au=w((bwe,Wx)=>{"use strict";m();T();N();var nue=Ei(),rue=zx(),iue=nue({}.hasOwnProperty);Wx.exports=Object.hasOwn||function(t,n){return iue(rue(t),n)}});var XS=w((Fwe,Xx)=>{"use strict";m();T();N();var aue=Ei(),sue=0,oue=Math.random(),uue=aue(1 .toString);Xx.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+uue(++sue+oue,36)}});var tq=w((Bwe,eq)=>{"use strict";m();T();N();var cue=Wi(),lue=WS(),Zx=Au(),due=XS(),fue=GS(),pue=$S(),ad=cue.Symbol,ZS=lue("wks"),mue=pue?ad.for||ad:ad&&ad.withoutSetter||due;eq.exports=function(e){return Zx(ZS,e)||(ZS[e]=fue&&Zx(ad,e)?ad[e]:mue("Symbol."+e)),ZS[e]}});var aq=w((xwe,iq)=>{"use strict";m();T();N();var Nue=Rc(),nq=id(),rq=QS(),Tue=YS(),Eue=xx(),hue=tq(),yue=TypeError,Iue=hue("toPrimitive");iq.exports=function(e,t){if(!nq(e)||rq(e))return e;var n=Tue(e,Iue),r;if(n){if(t===void 0&&(t="default"),r=Nue(n,e,t),!nq(r)||rq(r))return r;throw new yue("Can't convert object to primitive value")}return t===void 0&&(t="number"),Eue(e,t)}});var eD=w((Kwe,sq)=>{"use strict";m();T();N();var gue=aq(),_ue=QS();sq.exports=function(e){var t=gue(e,"string");return _ue(t)?t:t+""}});var cq=w((Ywe,uq)=>{"use strict";m();T();N();var vue=Wi(),oq=id(),tD=vue.document,Oue=oq(tD)&&oq(tD.createElement);uq.exports=function(e){return Oue?tD.createElement(e):{}}});var nD=w((Wwe,lq)=>{"use strict";m();T();N();var Sue=bu(),Due=Ls(),bue=cq();lq.exports=!Sue&&!Due(function(){return Object.defineProperty(bue("div"),"a",{get:function(){return 7}}).a!==7})});var rD=w(fq=>{"use strict";m();T();N();var Aue=bu(),Rue=Rc(),Pue=tx(),Fue=US(),wue=dE(),Lue=eD(),Cue=Au(),Bue=nD(),dq=Object.getOwnPropertyDescriptor;fq.f=Aue?dq:function(t,n){if(t=wue(t),n=Lue(n),Bue)try{return dq(t,n)}catch(r){}if(Cue(t,n))return Fue(!Rue(Pue.f,t,n),t[n])}});var mq=w((aLe,pq)=>{"use strict";m();T();N();var Uue=bu(),kue=Ls();pq.exports=Uue&&kue(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var sp=w((cLe,Nq)=>{"use strict";m();T();N();var Mue=id(),xue=String,que=TypeError;Nq.exports=function(e){if(Mue(e))return e;throw new que(xue(e)+" is not an object")}});var hE=w(Eq=>{"use strict";m();T();N();var Vue=bu(),jue=nD(),Kue=mq(),EE=sp(),Tq=eD(),Gue=TypeError,iD=Object.defineProperty,$ue=Object.getOwnPropertyDescriptor,aD="enumerable",sD="configurable",oD="writable";Eq.f=Vue?Kue?function(t,n,r){if(EE(t),n=Tq(n),EE(r),typeof t=="function"&&n==="prototype"&&"value"in r&&oD in r&&!r[oD]){var i=$ue(t,n);i&&i[oD]&&(t[n]=r.value,r={configurable:sD in r?r[sD]:i[sD],enumerable:aD in r?r[aD]:i[aD],writable:!1})}return iD(t,n,r)}:iD:function(t,n,r){if(EE(t),n=Tq(n),EE(r),jue)try{return iD(t,n,r)}catch(i){}if("get"in r||"set"in r)throw new Gue("Accessors not supported");return"value"in r&&(t[n]=r.value),t}});var uD=w((ELe,hq)=>{"use strict";m();T();N();var Que=bu(),Yue=hE(),Jue=US();hq.exports=Que?function(e,t,n){return Yue.f(e,t,Jue(1,n))}:function(e,t,n){return e[t]=n,e}});var gq=w((gLe,Iq)=>{"use strict";m();T();N();var cD=bu(),Hue=Au(),yq=Function.prototype,zue=cD&&Object.getOwnPropertyDescriptor,lD=Hue(yq,"name"),Wue=lD&&function(){}.name==="something",Xue=lD&&(!cD||cD&&zue(yq,"name").configurable);Iq.exports={EXISTS:lD,PROPER:Wue,CONFIGURABLE:Xue}});var vq=w((SLe,_q)=>{"use strict";m();T();N();var Zue=Ei(),ece=ga(),dD=TE(),tce=Zue(Function.toString);ece(dD.inspectSource)||(dD.inspectSource=function(e){return tce(e)});_q.exports=dD.inspectSource});var Dq=w((RLe,Sq)=>{"use strict";m();T();N();var nce=Wi(),rce=ga(),Oq=nce.WeakMap;Sq.exports=rce(Oq)&&/native code/.test(String(Oq))});var Rq=w((LLe,Aq)=>{"use strict";m();T();N();var ice=WS(),ace=XS(),bq=ice("keys");Aq.exports=function(e){return bq[e]||(bq[e]=ace(e))}});var fD=w((kLe,Pq)=>{"use strict";m();T();N();Pq.exports={}});var Cq=w((VLe,Lq)=>{"use strict";m();T();N();var sce=Dq(),wq=Wi(),oce=id(),uce=uD(),pD=Au(),mD=TE(),cce=Rq(),lce=fD(),Fq="Object already initialized",ND=wq.TypeError,dce=wq.WeakMap,yE,op,IE,fce=function(e){return IE(e)?op(e):yE(e,{})},pce=function(e){return function(t){var n;if(!oce(t)||(n=op(t)).type!==e)throw new ND("Incompatible receiver, "+e+" required");return n}};sce||mD.state?(va=mD.state||(mD.state=new dce),va.get=va.get,va.has=va.has,va.set=va.set,yE=function(e,t){if(va.has(e))throw new ND(Fq);return t.facade=e,va.set(e,t),t},op=function(e){return va.get(e)||{}},IE=function(e){return va.has(e)}):(Pc=cce("state"),lce[Pc]=!0,yE=function(e,t){if(pD(e,Pc))throw new ND(Fq);return t.facade=e,uce(e,Pc,t),t},op=function(e){return pD(e,Pc)?e[Pc]:{}},IE=function(e){return pD(e,Pc)});var va,Pc;Lq.exports={set:yE,get:op,has:IE,enforce:fce,getterFor:pce}});var Mq=w(($Le,kq)=>{"use strict";m();T();N();var ED=Ei(),mce=Ls(),Nce=ga(),gE=Au(),TD=bu(),Tce=gq().CONFIGURABLE,Ece=vq(),Uq=Cq(),hce=Uq.enforce,yce=Uq.get,Bq=String,_E=Object.defineProperty,Ice=ED("".slice),gce=ED("".replace),_ce=ED([].join),vce=TD&&!mce(function(){return _E(function(){},"length",{value:8}).length!==8}),Oce=String(String).split("String"),Sce=kq.exports=function(e,t,n){Ice(Bq(t),0,7)==="Symbol("&&(t="["+gce(Bq(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!gE(e,"name")||Tce&&e.name!==t)&&(TD?_E(e,"name",{value:t,configurable:!0}):e.name=t),vce&&n&&gE(n,"arity")&&e.length!==n.arity&&_E(e,"length",{value:n.arity});try{n&&gE(n,"constructor")&&n.constructor?TD&&_E(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=hce(e);return gE(r,"source")||(r.source=_ce(Oce,typeof t=="string"?t:"")),e};Function.prototype.toString=Sce(function(){return Nce(this)&&yce(this).source||Ece(this)},"toString")});var qq=w((HLe,xq)=>{"use strict";m();T();N();var Dce=ga(),bce=hE(),Ace=Mq(),Rce=NE();xq.exports=function(e,t,n,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:t;if(Dce(n)&&Ace(n,a,r),r.global)i?e[t]=n:Rce(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=n:bce.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}});var jq=w((ZLe,Vq)=>{"use strict";m();T();N();var Pce=Math.ceil,Fce=Math.floor;Vq.exports=Math.trunc||function(t){var n=+t;return(n>0?Fce:Pce)(n)}});var vE=w((rCe,Kq)=>{"use strict";m();T();N();var wce=jq();Kq.exports=function(e){var t=+e;return t!==t||t===0?0:wce(t)}});var $q=w((oCe,Gq)=>{"use strict";m();T();N();var Lce=vE(),Cce=Math.max,Bce=Math.min;Gq.exports=function(e,t){var n=Lce(e);return n<0?Cce(n+t,0):Bce(n,t)}});var Yq=w((dCe,Qq)=>{"use strict";m();T();N();var Uce=vE(),kce=Math.min;Qq.exports=function(e){var t=Uce(e);return t>0?kce(t,9007199254740991):0}});var Hq=w((NCe,Jq)=>{"use strict";m();T();N();var Mce=Yq();Jq.exports=function(e){return Mce(e.length)}});var Xq=w((yCe,Wq)=>{"use strict";m();T();N();var xce=dE(),qce=$q(),Vce=Hq(),zq=function(e){return function(t,n,r){var i=xce(t),a=Vce(i);if(a===0)return!e&&-1;var o=qce(r,a),c;if(e&&n!==n){for(;a>o;)if(c=i[o++],c!==c)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}};Wq.exports={includes:zq(!0),indexOf:zq(!1)}});var t1=w((vCe,e1)=>{"use strict";m();T();N();var jce=Ei(),hD=Au(),Kce=dE(),Gce=Xq().indexOf,$ce=fD(),Zq=jce([].push);e1.exports=function(e,t){var n=Kce(e),r=0,i=[],a;for(a in n)!hD($ce,a)&&hD(n,a)&&Zq(i,a);for(;t.length>r;)hD(n,a=t[r++])&&(~Gce(i,a)||Zq(i,a));return i}});var r1=w((bCe,n1)=>{"use strict";m();T();N();n1.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var a1=w(i1=>{"use strict";m();T();N();var Qce=t1(),Yce=r1(),Jce=Yce.concat("length","prototype");i1.f=Object.getOwnPropertyNames||function(t){return Qce(t,Jce)}});var o1=w(s1=>{"use strict";m();T();N();s1.f=Object.getOwnPropertySymbols});var c1=w((xCe,u1)=>{"use strict";m();T();N();var Hce=fE(),zce=Ei(),Wce=a1(),Xce=o1(),Zce=sp(),ele=zce([].concat);u1.exports=Hce("Reflect","ownKeys")||function(t){var n=Wce.f(Zce(t)),r=Xce.f;return r?ele(n,r(t)):n}});var f1=w((KCe,d1)=>{"use strict";m();T();N();var l1=Au(),tle=c1(),nle=rD(),rle=hE();d1.exports=function(e,t,n){for(var r=tle(t),i=rle.f,a=nle.f,o=0;o{"use strict";m();T();N();var ile=Ls(),ale=ga(),sle=/#|\.prototype\./,up=function(e,t){var n=ule[ole(e)];return n===lle?!0:n===cle?!1:ale(t)?ile(t):!!t},ole=up.normalize=function(e){return String(e).replace(sle,".").toLowerCase()},ule=up.data={},cle=up.NATIVE="N",lle=up.POLYFILL="P";p1.exports=up});var yD=w((WCe,N1)=>{"use strict";m();T();N();var OE=Wi(),dle=rD().f,fle=uD(),ple=qq(),mle=NE(),Nle=f1(),Tle=m1();N1.exports=function(e,t){var n=e.target,r=e.global,i=e.stat,a,o,c,l,d,p;if(r?o=OE:i?o=OE[n]||mle(n,{}):o=OE[n]&&OE[n].prototype,o)for(c in t){if(d=t[c],e.dontCallGetSet?(p=dle(o,c),l=p&&p.value):l=o[c],a=Tle(r?c:n+(i?".":"#")+c,e.forced),!a&&l!==void 0){if(typeof d==typeof l)continue;Nle(d,l)}(e.sham||l&&l.sham)&&fle(d,"sham",!0),ple(o,c,d,e)}}});var cp=w((tBe,T1)=>{"use strict";m();T();N();var ID=Ei(),SE=Set.prototype;T1.exports={Set,add:ID(SE.add),has:ID(SE.has),remove:ID(SE.delete),proto:SE}});var gD=w((aBe,E1)=>{"use strict";m();T();N();var Ele=cp().has;E1.exports=function(e){return Ele(e),e}});var y1=w((cBe,h1)=>{"use strict";m();T();N();var hle=Ei(),yle=mE();h1.exports=function(e,t,n){try{return hle(yle(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}}});var _D=w((pBe,I1)=>{"use strict";m();T();N();var Ile=y1(),gle=cp();I1.exports=Ile(gle.proto,"size","get")||function(e){return e.size}});var vD=w((EBe,g1)=>{"use strict";m();T();N();var _le=Rc();g1.exports=function(e,t,n){for(var r=n?e:e.iterator,i=e.next,a,o;!(a=_le(i,r)).done;)if(o=t(a.value),o!==void 0)return o}});var b1=w((gBe,D1)=>{"use strict";m();T();N();var _1=Ei(),vle=vD(),v1=cp(),Ole=v1.Set,O1=v1.proto,Sle=_1(O1.forEach),S1=_1(O1.keys),Dle=S1(new Ole).next;D1.exports=function(e,t,n){return n?vle({iterator:S1(e),next:Dle},t):Sle(e,t)}});var R1=w((SBe,A1)=>{"use strict";m();T();N();A1.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var OD=w((RBe,B1)=>{"use strict";m();T();N();var P1=mE(),L1=sp(),F1=Rc(),ble=vE(),Ale=R1(),w1="Invalid size",Rle=RangeError,Ple=TypeError,Fle=Math.max,C1=function(e,t){this.set=e,this.size=Fle(t,0),this.has=P1(e.has),this.keys=P1(e.keys)};C1.prototype={getIterator:function(){return Ale(L1(F1(this.keys,this.set)))},includes:function(e){return F1(this.has,this.set,e)}};B1.exports=function(e){L1(e);var t=+e.size;if(t!==t)throw new Ple(w1);var n=ble(t);if(n<0)throw new Rle(w1);return new C1(e,n)}});var k1=w((LBe,U1)=>{"use strict";m();T();N();var wle=gD(),Lle=_D(),Cle=b1(),Ble=OD();U1.exports=function(t){var n=wle(this),r=Ble(t);return Lle(n)>r.size?!1:Cle(n,function(i){if(!r.includes(i))return!1},!0)!==!1}});var SD=w((kBe,q1)=>{"use strict";m();T();N();var Ule=fE(),M1=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},x1=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};q1.exports=function(e,t){var n=Ule("Set");try{new n()[e](M1(0));try{return new n()[e](M1(-1)),!1}catch(i){if(!t)return!0;try{return new n()[e](x1(-1/0)),!1}catch(a){var r=new n;return r.add(1),r.add(2),t(r[e](x1(1/0)))}}}catch(i){return!1}}});var V1=w(()=>{"use strict";m();T();N();var kle=yD(),Mle=k1(),xle=SD(),qle=!xle("isSubsetOf",function(e){return e});kle({target:"Set",proto:!0,real:!0,forced:qle},{isSubsetOf:Mle})});var j1=w(()=>{"use strict";m();T();N();V1()});var $1=w((WBe,G1)=>{"use strict";m();T();N();var Vle=Rc(),K1=sp(),jle=YS();G1.exports=function(e,t,n){var r,i;K1(e);try{if(r=jle(e,"return"),!r){if(t==="throw")throw n;return n}r=Vle(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return K1(r),n}});var Y1=w((tUe,Q1)=>{"use strict";m();T();N();var Kle=gD(),Gle=cp().has,$le=_D(),Qle=OD(),Yle=vD(),Jle=$1();Q1.exports=function(t){var n=Kle(this),r=Qle(t);if($le(n){"use strict";m();T();N();var Hle=yD(),zle=Y1(),Wle=SD(),Xle=!Wle("isSupersetOf",function(e){return!e});Hle({target:"Set",proto:!0,real:!0,forced:Xle},{isSupersetOf:zle})});var H1=w(()=>{"use strict";m();T();N();J1()});var lp=w(Pn=>{"use strict";m();T();N();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.subtractSet=ede;Pn.mapToArrayOfValues=tde;Pn.kindToConvertedTypeString=nde;Pn.fieldDatasToSimpleFieldDatas=rde;Pn.isNodeLeaf=ide;Pn.newEntityInterfaceFederationData=ade;Pn.upsertEntityInterfaceFederationData=sde;Pn.upsertEntityData=ude;Pn.updateEntityData=z1;Pn.newFieldAuthorizationData=cde;Pn.newAuthorizationData=lde;Pn.addScopes=DD;Pn.mergeRequiredScopesByAND=AE;Pn.mergeRequiredScopesByOR=bD;Pn.upsertFieldAuthorizationData=W1;Pn.upsertAuthorizationData=pde;Pn.upsertAuthorizationConfiguration=mde;Pn.isObjectNodeKind=Nde;Pn.isCompositeOutputNodeKind=Tde;Pn.isObjectDefinitionData=Ede;Pn.getNodeCoords=hde;var Kt=Oe(),ii=zn(),DE=Fr(),bE=gu();j1();H1();var Zle=rd();function ede(e,t){for(let n of e)t.delete(n)}function tde(e){let t=[];for(let n of e.values())t.push(n);return t}function nde(e){switch(e){case Kt.Kind.BOOLEAN:return ii.BOOLEAN_SCALAR;case Kt.Kind.ENUM:case Kt.Kind.ENUM_TYPE_DEFINITION:case Kt.Kind.ENUM_TYPE_EXTENSION:return ii.ENUM;case Kt.Kind.ENUM_VALUE_DEFINITION:return ii.ENUM_VALUE;case Kt.Kind.FIELD_DEFINITION:return ii.FIELD;case Kt.Kind.FLOAT:return ii.FLOAT_SCALAR;case Kt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Kt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return ii.INPUT_OBJECT;case Kt.Kind.INPUT_VALUE_DEFINITION:return ii.INPUT_VALUE;case Kt.Kind.INT:return ii.INT_SCALAR;case Kt.Kind.INTERFACE_TYPE_DEFINITION:case Kt.Kind.INTERFACE_TYPE_EXTENSION:return ii.INTERFACE;case Kt.Kind.NULL:return ii.NULL;case Kt.Kind.OBJECT:case Kt.Kind.OBJECT_TYPE_DEFINITION:case Kt.Kind.OBJECT_TYPE_EXTENSION:return ii.OBJECT;case Kt.Kind.STRING:return ii.STRING_SCALAR;case Kt.Kind.SCALAR_TYPE_DEFINITION:case Kt.Kind.SCALAR_TYPE_EXTENSION:return ii.SCALAR;case Kt.Kind.UNION_TYPE_DEFINITION:case Kt.Kind.UNION_TYPE_EXTENSION:return ii.UNION;default:return e}}function rde(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function ide(e){if(!e)return!0;switch(e){case Kt.Kind.OBJECT_TYPE_DEFINITION:case Kt.Kind.INTERFACE_TYPE_DEFINITION:case Kt.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function ade(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphNames:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function sde(e,t,n){(0,DE.addIterableToSet)({source:t.concreteTypeNames,target:e.concreteTypeNames}),e.subgraphDataByTypeName.set(n,t),e.fieldDatasBySubgraphName.set(n,t.fieldDatas),(0,DE.addIterableToSet)({source:t.interfaceFieldNames,target:e.interfaceFieldNames}),(0,DE.addIterableToSet)({source:t.interfaceObjectFieldNames,target:e.interfaceObjectFieldNames}),t.isInterfaceObject&&e.interfaceObjectSubgraphNames.add(n)}function ode({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:n}){let r=new Map([[t,e]]),i=new Map;for(let[a,{documentNode:o,isUnresolvable:c}]of e)c||i.set(a,o);return{keyFieldSetDatasBySubgraphName:r,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:n}}function ude({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}){let i=e.get(r);i?z1({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:n}):e.set(r,ode({keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}))}function z1({entityData:e,keyFieldSetDataByFieldSet:t,subgraphName:n}){e.subgraphNames.add(n);let r=e.keyFieldSetDatasBySubgraphName.get(n);if(!r){e.keyFieldSetDatasBySubgraphName.set(n,t);for(let[i,{documentNode:a,isUnresolvable:o}]of t)o||e.documentNodeByKeyFieldSet.set(i,a);return}for(let[i,a]of t){a.isUnresolvable||e.documentNodeByKeyFieldSet.set(i,a.documentNode);let o=r.get(i);if(o){o.isUnresolvable||(o.isUnresolvable=a.isUnresolvable);continue}r.set(i,a)}}function cde(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function lde(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function DD(e,t){for(let n=e.length-1;n>-1;n--){if(e[n].isSubsetOf(t))return;e[n].isSupersetOf(t)&&e.splice(n,1)}e.push(t)}function AE(e,t){if(e.length<1||t.length<1){for(let r of t)e.push(new Set(r));return e}let n=[];for(let r of t)for(let i of e){let a=(0,DE.addSets)(r,i);DD(n,a)}return n}function bD(e,t){for(let n of t)DD(e,n);return e.length<=bE.MAX_OR_SCOPES}function W1(e,t){var i,a;let n=t.fieldName,r=e.get(n);return r?((i=r.inheritedData).requiresAuthentication||(i.requiresAuthentication=t.inheritedData.requiresAuthentication),(a=r.originalData).requiresAuthentication||(a.requiresAuthentication=t.originalData.requiresAuthentication),!bD(r.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||r.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>bE.MAX_OR_SCOPES||r.originalData.requiredScopes.length*t.originalData.requiredScopes.length>bE.MAX_OR_SCOPES?!1:(r.inheritedData.requiredScopes=AE(r.inheritedData.requiredScopes,t.inheritedData.requiredScopes),r.originalData.requiredScopes=AE(r.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(n,X1(t)),!0)}function dde(e){let t=new Map;for(let[n,r]of e)t.set(n,X1(r));return t}function X1(e){return{fieldName:e.fieldName,inheritedData:{requiredScopes:[...e.inheritedData.requiredScopes],requiredScopesByOR:[...e.inheritedData.requiredScopes],requiresAuthentication:e.inheritedData.requiresAuthentication},originalData:{requiredScopes:[...e.originalData.requiredScopes],requiresAuthentication:e.originalData.requiresAuthentication}}}function fde(e){return{fieldAuthDataByFieldName:dde(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function pde(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,fde(t));return}r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),!bD(r.requiredScopesByOR,t.requiredScopes)||r.requiredScopes.length*t.requiredScopes.length>bE.MAX_OR_SCOPES?n.add(t.typeName):r.requiredScopes=AE(r.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)W1(r.fieldAuthDataByFieldName,a)||n.add(`${t.typeName}.${i}`)}function mde(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthDataByFieldName){let a=`${n}.${r}`,o=e.get(a);o?(o.requiresAuthentication=i.inheritedData.requiresAuthentication,o.requiredScopes=i.inheritedData.requiredScopes.map(c=>[...c]),o.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(c=>[...c])):e.set(a,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(c=>[...c]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(c=>[...c])})}}function Nde(e){return e===Kt.Kind.OBJECT_TYPE_DEFINITION||e===Kt.Kind.OBJECT_TYPE_EXTENSION}function Tde(e){return Zle.COMPOSITE_OUTPUT_NODE_KINDS.has(e)}function Ede(e){return e?e.kind===Kt.Kind.OBJECT_TYPE_DEFINITION:!1}function hde(e){switch(e.kind){case Kt.Kind.ARGUMENT:case Kt.Kind.FIELD_DEFINITION:case Kt.Kind.INPUT_VALUE_DEFINITION:case Kt.Kind.ENUM_VALUE_DEFINITION:return e.federatedCoords;default:return e.name}}});var AD=w(Ge=>{"use strict";m();T();N();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.TAG_DEFINITION_DATA=Ge.SUBSCRIPTION_FILTER_DEFINITION_DATA=Ge.SHAREABLE_DEFINITION_DATA=Ge.SPECIFIED_BY_DEFINITION_DATA=Ge.SEMANTIC_NON_NULL_DATA=Ge.REQUIRES_SCOPES_DEFINITION_DATA=Ge.REQUIRE_FETCH_REASONS_DEFINITION_DATA=Ge.REDIS_SUBSCRIBE_DEFINITION_DATA=Ge.REDIS_PUBLISH_DEFINITION_DATA=Ge.REQUIRES_DEFINITION_DATA=Ge.PROVIDES_DEFINITION_DATA=Ge.LINK_DEFINITION_DATA=Ge.KEY_DEFINITION_DATA=Ge.OVERRIDE_DEFINITION_DATA=Ge.ONE_OF_DEFINITION_DATA=Ge.NATS_SUBSCRIBE_DEFINITION_DATA=Ge.NATS_REQUEST_DEFINITION_DATA=Ge.NATS_PUBLISH_DEFINITION_DATA=Ge.KAFKA_SUBSCRIBE_DEFINITION_DATA=Ge.KAFKA_PUBLISH_DEFINITION_DATA=Ge.INTERFACE_OBJECT_DEFINITION_DATA=Ge.INACCESSIBLE_DEFINITION_DATA=Ge.EXTERNAL_DEFINITION_DATA=Ge.EXTENDS_DEFINITION_DATA=Ge.DEPRECATED_DEFINITION_DATA=Ge.CONNECT_FIELD_RESOLVER_DEFINITION_DATA=Ge.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=Ge.CONFIGURE_DESCRIPTION_DEFINITION_DATA=Ge.COMPOSE_DIRECTIVE_DEFINITION_DATA=Ge.AUTHENTICATED_DEFINITION_DATA=void 0;var Xi=Pr(),Gt=Oe(),x=zn(),en=kf(),Fn=sT();Ge.AUTHENTICATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([x.ENUM_UPPER,x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER]),name:x.AUTHENTICATED,node:en.AUTHENTICATED_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.COMPOSE_DIRECTIVE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.NAME,{name:x.NAME,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([x.SCHEMA_UPPER]),name:x.COMPOSE_DIRECTIVE,node:en.COMPOSE_DIRECTIVE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.NAME])};Ge.CONFIGURE_DESCRIPTION_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.PROPAGATE,{name:x.PROPAGATE,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.BOOLEAN_SCALAR)},defaultValue:{kind:Gt.Kind.BOOLEAN,value:!0}}],[x.DESCRIPTION_OVERRIDE,{name:x.DESCRIPTION_OVERRIDE,typeNode:(0,Xi.stringToNamedTypeNode)(x.STRING_SCALAR)}]]),isRepeatable:!1,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.INPUT_OBJECT_UPPER,x.INPUT_FIELD_DEFINITION_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER,x.SCHEMA_UPPER,x.UNION_UPPER]),name:x.CONFIGURE_DESCRIPTION,node:en.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([x.PROPAGATE,x.DESCRIPTION_OVERRIDE]),requiredArgumentNames:new Set};Ge.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.PROPAGATE,{name:x.PROPAGATE,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.BOOLEAN_SCALAR)},defaultValue:{kind:Gt.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([x.ENUM_UPPER,x.INPUT_OBJECT_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.CONFIGURE_CHILD_DESCRIPTIONS,node:en.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([x.PROPAGATE]),requiredArgumentNames:new Set};Ge.CONNECT_FIELD_RESOLVER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CONTEXT,{name:x.CONTEXT,typeNode:Fn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.CONNECT_FIELD_RESOLVER,node:en.CONNECT_FIELD_RESOLVER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.CONTEXT])};Ge.DEPRECATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.REASON,{name:x.REASON,typeNode:(0,Xi.stringToNamedTypeNode)(x.STRING_SCALAR),defaultValue:{kind:Gt.Kind.STRING,value:Gt.DEFAULT_DEPRECATION_REASON}}]]),isRepeatable:!1,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INPUT_FIELD_DEFINITION_UPPER]),name:x.DEPRECATED,node:en.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([x.REASON]),requiredArgumentNames:new Set};Ge.EXTENDS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.EXTENDS,node:en.EXTENDS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.EXTERNAL_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER,x.OBJECT_UPPER]),name:x.EXTERNAL,node:en.EXTERNAL_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.INACCESSIBLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INPUT_FIELD_DEFINITION_UPPER,x.INPUT_OBJECT_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER,x.UNION_UPPER]),name:x.INACCESSIBLE,node:en.INACCESSIBLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.INTERFACE_OBJECT_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.OBJECT_UPPER]),name:x.INTERFACE_OBJECT,node:en.INTERFACE_OBJECT_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.KAFKA_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.TOPIC,{name:x.TOPIC,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_KAFKA_PUBLISH,node:en.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.TOPIC])};Ge.KAFKA_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.TOPICS,{name:x.TOPICS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:Fn.REQUIRED_STRING_TYPE_NODE}}}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_KAFKA_SUBSCRIBE,node:en.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.TOPICS])};Ge.NATS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SUBJECT,{name:x.SUBJECT,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_NATS_PUBLISH,node:en.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.SUBJECT])};Ge.NATS_REQUEST_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SUBJECT,{name:x.SUBJECT,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_NATS_REQUEST,node:en.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.SUBJECT])};Ge.NATS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SUBJECTS,{name:x.SUBJECTS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:Fn.REQUIRED_STRING_TYPE_NODE}}}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}],[x.STREAM_CONFIGURATION,{name:x.STREAM_CONFIGURATION,typeNode:(0,Xi.stringToNamedTypeNode)(x.EDFS_NATS_STREAM_CONFIGURATION)}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_NATS_SUBSCRIBE,node:en.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID,x.STREAM_CONFIGURATION]),requiredArgumentNames:new Set([x.SUBJECTS])};Ge.ONE_OF_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([x.INPUT_OBJECT_UPPER]),name:x.ONE_OF,node:en.ONE_OF_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.OVERRIDE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FROM,{name:x.FROM,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.OVERRIDE,node:en.OVERRIDE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.FROM])};Ge.KEY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FIELDS,{name:x.FIELDS,typeNode:Fn.REQUIRED_FIELDSET_TYPE_NODE}],[x.RESOLVABLE,{name:x.RESOLVABLE,typeNode:(0,Xi.stringToNamedTypeNode)(x.BOOLEAN_SCALAR),defaultValue:{kind:Gt.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!0,locations:new Set([x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.KEY,node:en.KEY_DEFINITION,optionalArgumentNames:new Set([x.RESOLVABLE]),requiredArgumentNames:new Set([x.FIELDS])};Ge.LINK_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.URL_LOWER,{name:x.URL_LOWER,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}],[x.AS,{name:x.AS,typeNode:(0,Xi.stringToNamedTypeNode)(x.STRING_SCALAR)}],[x.FOR,{name:x.FOR,typeNode:(0,Xi.stringToNamedTypeNode)(x.LINK_PURPOSE)}],[x.IMPORT,{name:x.IMPORT,typeNode:{kind:Gt.Kind.LIST_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.LINK_IMPORT)}}]]),isRepeatable:!0,locations:new Set([x.SCHEMA_UPPER]),name:x.LINK,node:en.LINK_DEFINITION,optionalArgumentNames:new Set([x.AS,x.FOR,x.IMPORT]),requiredArgumentNames:new Set([x.URL_LOWER])};Ge.PROVIDES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FIELDS,{name:x.FIELDS,typeNode:Fn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.PROVIDES,node:en.PROVIDES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.FIELDS])};Ge.REQUIRES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FIELDS,{name:x.FIELDS,typeNode:Fn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.REQUIRES,node:en.REQUIRES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.FIELDS])};Ge.REDIS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CHANNEL,{name:x.CHANNEL,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_REDIS_PUBLISH,node:en.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.CHANNEL])};Ge.REDIS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CHANNELS,{name:x.CHANNELS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:Fn.REQUIRED_STRING_TYPE_NODE}}}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Fn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_REDIS_SUBSCRIBE,node:en.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.CHANNELS])};Ge.REQUIRE_FETCH_REASONS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.REQUIRE_FETCH_REASONS,node:en.REQUIRE_FETCH_REASONS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.REQUIRES_SCOPES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SCOPES,{name:x.SCOPES,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.SCOPE_SCALAR)}}}}}}]]),isRepeatable:!1,locations:new Set([x.ENUM_UPPER,x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER]),name:x.REQUIRES_SCOPES,node:en.REQUIRES_SCOPES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.SCOPES])};Ge.SEMANTIC_NON_NULL_DATA={argumentTypeNodeByName:new Map([[x.LEVELS,{name:x.LEVELS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.INT_SCALAR)}}},defaultValue:{kind:Gt.Kind.LIST,values:[{kind:Gt.Kind.INT,value:"0"}]}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.SEMANTIC_NON_NULL,node:en.SEMANTIC_NON_NULL_DEFINITION,optionalArgumentNames:new Set([x.LEVELS]),requiredArgumentNames:new Set};Ge.SPECIFIED_BY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.URL_LOWER,{name:x.URL_LOWER,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.SCALAR_UPPER]),name:x.SPECIFIED_BY,node:en.SPECIFIED_BY_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.URL_LOWER])};Ge.SHAREABLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([x.FIELD_DEFINITION_UPPER,x.OBJECT_UPPER]),name:x.SHAREABLE,node:en.SHAREABLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.SUBSCRIPTION_FILTER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CONDITION,{name:x.CONDITION,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.SUBSCRIPTION_FILTER_CONDITION)}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.SUBSCRIPTION_FILTER,node:en.SUBSCRIPTION_FILTER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.CONDITION])};Ge.TAG_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.NAME,{name:x.NAME,typeNode:Fn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INPUT_FIELD_DEFINITION_UPPER,x.INPUT_OBJECT_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER,x.UNION_UPPER]),name:x.TAG,node:en.TAG_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.NAME])}});var dp=w(Oa=>{"use strict";m();T();N();Object.defineProperty(Oa,"__esModule",{value:!0});Oa.newFieldSetData=yde;Oa.extractFieldSetValue=Ide;Oa.getNormalizedFieldSet=gde;Oa.getInitialFieldCoordsPath=_de;Oa.validateKeyFieldSets=vde;Oa.getConditionalFieldSetDirectiveName=Ode;Oa.isNodeQuery=Sde;Oa.validateArgumentTemplateReferences=Dde;Oa.initializeDirectiveDefinitionDatas=bde;var Gn=Oe(),Z1=Pr(),vr=qi(),eV=gu(),RD=Iu(),tn=AD(),It=zn(),Cs=Fr();function yde(){return{provides:new Map,requires:new Map}}function Ide(e,t,n){if(!n||n.length>1)return;let r=n[0].arguments;if(!r||r.length!==1)return;let i=r[0];i.name.value!==It.FIELDS||i.value.kind!==Gn.Kind.STRING||t.set(e,i.value.value)}function gde(e){return(0,Gn.print)((0,Z1.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function _de(e,t){return e?[t]:[]}function vde(e,t,n){let r=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,a=[],o=[],c=r?void 0:e.internalGraph.addEntityDataNode(t.name),l=e.internalGraph.addOrUpdateNode(t.name),d=0;for(let[p,{documentNode:E,isUnresolvable:I,rawFieldSet:v}]of n){r&&(r.resolvable||(r.resolvable=!I)),d+=1;let A=[],U=[t],j=[],$=[],re=new Set,ee=-1,me=!0,ue="";if((0,Gn.visit)(E,{Argument:{enter(Ae){return A.push((0,vr.unexpectedArgumentErrorMessage)(v,`${U[ee].name}.${ue}`,Ae.name.value)),Gn.BREAK}},Field:{enter(Ae){let xe=U[ee],Ze=xe.name;if(me){let wn=`${Ze}.${ue}`,$t=xe.fieldDataByName.get(ue);if(!$t)return A.push((0,vr.undefinedFieldInFieldSetErrorMessage)(v,wn,ue)),Gn.BREAK;let Tn=(0,RD.getTypeNodeNamedTypeName)($t.node.type),Ur=e.parentDefinitionDataByTypeName.get(Tn),lr=Ur?Ur.kind:Gn.Kind.SCALAR_TYPE_DEFINITION;return A.push((0,vr.invalidSelectionSetErrorMessage)(v,[wn],Tn,(0,Cs.kindToNodeType)(lr))),Gn.BREAK}let Z=Ae.name.value,_e=`${Ze}.${Z}`;if(ue=Z,Z===It.TYPENAME)return;let vt=xe.fieldDataByName.get(Z);if(!vt)return A.push((0,vr.undefinedFieldInFieldSetErrorMessage)(v,Ze,Z)),Gn.BREAK;if(vt.argumentDataByName.size)return A.push((0,vr.argumentsInKeyFieldSetErrorMessage)(v,_e)),Gn.BREAK;if(j[ee].has(Z))return A.push((0,vr.duplicateFieldInFieldSetErrorMessage)(v,_e)),Gn.BREAK;(0,Cs.getValueOrDefault)((0,Cs.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,_e,()=>new Map),i,()=>new Set).add(p),$.push(Z),vt.isShareableBySubgraphName.set(e.subgraphName,!0),j[ee].add(Z),(0,Cs.getValueOrDefault)(e.keyFieldNamesByParentTypeName,Ze,()=>new Set).add(Z);let rn=(0,RD.getTypeNodeNamedTypeName)(vt.node.type);if(eV.BASE_SCALARS.has(rn)){re.add($.join(It.LITERAL_PERIOD)),$.pop();return}let an=e.parentDefinitionDataByTypeName.get(rn);if(!an)return A.push((0,vr.unknownTypeInFieldSetErrorMessage)(v,_e,rn)),Gn.BREAK;if(an.kind===Gn.Kind.OBJECT_TYPE_DEFINITION){me=!0,U.push(an);return}if((0,Z1.isKindAbstract)(an.kind))return A.push((0,vr.abstractTypeInKeyFieldSetErrorMessage)(v,_e,rn,(0,Cs.kindToNodeType)(an.kind))),Gn.BREAK;re.add($.join(It.LITERAL_PERIOD)),$.pop()}},InlineFragment:{enter(){return A.push(vr.inlineFragmentInFieldSetErrorMessage),Gn.BREAK}},SelectionSet:{enter(){if(!me){let Ae=U[ee],Ze=`${Ae.name}.${ue}`;if(ue===It.TYPENAME)return A.push((0,vr.invalidSelectionSetDefinitionErrorMessage)(v,[Ze],It.STRING_SCALAR,(0,Cs.kindToNodeType)(Gn.Kind.SCALAR_TYPE_DEFINITION))),Gn.BREAK;let Z=Ae.fieldDataByName.get(ue);if(!Z)return A.push((0,vr.undefinedFieldInFieldSetErrorMessage)(v,Ze,ue)),Gn.BREAK;let _e=(0,RD.getTypeNodeNamedTypeName)(Z.node.type),vt=e.parentDefinitionDataByTypeName.get(_e),rn=vt?vt.kind:Gn.Kind.SCALAR_TYPE_DEFINITION;return A.push((0,vr.invalidSelectionSetDefinitionErrorMessage)(v,[Ze],_e,(0,Cs.kindToNodeType)(rn))),Gn.BREAK}if(ee+=1,me=!1,ee<0||ee>=U.length)return A.push((0,vr.unparsableFieldSetSelectionErrorMessage)(v,ue)),Gn.BREAK;j.push(new Set)},leave(){if(me){let xe=U[ee].name,Ze=U[ee+1],Z=`${xe}.${ue}`;A.push((0,vr.invalidSelectionSetErrorMessage)(v,[Z],Ze.name,(0,Cs.kindToNodeType)(Ze.kind))),me=!1}ee-=1,U.pop(),j.pop()}}}),A.length>0){e.errors.push((0,vr.invalidDirectiveError)(It.KEY,i,(0,Cs.numberToOrdinal)(d),A));continue}a.push(M({fieldName:"",selectionSet:p},I?{disableEntityResolver:!0}:{})),l.satisfiedFieldSets.add(p),!I&&(c==null||c.addTargetSubgraphByFieldSet(p,e.subgraphName),o.push(re))}if(a.length>0)return a}function Ode(e){return e?It.PROVIDES:It.REQUIRES}function Sde(e,t){return e===It.QUERY||t===Gn.OperationTypeNode.QUERY}function Dde(e,t,n){let r=e.matchAll(eV.EDFS_ARGS_REGEXP),i=new Set,a=new Set;for(let o of r){if(o.length<2){a.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)n.push((0,vr.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)n.push((0,vr.invalidEventSubjectsArgumentErrorMessage)(o))}function bde(){return new Map([[It.AUTHENTICATED,tn.AUTHENTICATED_DEFINITION_DATA],[It.COMPOSE_DIRECTIVE,tn.COMPOSE_DIRECTIVE_DEFINITION_DATA],[It.CONFIGURE_DESCRIPTION,tn.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[It.CONFIGURE_CHILD_DESCRIPTIONS,tn.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[It.CONNECT_FIELD_RESOLVER,tn.CONNECT_FIELD_RESOLVER_DEFINITION_DATA],[It.DEPRECATED,tn.DEPRECATED_DEFINITION_DATA],[It.EDFS_KAFKA_PUBLISH,tn.KAFKA_PUBLISH_DEFINITION_DATA],[It.EDFS_KAFKA_SUBSCRIBE,tn.KAFKA_SUBSCRIBE_DEFINITION_DATA],[It.EDFS_NATS_PUBLISH,tn.NATS_PUBLISH_DEFINITION_DATA],[It.EDFS_NATS_REQUEST,tn.NATS_REQUEST_DEFINITION_DATA],[It.EDFS_NATS_SUBSCRIBE,tn.NATS_SUBSCRIBE_DEFINITION_DATA],[It.EDFS_REDIS_PUBLISH,tn.REDIS_PUBLISH_DEFINITION_DATA],[It.EDFS_REDIS_SUBSCRIBE,tn.REDIS_SUBSCRIBE_DEFINITION_DATA],[It.EXTENDS,tn.EXTENDS_DEFINITION_DATA],[It.EXTERNAL,tn.EXTERNAL_DEFINITION_DATA],[It.INACCESSIBLE,tn.INACCESSIBLE_DEFINITION_DATA],[It.INTERFACE_OBJECT,tn.INTERFACE_OBJECT_DEFINITION_DATA],[It.KEY,tn.KEY_DEFINITION_DATA],[It.LINK,tn.LINK_DEFINITION_DATA],[It.ONE_OF,tn.ONE_OF_DEFINITION_DATA],[It.OVERRIDE,tn.OVERRIDE_DEFINITION_DATA],[It.PROVIDES,tn.PROVIDES_DEFINITION_DATA],[It.REQUIRE_FETCH_REASONS,tn.REQUIRE_FETCH_REASONS_DEFINITION_DATA],[It.REQUIRES,tn.REQUIRES_DEFINITION_DATA],[It.REQUIRES_SCOPES,tn.REQUIRES_SCOPES_DEFINITION_DATA],[It.SEMANTIC_NON_NULL,tn.SEMANTIC_NON_NULL_DATA],[It.SHAREABLE,tn.SHAREABLE_DEFINITION_DATA],[It.SPECIFIED_BY,tn.SPECIFIED_BY_DEFINITION_DATA],[It.SUBSCRIPTION_FILTER,tn.SUBSCRIPTION_FILTER_DEFINITION_DATA],[It.TAG,tn.TAG_DEFINITION_DATA]])}});var FD=w(PD=>{"use strict";m();T();N();Object.defineProperty(PD,"__esModule",{value:!0});PD.recordSubgraphName=Ade;function Ade(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var LD=w(RE=>{"use strict";m();T();N();Object.defineProperty(RE,"__esModule",{value:!0});RE.Warning=void 0;var wD=class extends Error{constructor(n){super(n.message);_(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};RE.Warning=wD});var fp=w(hi=>{"use strict";m();T();N();Object.defineProperty(hi,"__esModule",{value:!0});hi.invalidOverrideTargetSubgraphNameWarning=Rde;hi.externalInterfaceFieldsWarning=Pde;hi.nonExternalConditionalFieldWarning=Fde;hi.unimplementedInterfaceOutputTypeWarning=wde;hi.invalidExternalFieldWarning=Lde;hi.requiresDefinedOnNonEntityFieldWarning=Cde;hi.consumerInactiveThresholdInvalidValueWarning=Bde;hi.externalEntityExtensionKeyFieldWarning=Ude;hi.fieldAlreadyProvidedWarning=kde;hi.singleSubgraphInputFieldOneOfWarning=Mde;hi.singleFederatedInputFieldOneOfWarning=xde;var Sa=LD(),CD=zn();function Rde(e,t,n,r){return new Sa.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(CD.QUOTATION_JOIN)+`". +`))}function y$(e,t){return`The field "${e}" returns the unknown named type "${t}".`}function ice(e,t){return new Error(y$(e,t))}function sce(e){return new Error(`Could not find FieldData for field "${e}" +.This should never happen. Please report this issue on GitHub.`)}function ace(e,t){return new Error(`Expected named type "${e}" to be a composite output type (Object or Interface) but received "${t}". +This should never happen. Please report this issue on GitHub.`)}function oce(e){return new Error(`The Object field "${e}" is invalidly declared "@external". An Object field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" field set, or the field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`)}function uce(e,t){return new Error(`The "@openfed__configureDescription" directive defined on ${e} "${t}" is invalid because neither a description nor the "descriptionOverride" argument is defined.`)}function cce(e,t){return new Error(`The coordinates "${e}" declare "@openfed__configureDescription(propagate: true)" in the following subgraphs: + "`+t.join(Ze.QUOTATION_JOIN)+`" +A federated graph only supports a single description; consequently, only one subgraph may define argument "propagate" as true (this is the default value).`)}function lce(e){return"- The following argument"+(e.length>1?"s are":" is")+` defined more than once: + "`+e.join(Ze.QUOTATION_JOIN)+'"'}function dce(e){return`- The location "${e}" is defined multiple times.`}function fce(e){return`- "${e}" is not a valid directive location.`}function pce(e,t){return new Error(`The directive definition for "@${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: +`+t.join(Ze.LITERAL_NEW_LINE)+'"')}function mce(e,t){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@provides" field set.`}function Nce(e,t,n){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@${n}" field set. Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`}function Tce(e,t,n){return new Error(`The subgraph that defines an entity Interface Object (using "@interfaceObject") must not define any implementation types of that interface. However, the subgraph "${t}" defines the entity Interface "${e}" as an Interface Object alongside the following implementation type`+(n.length>1?"s":"")+` of "${e}": + "`+n.join(Ze.QUOTATION_JOIN)+'"')}function Ece({data:e,namedTypeData:t,nodeType:n}){let r=(0,Mae.isFieldData)(e),i=r?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${n} "${i}" is invalid because it defines type `+(0,Vae.printTypeNode)(e.type)+`; however, ${(0,Yl.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(r?"output":"input")+" type.")}function hce(e){return`Index "${e}" is not a valid integer.`}function yce({maxIndex:e,typeString:t,value:n}){return`Index "${n}" is out of bounds for type ${t}; `+(e>0?`valid indices are 0-${e} inclusive.`:"the only valid index is 0.")}function Ice({typeString:e,value:t}){return`Index "${t}" of type ${e} is non-null but must be nullable.`}W.semanticNonNullArgumentErrorMessage=`Argument "${Ze.LEVELS}" validation error.`;function gce(e){let t=`${e.renamedParentTypeName}.${e.name}`,n=`The "@semanticNonNull" directive defined on field "${t}" is invalid due to inconsistent values provided to the "levels" argument across the following subgraphs: +`;for(let[r,i]of e.nullLevelsBySubgraphName)n+=` Subgraph "${r}" defines levels ${Array.from(i).sort((s,a)=>s-a)}. +`;return n+=`The list value provided to the "levels" argument must be consistently defined across all subgraphs that define "@semanticNonNull" on field "${t}".`,new Error(n)}function _ce({requiredFieldNames:e,typeName:t}){return new Error(`The "@oneOf" directive defined on Input Object "${t}" is invalid because all Input fields must be optional (nullable); however, the following Input field`+(e.length>1?"s are":" is")+' required (non-nullable): "'+e.join(Ze.QUOTATION_JOIN)+'".')}});var g$=C(I$=>{"use strict";p();N();m();Object.defineProperty(I$,"__esModule",{value:!0})});var fI=C(dI=>{"use strict";p();N();m();Object.defineProperty(dI,"__esModule",{value:!0});dI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;dI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var pI=C($r=>{"use strict";p();N();m();Object.defineProperty($r,"__esModule",{value:!0});$r.SUBSCRIPTION_FILTER_VALUE_DEFINITION=$r.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=$r.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=$r.SCOPE_SCALAR_DEFINITION=$r.LINK_PURPOSE_DEFINITION=$r.LINK_IMPORT_DEFINITION=$r.FIELD_SET_SCALAR_DEFINITION=$r.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=void 0;var un=(Oe(),Ae(Pe)),yn=ui(),In=Er(),vce=fI();$r.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:un.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,yn.stringToNameNode)(In.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:un.Kind.INPUT_VALUE_DEFINITION,name:(0,yn.stringToNameNode)(In.CONSUMER_INACTIVE_THRESHOLD),type:{kind:un.Kind.NON_NULL_TYPE,type:(0,yn.stringToNamedTypeNode)(In.INT_SCALAR)},defaultValue:{kind:un.Kind.INT,value:vce.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}},{kind:un.Kind.INPUT_VALUE_DEFINITION,name:(0,yn.stringToNameNode)(In.CONSUMER_NAME),type:{kind:un.Kind.NON_NULL_TYPE,type:(0,yn.stringToNamedTypeNode)(In.STRING_SCALAR)}},{kind:un.Kind.INPUT_VALUE_DEFINITION,name:(0,yn.stringToNameNode)(In.STREAM_NAME),type:{kind:un.Kind.NON_NULL_TYPE,type:(0,yn.stringToNamedTypeNode)(In.STRING_SCALAR)}}]};$r.FIELD_SET_SCALAR_DEFINITION={kind:un.Kind.SCALAR_TYPE_DEFINITION,name:(0,yn.stringToNameNode)(In.FIELD_SET_SCALAR)};$r.LINK_IMPORT_DEFINITION={kind:un.Kind.SCALAR_TYPE_DEFINITION,name:(0,yn.stringToNameNode)(In.LINK_IMPORT)};$r.LINK_PURPOSE_DEFINITION={kind:un.Kind.ENUM_TYPE_DEFINITION,name:(0,yn.stringToNameNode)(In.LINK_PURPOSE),values:[{directives:[],kind:un.Kind.ENUM_VALUE_DEFINITION,name:(0,yn.stringToNameNode)(In.EXECUTION)},{directives:[],kind:un.Kind.ENUM_VALUE_DEFINITION,name:(0,yn.stringToNameNode)(In.SECURITY)}]};$r.SCOPE_SCALAR_DEFINITION={kind:un.Kind.SCALAR_TYPE_DEFINITION,name:(0,yn.stringToNameNode)(In.SCOPE_SCALAR)};$r.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:un.Kind.INPUT_VALUE_DEFINITION,name:(0,yn.stringToNameNode)(In.FIELD_PATH),type:{kind:un.Kind.NON_NULL_TYPE,type:(0,yn.stringToNamedTypeNode)(In.STRING_SCALAR)}},{kind:un.Kind.INPUT_VALUE_DEFINITION,name:(0,yn.stringToNameNode)(In.VALUES),type:{kind:un.Kind.NON_NULL_TYPE,type:{kind:un.Kind.LIST_TYPE,type:(0,yn.stringToNamedTypeNode)(In.SUBSCRIPTION_FILTER_VALUE)}}}],kind:un.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,yn.stringToNameNode)(In.SUBSCRIPTION_FIELD_CONDITION)};$r.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:un.Kind.INPUT_VALUE_DEFINITION,name:(0,yn.stringToNameNode)(In.AND_UPPER),type:{kind:un.Kind.LIST_TYPE,type:{kind:un.Kind.NON_NULL_TYPE,type:(0,yn.stringToNamedTypeNode)(In.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:un.Kind.INPUT_VALUE_DEFINITION,name:(0,yn.stringToNameNode)(In.IN_UPPER),type:(0,yn.stringToNamedTypeNode)(In.SUBSCRIPTION_FIELD_CONDITION)},{kind:un.Kind.INPUT_VALUE_DEFINITION,name:(0,yn.stringToNameNode)(In.OR_UPPER),type:{kind:un.Kind.LIST_TYPE,type:{kind:un.Kind.NON_NULL_TYPE,type:(0,yn.stringToNamedTypeNode)(In.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:un.Kind.INPUT_VALUE_DEFINITION,name:(0,yn.stringToNameNode)(In.NOT_UPPER),type:(0,yn.stringToNamedTypeNode)(In.SUBSCRIPTION_FILTER_CONDITION)}],kind:un.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,yn.stringToNameNode)(In.SUBSCRIPTION_FILTER_CONDITION)};$r.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:un.Kind.SCALAR_TYPE_DEFINITION,name:(0,yn.stringToNameNode)(In.SUBSCRIPTION_FILTER_VALUE)}});var Jf=C(_r=>{"use strict";p();N();m();Object.defineProperty(_r,"__esModule",{value:!0});_r.CLIENT_PERSISTED_DIRECTIVE_NAMES=_r.IGNORED_FEDERATED_TYPE_NAMES=_r.DEPENDENCIES_BY_DIRECTIVE_NAME=_r.COMPOSITE_OUTPUT_NODE_KINDS=_r.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=_r.SUBSCRIPTION_FILTER_INPUT_NAMES=_r.STREAM_CONFIGURATION_FIELD_NAMES=_r.EVENT_DIRECTIVE_NAMES=_r.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var lt=Er(),mI=(Oe(),Ae(Pe)),la=pI();_r.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([lt.ARGUMENT_DEFINITION_UPPER,lt.ENUM_UPPER,lt.ENUM_VALUE_UPPER,lt.FIELD_DEFINITION_UPPER,lt.INPUT_FIELD_DEFINITION_UPPER,lt.INPUT_OBJECT_UPPER,lt.INTERFACE_UPPER,lt.OBJECT_UPPER,lt.SCALAR_UPPER,lt.SCHEMA_UPPER,lt.UNION_UPPER]);_r.EVENT_DIRECTIVE_NAMES=new Set([lt.EDFS_KAFKA_PUBLISH,lt.EDFS_KAFKA_SUBSCRIBE,lt.EDFS_NATS_PUBLISH,lt.EDFS_NATS_REQUEST,lt.EDFS_NATS_SUBSCRIBE,lt.EDFS_REDIS_PUBLISH,lt.EDFS_REDIS_SUBSCRIBE]);_r.STREAM_CONFIGURATION_FIELD_NAMES=new Set([lt.CONSUMER_INACTIVE_THRESHOLD,lt.CONSUMER_NAME,lt.STREAM_NAME]);_r.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([lt.AND_UPPER,lt.IN_UPPER,lt.NOT_UPPER,lt.OR_UPPER]);_r.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([lt.AND_UPPER,lt.OR_UPPER]);_r.COMPOSITE_OUTPUT_NODE_KINDS=new Set([mI.Kind.INTERFACE_TYPE_DEFINITION,mI.Kind.INTERFACE_TYPE_EXTENSION,mI.Kind.OBJECT_TYPE_DEFINITION,mI.Kind.OBJECT_TYPE_EXTENSION]);_r.DEPENDENCIES_BY_DIRECTIVE_NAME=new Map([[lt.CONNECT_FIELD_RESOLVER,[la.FIELD_SET_SCALAR_DEFINITION]],[lt.EDFS_NATS_SUBSCRIBE,[la.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION]],[lt.KEY,[la.FIELD_SET_SCALAR_DEFINITION]],[lt.LINK,[la.LINK_IMPORT_DEFINITION,la.LINK_PURPOSE_DEFINITION]],[lt.PROVIDES,[la.FIELD_SET_SCALAR_DEFINITION]],[lt.REQUIRES,[la.FIELD_SET_SCALAR_DEFINITION]],[lt.REQUIRES_SCOPES,[la.SCOPE_SCALAR_DEFINITION]],[lt.SUBSCRIPTION_FILTER,[la.SUBSCRIPTION_FIELD_CONDITION_DEFINITION,la.SUBSCRIPTION_FILTER_CONDITION_DEFINITION,la.SUBSCRIPTION_FILTER_VALUE_DEFINITION]]]);_r.IGNORED_FEDERATED_TYPE_NAMES=new Set([lt.BOOLEAN_SCALAR,lt.EDFS_NATS_STREAM_CONFIGURATION,lt.FIELD_SET_SCALAR,lt.ID_SCALAR,lt.INT_SCALAR,lt.FLOAT_SCALAR,lt.LINK_IMPORT,lt.LINK_PURPOSE,lt.STRING_SCALAR,lt.SUBSCRIPTION_FIELD_CONDITION,lt.SUBSCRIPTION_FILTER_CONDITION,lt.SUBSCRIPTION_FILTER_VALUE]);_r.CLIENT_PERSISTED_DIRECTIVE_NAMES=new Set([lt.DEPRECATED,lt.ONE_OF,lt.SEMANTIC_NON_NULL])});var Ms=C((NA,_$)=>{"use strict";p();N();m();var JN=function(e){return e&&e.Math===Math&&e};_$.exports=JN(typeof globalThis=="object"&&globalThis)||JN(typeof window=="object"&&window)||JN(typeof self=="object"&&self)||JN(typeof global=="object"&&global)||JN(typeof NA=="object"&&NA)||function(){return this}()||Function("return this")()});var Uo=C((fYe,v$)=>{"use strict";p();N();m();v$.exports=function(e){try{return!!e()}catch(t){return!0}}});var Mc=C((TYe,S$)=>{"use strict";p();N();m();var Sce=Uo();S$.exports=!Sce(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var TA=C((IYe,D$)=>{"use strict";p();N();m();var Dce=Uo();D$.exports=!Dce(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Jl=C((SYe,O$)=>{"use strict";p();N();m();var Oce=TA(),NI=Function.prototype.call;O$.exports=Oce?NI.bind(NI):function(){return NI.apply(NI,arguments)}});var F$=C(R$=>{"use strict";p();N();m();var b$={}.propertyIsEnumerable,A$=Object.getOwnPropertyDescriptor,bce=A$&&!b$.call({1:2},1);R$.f=bce?function(t){var n=A$(this,t);return!!n&&n.enumerable}:b$});var EA=C((LYe,w$)=>{"use strict";p();N();m();w$.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var as=C((BYe,C$)=>{"use strict";p();N();m();var L$=TA(),P$=Function.prototype,hA=P$.call,Ace=L$&&P$.bind.bind(hA,hA);C$.exports=L$?Ace:function(e){return function(){return hA.apply(e,arguments)}}});var k$=C((VYe,B$)=>{"use strict";p();N();m();var U$=as(),Rce=U$({}.toString),Fce=U$("".slice);B$.exports=function(e){return Fce(Rce(e),8,-1)}});var M$=C((KYe,x$)=>{"use strict";p();N();m();var wce=as(),Lce=Uo(),Pce=k$(),yA=Object,Cce=wce("".split);x$.exports=Lce(function(){return!yA("z").propertyIsEnumerable(0)})?function(e){return Pce(e)==="String"?Cce(e,""):yA(e)}:yA});var IA=C((JYe,V$)=>{"use strict";p();N();m();V$.exports=function(e){return e==null}});var gA=C((XYe,q$)=>{"use strict";p();N();m();var Uce=IA(),Bce=TypeError;q$.exports=function(e){if(Uce(e))throw new Bce("Can't call method on "+e);return e}});var TI=C((n2e,$$)=>{"use strict";p();N();m();var kce=M$(),xce=gA();$$.exports=function(e){return kce(xce(e))}});var da=C((a2e,j$)=>{"use strict";p();N();m();var _A=typeof document=="object"&&document.all;j$.exports=typeof _A=="undefined"&&_A!==void 0?function(e){return typeof e=="function"||e===_A}:function(e){return typeof e=="function"}});var Hf=C((l2e,K$)=>{"use strict";p();N();m();var Mce=da();K$.exports=function(e){return typeof e=="object"?e!==null:Mce(e)}});var EI=C((m2e,G$)=>{"use strict";p();N();m();var vA=Ms(),Vce=da(),qce=function(e){return Vce(e)?e:void 0};G$.exports=function(e,t){return arguments.length<2?qce(vA[e]):vA[e]&&vA[e][t]}});var Y$=C((h2e,Q$)=>{"use strict";p();N();m();var $ce=as();Q$.exports=$ce({}.isPrototypeOf)});var W$=C((_2e,z$)=>{"use strict";p();N();m();var jce=Ms(),J$=jce.navigator,H$=J$&&J$.userAgent;z$.exports=H$?String(H$):""});var ij=C((O2e,rj)=>{"use strict";p();N();m();var nj=Ms(),SA=W$(),X$=nj.process,Z$=nj.Deno,ej=X$&&X$.versions||Z$&&Z$.version,tj=ej&&ej.v8,fa,hI;tj&&(fa=tj.split("."),hI=fa[0]>0&&fa[0]<4?1:+(fa[0]+fa[1]));!hI&&SA&&(fa=SA.match(/Edge\/(\d+)/),(!fa||fa[1]>=74)&&(fa=SA.match(/Chrome\/(\d+)/),fa&&(hI=+fa[1])));rj.exports=hI});var DA=C((F2e,aj)=>{"use strict";p();N();m();var sj=ij(),Kce=Uo(),Gce=Ms(),Qce=Gce.String;aj.exports=!!Object.getOwnPropertySymbols&&!Kce(function(){var e=Symbol("symbol detection");return!Qce(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sj&&sj<41})});var OA=C((C2e,oj)=>{"use strict";p();N();m();var Yce=DA();oj.exports=Yce&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var bA=C((x2e,uj)=>{"use strict";p();N();m();var Jce=EI(),Hce=da(),zce=Y$(),Wce=OA(),Xce=Object;uj.exports=Wce?function(e){return typeof e=="symbol"}:function(e){var t=Jce("Symbol");return Hce(t)&&zce(t.prototype,Xce(e))}});var lj=C(($2e,cj)=>{"use strict";p();N();m();var Zce=String;cj.exports=function(e){try{return Zce(e)}catch(t){return"Object"}}});var yI=C((Q2e,dj)=>{"use strict";p();N();m();var ele=da(),tle=lj(),nle=TypeError;dj.exports=function(e){if(ele(e))return e;throw new nle(tle(e)+" is not a function")}});var AA=C((z2e,fj)=>{"use strict";p();N();m();var rle=yI(),ile=IA();fj.exports=function(e,t){var n=e[t];return ile(n)?void 0:rle(n)}});var mj=C((eJe,pj)=>{"use strict";p();N();m();var RA=Jl(),FA=da(),wA=Hf(),sle=TypeError;pj.exports=function(e,t){var n,r;if(t==="string"&&FA(n=e.toString)&&!wA(r=RA(n,e))||FA(n=e.valueOf)&&!wA(r=RA(n,e))||t!=="string"&&FA(n=e.toString)&&!wA(r=RA(n,e)))return r;throw new sle("Can't convert object to primitive value")}});var Tj=C((iJe,Nj)=>{"use strict";p();N();m();Nj.exports=!1});var II=C((uJe,hj)=>{"use strict";p();N();m();var Ej=Ms(),ale=Object.defineProperty;hj.exports=function(e,t){try{ale(Ej,e,{value:t,configurable:!0,writable:!0})}catch(n){Ej[e]=t}return t}});var gI=C((fJe,gj)=>{"use strict";p();N();m();var ole=Tj(),ule=Ms(),cle=II(),yj="__core-js_shared__",Ij=gj.exports=ule[yj]||cle(yj,{});(Ij.versions||(Ij.versions=[])).push({version:"3.41.0",mode:ole?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var LA=C((TJe,vj)=>{"use strict";p();N();m();var _j=gI();vj.exports=function(e,t){return _j[e]||(_j[e]=t||{})}});var Dj=C((IJe,Sj)=>{"use strict";p();N();m();var lle=gA(),dle=Object;Sj.exports=function(e){return dle(lle(e))}});var Vc=C((SJe,Oj)=>{"use strict";p();N();m();var fle=as(),ple=Dj(),mle=fle({}.hasOwnProperty);Oj.exports=Object.hasOwn||function(t,n){return mle(ple(t),n)}});var PA=C((AJe,bj)=>{"use strict";p();N();m();var Nle=as(),Tle=0,Ele=Math.random(),hle=Nle(1 .toString);bj.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+hle(++Tle+Ele,36)}});var Fj=C((LJe,Rj)=>{"use strict";p();N();m();var yle=Ms(),Ile=LA(),Aj=Vc(),gle=PA(),_le=DA(),vle=OA(),zf=yle.Symbol,CA=Ile("wks"),Sle=vle?zf.for||zf:zf&&zf.withoutSetter||gle;Rj.exports=function(e){return Aj(CA,e)||(CA[e]=_le&&Aj(zf,e)?zf[e]:Sle("Symbol."+e)),CA[e]}});var Cj=C((BJe,Pj)=>{"use strict";p();N();m();var Dle=Jl(),wj=Hf(),Lj=bA(),Ole=AA(),ble=mj(),Ale=Fj(),Rle=TypeError,Fle=Ale("toPrimitive");Pj.exports=function(e,t){if(!wj(e)||Lj(e))return e;var n=Ole(e,Fle),r;if(n){if(t===void 0&&(t="default"),r=Dle(n,e,t),!wj(r)||Lj(r))return r;throw new Rle("Can't convert object to primitive value")}return t===void 0&&(t="number"),ble(e,t)}});var UA=C((VJe,Uj)=>{"use strict";p();N();m();var wle=Cj(),Lle=bA();Uj.exports=function(e){var t=wle(e,"string");return Lle(t)?t:t+""}});var xj=C((KJe,kj)=>{"use strict";p();N();m();var Ple=Ms(),Bj=Hf(),BA=Ple.document,Cle=Bj(BA)&&Bj(BA.createElement);kj.exports=function(e){return Cle?BA.createElement(e):{}}});var kA=C((JJe,Mj)=>{"use strict";p();N();m();var Ule=Mc(),Ble=Uo(),kle=xj();Mj.exports=!Ule&&!Ble(function(){return Object.defineProperty(kle("div"),"a",{get:function(){return 7}}).a!==7})});var xA=C(qj=>{"use strict";p();N();m();var xle=Mc(),Mle=Jl(),Vle=F$(),qle=EA(),$le=TI(),jle=UA(),Kle=Vc(),Gle=kA(),Vj=Object.getOwnPropertyDescriptor;qj.f=xle?Vj:function(t,n){if(t=$le(t),n=jle(n),Gle)try{return Vj(t,n)}catch(r){}if(Kle(t,n))return qle(!Mle(Vle.f,t,n),t[n])}});var jj=C((nHe,$j)=>{"use strict";p();N();m();var Qle=Mc(),Yle=Uo();$j.exports=Qle&&Yle(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var HN=C((aHe,Kj)=>{"use strict";p();N();m();var Jle=Hf(),Hle=String,zle=TypeError;Kj.exports=function(e){if(Jle(e))return e;throw new zle(Hle(e)+" is not an object")}});var vI=C(Qj=>{"use strict";p();N();m();var Wle=Mc(),Xle=kA(),Zle=jj(),_I=HN(),Gj=UA(),ede=TypeError,MA=Object.defineProperty,tde=Object.getOwnPropertyDescriptor,VA="enumerable",qA="configurable",$A="writable";Qj.f=Wle?Zle?function(t,n,r){if(_I(t),n=Gj(n),_I(r),typeof t=="function"&&n==="prototype"&&"value"in r&&$A in r&&!r[$A]){var i=tde(t,n);i&&i[$A]&&(t[n]=r.value,r={configurable:qA in r?r[qA]:i[qA],enumerable:VA in r?r[VA]:i[VA],writable:!1})}return MA(t,n,r)}:MA:function(t,n,r){if(_I(t),n=Gj(n),_I(r),Xle)try{return MA(t,n,r)}catch(i){}if("get"in r||"set"in r)throw new ede("Accessors not supported");return"value"in r&&(t[n]=r.value),t}});var jA=C((mHe,Yj)=>{"use strict";p();N();m();var nde=Mc(),rde=vI(),ide=EA();Yj.exports=nde?function(e,t,n){return rde.f(e,t,ide(1,n))}:function(e,t,n){return e[t]=n,e}});var zj=C((hHe,Hj)=>{"use strict";p();N();m();var KA=Mc(),sde=Vc(),Jj=Function.prototype,ade=KA&&Object.getOwnPropertyDescriptor,GA=sde(Jj,"name"),ode=GA&&function(){}.name==="something",ude=GA&&(!KA||KA&&ade(Jj,"name").configurable);Hj.exports={EXISTS:GA,PROPER:ode,CONFIGURABLE:ude}});var Xj=C((_He,Wj)=>{"use strict";p();N();m();var cde=as(),lde=da(),QA=gI(),dde=cde(Function.toString);lde(QA.inspectSource)||(QA.inspectSource=function(e){return dde(e)});Wj.exports=QA.inspectSource});var tK=C((OHe,eK)=>{"use strict";p();N();m();var fde=Ms(),pde=da(),Zj=fde.WeakMap;eK.exports=pde(Zj)&&/native code/.test(String(Zj))});var iK=C((FHe,rK)=>{"use strict";p();N();m();var mde=LA(),Nde=PA(),nK=mde("keys");rK.exports=function(e){return nK[e]||(nK[e]=Nde(e))}});var YA=C((CHe,sK)=>{"use strict";p();N();m();sK.exports={}});var cK=C((xHe,uK)=>{"use strict";p();N();m();var Tde=tK(),oK=Ms(),Ede=Hf(),hde=jA(),JA=Vc(),HA=gI(),yde=iK(),Ide=YA(),aK="Object already initialized",zA=oK.TypeError,gde=oK.WeakMap,SI,zN,DI,_de=function(e){return DI(e)?zN(e):SI(e,{})},vde=function(e){return function(t){var n;if(!Ede(t)||(n=zN(t)).type!==e)throw new zA("Incompatible receiver, "+e+" required");return n}};Tde||HA.state?(pa=HA.state||(HA.state=new gde),pa.get=pa.get,pa.has=pa.has,pa.set=pa.set,SI=function(e,t){if(pa.has(e))throw new zA(aK);return t.facade=e,pa.set(e,t),t},zN=function(e){return pa.get(e)||{}},DI=function(e){return pa.has(e)}):(Hl=yde("state"),Ide[Hl]=!0,SI=function(e,t){if(JA(e,Hl))throw new zA(aK);return t.facade=e,hde(e,Hl,t),t},zN=function(e){return JA(e,Hl)?e[Hl]:{}},DI=function(e){return JA(e,Hl)});var pa,Hl;uK.exports={set:SI,get:zN,has:DI,enforce:_de,getterFor:vde}});var pK=C(($He,fK)=>{"use strict";p();N();m();var XA=as(),Sde=Uo(),Dde=da(),OI=Vc(),WA=Mc(),Ode=zj().CONFIGURABLE,bde=Xj(),dK=cK(),Ade=dK.enforce,Rde=dK.get,lK=String,bI=Object.defineProperty,Fde=XA("".slice),wde=XA("".replace),Lde=XA([].join),Pde=WA&&!Sde(function(){return bI(function(){},"length",{value:8}).length!==8}),Cde=String(String).split("String"),Ude=fK.exports=function(e,t,n){Fde(lK(t),0,7)==="Symbol("&&(t="["+wde(lK(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!OI(e,"name")||Ode&&e.name!==t)&&(WA?bI(e,"name",{value:t,configurable:!0}):e.name=t),Pde&&n&&OI(n,"arity")&&e.length!==n.arity&&bI(e,"length",{value:n.arity});try{n&&OI(n,"constructor")&&n.constructor?WA&&bI(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=Ade(e);return OI(r,"source")||(r.source=Lde(Cde,typeof t=="string"?t:"")),e};Function.prototype.toString=Ude(function(){return Dde(this)&&Rde(this).source||bde(this)},"toString")});var NK=C((QHe,mK)=>{"use strict";p();N();m();var Bde=da(),kde=vI(),xde=pK(),Mde=II();mK.exports=function(e,t,n,r){r||(r={});var i=r.enumerable,s=r.name!==void 0?r.name:t;if(Bde(n)&&xde(n,s,r),r.global)i?e[t]=n:Mde(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(a){}i?e[t]=n:kde.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}});var EK=C((zHe,TK)=>{"use strict";p();N();m();var Vde=Math.ceil,qde=Math.floor;TK.exports=Math.trunc||function(t){var n=+t;return(n>0?qde:Vde)(n)}});var AI=C((e3e,hK)=>{"use strict";p();N();m();var $de=EK();hK.exports=function(e){var t=+e;return t!==t||t===0?0:$de(t)}});var IK=C((i3e,yK)=>{"use strict";p();N();m();var jde=AI(),Kde=Math.max,Gde=Math.min;yK.exports=function(e,t){var n=jde(e);return n<0?Kde(n+t,0):Gde(n,t)}});var _K=C((u3e,gK)=>{"use strict";p();N();m();var Qde=AI(),Yde=Math.min;gK.exports=function(e){var t=Qde(e);return t>0?Yde(t,9007199254740991):0}});var SK=C((f3e,vK)=>{"use strict";p();N();m();var Jde=_K();vK.exports=function(e){return Jde(e.length)}});var bK=C((T3e,OK)=>{"use strict";p();N();m();var Hde=TI(),zde=IK(),Wde=SK(),DK=function(e){return function(t,n,r){var i=Hde(t),s=Wde(i);if(s===0)return!e&&-1;var a=zde(r,s),u;if(e&&n!==n){for(;s>a;)if(u=i[a++],u!==u)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}};OK.exports={includes:DK(!0),indexOf:DK(!1)}});var FK=C((I3e,RK)=>{"use strict";p();N();m();var Xde=as(),ZA=Vc(),Zde=TI(),efe=bK().indexOf,tfe=YA(),AK=Xde([].push);RK.exports=function(e,t){var n=Zde(e),r=0,i=[],s;for(s in n)!ZA(tfe,s)&&ZA(n,s)&&AK(i,s);for(;t.length>r;)ZA(n,s=t[r++])&&(~efe(i,s)||AK(i,s));return i}});var LK=C((S3e,wK)=>{"use strict";p();N();m();wK.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var CK=C(PK=>{"use strict";p();N();m();var nfe=FK(),rfe=LK(),ife=rfe.concat("length","prototype");PK.f=Object.getOwnPropertyNames||function(t){return nfe(t,ife)}});var BK=C(UK=>{"use strict";p();N();m();UK.f=Object.getOwnPropertySymbols});var xK=C((B3e,kK)=>{"use strict";p();N();m();var sfe=EI(),afe=as(),ofe=CK(),ufe=BK(),cfe=HN(),lfe=afe([].concat);kK.exports=sfe("Reflect","ownKeys")||function(t){var n=ofe.f(cfe(t)),r=ufe.f;return r?lfe(n,r(t)):n}});var qK=C((V3e,VK)=>{"use strict";p();N();m();var MK=Vc(),dfe=xK(),ffe=xA(),pfe=vI();VK.exports=function(e,t,n){for(var r=dfe(t),i=pfe.f,s=ffe.f,a=0;a{"use strict";p();N();m();var mfe=Uo(),Nfe=da(),Tfe=/#|\.prototype\./,WN=function(e,t){var n=hfe[Efe(e)];return n===Ife?!0:n===yfe?!1:Nfe(t)?mfe(t):!!t},Efe=WN.normalize=function(e){return String(e).replace(Tfe,".").toLowerCase()},hfe=WN.data={},yfe=WN.NATIVE="N",Ife=WN.POLYFILL="P";$K.exports=WN});var eR=C((J3e,KK)=>{"use strict";p();N();m();var RI=Ms(),gfe=xA().f,_fe=jA(),vfe=NK(),Sfe=II(),Dfe=qK(),Ofe=jK();KK.exports=function(e,t){var n=e.target,r=e.global,i=e.stat,s,a,u,l,d,f;if(r?a=RI:i?a=RI[n]||Sfe(n,{}):a=RI[n]&&RI[n].prototype,a)for(u in t){if(d=t[u],e.dontCallGetSet?(f=gfe(a,u),l=f&&f.value):l=a[u],s=Ofe(r?u:n+(i?".":"#")+u,e.forced),!s&&l!==void 0){if(typeof d==typeof l)continue;Dfe(d,l)}(e.sham||l&&l.sham)&&_fe(d,"sham",!0),vfe(a,u,d,e)}}});var XN=C((X3e,GK)=>{"use strict";p();N();m();var tR=as(),FI=Set.prototype;GK.exports={Set,add:tR(FI.add),has:tR(FI.has),remove:tR(FI.delete),proto:FI}});var nR=C((nze,QK)=>{"use strict";p();N();m();var bfe=XN().has;QK.exports=function(e){return bfe(e),e}});var JK=C((aze,YK)=>{"use strict";p();N();m();var Afe=as(),Rfe=yI();YK.exports=function(e,t,n){try{return Afe(Rfe(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}}});var rR=C((lze,HK)=>{"use strict";p();N();m();var Ffe=JK(),wfe=XN();HK.exports=Ffe(wfe.proto,"size","get")||function(e){return e.size}});var iR=C((mze,zK)=>{"use strict";p();N();m();var Lfe=Jl();zK.exports=function(e,t,n){for(var r=n?e:e.iterator,i=e.next,s,a;!(s=Lfe(i,r)).done;)if(a=t(s.value),a!==void 0)return a}});var nG=C((hze,tG)=>{"use strict";p();N();m();var WK=as(),Pfe=iR(),XK=XN(),Cfe=XK.Set,ZK=XK.proto,Ufe=WK(ZK.forEach),eG=WK(ZK.keys),Bfe=eG(new Cfe).next;tG.exports=function(e,t,n){return n?Pfe({iterator:eG(e),next:Bfe},t):Ufe(e,t)}});var iG=C((_ze,rG)=>{"use strict";p();N();m();rG.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var sR=C((Oze,lG)=>{"use strict";p();N();m();var sG=yI(),uG=HN(),aG=Jl(),kfe=AI(),xfe=iG(),oG="Invalid size",Mfe=RangeError,Vfe=TypeError,qfe=Math.max,cG=function(e,t){this.set=e,this.size=qfe(t,0),this.has=sG(e.has),this.keys=sG(e.keys)};cG.prototype={getIterator:function(){return xfe(uG(aG(this.keys,this.set)))},includes:function(e){return aG(this.has,this.set,e)}};lG.exports=function(e){uG(e);var t=+e.size;if(t!==t)throw new Vfe(oG);var n=kfe(t);if(n<0)throw new Mfe(oG);return new cG(e,n)}});var fG=C((Fze,dG)=>{"use strict";p();N();m();var $fe=nR(),jfe=rR(),Kfe=nG(),Gfe=sR();dG.exports=function(t){var n=$fe(this),r=Gfe(t);return jfe(n)>r.size?!1:Kfe(n,function(i){if(!r.includes(i))return!1},!0)!==!1}});var aR=C((Cze,NG)=>{"use strict";p();N();m();var Qfe=EI(),pG=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},mG=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};NG.exports=function(e,t){var n=Qfe("Set");try{new n()[e](pG(0));try{return new n()[e](pG(-1)),!1}catch(i){if(!t)return!0;try{return new n()[e](mG(-1/0)),!1}catch(s){var r=new n;return r.add(1),r.add(2),t(r[e](mG(1/0)))}}}catch(i){return!1}}});var TG=C(()=>{"use strict";p();N();m();var Yfe=eR(),Jfe=fG(),Hfe=aR(),zfe=!Hfe("isSubsetOf",function(e){return e});Yfe({target:"Set",proto:!0,real:!0,forced:zfe},{isSubsetOf:Jfe})});var EG=C(()=>{"use strict";p();N();m();TG()});var IG=C((Jze,yG)=>{"use strict";p();N();m();var Wfe=Jl(),hG=HN(),Xfe=AA();yG.exports=function(e,t,n){var r,i;hG(e);try{if(r=Xfe(e,"return"),!r){if(t==="throw")throw n;return n}r=Wfe(r,e)}catch(s){i=!0,r=s}if(t==="throw")throw n;if(i)throw r;return hG(r),n}});var _G=C((Xze,gG)=>{"use strict";p();N();m();var Zfe=nR(),epe=XN().has,tpe=rR(),npe=sR(),rpe=iR(),ipe=IG();gG.exports=function(t){var n=Zfe(this),r=npe(t);if(tpe(n){"use strict";p();N();m();var spe=eR(),ape=_G(),ope=aR(),upe=!ope("isSupersetOf",function(e){return!e});spe({target:"Set",proto:!0,real:!0,forced:upe},{isSupersetOf:ape})});var SG=C(()=>{"use strict";p();N();m();vG()});var ZN=C(Yn=>{"use strict";p();N();m();Object.defineProperty(Yn,"__esModule",{value:!0});Yn.subtractSet=lpe;Yn.mapToArrayOfValues=dpe;Yn.kindToConvertedTypeString=fpe;Yn.fieldDatasToSimpleFieldDatas=ppe;Yn.isNodeLeaf=mpe;Yn.newEntityInterfaceFederationData=Npe;Yn.upsertEntityInterfaceFederationData=Tpe;Yn.upsertEntityData=hpe;Yn.updateEntityData=DG;Yn.newFieldAuthorizationData=ype;Yn.newAuthorizationData=Ipe;Yn.addScopes=oR;Yn.mergeRequiredScopesByAND=PI;Yn.mergeRequiredScopesByOR=uR;Yn.upsertFieldAuthorizationData=OG;Yn.upsertAuthorizationData=vpe;Yn.upsertAuthorizationConfiguration=Spe;Yn.isObjectNodeKind=Dpe;Yn.isCompositeOutputNodeKind=Ope;Yn.isObjectDefinitionData=bpe;Yn.getNodeCoords=Ape;var Wt=(Oe(),Ae(Pe)),ji=Er(),wI=di(),LI=Pc();EG();SG();var cpe=Jf();function lpe(e,t){for(let n of e)t.delete(n)}function dpe(e){let t=[];for(let n of e.values())t.push(n);return t}function fpe(e){switch(e){case Wt.Kind.BOOLEAN:return ji.BOOLEAN_SCALAR;case Wt.Kind.ENUM:case Wt.Kind.ENUM_TYPE_DEFINITION:case Wt.Kind.ENUM_TYPE_EXTENSION:return ji.ENUM;case Wt.Kind.ENUM_VALUE_DEFINITION:return ji.ENUM_VALUE;case Wt.Kind.FIELD_DEFINITION:return ji.FIELD;case Wt.Kind.FLOAT:return ji.FLOAT_SCALAR;case Wt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Wt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return ji.INPUT_OBJECT;case Wt.Kind.INPUT_VALUE_DEFINITION:return ji.INPUT_VALUE;case Wt.Kind.INT:return ji.INT_SCALAR;case Wt.Kind.INTERFACE_TYPE_DEFINITION:case Wt.Kind.INTERFACE_TYPE_EXTENSION:return ji.INTERFACE;case Wt.Kind.NULL:return ji.NULL;case Wt.Kind.OBJECT:case Wt.Kind.OBJECT_TYPE_DEFINITION:case Wt.Kind.OBJECT_TYPE_EXTENSION:return ji.OBJECT;case Wt.Kind.STRING:return ji.STRING_SCALAR;case Wt.Kind.SCALAR_TYPE_DEFINITION:case Wt.Kind.SCALAR_TYPE_EXTENSION:return ji.SCALAR;case Wt.Kind.UNION_TYPE_DEFINITION:case Wt.Kind.UNION_TYPE_EXTENSION:return ji.UNION;default:return e}}function ppe(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function mpe(e){if(!e)return!0;switch(e){case Wt.Kind.OBJECT_TYPE_DEFINITION:case Wt.Kind.INTERFACE_TYPE_DEFINITION:case Wt.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function Npe(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphNames:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function Tpe(e,t,n){(0,wI.addIterableToSet)({source:t.concreteTypeNames,target:e.concreteTypeNames}),e.subgraphDataByTypeName.set(n,t),e.fieldDatasBySubgraphName.set(n,t.fieldDatas),(0,wI.addIterableToSet)({source:t.interfaceFieldNames,target:e.interfaceFieldNames}),(0,wI.addIterableToSet)({source:t.interfaceObjectFieldNames,target:e.interfaceObjectFieldNames}),t.isInterfaceObject&&e.interfaceObjectSubgraphNames.add(n)}function Epe({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:n}){let r=new Map([[t,e]]),i=new Map;for(let[s,{documentNode:a,isUnresolvable:u}]of e)u||i.set(s,a);return{keyFieldSetDatasBySubgraphName:r,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:n}}function hpe({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}){let i=e.get(r);i?DG({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:n}):e.set(r,Epe({keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}))}function DG({entityData:e,keyFieldSetDataByFieldSet:t,subgraphName:n}){e.subgraphNames.add(n);let r=e.keyFieldSetDatasBySubgraphName.get(n);if(!r){e.keyFieldSetDatasBySubgraphName.set(n,t);for(let[i,{documentNode:s,isUnresolvable:a}]of t)a||e.documentNodeByKeyFieldSet.set(i,s);return}for(let[i,s]of t){s.isUnresolvable||e.documentNodeByKeyFieldSet.set(i,s.documentNode);let a=r.get(i);if(a){a.isUnresolvable||(a.isUnresolvable=s.isUnresolvable);continue}r.set(i,s)}}function ype(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function Ipe(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function oR(e,t){for(let n=e.length-1;n>-1;n--){if(e[n].isSubsetOf(t))return;e[n].isSupersetOf(t)&&e.splice(n,1)}e.push(t)}function PI(e,t){if(e.length<1||t.length<1){for(let r of t)e.push(new Set(r));return e}let n=[];for(let r of t)for(let i of e){let s=(0,wI.addSets)(r,i);oR(n,s)}return n}function uR(e,t){for(let n of t)oR(e,n);return e.length<=LI.MAX_OR_SCOPES}function OG(e,t){var i,s;let n=t.fieldName,r=e.get(n);return r?((i=r.inheritedData).requiresAuthentication||(i.requiresAuthentication=t.inheritedData.requiresAuthentication),(s=r.originalData).requiresAuthentication||(s.requiresAuthentication=t.originalData.requiresAuthentication),!uR(r.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||r.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>LI.MAX_OR_SCOPES||r.originalData.requiredScopes.length*t.originalData.requiredScopes.length>LI.MAX_OR_SCOPES?!1:(r.inheritedData.requiredScopes=PI(r.inheritedData.requiredScopes,t.inheritedData.requiredScopes),r.originalData.requiredScopes=PI(r.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(n,bG(t)),!0)}function gpe(e){let t=new Map;for(let[n,r]of e)t.set(n,bG(r));return t}function bG(e){return{fieldName:e.fieldName,inheritedData:{requiredScopes:[...e.inheritedData.requiredScopes],requiredScopesByOR:[...e.inheritedData.requiredScopes],requiresAuthentication:e.inheritedData.requiresAuthentication},originalData:{requiredScopes:[...e.originalData.requiredScopes],requiresAuthentication:e.originalData.requiresAuthentication}}}function _pe(e){return{fieldAuthDataByFieldName:gpe(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function vpe(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,_pe(t));return}r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),!uR(r.requiredScopesByOR,t.requiredScopes)||r.requiredScopes.length*t.requiredScopes.length>LI.MAX_OR_SCOPES?n.add(t.typeName):r.requiredScopes=PI(r.requiredScopes,t.requiredScopes);for(let[i,s]of t.fieldAuthDataByFieldName)OG(r.fieldAuthDataByFieldName,s)||n.add(`${t.typeName}.${i}`)}function Spe(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthDataByFieldName){let s=`${n}.${r}`,a=e.get(s);a?(a.requiresAuthentication=i.inheritedData.requiresAuthentication,a.requiredScopes=i.inheritedData.requiredScopes.map(u=>[...u]),a.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(u=>[...u])):e.set(s,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(u=>[...u]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(u=>[...u])})}}function Dpe(e){return e===Wt.Kind.OBJECT_TYPE_DEFINITION||e===Wt.Kind.OBJECT_TYPE_EXTENSION}function Ope(e){return cpe.COMPOSITE_OUTPUT_NODE_KINDS.has(e)}function bpe(e){return e?e.kind===Wt.Kind.OBJECT_TYPE_DEFINITION:!1}function Ape(e){switch(e.kind){case Wt.Kind.ARGUMENT:case Wt.Kind.FIELD_DEFINITION:case Wt.Kind.INPUT_VALUE_DEFINITION:case Wt.Kind.ENUM_VALUE_DEFINITION:return e.federatedCoords;default:return e.name}}});var cR=C(Je=>{"use strict";p();N();m();Object.defineProperty(Je,"__esModule",{value:!0});Je.TAG_DEFINITION_DATA=Je.SUBSCRIPTION_FILTER_DEFINITION_DATA=Je.SHAREABLE_DEFINITION_DATA=Je.SPECIFIED_BY_DEFINITION_DATA=Je.SEMANTIC_NON_NULL_DATA=Je.REQUIRES_SCOPES_DEFINITION_DATA=Je.REQUIRE_FETCH_REASONS_DEFINITION_DATA=Je.REDIS_SUBSCRIBE_DEFINITION_DATA=Je.REDIS_PUBLISH_DEFINITION_DATA=Je.REQUIRES_DEFINITION_DATA=Je.PROVIDES_DEFINITION_DATA=Je.LINK_DEFINITION_DATA=Je.KEY_DEFINITION_DATA=Je.OVERRIDE_DEFINITION_DATA=Je.ONE_OF_DEFINITION_DATA=Je.NATS_SUBSCRIBE_DEFINITION_DATA=Je.NATS_REQUEST_DEFINITION_DATA=Je.NATS_PUBLISH_DEFINITION_DATA=Je.KAFKA_SUBSCRIBE_DEFINITION_DATA=Je.KAFKA_PUBLISH_DEFINITION_DATA=Je.INTERFACE_OBJECT_DEFINITION_DATA=Je.INACCESSIBLE_DEFINITION_DATA=Je.EXTERNAL_DEFINITION_DATA=Je.EXTENDS_DEFINITION_DATA=Je.DEPRECATED_DEFINITION_DATA=Je.CONNECT_FIELD_RESOLVER_DEFINITION_DATA=Je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=Je.CONFIGURE_DESCRIPTION_DEFINITION_DATA=Je.COMPOSE_DIRECTIVE_DEFINITION_DATA=Je.AUTHENTICATED_DEFINITION_DATA=void 0;var Vs=ui(),Xt=(Oe(),Ae(Pe)),V=Er(),cn=ON(),Jn=dy();Je.AUTHENTICATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([V.ENUM_UPPER,V.FIELD_DEFINITION_UPPER,V.INTERFACE_UPPER,V.OBJECT_UPPER,V.SCALAR_UPPER]),name:V.AUTHENTICATED,node:cn.AUTHENTICATED_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.COMPOSE_DIRECTIVE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.NAME,{name:V.NAME,typeNode:Jn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([V.SCHEMA_UPPER]),name:V.COMPOSE_DIRECTIVE,node:cn.COMPOSE_DIRECTIVE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([V.NAME])};Je.CONFIGURE_DESCRIPTION_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.PROPAGATE,{name:V.PROPAGATE,typeNode:{kind:Xt.Kind.NON_NULL_TYPE,type:(0,Vs.stringToNamedTypeNode)(V.BOOLEAN_SCALAR)},defaultValue:{kind:Xt.Kind.BOOLEAN,value:!0}}],[V.DESCRIPTION_OVERRIDE,{name:V.DESCRIPTION_OVERRIDE,typeNode:(0,Vs.stringToNamedTypeNode)(V.STRING_SCALAR)}]]),isRepeatable:!1,locations:new Set([V.ARGUMENT_DEFINITION_UPPER,V.ENUM_UPPER,V.ENUM_VALUE_UPPER,V.FIELD_DEFINITION_UPPER,V.INTERFACE_UPPER,V.INPUT_OBJECT_UPPER,V.INPUT_FIELD_DEFINITION_UPPER,V.OBJECT_UPPER,V.SCALAR_UPPER,V.SCHEMA_UPPER,V.UNION_UPPER]),name:V.CONFIGURE_DESCRIPTION,node:cn.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([V.PROPAGATE,V.DESCRIPTION_OVERRIDE]),requiredArgumentNames:new Set};Je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.PROPAGATE,{name:V.PROPAGATE,typeNode:{kind:Xt.Kind.NON_NULL_TYPE,type:(0,Vs.stringToNamedTypeNode)(V.BOOLEAN_SCALAR)},defaultValue:{kind:Xt.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([V.ENUM_UPPER,V.INPUT_OBJECT_UPPER,V.INTERFACE_UPPER,V.OBJECT_UPPER]),name:V.CONFIGURE_CHILD_DESCRIPTIONS,node:cn.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([V.PROPAGATE]),requiredArgumentNames:new Set};Je.CONNECT_FIELD_RESOLVER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.CONTEXT,{name:V.CONTEXT,typeNode:Jn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.CONNECT_FIELD_RESOLVER,node:cn.CONNECT_FIELD_RESOLVER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([V.CONTEXT])};Je.DEPRECATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.REASON,{name:V.REASON,typeNode:(0,Vs.stringToNamedTypeNode)(V.STRING_SCALAR),defaultValue:{kind:Xt.Kind.STRING,value:Xt.DEFAULT_DEPRECATION_REASON}}]]),isRepeatable:!1,locations:new Set([V.ARGUMENT_DEFINITION_UPPER,V.ENUM_VALUE_UPPER,V.FIELD_DEFINITION_UPPER,V.INPUT_FIELD_DEFINITION_UPPER]),name:V.DEPRECATED,node:cn.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([V.REASON]),requiredArgumentNames:new Set};Je.EXTENDS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([V.INTERFACE_UPPER,V.OBJECT_UPPER]),name:V.EXTENDS,node:cn.EXTENDS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.EXTERNAL_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER,V.OBJECT_UPPER]),name:V.EXTERNAL,node:cn.EXTERNAL_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.INACCESSIBLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([V.ARGUMENT_DEFINITION_UPPER,V.ENUM_UPPER,V.ENUM_VALUE_UPPER,V.FIELD_DEFINITION_UPPER,V.INPUT_FIELD_DEFINITION_UPPER,V.INPUT_OBJECT_UPPER,V.INTERFACE_UPPER,V.OBJECT_UPPER,V.SCALAR_UPPER,V.UNION_UPPER]),name:V.INACCESSIBLE,node:cn.INACCESSIBLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.INTERFACE_OBJECT_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([V.OBJECT_UPPER]),name:V.INTERFACE_OBJECT,node:cn.INTERFACE_OBJECT_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.KAFKA_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.TOPIC,{name:V.TOPIC,typeNode:Jn.REQUIRED_STRING_TYPE_NODE}],[V.PROVIDER_ID,{name:V.PROVIDER_ID,typeNode:Jn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Xt.Kind.STRING,value:V.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.EDFS_KAFKA_PUBLISH,node:cn.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([V.PROVIDER_ID]),requiredArgumentNames:new Set([V.TOPIC])};Je.KAFKA_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.TOPICS,{name:V.TOPICS,typeNode:{kind:Xt.Kind.NON_NULL_TYPE,type:{kind:Xt.Kind.LIST_TYPE,type:Jn.REQUIRED_STRING_TYPE_NODE}}}],[V.PROVIDER_ID,{name:V.PROVIDER_ID,typeNode:Jn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Xt.Kind.STRING,value:V.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.EDFS_KAFKA_SUBSCRIBE,node:cn.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([V.PROVIDER_ID]),requiredArgumentNames:new Set([V.TOPICS])};Je.NATS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.SUBJECT,{name:V.SUBJECT,typeNode:Jn.REQUIRED_STRING_TYPE_NODE}],[V.PROVIDER_ID,{name:V.PROVIDER_ID,typeNode:Jn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Xt.Kind.STRING,value:V.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.EDFS_NATS_PUBLISH,node:cn.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([V.PROVIDER_ID]),requiredArgumentNames:new Set([V.SUBJECT])};Je.NATS_REQUEST_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.SUBJECT,{name:V.SUBJECT,typeNode:Jn.REQUIRED_STRING_TYPE_NODE}],[V.PROVIDER_ID,{name:V.PROVIDER_ID,typeNode:Jn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Xt.Kind.STRING,value:V.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.EDFS_NATS_REQUEST,node:cn.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([V.PROVIDER_ID]),requiredArgumentNames:new Set([V.SUBJECT])};Je.NATS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.SUBJECTS,{name:V.SUBJECTS,typeNode:{kind:Xt.Kind.NON_NULL_TYPE,type:{kind:Xt.Kind.LIST_TYPE,type:Jn.REQUIRED_STRING_TYPE_NODE}}}],[V.PROVIDER_ID,{name:V.PROVIDER_ID,typeNode:Jn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Xt.Kind.STRING,value:V.DEFAULT_EDFS_PROVIDER_ID}}],[V.STREAM_CONFIGURATION,{name:V.STREAM_CONFIGURATION,typeNode:(0,Vs.stringToNamedTypeNode)(V.EDFS_NATS_STREAM_CONFIGURATION)}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.EDFS_NATS_SUBSCRIBE,node:cn.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([V.PROVIDER_ID,V.STREAM_CONFIGURATION]),requiredArgumentNames:new Set([V.SUBJECTS])};Je.ONE_OF_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([V.INPUT_OBJECT_UPPER]),name:V.ONE_OF,node:cn.ONE_OF_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.OVERRIDE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.FROM,{name:V.FROM,typeNode:Jn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.OVERRIDE,node:cn.OVERRIDE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([V.FROM])};Je.KEY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.FIELDS,{name:V.FIELDS,typeNode:Jn.REQUIRED_FIELDSET_TYPE_NODE}],[V.RESOLVABLE,{name:V.RESOLVABLE,typeNode:(0,Vs.stringToNamedTypeNode)(V.BOOLEAN_SCALAR),defaultValue:{kind:Xt.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!0,locations:new Set([V.INTERFACE_UPPER,V.OBJECT_UPPER]),name:V.KEY,node:cn.KEY_DEFINITION,optionalArgumentNames:new Set([V.RESOLVABLE]),requiredArgumentNames:new Set([V.FIELDS])};Je.LINK_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.URL_LOWER,{name:V.URL_LOWER,typeNode:Jn.REQUIRED_STRING_TYPE_NODE}],[V.AS,{name:V.AS,typeNode:(0,Vs.stringToNamedTypeNode)(V.STRING_SCALAR)}],[V.FOR,{name:V.FOR,typeNode:(0,Vs.stringToNamedTypeNode)(V.LINK_PURPOSE)}],[V.IMPORT,{name:V.IMPORT,typeNode:{kind:Xt.Kind.LIST_TYPE,type:(0,Vs.stringToNamedTypeNode)(V.LINK_IMPORT)}}]]),isRepeatable:!0,locations:new Set([V.SCHEMA_UPPER]),name:V.LINK,node:cn.LINK_DEFINITION,optionalArgumentNames:new Set([V.AS,V.FOR,V.IMPORT]),requiredArgumentNames:new Set([V.URL_LOWER])};Je.PROVIDES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.FIELDS,{name:V.FIELDS,typeNode:Jn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.PROVIDES,node:cn.PROVIDES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([V.FIELDS])};Je.REQUIRES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.FIELDS,{name:V.FIELDS,typeNode:Jn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.REQUIRES,node:cn.REQUIRES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([V.FIELDS])};Je.REDIS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.CHANNEL,{name:V.CHANNEL,typeNode:Jn.REQUIRED_STRING_TYPE_NODE}],[V.PROVIDER_ID,{name:V.PROVIDER_ID,typeNode:Jn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Xt.Kind.STRING,value:V.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.EDFS_REDIS_PUBLISH,node:cn.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([V.PROVIDER_ID]),requiredArgumentNames:new Set([V.CHANNEL])};Je.REDIS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.CHANNELS,{name:V.CHANNELS,typeNode:{kind:Xt.Kind.NON_NULL_TYPE,type:{kind:Xt.Kind.LIST_TYPE,type:Jn.REQUIRED_STRING_TYPE_NODE}}}],[V.PROVIDER_ID,{name:V.PROVIDER_ID,typeNode:Jn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Xt.Kind.STRING,value:V.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.EDFS_REDIS_SUBSCRIBE,node:cn.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([V.PROVIDER_ID]),requiredArgumentNames:new Set([V.CHANNELS])};Je.REQUIRE_FETCH_REASONS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([V.FIELD_DEFINITION_UPPER,V.INTERFACE_UPPER,V.OBJECT_UPPER]),name:V.REQUIRE_FETCH_REASONS,node:cn.REQUIRE_FETCH_REASONS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.REQUIRES_SCOPES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.SCOPES,{name:V.SCOPES,typeNode:{kind:Xt.Kind.NON_NULL_TYPE,type:{kind:Xt.Kind.LIST_TYPE,type:{kind:Xt.Kind.NON_NULL_TYPE,type:{kind:Xt.Kind.LIST_TYPE,type:{kind:Xt.Kind.NON_NULL_TYPE,type:(0,Vs.stringToNamedTypeNode)(V.SCOPE_SCALAR)}}}}}}]]),isRepeatable:!1,locations:new Set([V.ENUM_UPPER,V.FIELD_DEFINITION_UPPER,V.INTERFACE_UPPER,V.OBJECT_UPPER,V.SCALAR_UPPER]),name:V.REQUIRES_SCOPES,node:cn.REQUIRES_SCOPES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([V.SCOPES])};Je.SEMANTIC_NON_NULL_DATA={argumentTypeNodeByName:new Map([[V.LEVELS,{name:V.LEVELS,typeNode:{kind:Xt.Kind.NON_NULL_TYPE,type:{kind:Xt.Kind.LIST_TYPE,type:{kind:Xt.Kind.NON_NULL_TYPE,type:(0,Vs.stringToNamedTypeNode)(V.INT_SCALAR)}}},defaultValue:{kind:Xt.Kind.LIST,values:[{kind:Xt.Kind.INT,value:"0"}]}}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.SEMANTIC_NON_NULL,node:cn.SEMANTIC_NON_NULL_DEFINITION,optionalArgumentNames:new Set([V.LEVELS]),requiredArgumentNames:new Set};Je.SPECIFIED_BY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.URL_LOWER,{name:V.URL_LOWER,typeNode:Jn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([V.SCALAR_UPPER]),name:V.SPECIFIED_BY,node:cn.SPECIFIED_BY_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([V.URL_LOWER])};Je.SHAREABLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([V.FIELD_DEFINITION_UPPER,V.OBJECT_UPPER]),name:V.SHAREABLE,node:cn.SHAREABLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.SUBSCRIPTION_FILTER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.CONDITION,{name:V.CONDITION,typeNode:{kind:Xt.Kind.NON_NULL_TYPE,type:(0,Vs.stringToNamedTypeNode)(V.SUBSCRIPTION_FILTER_CONDITION)}}]]),isRepeatable:!1,locations:new Set([V.FIELD_DEFINITION_UPPER]),name:V.SUBSCRIPTION_FILTER,node:cn.SUBSCRIPTION_FILTER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([V.CONDITION])};Je.TAG_DEFINITION_DATA={argumentTypeNodeByName:new Map([[V.NAME,{name:V.NAME,typeNode:Jn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([V.ARGUMENT_DEFINITION_UPPER,V.ENUM_UPPER,V.ENUM_VALUE_UPPER,V.FIELD_DEFINITION_UPPER,V.INPUT_FIELD_DEFINITION_UPPER,V.INPUT_OBJECT_UPPER,V.INTERFACE_UPPER,V.OBJECT_UPPER,V.SCALAR_UPPER,V.UNION_UPPER]),name:V.TAG,node:cn.TAG_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([V.NAME])}});var eT=C(ma=>{"use strict";p();N();m();Object.defineProperty(ma,"__esModule",{value:!0});ma.newFieldSetData=Rpe;ma.extractFieldSetValue=Fpe;ma.getNormalizedFieldSet=wpe;ma.getInitialFieldCoordsPath=Lpe;ma.validateKeyFieldSets=Ppe;ma.getConditionalFieldSetDirectiveName=Cpe;ma.isNodeQuery=Upe;ma.validateArgumentTemplateReferences=Bpe;ma.initializeDirectiveDefinitionDatas=kpe;var cr=(Oe(),Ae(Pe)),AG=ui(),Wr=As(),RG=Pc(),lR=Lc(),ln=cR(),Rt=Er(),Bo=di();function Rpe(){return{provides:new Map,requires:new Map}}function Fpe(e,t,n){if(!n||n.length>1)return;let r=n[0].arguments;if(!r||r.length!==1)return;let i=r[0];i.name.value!==Rt.FIELDS||i.value.kind!==cr.Kind.STRING||t.set(e,i.value.value)}function wpe(e){return(0,cr.print)((0,AG.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function Lpe(e,t){return e?[t]:[]}function Ppe(e,t,n){let r=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,s=[],a=[],u=r?void 0:e.internalGraph.addEntityDataNode(t.name),l=e.internalGraph.addOrUpdateNode(t.name),d=0;for(let[f,{documentNode:E,isUnresolvable:h,rawFieldSet:_}]of n){r&&(r.resolvable||(r.resolvable=!h)),d+=1;let A=[],U=[t],q=[],j=[],re=new Set,ee=-1,me=!0,ce="";if((0,cr.visit)(E,{Argument:{enter(be){return A.push((0,Wr.unexpectedArgumentErrorMessage)(_,`${U[ee].name}.${ce}`,be.name.value)),cr.BREAK}},Field:{enter(be){let xe=U[ee],at=xe.name;if(me){let Hn=`${at}.${ce}`,Zt=xe.fieldDataByName.get(ce);if(!Zt)return A.push((0,Wr.undefinedFieldInFieldSetErrorMessage)(_,Hn,ce)),cr.BREAK;let Sn=(0,lR.getTypeNodeNamedTypeName)(Zt.node.type),Ti=e.parentDefinitionDataByTypeName.get(Sn),Lr=Ti?Ti.kind:cr.Kind.SCALAR_TYPE_DEFINITION;return A.push((0,Wr.invalidSelectionSetErrorMessage)(_,[Hn],Sn,(0,Bo.kindToNodeType)(Lr))),cr.BREAK}let te=be.name.value,Se=`${at}.${te}`;if(ce=te,te===Rt.TYPENAME)return;let wt=xe.fieldDataByName.get(te);if(!wt)return A.push((0,Wr.undefinedFieldInFieldSetErrorMessage)(_,at,te)),cr.BREAK;if(wt.argumentDataByName.size)return A.push((0,Wr.argumentsInKeyFieldSetErrorMessage)(_,Se)),cr.BREAK;if(q[ee].has(te))return A.push((0,Wr.duplicateFieldInFieldSetErrorMessage)(_,Se)),cr.BREAK;(0,Bo.getValueOrDefault)((0,Bo.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,Se,()=>new Map),i,()=>new Set).add(f),j.push(te),wt.isShareableBySubgraphName.set(e.subgraphName,!0),q[ee].add(te),(0,Bo.getValueOrDefault)(e.keyFieldNamesByParentTypeName,at,()=>new Set).add(te);let fn=(0,lR.getTypeNodeNamedTypeName)(wt.node.type);if(RG.BASE_SCALARS.has(fn)){re.add(j.join(Rt.LITERAL_PERIOD)),j.pop();return}let pn=e.parentDefinitionDataByTypeName.get(fn);if(!pn)return A.push((0,Wr.unknownTypeInFieldSetErrorMessage)(_,Se,fn)),cr.BREAK;if(pn.kind===cr.Kind.OBJECT_TYPE_DEFINITION){me=!0,U.push(pn);return}if((0,AG.isKindAbstract)(pn.kind))return A.push((0,Wr.abstractTypeInKeyFieldSetErrorMessage)(_,Se,fn,(0,Bo.kindToNodeType)(pn.kind))),cr.BREAK;re.add(j.join(Rt.LITERAL_PERIOD)),j.pop()}},InlineFragment:{enter(){return A.push(Wr.inlineFragmentInFieldSetErrorMessage),cr.BREAK}},SelectionSet:{enter(){if(!me){let be=U[ee],at=`${be.name}.${ce}`;if(ce===Rt.TYPENAME)return A.push((0,Wr.invalidSelectionSetDefinitionErrorMessage)(_,[at],Rt.STRING_SCALAR,(0,Bo.kindToNodeType)(cr.Kind.SCALAR_TYPE_DEFINITION))),cr.BREAK;let te=be.fieldDataByName.get(ce);if(!te)return A.push((0,Wr.undefinedFieldInFieldSetErrorMessage)(_,at,ce)),cr.BREAK;let Se=(0,lR.getTypeNodeNamedTypeName)(te.node.type),wt=e.parentDefinitionDataByTypeName.get(Se),fn=wt?wt.kind:cr.Kind.SCALAR_TYPE_DEFINITION;return A.push((0,Wr.invalidSelectionSetDefinitionErrorMessage)(_,[at],Se,(0,Bo.kindToNodeType)(fn))),cr.BREAK}if(ee+=1,me=!1,ee<0||ee>=U.length)return A.push((0,Wr.unparsableFieldSetSelectionErrorMessage)(_,ce)),cr.BREAK;q.push(new Set)},leave(){if(me){let xe=U[ee].name,at=U[ee+1],te=`${xe}.${ce}`;A.push((0,Wr.invalidSelectionSetErrorMessage)(_,[te],at.name,(0,Bo.kindToNodeType)(at.kind))),me=!1}ee-=1,U.pop(),q.pop()}}}),A.length>0){e.errors.push((0,Wr.invalidDirectiveError)(Rt.KEY,i,(0,Bo.numberToOrdinal)(d),A));continue}s.push(x({fieldName:"",selectionSet:f},h?{disableEntityResolver:!0}:{})),l.satisfiedFieldSets.add(f),!h&&(u==null||u.addTargetSubgraphByFieldSet(f,e.subgraphName),a.push(re))}if(s.length>0)return s}function Cpe(e){return e?Rt.PROVIDES:Rt.REQUIRES}function Upe(e,t){return e===Rt.QUERY||t===cr.OperationTypeNode.QUERY}function Bpe(e,t,n){let r=e.matchAll(RG.EDFS_ARGS_REGEXP),i=new Set,s=new Set;for(let a of r){if(a.length<2){s.add(a[0]);continue}t.has(a[1])||i.add(a[1])}for(let a of i)n.push((0,Wr.undefinedEventSubjectsArgumentErrorMessage)(a));for(let a of s)n.push((0,Wr.invalidEventSubjectsArgumentErrorMessage)(a))}function kpe(){return new Map([[Rt.AUTHENTICATED,ln.AUTHENTICATED_DEFINITION_DATA],[Rt.COMPOSE_DIRECTIVE,ln.COMPOSE_DIRECTIVE_DEFINITION_DATA],[Rt.CONFIGURE_DESCRIPTION,ln.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[Rt.CONFIGURE_CHILD_DESCRIPTIONS,ln.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[Rt.CONNECT_FIELD_RESOLVER,ln.CONNECT_FIELD_RESOLVER_DEFINITION_DATA],[Rt.DEPRECATED,ln.DEPRECATED_DEFINITION_DATA],[Rt.EDFS_KAFKA_PUBLISH,ln.KAFKA_PUBLISH_DEFINITION_DATA],[Rt.EDFS_KAFKA_SUBSCRIBE,ln.KAFKA_SUBSCRIBE_DEFINITION_DATA],[Rt.EDFS_NATS_PUBLISH,ln.NATS_PUBLISH_DEFINITION_DATA],[Rt.EDFS_NATS_REQUEST,ln.NATS_REQUEST_DEFINITION_DATA],[Rt.EDFS_NATS_SUBSCRIBE,ln.NATS_SUBSCRIBE_DEFINITION_DATA],[Rt.EDFS_REDIS_PUBLISH,ln.REDIS_PUBLISH_DEFINITION_DATA],[Rt.EDFS_REDIS_SUBSCRIBE,ln.REDIS_SUBSCRIBE_DEFINITION_DATA],[Rt.EXTENDS,ln.EXTENDS_DEFINITION_DATA],[Rt.EXTERNAL,ln.EXTERNAL_DEFINITION_DATA],[Rt.INACCESSIBLE,ln.INACCESSIBLE_DEFINITION_DATA],[Rt.INTERFACE_OBJECT,ln.INTERFACE_OBJECT_DEFINITION_DATA],[Rt.KEY,ln.KEY_DEFINITION_DATA],[Rt.LINK,ln.LINK_DEFINITION_DATA],[Rt.ONE_OF,ln.ONE_OF_DEFINITION_DATA],[Rt.OVERRIDE,ln.OVERRIDE_DEFINITION_DATA],[Rt.PROVIDES,ln.PROVIDES_DEFINITION_DATA],[Rt.REQUIRE_FETCH_REASONS,ln.REQUIRE_FETCH_REASONS_DEFINITION_DATA],[Rt.REQUIRES,ln.REQUIRES_DEFINITION_DATA],[Rt.REQUIRES_SCOPES,ln.REQUIRES_SCOPES_DEFINITION_DATA],[Rt.SEMANTIC_NON_NULL,ln.SEMANTIC_NON_NULL_DATA],[Rt.SHAREABLE,ln.SHAREABLE_DEFINITION_DATA],[Rt.SPECIFIED_BY,ln.SPECIFIED_BY_DEFINITION_DATA],[Rt.SUBSCRIPTION_FILTER,ln.SUBSCRIPTION_FILTER_DEFINITION_DATA],[Rt.TAG,ln.TAG_DEFINITION_DATA]])}});var fR=C(dR=>{"use strict";p();N();m();Object.defineProperty(dR,"__esModule",{value:!0});dR.recordSubgraphName=xpe;function xpe(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var mR=C(CI=>{"use strict";p();N();m();Object.defineProperty(CI,"__esModule",{value:!0});CI.Warning=void 0;var pR=class extends Error{constructor(n){super(n.message);v(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};CI.Warning=pR});var tT=C(os=>{"use strict";p();N();m();Object.defineProperty(os,"__esModule",{value:!0});os.invalidOverrideTargetSubgraphNameWarning=Mpe;os.externalInterfaceFieldsWarning=Vpe;os.nonExternalConditionalFieldWarning=qpe;os.unimplementedInterfaceOutputTypeWarning=$pe;os.invalidExternalFieldWarning=jpe;os.requiresDefinedOnNonEntityFieldWarning=Kpe;os.consumerInactiveThresholdInvalidValueWarning=Gpe;os.externalEntityExtensionKeyFieldWarning=Qpe;os.fieldAlreadyProvidedWarning=Ype;os.singleSubgraphInputFieldOneOfWarning=Jpe;os.singleFederatedInputFieldOneOfWarning=Hpe;var Na=mR(),NR=Er();function Mpe(e,t,n,r){return new Na.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(NR.QUOTATION_JOIN)+`". The required "from" argument of type "String!" should be provided with an existing subgraph name. However, a subgraph by the name of "${e}" does not exist. -If this subgraph has been recently deleted, remember to clean up unused "@override" directives that reference this subgraph.`,subgraph:{name:r}})}function PE(e){return`The subgraph "${e}" is currently a "version one" subgraph, but if it were updated to "version two" in its current state, composition would be unsuccessful due to the following warning that would instead propagate as an error: -`}function Pde(e,t,n){return new Sa.Warning({message:PE(e)+`The Interface "${t}" is invalid because the following field definition`+(n.length>1?"s are":" is")+` declared "@external": - "`+n.join(CD.QUOTATION_JOIN)+`" -Interface fields should not be declared "@external". This is because Interface fields do not resolve directly, but the "@external" directive relates to whether a Field instance can be resolved by the subgraph in which it is defined.`,subgraph:{name:e}})}function Fde(e,t,n,r,i){return new Sa.Warning({message:PE(t)+`The Field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: +If this subgraph has been recently deleted, remember to clean up unused "@override" directives that reference this subgraph.`,subgraph:{name:r}})}function UI(e){return`The subgraph "${e}" is currently a "version one" subgraph, but if it were updated to "version two" in its current state, composition would be unsuccessful due to the following warning that would instead propagate as an error: +`}function Vpe(e,t,n){return new Na.Warning({message:UI(e)+`The Interface "${t}" is invalid because the following field definition`+(n.length>1?"s are":" is")+` declared "@external": + "`+n.join(NR.QUOTATION_JOIN)+`" +Interface fields should not be declared "@external". This is because Interface fields do not resolve directly, but the "@external" directive relates to whether a Field instance can be resolved by the subgraph in which it is defined.`,subgraph:{name:e}})}function qpe(e,t,n,r,i){return new Na.Warning({message:UI(t)+`The Field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: "${r}". However, neither the field "${n}" nor any of its field set ancestors are declared @external. -Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`,subgraph:{name:t}})}function wde(e,t){return new Sa.Warning({message:`Subgraph "${e}": The Interface "${t}" is used as an output type without at least one Object type implementation defined in the schema.`,subgraph:{name:e}})}function Lde(e,t){return new Sa.Warning({message:PE(t)+` The Object Field "${e}" is invalidly declared "@external". An Object field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" field set, or the field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`,subgraph:{name:t}})}function Cde(e,t){return new Sa.Warning({message:` The Object Field "${e}" defines a "@requires" directive, but the Object is not an entity. Consequently, the "@requires" FieldSet cannot be satisfied because there is no entity resolver with which to provide the required Fields.`,subgraph:{name:t}})}function Bde(e,t=""){return new Sa.Warning({message:'The "consumerInactiveThreshold" argument of type "Int" should be positive and smaller than 2,147,483,648.'+ +t?` -${t}`:"",subgraph:{name:e}})}function Ude(e,t,n,r){return new Sa.Warning({message:`The entity extension "${e}" defined in subgraph "${r}" defines a "@key" directive with the field set "${t}". +Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`,subgraph:{name:t}})}function $pe(e,t){return new Na.Warning({message:`Subgraph "${e}": The Interface "${t}" is used as an output type without at least one Object type implementation defined in the schema.`,subgraph:{name:e}})}function jpe(e,t){return new Na.Warning({message:UI(t)+` The Object Field "${e}" is invalidly declared "@external". An Object field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" field set, or the field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`,subgraph:{name:t}})}function Kpe(e,t){return new Na.Warning({message:` The Object Field "${e}" defines a "@requires" directive, but the Object is not an entity. Consequently, the "@requires" FieldSet cannot be satisfied because there is no entity resolver with which to provide the required Fields.`,subgraph:{name:t}})}function Gpe(e,t=""){return new Na.Warning({message:'The "consumerInactiveThreshold" argument of type "Int" should be positive and smaller than 2,147,483,648.'+ +t?` +${t}`:"",subgraph:{name:e}})}function Qpe(e,t,n,r){return new Na.Warning({message:`The entity extension "${e}" defined in subgraph "${r}" defines a "@key" directive with the field set "${t}". The following field coordinates that form part of that field set are declared "@external": - "`+n.join(CD.QUOTATION_JOIN)+`" -Please note fields that form part of entity extension "@key" field sets are always provided in that subgraph. Any such "@external" declarations are unnecessary relics of Federation Version 1 syntax and are effectively ignored.`,subgraph:{name:r}})}function kde(e,t,n,r){return new Sa.Warning({message:PE(r)+`The field "${e}" is unconditionally provided by subgraph "${r}" and should not form part of any "@${t}" field set. + "`+n.join(NR.QUOTATION_JOIN)+`" +Please note fields that form part of entity extension "@key" field sets are always provided in that subgraph. Any such "@external" declarations are unnecessary relics of Federation Version 1 syntax and are effectively ignored.`,subgraph:{name:r}})}function Ype(e,t,n,r){return new Na.Warning({message:UI(r)+`The field "${e}" is unconditionally provided by subgraph "${r}" and should not form part of any "@${t}" field set. However, "${e}" forms part of the "@${t}" field set defined "${n}". -Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`,subgraph:{name:r}})}function Mde({fieldName:e,subgraphName:t,typeName:n}){return new Sa.Warning({message:`The directive "@oneOf" is defined on Input Object "${n}", but only one optional Input field, "${e}", is defined. Consider removing "@oneOf" and changing "${e}" to a required type instead.`,subgraph:{name:t}})}function xde({fieldName:e,typeName:t}){return new Sa.Warning({message:`The directive "@oneOf" is defined on Input Object "${t}", but only one optional Input field, "${e}", is propagated to the federated graph. Consider removing "@oneOf", changing "${e}" to a required type, and removing any other remaining optional Input fields instead.`,subgraph:{name:""}})}});var kD=w(wE=>{"use strict";m();T();N();Object.defineProperty(wE,"__esModule",{value:!0});wE.upsertDirectiveSchemaAndEntityDefinitions=jde;wE.upsertParentsAndChildren=Kde;var $n=Oe(),Ru=qi(),UD=gu(),FE=lp(),od=Pr(),BD=dp(),qde=rd(),sd=Ul(),pp=Iu(),Vde=fp(),Zi=zn(),hr=Fr();function jde(e,t){(0,$n.visit)(t,{Directive:{enter(n){let r=n.name.value;return e.referencedDirectiveNames.add(r),qde.EVENT_DIRECTIVE_NAMES.has(r)&&e.edfsDirectiveReferences.add(r),UD.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r)&&(e.isSubgraphVersionTwo=!0),!1}},DirectiveDefinition:{enter(n){return e.addDirectiveDefinitionDataByNode(n)&&e.customDirectiveDefinitionByName.set(n.name.value,n),!1}},InterfaceTypeDefinition:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,od.isObjectLikeNodeEntity)(n))return;let i=(0,hr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,FE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,hr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},InterfaceTypeExtension:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,od.isObjectLikeNodeEntity)(n))return;let i=(0,hr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,FE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,hr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},ObjectTypeDefinition:{enter(n){if(!(0,od.isObjectLikeNodeEntity)(n))return;let r=n.name.value;(0,od.isNodeInterfaceObject)(n)&&(e.entityInterfaceDataByTypeName.set(r,{concreteTypeNames:new Set,fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,resolvable:!1,typeName:r}),e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}));let i=(0,hr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,FE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},ObjectTypeExtension:{enter(n){if(!(0,od.isObjectLikeNodeEntity)(n))return;let r=n.name.value,i=(0,hr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,FE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},OperationTypeDefinition:{enter(n){let r=n.operation,i=e.schemaData.operationTypes.get(r),a=(0,pp.getTypeNodeNamedTypeName)(n.type);if(i)return e.errors.push((0,Ru.duplicateOperationTypeDefinitionError)(r,a,(0,pp.getTypeNodeNamedTypeName)(i.type))),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,Ru.invalidOperationTypeDefinitionError)(o,a,r)),!1):(e.operationTypeNodeByTypeName.set(a,r),e.schemaData.operationTypes.set(r,n),!1)}},SchemaDefinition:{enter(n){e.schemaData.description=n.description,e.extractDirectives(n,e.schemaData.directivesByName)}},SchemaExtension:{enter(n){e.extractDirectives(n,e.schemaData.directivesByName)}}})}function Kde(e,t){let n=!1,r;(0,$n.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=$n.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=$n.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,hr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Zi.PARENT_DEFINITION_DATA);if(o.kind!==$n.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,Ru.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,hr.kindToNodeType)(o.kind),a,(0,hr.kindToNodeType)(i.kind)));return}if(o.enumValueDataByName.has(a)){e.errors.push((0,Ru.duplicateEnumValueDefinitionError)(e.originalParentTypeName,a));return}o.enumValueDataByName.set(a,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${a}`,kind:$n.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,pp.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,persistedDirectivesData:(0,sd.newPersistedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,od.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=$n.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(n&&Zi.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,pp.getTypeNodeNamedTypeName)(i.type);(0,hr.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(o),a),UD.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,hr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Zi.PARENT_DEFINITION_DATA);if(!(0,sd.isParentDataCompositeOutputType)(c)){e.errors.push((0,Ru.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,hr.kindToNodeType)(c.kind),a,(0,hr.kindToNodeType)(i.kind)));return}if(c.fieldDataByName.has(a)){e.errors.push((0,Ru.duplicateFieldDefinitionError)((0,hr.kindToNodeType)(c.kind),c.name,a));return}let l=e.extractArguments(new Map,i),d=e.extractDirectives(i,new Map),p=new Set;e.handleFieldInheritableDirectives({directivesByName:d,fieldName:a,inheritedDirectiveNames:p,parentData:c});let E=e.addFieldDataByNode(c.fieldDataByName,i,l,d,p);n&&e.extractEventDirectivesToConfiguration(i,l);let I=E.directivesByName.get(Zi.PROVIDES),v=E.directivesByName.get(Zi.REQUIRES);if(!v&&!I)return;let A=e.entityDataByTypeName.get(e.originalParentTypeName),U=(0,hr.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,BD.newFieldSetData);I&&(0,BD.extractFieldSetValue)(a,U.provides,I),v&&(A||e.warnings.push((0,Vde.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,BD.extractFieldSetValue)(a,U.requires,v))},leave(){e.lastChildNodeKind=$n.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=$n.Kind.NULL,e.originalParentTypeName=""}},InputObjectTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=$n.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==$n.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==$n.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,pp.getTypeNodeNamedTypeName)(i.type);UD.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,hr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Zi.PARENT_DEFINITION_DATA);if(c.kind!==$n.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,Ru.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,hr.kindToNodeType)(c.kind),a,(0,hr.kindToNodeType)(i.kind))),!1;if(c.inputValueDataByName.has(a)){e.errors.push((0,Ru.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:c.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===$n.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=$n.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=$n.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=$n.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===Zi.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,sd.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,sd.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=$n.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===Zi.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,sd.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,sd.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=$n.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===Zi.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=$n.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===Zi.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=$n.Kind.NULL}},UnionTypeDefinition:{enter(i){if(i.name.value===Zi.ENTITY_UNION)return!1;e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===Zi.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var jD=w(Xa=>{"use strict";m();T();N();Object.defineProperty(Xa,"__esModule",{value:!0});Xa.EntityDataNode=Xa.RootNode=Xa.GraphNode=Xa.Edge=void 0;var LE=Fr(),MD=class{constructor(t,n,r,i=!1){_(this,"edgeName");_(this,"id");_(this,"isAbstractEdge");_(this,"isInaccessible",!1);_(this,"node");_(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};Xa.Edge=MD;var xD=class{constructor(t,n,r){_(this,"fieldDataByName",new Map);_(this,"headToTailEdges",new Map);_(this,"entityEdges",new Array);_(this,"nodeName");_(this,"hasEntitySiblings",!1);_(this,"isAbstract");_(this,"isInaccessible",!1);_(this,"isLeaf",!1);_(this,"isRootNode",!1);_(this,"satisfiedFieldSets",new Set);_(this,"subgraphName");_(this,"typeName");this.isAbstract=!!(r!=null&&r.isAbstract),this.isLeaf=!!(r!=null&&r.isLeaf),this.nodeName=`${t}.${n}`,this.subgraphName=t,this.typeName=n}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,LE.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByName);for(let n of t){let r=this.headToTailEdges.get(n);r&&(r.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,n){for(let r of t.entityEdges)(0,LE.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};Xa.GraphNode=xD;var qD=class{constructor(t){_(this,"fieldDataByName",new Map);_(this,"headToSharedTailEdges",new Map);_(this,"isAbstract",!1);_(this,"isRootNode",!0);_(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToSharedTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};Xa.RootNode=qD;var VD=class{constructor(t){_(this,"fieldSetsByTargetSubgraphName",new Map);_(this,"targetSubgraphNamesByFieldSet",new Map);_(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,LE.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,LE.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};Xa.EntityDataNode=VD});var KD=w(Qn=>{"use strict";m();T();N();Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ROOT_TYPE_NAMES=Qn.QUOTATION_JOIN=Qn.NOT_APPLICABLE=Qn.LITERAL_SPACE=Qn.LITERAL_PERIOD=Qn.SUBSCRIPTION=Qn.QUERY=Qn.MUTATION=void 0;Qn.MUTATION="Mutation";Qn.QUERY="Query";Qn.SUBSCRIPTION="Subscription";Qn.LITERAL_PERIOD=".";Qn.LITERAL_SPACE=" ";Qn.NOT_APPLICABLE="N/A";Qn.QUOTATION_JOIN='", "';Qn.ROOT_TYPE_NAMES=new Set([Qn.MUTATION,Qn.QUERY,Qn.SUBSCRIPTION])});var YD=w(Da=>{"use strict";m();T();N();Object.defineProperty(Da,"__esModule",{value:!0});Da.newRootFieldData=Gde;Da.generateResolvabilityErrorReasons=QD;Da.generateSharedResolvabilityErrorReasons=tV;Da.generateSelectionSetSegments=CE;Da.renderSelectionSet=BE;Da.generateRootResolvabilityErrors=Qde;Da.generateEntityResolvabilityErrors=Yde;Da.generateSharedEntityResolvabilityErrors=Jde;Da.getMultipliedRelativeOriginPaths=Hde;var GD=qi(),$D=Fr(),Za=KD();function Gde(e,t,n){return{coords:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Za.QUOTATION_JOIN)}".`,subgraphNames:n}}function $de(e,t){return e.isLeaf?e.name+` <-- +Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`,subgraph:{name:r}})}function Jpe({fieldName:e,subgraphName:t,typeName:n}){return new Na.Warning({message:`The directive "@oneOf" is defined on Input Object "${n}", but only one optional Input field, "${e}", is defined. Consider removing "@oneOf" and changing "${e}" to a required type instead.`,subgraph:{name:t}})}function Hpe({fieldName:e,typeName:t}){return new Na.Warning({message:`The directive "@oneOf" is defined on Input Object "${t}", but only one optional Input field, "${e}", is propagated to the federated graph. Consider removing "@oneOf", changing "${e}" to a required type, and removing any other remaining optional Input fields instead.`,subgraph:{name:""}})}});var hR=C(kI=>{"use strict";p();N();m();Object.defineProperty(kI,"__esModule",{value:!0});kI.upsertDirectiveSchemaAndEntityDefinitions=Xpe;kI.upsertParentsAndChildren=Zpe;var lr=(Oe(),Ae(Pe)),qc=As(),ER=Pc(),BI=ZN(),Xf=ui(),TR=eT(),zpe=Jf(),Wf=bf(),nT=Lc(),Wpe=tT(),qs=Er(),jr=di();function Xpe(e,t){(0,lr.visit)(t,{Directive:{enter(n){let r=n.name.value;return e.referencedDirectiveNames.add(r),zpe.EVENT_DIRECTIVE_NAMES.has(r)&&e.edfsDirectiveReferences.add(r),ER.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r)&&(e.isSubgraphVersionTwo=!0),!1}},DirectiveDefinition:{enter(n){return e.addDirectiveDefinitionDataByNode(n)&&e.customDirectiveDefinitionByName.set(n.name.value,n),!1}},InterfaceTypeDefinition:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Xf.isObjectLikeNodeEntity)(n))return;let i=(0,jr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,BI.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,jr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},InterfaceTypeExtension:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Xf.isObjectLikeNodeEntity)(n))return;let i=(0,jr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,BI.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,jr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},ObjectTypeDefinition:{enter(n){if(!(0,Xf.isObjectLikeNodeEntity)(n))return;let r=n.name.value;(0,Xf.isNodeInterfaceObject)(n)&&(e.entityInterfaceDataByTypeName.set(r,{concreteTypeNames:new Set,fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,resolvable:!1,typeName:r}),e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}));let i=(0,jr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,BI.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},ObjectTypeExtension:{enter(n){if(!(0,Xf.isObjectLikeNodeEntity)(n))return;let r=n.name.value,i=(0,jr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,BI.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},OperationTypeDefinition:{enter(n){let r=n.operation,i=e.schemaData.operationTypes.get(r),s=(0,nT.getTypeNodeNamedTypeName)(n.type);if(i)return e.errors.push((0,qc.duplicateOperationTypeDefinitionError)(r,s,(0,nT.getTypeNodeNamedTypeName)(i.type))),!1;let a=e.operationTypeNodeByTypeName.get(s);return a?(e.errors.push((0,qc.invalidOperationTypeDefinitionError)(a,s,r)),!1):(e.operationTypeNodeByTypeName.set(s,r),e.schemaData.operationTypes.set(r,n),!1)}},SchemaDefinition:{enter(n){e.schemaData.description=n.description,e.extractDirectives(n,e.schemaData.directivesByName)}},SchemaExtension:{enter(n){e.extractDirectives(n,e.schemaData.directivesByName)}}})}function Zpe(e,t){let n=!1,r;(0,lr.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=lr.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=lr.Kind.NULL}},EnumValueDefinition:{enter(i){let s=i.name.value;e.lastChildNodeKind=i.kind;let a=(0,jr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,qs.PARENT_DEFINITION_DATA);if(a.kind!==lr.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,qc.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,jr.kindToNodeType)(a.kind),s,(0,jr.kindToNodeType)(i.kind)));return}if(a.enumValueDataByName.has(s)){e.errors.push((0,qc.duplicateEnumValueDefinitionError)(e.originalParentTypeName,s));return}a.enumValueDataByName.set(s,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${s}`,kind:lr.Kind.ENUM_VALUE_DEFINITION,name:s,node:(0,nT.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,persistedDirectivesData:(0,Wf.newPersistedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,Xf.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=lr.Kind.NULL}},FieldDefinition:{enter(i){let s=i.name.value;if(n&&qs.IGNORED_FIELDS.has(s))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let a=(0,nT.getTypeNodeNamedTypeName)(i.type);(0,jr.getValueOrDefault)(e.fieldCoordsByNamedTypeName,a,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${s}`),r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(a),s),ER.BASE_SCALARS.has(a)||e.referencedTypeNames.add(a);let u=(0,jr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,qs.PARENT_DEFINITION_DATA);if(!(0,Wf.isParentDataCompositeOutputType)(u)){e.errors.push((0,qc.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,jr.kindToNodeType)(u.kind),s,(0,jr.kindToNodeType)(i.kind)));return}if(u.fieldDataByName.has(s)){e.errors.push((0,qc.duplicateFieldDefinitionError)((0,jr.kindToNodeType)(u.kind),u.name,s));return}let l=e.extractArguments(new Map,i),d=e.extractDirectives(i,new Map),f=new Set;e.handleFieldInheritableDirectives({directivesByName:d,fieldName:s,inheritedDirectiveNames:f,parentData:u});let E=e.addFieldDataByNode(u.fieldDataByName,i,l,d,f);n&&e.extractEventDirectivesToConfiguration(i,l);let h=E.directivesByName.get(qs.PROVIDES),_=E.directivesByName.get(qs.REQUIRES);if(!_&&!h)return;let A=e.entityDataByTypeName.get(e.originalParentTypeName),U=(0,jr.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,TR.newFieldSetData);h&&(0,TR.extractFieldSetValue)(s,U.provides,h),_&&(A||e.warnings.push((0,Wpe.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${s}`,e.subgraphName)),(0,TR.extractFieldSetValue)(s,U.requires,_))},leave(){e.lastChildNodeKind=lr.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=lr.Kind.NULL,e.originalParentTypeName=""}},InputObjectTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=lr.Kind.NULL}},InputValueDefinition:{enter(i){let s=i.name.value;if(e.lastParentNodeKind!==lr.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==lr.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=s;return}e.lastChildNodeKind=i.kind;let a=(0,nT.getTypeNodeNamedTypeName)(i.type);ER.BASE_SCALARS.has(a)||e.referencedTypeNames.add(a);let u=(0,jr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,qs.PARENT_DEFINITION_DATA);if(u.kind!==lr.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,qc.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,jr.kindToNodeType)(u.kind),s,(0,jr.kindToNodeType)(i.kind))),!1;if(u.inputValueDataByName.has(s)){e.errors.push((0,qc.duplicateInputFieldDefinitionError)(e.originalParentTypeName,s));return}e.addInputValueDataByNode({inputValueDataByName:u.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===lr.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=lr.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=lr.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=lr.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===qs.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,Wf.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,Wf.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=lr.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===qs.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,Wf.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,Wf.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=lr.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===qs.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=lr.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===qs.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=lr.Kind.NULL}},UnionTypeDefinition:{enter(i){if(i.name.value===qs.ENTITY_UNION)return!1;e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===qs.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var vR=C(Ga=>{"use strict";p();N();m();Object.defineProperty(Ga,"__esModule",{value:!0});Ga.EntityDataNode=Ga.RootNode=Ga.GraphNode=Ga.Edge=void 0;var xI=di(),yR=class{constructor(t,n,r,i=!1){v(this,"edgeName");v(this,"id");v(this,"isAbstractEdge");v(this,"isInaccessible",!1);v(this,"node");v(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};Ga.Edge=yR;var IR=class{constructor(t,n,r){v(this,"fieldDataByName",new Map);v(this,"headToTailEdges",new Map);v(this,"entityEdges",new Array);v(this,"nodeName");v(this,"hasEntitySiblings",!1);v(this,"isAbstract");v(this,"isInaccessible",!1);v(this,"isLeaf",!1);v(this,"isRootNode",!1);v(this,"satisfiedFieldSets",new Set);v(this,"subgraphName");v(this,"typeName");this.isAbstract=!!(r!=null&&r.isAbstract),this.isLeaf=!!(r!=null&&r.isLeaf),this.nodeName=`${t}.${n}`,this.subgraphName=t,this.typeName=n}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,xI.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByName);for(let n of t){let r=this.headToTailEdges.get(n);r&&(r.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,n){for(let r of t.entityEdges)(0,xI.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};Ga.GraphNode=IR;var gR=class{constructor(t){v(this,"fieldDataByName",new Map);v(this,"headToSharedTailEdges",new Map);v(this,"isAbstract",!1);v(this,"isRootNode",!0);v(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToSharedTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};Ga.RootNode=gR;var _R=class{constructor(t){v(this,"fieldSetsByTargetSubgraphName",new Map);v(this,"targetSubgraphNamesByFieldSet",new Map);v(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,xI.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,xI.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};Ga.EntityDataNode=_R});var SR=C(dr=>{"use strict";p();N();m();Object.defineProperty(dr,"__esModule",{value:!0});dr.ROOT_TYPE_NAMES=dr.QUOTATION_JOIN=dr.NOT_APPLICABLE=dr.LITERAL_SPACE=dr.LITERAL_PERIOD=dr.SUBSCRIPTION=dr.QUERY=dr.MUTATION=void 0;dr.MUTATION="Mutation";dr.QUERY="Query";dr.SUBSCRIPTION="Subscription";dr.LITERAL_PERIOD=".";dr.LITERAL_SPACE=" ";dr.NOT_APPLICABLE="N/A";dr.QUOTATION_JOIN='", "';dr.ROOT_TYPE_NAMES=new Set([dr.MUTATION,dr.QUERY,dr.SUBSCRIPTION])});var AR=C(Ta=>{"use strict";p();N();m();Object.defineProperty(Ta,"__esModule",{value:!0});Ta.newRootFieldData=eme;Ta.generateResolvabilityErrorReasons=bR;Ta.generateSharedResolvabilityErrorReasons=FG;Ta.generateSelectionSetSegments=MI;Ta.renderSelectionSet=VI;Ta.generateRootResolvabilityErrors=nme;Ta.generateEntityResolvabilityErrors=rme;Ta.generateSharedEntityResolvabilityErrors=ime;Ta.getMultipliedRelativeOriginPaths=sme;var DR=As(),OR=di(),Qa=SR();function eme(e,t,n){return{coords:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Qa.QUOTATION_JOIN)}".`,subgraphNames:n}}function tme(e,t){return e.isLeaf?e.name+` <-- `:e.name+` { <-- -`+Za.LITERAL_SPACE.repeat(t+3)+`... -`+Za.LITERAL_SPACE.repeat(t+2)+`} -`}function QD({entityAncestorData:e,rootFieldData:t,unresolvableFieldData:n}){let{fieldName:r,typeName:i,subgraphNames:a}=n,o=[t.message,`The field "${i}.${r}" is defined in the following subgraph`+(a.size>1?"s":"")+`: "${[...a].join(Za.QUOTATION_JOIN)}".`];if(e){let c=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName)if(a.has(l)){c=!0;for(let p of d)o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${p}" to access subgraph "${l}".`)}c||o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`),o.push(`The type "${i}" is not a descendant of any other entity ancestors that can provide a shared route to access "${r}".`)}else t.subgraphNames.size>1&&o.push(`None of the subgraphs that shares the same root type field "${t.coords}" can provide a route to access "${r}".`),o.push(`The type "${i}" is not a descendant of an entity ancestor that can provide a shared route to access "${r}".`);return i!==(e==null?void 0:e.typeName)&&o.push(`The type "${i}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),o}function tV({entityAncestors:e,rootFieldData:t,unresolvableFieldData:n}){let{fieldName:r,typeName:i,subgraphNames:a}=n,o=[t.message,`The field "${i}.${r}" is defined in the following subgraph`+(a.size>1?"s":"")+`: "${[...a].join(Za.QUOTATION_JOIN)}".`],c=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName){if(!a.has(l))continue;let p=e.subgraphNames.filter(I=>I!==l),E=p.length>1;c=!0;for(let I of d)o.push(`The entity ancestor "${e.typeName}" in subgraph${E?"s":""} "${p.join(Za.QUOTATION_JOIN)}" do${E?"":"es"} not satisfy the key field set "${I}" to access subgraph "${l}".`)}if(!c){let l=e.subgraphNames.length>1;o.push(`The entity ancestor "${e.typeName}" in subgraph${l?"s":""} "${e.subgraphNames.join(Za.QUOTATION_JOIN)}" ha${l?"ve":"s"} no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`)}return o.push(`The type "${i}" is not a descendant of any other entity ancestors that can provide a shared route to access "${r}".`),i!==e.typeName&&o.push(`The type "${i}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),o}function CE(e){let t=e.split(new RegExp("(?<=\\w)\\.")),n="",r="";for(let i=0;i{"use strict";m();T();N();Object.defineProperty(UE,"__esModule",{value:!0});UE.NodeResolutionData=void 0;var zde=qi(),Fc,HD=class HD{constructor({fieldDataByName:t,isResolved:n=!1,resolvedDescendantNames:r,resolvedFieldNames:i,typeName:a}){Yu(this,Fc,!1);_(this,"fieldDataByName");_(this,"resolvedDescendantNames");_(this,"resolvedFieldNames");_(this,"typeName");Ky(this,Fc,n),this.fieldDataByName=t,this.resolvedDescendantNames=new Set(r),this.resolvedFieldNames=new Set(i),this.typeName=a}addData(t){for(let n of t.resolvedFieldNames)this.addResolvedFieldName(n);for(let n of t.resolvedDescendantNames)this.resolvedDescendantNames.add(n)}addResolvedFieldName(t){if(!this.fieldDataByName.has(t))throw(0,zde.unexpectedEdgeFatalError)(this.typeName,[t]);this.resolvedFieldNames.add(t)}copy(){return new HD({fieldDataByName:this.fieldDataByName,isResolved:jy(this,Fc),resolvedDescendantNames:this.resolvedDescendantNames,resolvedFieldNames:this.resolvedFieldNames,typeName:this.typeName})}areDescendantsResolved(){return this.fieldDataByName.size===this.resolvedDescendantNames.size}isResolved(){if(jy(this,Fc))return!0;if(this.fieldDataByName.size!==this.resolvedFieldNames.size)return!1;for(let t of this.fieldDataByName.keys())if(!this.resolvedFieldNames.has(t))return!1;return Ky(this,Fc,!0),!0}};Fc=new WeakMap;var JD=HD;UE.NodeResolutionData=JD});var rV=w(ME=>{"use strict";m();T();N();Object.defineProperty(ME,"__esModule",{value:!0});ME.EntityWalker=void 0;var Wde=kE(),es=Fr(),zD=class{constructor({encounteredEntityNodeNames:t,index:n,relativeOriginPaths:r,resDataByNodeName:i,resDataByRelativeOriginPath:a,subgraphNameByUnresolvablePath:o,visitedEntities:c}){_(this,"encounteredEntityNodeNames");_(this,"index");_(this,"resDataByNodeName");_(this,"resDataByRelativeOriginPath");_(this,"selectionPathByEntityNodeName",new Map);_(this,"subgraphNameByUnresolvablePath");_(this,"visitedEntities");_(this,"relativeOriginPaths");this.encounteredEntityNodeNames=t,this.index=n,this.relativeOriginPaths=r,this.resDataByNodeName=i,this.resDataByRelativeOriginPath=a,this.visitedEntities=c,this.subgraphNameByUnresolvablePath=o}getNodeResolutionData({node:{fieldDataByName:t,nodeName:n,typeName:r},selectionPath:i}){let a=(0,es.getValueOrDefault)(this.resDataByNodeName,n,()=>new Wde.NodeResolutionData({fieldDataByName:t,typeName:r}));if(!this.relativeOriginPaths||this.relativeOriginPaths.size<1)return(0,es.getValueOrDefault)(this.resDataByRelativeOriginPath,i,()=>a.copy());let o;for(let c of this.relativeOriginPaths){let l=(0,es.getValueOrDefault)(this.resDataByRelativeOriginPath,`${c}${i}`,()=>a.copy());o!=null||(o=l)}return o}visitEntityDescendantEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!1}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,es.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.visitedEntities.has(t.node.nodeName)||this.encounteredEntityNodeNames.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:(this.encounteredEntityNodeNames.add(t.node.nodeName),(0,es.getValueOrDefault)(this.selectionPathByEntityNodeName,t.node.nodeName,()=>`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitEntityDescendantAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitEntityDescendantConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):(this.removeUnresolvablePaths({selectionPath:`${n}.${t.edgeName}`,removeDescendantPaths:!0}),{visited:!0,areDescendantsResolved:!0,isRevisitedNode:!0})}visitEntityDescendantConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};let i;for(let[a,o]of t.headToTailEdges){let{visited:c,areDescendantsResolved:l,isRevisitedNode:d}=this.visitEntityDescendantEdge({edge:o,selectionPath:n});i!=null||(i=d),this.propagateVisitedField({areDescendantsResolved:l,fieldName:a,data:r,nodeName:t.nodeName,selectionPath:n,visited:c})}return r.isResolved()?this.removeUnresolvablePaths({removeDescendantPaths:i,selectionPath:n}):this.addUnresolvablePaths({selectionPath:n,subgraphName:t.subgraphName}),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}visitEntityDescendantAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEntityDescendantEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,nodeName:i,selectionPath:a,visited:o}){if(!o)return;let c=(0,es.getValueOrDefault)(this.resDataByNodeName,i,()=>n.copy());if(n.addResolvedFieldName(r),c.addResolvedFieldName(r),t&&n.resolvedDescendantNames.add(r),this.relativeOriginPaths){for(let d of this.relativeOriginPaths){let p=(0,es.getValueOrDefault)(this.resDataByRelativeOriginPath,`${d}${a}`,()=>n.copy());p.addResolvedFieldName(r),t&&p.resolvedDescendantNames.add(r)}return}let l=(0,es.getValueOrDefault)(this.resDataByRelativeOriginPath,a,()=>n.copy());l.addResolvedFieldName(r),t&&l.resolvedDescendantNames.add(r)}addUnresolvablePaths({selectionPath:t,subgraphName:n}){if(!this.relativeOriginPaths){(0,es.getValueOrDefault)(this.subgraphNameByUnresolvablePath,t,()=>n);return}for(let r of this.relativeOriginPaths)(0,es.getValueOrDefault)(this.subgraphNameByUnresolvablePath,`${r}${t}`,()=>n)}removeUnresolvablePaths({selectionPath:t,removeDescendantPaths:n}){if(!this.relativeOriginPaths){if(this.subgraphNameByUnresolvablePath.delete(t),n)for(let r of this.subgraphNameByUnresolvablePath.keys())r.startsWith(t)&&this.subgraphNameByUnresolvablePath.delete(r);return}for(let r of this.relativeOriginPaths){let i=`${r}${t}`;if(this.subgraphNameByUnresolvablePath.delete(i),n)for(let a of this.subgraphNameByUnresolvablePath.keys())a.startsWith(i)&&this.subgraphNameByUnresolvablePath.delete(a)}}};ME.EntityWalker=zD});var iV=w(qE=>{"use strict";m();T();N();Object.defineProperty(qE,"__esModule",{value:!0});qE.RootFieldWalker=void 0;var ts=Fr(),xE=kE(),WD=class{constructor({index:t,nodeResolutionDataByNodeName:n}){_(this,"index");_(this,"resDataByNodeName");_(this,"resDataByPath",new Map);_(this,"entityNodeNamesByPath",new Map);_(this,"pathsByEntityNodeName",new Map);_(this,"unresolvablePaths",new Set);this.index=t,this.resDataByNodeName=n}visitEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,ts.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.resDataByNodeName.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:((0,ts.getValueOrDefault)(this.pathsByEntityNodeName,t.node.nodeName,()=>new Set).add(`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):{visited:!0,areDescendantsResolved:!0}}visitAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.resDataByNodeName.get(t.nodeName);if(r)return{visited:!0,areDescendantsResolved:r.areDescendantsResolved()};let i=this.getNodeResolutionData({node:t,selectionPath:n});if(i.isResolved()&&i.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[a,o]of t.headToTailEdges){let{visited:c,areDescendantsResolved:l}=this.visitEdge({edge:o,selectionPath:n});this.propagateVisitedField({areDescendantsResolved:l,fieldName:a,data:i,node:t,selectionPath:n,visited:c})}return i.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:i.areDescendantsResolved()}}visitSharedEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,ts.add)(t.visitedIndices,this.index)?(t.node.hasEntitySiblings&&(0,ts.getValueOrDefault)(this.entityNodeNamesByPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),t.node.isAbstract?this.visitSharedAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitSharedConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`})):{visited:!0,areDescendantsResolved:!0}}visitSharedAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitSharedEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitSharedConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getSharedNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[i,a]of t.headToTailEdges){let{visited:o,areDescendantsResolved:c}=this.visitSharedEdge({edge:a,selectionPath:n});this.propagateSharedVisitedField({areDescendantsResolved:c,data:r,fieldName:i,node:t,visited:o})}return r.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}getNodeResolutionData({node:t,selectionPath:n}){let r=(0,ts.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new xE.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,ts.getValueOrDefault)(this.resDataByPath,n,()=>r.copy()),r}getSharedNodeResolutionData({node:t,selectionPath:n}){let r=(0,ts.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new xE.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,ts.getValueOrDefault)(this.resDataByPath,n,()=>r.copy())}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,selectionPath:a,visited:o}){if(!o)return;n.addResolvedFieldName(r);let c=(0,ts.getValueOrDefault)(this.resDataByPath,a,()=>new xE.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));c.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),c.resolvedDescendantNames.add(r))}propagateSharedVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,visited:a}){if(!a)return;n.addResolvedFieldName(r);let o=(0,ts.getValueOrDefault)(this.resDataByNodeName,i.nodeName,()=>new xE.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));o.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),o.resolvedDescendantNames.add(r))}visitRootFieldEdges({edges:t,rootTypeName:n}){let r=t.length>1;for(let i of t){if(i.isInaccessible)return{visited:!1,areDescendantsResolved:!1};let a=r?this.visitSharedEdge({edge:i,selectionPath:n}):this.visitEdge({edge:i,selectionPath:n});if(a.areDescendantsResolved)return a}return{visited:!0,areDescendantsResolved:!1}}};qE.RootFieldWalker=WD});var ZD=w(jE=>{"use strict";m();T();N();Object.defineProperty(jE,"__esModule",{value:!0});jE.Graph=void 0;var ud=jD(),wc=YD(),ea=Fr(),VE=KD(),Xde=rV(),Zde=iV(),XD=class{constructor(){_(this,"edgeId",-1);_(this,"entityDataNodeByTypeName",new Map);_(this,"nodeByNodeName",new Map);_(this,"nodesByTypeName",new Map);_(this,"resolvedRootFieldNodeNames",new Set);_(this,"rootNodeByTypeName",new Map);_(this,"subgraphName",VE.NOT_APPLICABLE);_(this,"resDataByNodeName",new Map);_(this,"resDataByRelativePathByEntity",new Map);_(this,"visitedEntitiesByOriginEntity",new Map);_(this,"walkerIndex",-1)}getRootNode(t){return(0,ea.getValueOrDefault)(this.rootNodeByTypeName,t,()=>new ud.RootNode(t))}addOrUpdateNode(t,n){let r=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(r);if(i)return i.isAbstract||(i.isAbstract=!!(n!=null&&n.isAbstract)),!i.isLeaf&&(n!=null&&n.isLeaf)&&(i.isLeaf=!0),i;let a=new ud.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,a),(0,ea.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,n,r,i=!1){if(t.isRootNode){let c=new ud.Edge(this.getNextEdgeId(),n,r);return(0,ea.getValueOrDefault)(t.headToSharedTailEdges,r,()=>[]).push(c),c}let a=t,o=new ud.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return a.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodeByTypeName.get(t);if(n)return n;let r=new ud.EntityDataNode(t);return this.entityDataNodeByTypeName.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}getNextWalkerIndex(){return this.walkerIndex+=1}setNodeInaccessible(t){let n=this.nodesByTypeName.get(t);if(n)for(let r of n)r.isInaccessible=!0}initializeNode(t,n){let r=this.entityDataNodeByTypeName.get(t);if(VE.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(n),a.fieldDataByName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByName=n,a.handleInaccessibleEdges(),a.isLeaf=!1,!!r){a.hasEntitySiblings=!0;for(let o of a.satisfiedFieldSets){let c=r.targetSubgraphNamesByFieldSet.get(o);for(let l of c!=null?c:[]){if(l===a.subgraphName)continue;let d=this.nodeByNodeName.get(`${l}.${a.typeName}`);d&&a.entityEdges.push(new ud.Edge(this.getNextEdgeId(),d,""))}}}}}setSubgraphName(t){this.subgraphName=t}visitEntity({encounteredEntityNodeNames:t,entityNodeName:n,relativeOriginPaths:r,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o}){let c=this.nodeByNodeName.get(n);if(!c)throw new Error(`Fatal: Could not find entity node for "${n}".`);o.add(n);let l=this.nodesByTypeName.get(c.typeName);if(!(l!=null&&l.length))throw new Error(`Fatal: Could not find any nodes for "${n}".`);let d=new Xde.EntityWalker({encounteredEntityNodeNames:t,index:this.getNextWalkerIndex(),relativeOriginPaths:r,resDataByNodeName:this.resDataByNodeName,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o}),p=c.getAllAccessibleEntityNodeNames();for(let E of l){if(E.nodeName!==c.nodeName&&!p.has(E.nodeName))continue;let{areDescendantsResolved:I}=d.visitEntityDescendantConcreteNode({node:E,selectionPath:""});if(I)return}for(let[E,I]of d.selectionPathByEntityNodeName)this.visitEntity({encounteredEntityNodeNames:t,entityNodeName:E,relativeOriginPaths:(0,wc.getMultipliedRelativeOriginPaths)({relativeOriginPaths:r,selectionPath:I}),resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o})}validate(){for(let t of this.rootNodeByTypeName.values())for(let[n,r]of t.headToSharedTailEdges){let i=r.length>1;if(!i){let p=r[0].node.nodeName;if(this.resolvedRootFieldNodeNames.has(p))continue;this.resolvedRootFieldNodeNames.add(p)}let a=new Zde.RootFieldWalker({index:this.getNextWalkerIndex(),nodeResolutionDataByNodeName:this.resDataByNodeName});if(a.visitRootFieldEdges({edges:r,rootTypeName:t.typeName.toLowerCase()}).areDescendantsResolved)continue;let o=i?a.entityNodeNamesByPath.size>0:a.pathsByEntityNodeName.size>0;if(a.unresolvablePaths.size<1&&!o)continue;let c=(0,ea.getOrThrowError)(t.fieldDataByName,n,"fieldDataByName"),l=(0,wc.newRootFieldData)(t.typeName,n,c.subgraphNames);if(!o)return{errors:(0,wc.generateRootResolvabilityErrors)({unresolvablePaths:a.unresolvablePaths,resDataByPath:a.resDataByPath,rootFieldData:l}),success:!1};let d=this.validateEntities({isSharedRootField:i,rootFieldData:l,walker:a});if(!d.success)return d}return{success:!0}}consolidateUnresolvableRootWithEntityPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let a of i.unresolvablePaths){if(!a.startsWith(t))continue;let o=a.slice(t.length),c=(0,ea.getOrThrowError)(i.resDataByPath,a,"rootFieldWalker.unresolvablePaths"),l=n.get(o);if(l){if(c.addData(l),l.addData(c),!c.isResolved()){i.unresolvablePaths.delete(a);continue}i.unresolvablePaths.delete(a),r.delete(o)}}}consolidateUnresolvableEntityWithRootPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let a of r.keys()){let o=(0,ea.getOrThrowError)(n,a,"resDataByRelativeOriginPath"),c=`${t}${a}`,l=i.resDataByPath.get(c);l&&(o.addData(l),l.addData(o)),o.isResolved()&&r.delete(a)}}validateSharedRootFieldEntities({rootFieldData:t,walker:n}){for(let[r,i]of n.entityNodeNamesByPath){let a=new Map,o=new Map;for(let l of i)this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:l,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,visitedEntities:new Set});if(this.consolidateUnresolvableRootWithEntityPaths({pathFromRoot:r,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,walker:n}),a.size<1)continue;this.consolidateUnresolvableEntityWithRootPaths({pathFromRoot:r,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,walker:n});let c=new Array;if(a.size>0&&c.push(...this.getSharedEntityResolvabilityErrors({entityNodeNames:i,resDataByPath:o,pathFromRoot:r,rootFieldData:t,subgraphNameByUnresolvablePath:a})),n.unresolvablePaths.size>0&&c.push(...(0,wc.generateRootResolvabilityErrors)({unresolvablePaths:n.unresolvablePaths,resDataByPath:n.resDataByPath,rootFieldData:t})),!(c.length<1))return{errors:c,success:!1}}return n.unresolvablePaths.size>0?{errors:(0,wc.generateRootResolvabilityErrors)({resDataByPath:n.resDataByPath,rootFieldData:t,unresolvablePaths:n.unresolvablePaths}),success:!1}:{success:!0}}validateRootFieldEntities({rootFieldData:t,walker:n}){var r;for(let[i,a]of n.pathsByEntityNodeName){let o=new Map;if(this.resDataByNodeName.has(i))continue;let c=(0,ea.getValueOrDefault)(this.resDataByRelativePathByEntity,i,()=>new Map);if(this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:i,resDataByRelativeOriginPath:c,subgraphNameByUnresolvablePath:o,visitedEntities:(0,ea.getValueOrDefault)(this.visitedEntitiesByOriginEntity,i,()=>new Set)}),!(o.size<1))return{errors:this.getEntityResolvabilityErrors({entityNodeName:i,pathFromRoot:(r=(0,ea.getFirstEntry)(a))!=null?r:"",rootFieldData:t,subgraphNameByUnresolvablePath:o}),success:!1}}return{success:!0}}validateEntities(t){return t.isSharedRootField?this.validateSharedRootFieldEntities(t):this.validateRootFieldEntities(t)}getEntityResolvabilityErrors({entityNodeName:t,pathFromRoot:n,rootFieldData:r,subgraphNameByUnresolvablePath:i}){let a=(0,ea.getOrThrowError)(this.resDataByRelativePathByEntity,t,"resDataByRelativePathByEntity"),o=t.split(VE.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:c}=(0,ea.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,wc.generateEntityResolvabilityErrors)({entityAncestorData:{fieldSetsByTargetSubgraphName:c,subgraphName:"",typeName:o},pathFromRoot:n,resDataByPath:a,rootFieldData:r,subgraphNameByUnresolvablePath:i})}getSharedEntityResolvabilityErrors({entityNodeNames:t,pathFromRoot:n,rootFieldData:r,resDataByPath:i,subgraphNameByUnresolvablePath:a}){let o,c=new Array;for(let d of t){let p=d.split(VE.LITERAL_PERIOD);o!=null||(o=p[1]),c.push(p[0])}let{fieldSetsByTargetSubgraphName:l}=(0,ea.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,wc.generateSharedEntityResolvabilityErrors)({entityAncestors:{fieldSetsByTargetSubgraphName:l,subgraphNames:c,typeName:o},pathFromRoot:n,resDataByPath:i,rootFieldData:r,subgraphNameByUnresolvablePath:a})}};jE.Graph=XD});var eb=w(KE=>{"use strict";m();T();N();Object.defineProperty(KE,"__esModule",{value:!0});KE.newFieldSetConditionData=efe;KE.newConfigurationData=tfe;function efe({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function tfe(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var rb=w(Lc=>{"use strict";m();T();N();Object.defineProperty(Lc,"__esModule",{value:!0});Lc.NormalizationFactory=void 0;Lc.normalizeSubgraphFromString=afe;Lc.normalizeSubgraph=oV;Lc.batchNormalize=sfe;var W=Oe(),Dn=Pr(),ai=dp(),Br=gu(),Yn=lp(),se=qi(),mp=rd(),nfe=Cv(),yi=iE(),rfe=FD(),rs=fp(),aV=kD(),ns=Uf(),nn=Ul(),cr=Iu(),nb=ZD(),GE=oE(),X=zn(),ife=wl(),je=Fr(),Np=eb(),sV=uE();function afe(e,t=!0){let{error:n,documentNode:r}=(0,Dn.safeParse)(e,t);return n||!r?{errors:[(0,se.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new Tp(new nb.Graph).normalize(r)}function oV(e,t,n){return new Tp(n||new nb.Graph,t).normalize(e)}var Ep,tb,$E,uV,Tp=class{constructor(t,n){Yu(this,Ep);Yu(this,$E);_(this,"argumentName","");_(this,"authorizationDataByParentTypeName",new Map);_(this,"concreteTypeNamesByAbstractTypeName",new Map);_(this,"conditionalFieldDataByCoords",new Map);_(this,"configurationDataByTypeName",new Map);_(this,"customDirectiveDefinitionByName",new Map);_(this,"definedDirectiveNames",new Set);_(this,"directiveDefinitionByName",new Map);_(this,"directiveDefinitionDataByName",(0,ai.initializeDirectiveDefinitionDatas)());_(this,"doesParentRequireFetchReasons",!1);_(this,"edfsDirectiveReferences",new Set);_(this,"errors",new Array);_(this,"entityDataByTypeName",new Map);_(this,"entityInterfaceDataByTypeName",new Map);_(this,"eventsConfigurations",new Map);_(this,"fieldSetDataByTypeName",new Map);_(this,"internalGraph");_(this,"invalidConfigureDescriptionNodeDatas",[]);_(this,"invalidORScopesCoords",new Set);_(this,"invalidRepeatedDirectiveNameByCoords",new Map);_(this,"isParentObjectExternal",!1);_(this,"isParentObjectShareable",!1);_(this,"isSubgraphEventDrivenGraph",!1);_(this,"isSubgraphVersionTwo",!1);_(this,"keyFieldSetDatasByTypeName",new Map);_(this,"lastParentNodeKind",W.Kind.NULL);_(this,"lastChildNodeKind",W.Kind.NULL);_(this,"parentTypeNamesWithAuthDirectives",new Set);_(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);_(this,"keyFieldNamesByParentTypeName",new Map);_(this,"fieldCoordsByNamedTypeName",new Map);_(this,"operationTypeNodeByTypeName",new Map);_(this,"originalParentTypeName","");_(this,"originalTypeNameByRenamedTypeName",new Map);_(this,"overridesByTargetSubgraphName",new Map);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"schemaData");_(this,"referencedDirectiveNames",new Set);_(this,"referencedTypeNames",new Set);_(this,"renamedParentTypeName","");_(this,"subgraphName");_(this,"unvalidatedExternalFieldCoords",new Set);_(this,"usesEdfsNatsStreamConfiguration",!1);_(this,"warnings",[]);this.subgraphName=n||X.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByName:new Map,kind:W.Kind.SCHEMA_DEFINITION,name:X.SCHEMA,operationTypes:new Map}}validateArguments(t,n){for(let r of t.argumentDataByName.values()){let i=(0,cr.getTypeNodeNamedTypeName)(r.type);if(Br.BASE_SCALARS.has(i)){r.namedTypeKind=W.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,nn.isInputNodeKind)(a.kind)){r.namedTypeKind=a.kind;continue}this.errors.push((0,se.invalidNamedTypeError)({data:r,namedTypeData:a,nodeType:`${(0,je.kindToNodeType)(n)} field argument`}))}}}isTypeNameRootType(t){return X.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}isArgumentValueValid(t,n){if(n.kind===W.Kind.NULL)return t.kind!==W.Kind.NON_NULL_TYPE;switch(t.kind){case W.Kind.LIST_TYPE:{if(n.kind!==W.Kind.LIST)return this.isArgumentValueValid((0,cr.getNamedTypeNode)(t.type),n);for(let r of n.values)if(!this.isArgumentValueValid(t.type,r))return!1;return!0}case W.Kind.NAMED_TYPE:switch(t.name.value){case X.BOOLEAN_SCALAR:return n.kind===W.Kind.BOOLEAN;case X.FLOAT_SCALAR:return n.kind===W.Kind.FLOAT||n.kind===W.Kind.INT;case X.ID_SCALAR:return n.kind===W.Kind.STRING||n.kind===W.Kind.INT;case X.INT_SCALAR:return n.kind===W.Kind.INT;case X.FIELD_SET_SCALAR:case X.SCOPE_SCALAR:case X.STRING_SCALAR:return n.kind===W.Kind.STRING;case X.LINK_IMPORT:return!0;case X.LINK_PURPOSE:return n.kind!==W.Kind.ENUM?!1:n.value===X.SECURITY||n.value===X.EXECUTION;case X.SUBSCRIPTION_FIELD_CONDITION:case X.SUBSCRIPTION_FILTER_CONDITION:return n.kind===W.Kind.OBJECT;default:{let r=this.parentDefinitionDataByTypeName.get(t.name.value);if(!r)return!1;if(r.kind===W.Kind.SCALAR_TYPE_DEFINITION)return!0;if(r.kind===W.Kind.ENUM_TYPE_DEFINITION){if(n.kind!==W.Kind.ENUM)return!1;let i=r.enumValueDataByName.get(n.value);return i?!i.directivesByName.has(X.INACCESSIBLE):!1}return r.kind!==W.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:n.kind===W.Kind.OBJECT}}default:return this.isArgumentValueValid(t.type,n)}}handleFieldInheritableDirectives({directivesByName:t,fieldName:n,inheritedDirectiveNames:r,parentData:i}){this.doesParentRequireFetchReasons&&!t.has(X.REQUIRE_FETCH_REASONS)&&(t.set(X.REQUIRE_FETCH_REASONS,[(0,je.generateSimpleDirective)(X.REQUIRE_FETCH_REASONS)]),r.add(X.REQUIRE_FETCH_REASONS)),(this.doesParentRequireFetchReasons||t.has(X.REQUIRE_FETCH_REASONS))&&i.requireFetchReasonsFieldNames.add(n),(0,Yn.isObjectDefinitionData)(i)&&(this.isParentObjectExternal&&!t.has(X.EXTERNAL)&&(t.set(X.EXTERNAL,[(0,je.generateSimpleDirective)(X.EXTERNAL)]),r.add(X.EXTERNAL)),t.has(X.EXTERNAL)&&this.unvalidatedExternalFieldCoords.add(`${i.name}.${n}`),this.isParentObjectShareable&&!t.has(X.SHAREABLE)&&(t.set(X.SHAREABLE,[(0,je.generateSimpleDirective)(X.SHAREABLE)]),r.add(X.SHAREABLE)))}extractDirectives(t,n){if(!t.directives)return n;let r=(0,Yn.isCompositeOutputNodeKind)(t.kind),i=(0,Yn.isObjectNodeKind)(t.kind);for(let a of t.directives){let o=a.name.value;o===X.SHAREABLE?(0,je.getValueOrDefault)(n,o,()=>[a]):(0,je.getValueOrDefault)(n,o,()=>[]).push(a),r&&(this.doesParentRequireFetchReasons||(this.doesParentRequireFetchReasons=o===X.REQUIRE_FETCH_REASONS),i&&(this.isParentObjectExternal||(this.isParentObjectExternal=o===X.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=o===X.SHAREABLE)))}return n}validateDirective({data:t,definitionData:n,directiveCoords:r,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let c=i.name.value,l=t.kind===W.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,d=c===X.AUTHENTICATED,p=(0,nn.isFieldData)(t),E=c===X.OVERRIDE,I=c===X.REQUIRES_SCOPES,v=c===X.SEMANTIC_NON_NULL;if(!i.arguments||i.arguments.length<1)return n.requiredArgumentNames.size>0&&a.push((0,se.undefinedRequiredArgumentsErrorMessage)(c,o,[])),d&&this.handleAuthenticatedDirective(t,l),v&&p&&((0,nn.isTypeRequired)(t.type)?a.push((0,se.semanticNonNullLevelsNonNullErrorMessage)({typeString:(0,yi.printTypeNode)(t.type),value:"0"})):t.nullLevelsBySubgraphName.set(this.subgraphName,new Set([0]))),a;let A=new Set,U=new Set,j=new Set,$=[];for(let me of i.arguments){let ue=me.name.value;if(A.has(ue)){U.add(ue);continue}A.add(ue);let Ae=n.argumentTypeNodeByName.get(ue);if(!Ae){j.add(ue);continue}if(!this.isArgumentValueValid(Ae.typeNode,me.value)){a.push((0,se.invalidArgumentValueErrorMessage)((0,W.print)(me.value),`@${c}`,ue,(0,yi.printTypeNode)(Ae.typeNode)));continue}if(E&&p){this.handleOverrideDirective({data:t,directiveCoords:r,errorMessages:a,targetSubgraphName:me.value.value});continue}if(v&&p){this.handleSemanticNonNullDirective({data:t,directiveNode:i,errorMessages:a});continue}!I||ue!==X.SCOPES||this.extractRequiredScopes({directiveCoords:r,orScopes:me.value.values,requiredScopes:$})}U.size>0&&a.push((0,se.duplicateDirectiveArgumentDefinitionsErrorMessage)([...U])),j.size>0&&a.push((0,se.unexpectedDirectiveArgumentErrorMessage)(c,[...j]));let re=(0,je.getEntriesNotInHashSet)(o,A);if(re.length>0&&a.push((0,se.undefinedRequiredArgumentsErrorMessage)(c,o,re)),a.length>0||!I)return a;let ee=(0,je.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,Yn.newAuthorizationData)(l));if(t.kind!==W.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),ee.requiredScopes.push(...$);else{let me=(0,je.getValueOrDefault)(ee.fieldAuthDataByFieldName,t.name,()=>(0,Yn.newFieldAuthorizationData)(t.name));me.inheritedData.requiredScopes.push(...$),me.originalData.requiredScopes.push(...$)}return a}validateDirectives(t,n){let r=new Set;for(let[i,a]of t.directivesByName){let o=this.directiveDefinitionDataByName.get(i);if(!o){r.has(i)||(this.errors.push((0,se.undefinedDirectiveError)(i,n)),r.add(i));continue}let c=[],l=(0,Dn.nodeKindToDirectiveLocation)(t.kind);if(o.locations.has(l)||c.push((0,se.invalidDirectiveLocationErrorMessage)(i,l)),a.length>1&&!o.isRepeatable){let p=(0,je.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);p.has(i)||(p.add(i),c.push((0,se.invalidRepeatedDirectiveErrorMessage)(i)))}let d=[...o.requiredArgumentNames];for(let p=0;p0&&this.errors.push((0,se.invalidDirectiveError)(i,n,(0,je.numberToOrdinal)(p+1),E))}}switch(t.kind){case W.Kind.ENUM_TYPE_DEFINITION:{for(let[i,a]of t.enumValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case W.Kind.FIELD_DEFINITION:{for(let[i,a]of t.argumentDataByName)this.validateDirectives(a,`${t.originalParentTypeName}.${t.name}(${i}: ...)`);return}case W.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.inputValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case W.Kind.INTERFACE_TYPE_DEFINITION:case W.Kind.OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.fieldDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}default:return}}getNodeExtensionType(t,n,r=!1){return t?ns.ExtensionType.REAL:r||!n.has(X.EXTENDS)?ns.ExtensionType.NONE:ns.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case ns.ExtensionType.EXTENDS:case ns.ExtensionType.NONE:{if(n===ns.ExtensionType.REAL)return;this.errors.push((0,se.duplicateTypeDefinitionError)((0,je.kindToNodeType)(t.kind),t.name));return}default:t.extensionType=n}}extractConfigureDescriptionData(t,n){var i,a;if(!n.arguments||n.arguments.length<1){t.description||this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,{propagate:!0,description:((i=t.description)==null?void 0:i.value)||""});return}let r={propagate:!0,description:((a=t.description)==null?void 0:a.value)||""};for(let o of n.arguments)switch(o.name.value){case X.PROPAGATE:{if(o.value.kind!=W.Kind.BOOLEAN)return;r.propagate=o.value.value;break}case X.DESCRIPTION_OVERRIDE:{if(o.value.kind!=W.Kind.STRING)return;r.description=o.value.value;break}default:return}!t.description&&!r.description&&this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,r)}extractConfigureDescriptionsData(t){let n=t.directivesByName.get(X.CONFIGURE_DESCRIPTION);n&&n.length==1&&this.extractConfigureDescriptionData(t,n[0])}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let a=i.name.value;if(n.has(a)){this.errors.push((0,se.duplicateImplementedInterfaceError)((0,Yn.kindToConvertedTypeString)(t.kind),r,a));continue}n.add(a)}return n}updateCompositeOutputDataByNode(t,n,r){this.setParentDataExtensionType(n,r),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.description||(n.description=(0,Dn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(n),n.isEntity||(n.isEntity=n.directivesByName.has(X.KEY)),n.isInaccessible||(n.isInaccessible=n.directivesByName.has(X.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,je.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}extractArguments(t,n){var o;if(!((o=n.arguments)!=null&&o.length))return t;let r=n.name.value,i=`${this.originalParentTypeName}.${r}`,a=new Set;for(let c of n.arguments){let l=c.name.value;if(t.has(l)){a.add(l);continue}this.addInputValueDataByNode({fieldName:r,inputValueDataByName:t,isArgument:!0,node:c,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return a.size>0&&this.errors.push((0,se.duplicateArgumentsError)(i,[...a])),t}addPersistedDirectiveDefinitionDataByNode(t,n,r){let i=n.name.value,a=`@${i}`,o=new Map;for(let c of n.arguments||[])this.addInputValueDataByNode({inputValueDataByName:o,isArgument:!0,node:c,originalParentTypeName:a});t.set(i,{argumentDataByName:o,executableLocations:r,name:i,repeatable:n.repeatable,subgraphNames:new Set([this.subgraphName]),description:(0,Dn.formatDescription)(n.description)})}extractDirectiveLocations(t,n){let r=new Set,i=new Set;for(let a of t.locations){let o=a.value;if(!i.has(o)){if(!X.EXECUTABLE_DIRECTIVE_LOCATIONS.has(o)&&!mp.TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(o)){n.push((0,se.invalidDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}if(r.has(o)){n.push((0,se.duplicateDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}r.add(o)}}return r}extractArgumentData(t,n){let r=new Map,i=new Set,a=new Set,o={argumentTypeNodeByName:r,optionalArgumentNames:i,requiredArgumentNames:a};if(!t)return o;let c=new Set;for(let l of t){let d=l.name.value;if(r.has(d)){c.add(d);continue}l.defaultValue&&i.add(d),(0,nn.isTypeRequired)(l.type)&&!l.defaultValue&&a.add(d),r.set(d,{name:d,typeNode:l.type,defaultValue:l.defaultValue})}return c.size>0&&n.push((0,se.duplicateDirectiveDefinitionArgumentErrorMessage)([...c])),o}addDirectiveDefinitionDataByNode(t){let n=t.name.value;if(this.definedDirectiveNames.has(n))return this.errors.push((0,se.duplicateDirectiveDefinitionError)(n)),!1;this.definedDirectiveNames.add(n);let r=Br.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(n);if(r)return this.directiveDefinitionByName.set(n,r),this.isSubgraphVersionTwo=!0,!1;if(Br.DIRECTIVE_DEFINITION_BY_NAME.has(n))return!1;this.directiveDefinitionByName.set(n,t);let i=[],{argumentTypeNodeByName:a,optionalArgumentNames:o,requiredArgumentNames:c}=this.extractArgumentData(t.arguments,i);return this.directiveDefinitionDataByName.set(n,{argumentTypeNodeByName:a,isRepeatable:t.repeatable,locations:this.extractDirectiveLocations(t,i),name:n,node:t,optionalArgumentNames:o,requiredArgumentNames:c}),i.length>0&&this.errors.push((0,se.invalidDirectiveDefinitionError)(n,i)),!0}addFieldDataByNode(t,n,r,i,a=new Set){let o=n.name.value,c=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:d,isShareable:p}=(0,nn.isNodeExternalOrShareable)(n,!this.isSubgraphVersionTwo,i),E=(0,cr.getTypeNodeNamedTypeName)(n.type),I={argumentDataByName:r,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,nn.newExternalFieldData)(d)]]),federatedCoords:`${c}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(X.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,p]]),kind:W.Kind.FIELD_DEFINITION,name:o,namedTypeKind:Br.BASE_SCALARS.has(E)?W.Kind.SCALAR_TYPE_DEFINITION:W.Kind.NULL,namedTypeName:E,node:(0,cr.getMutableFieldNode)(n,l,this.errors),nullLevelsBySubgraphName:new Map,originalParentTypeName:this.originalParentTypeName,persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),renamedParentTypeName:c,subgraphNames:new Set([this.subgraphName]),type:(0,cr.getMutableTypeNode)(n.type,l,this.errors),directivesByName:i,description:(0,Dn.formatDescription)(n.description)};return Br.BASE_SCALARS.has(I.namedTypeName)||this.referencedTypeNames.add(I.namedTypeName),this.extractConfigureDescriptionsData(I),t.set(o,I),I}addInputValueDataByNode({fieldName:t,inputValueDataByName:n,isArgument:r,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let c=o||a,l=i.name.value,d=r?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,nn.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,se.incompatibleInputValueDefaultValueTypeError)((r?X.ARGUMENT:X.INPUT_FIELD)+` "${l}"`,d,(0,yi.printTypeNode)(i.type),(0,W.print)(i.defaultValue)));let p=r?`${c}${t?`.${t}`:""}(${l}: ...)`:`${c}.${l}`,E=(0,cr.getTypeNodeNamedTypeName)(i.type),I={configureDescriptionDataBySubgraphName:new Map,directivesByName:this.extractDirectives(i,new Map),federatedCoords:p,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:r,kind:r?W.Kind.ARGUMENT:W.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:Br.BASE_SCALARS.has(E)?W.Kind.SCALAR_TYPE_DEFINITION:W.Kind.NULL,namedTypeName:E,node:(0,cr.getMutableInputValueNode)(i,a,this.errors),originalCoords:d,originalParentTypeName:a,persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),renamedParentTypeName:c,requiredSubgraphNames:new Set((0,nn.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,cr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,Dn.formatDescription)(i.description)};this.extractConfigureDescriptionsData(I),n.set(l,I)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(n,a),c=this.entityInterfaceDataByTypeName.get(r);if(c&&t.fields)for(let d of t.fields)c.interfaceFieldNames.add(d.name.value);if(i){if(i.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,se.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Yn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,o);return}let l={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,fieldDataByName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:a.has(X.KEY),isInaccessible:a.has(X.INACCESSIBLE),kind:W.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,cr.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,subgraphNames:new Set([this.subgraphName]),description:(0,Dn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(l),this.parentDefinitionDataByTypeName.set(r,l)}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case W.OperationTypeNode.MUTATION:return X.MUTATION;case W.OperationTypeNode.SUBSCRIPTION:return X.SUBSCRIPTION;default:return X.QUERY}}addInterfaceObjectFieldsByNode(t){let n=t.name.value,r=this.entityInterfaceDataByTypeName.get(n);if(!(!r||!r.isInterfaceObject||!t.fields))for(let i of t.fields)r.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,n=!1){var p;let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(p=i==null?void 0:i.directivesByName)!=null?p:new Map),o=this.isTypeNameRootType(r),c=this.getNodeExtensionType(n,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==W.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,se.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Yn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,c),a.has(X.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);a.has(X.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(l,r);let d={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:c,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(X.KEY),isInaccessible:a.has(X.INACCESSIBLE),isRootType:o,kind:W.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,cr.getMutableObjectNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,Dn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(d),this.parentDefinitionDataByTypeName.set(r,d)}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==W.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,se.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Yn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(X.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Dn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,enumValueDataByName:new Map,isInaccessible:a.has(X.INACCESSIBLE),kind:W.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,cr.getMutableEnumNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Dn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(n,a);if(i)return i.kind!==W.Kind.INPUT_OBJECT_TYPE_DEFINITION?(this.errors.push((0,se.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Yn.kindToConvertedTypeString)(t.kind))),{success:!1}):(this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(X.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Dn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i),{success:!0,data:i});let c={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(X.INACCESSIBLE),kind:W.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,cr.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Dn.formatDescription)("description"in t?t.description:void 0)};return this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c),{success:!0,data:c}}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==W.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,se.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Yn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,Dn.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,kind:W.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,cr.getMutableScalarNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Dn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let a=i.name.value;if(n.has(a)){this.errors.push((0,se.duplicateUnionMemberDefinitionError)(r,a));continue}(0,je.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(a),Br.BASE_SCALARS.has(a)||this.referencedTypeNames.add(a),n.set(a,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(n,a);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==W.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,se.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Yn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,Dn.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,kind:W.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,cr.getMutableUnionNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Dn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractKeyFieldSets(t,n){var a;let r=t.name.value;if(!((a=t.directives)!=null&&a.length)){this.errors.push((0,se.expectedEntityError)(r));return}let i=0;for(let o of t.directives){if(o.name.value!==X.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let c,l=!1;for(let v of o.arguments){if(v.name.value===X.RESOLVABLE){v.value.kind===W.Kind.BOOLEAN&&!v.value.value&&(l=!0);continue}if(v.name.value!==X.FIELDS){c=void 0;break}if(v.value.kind!==W.Kind.STRING){c=void 0;break}c=v.value.value}if(c===void 0)continue;let{error:d,documentNode:p}=(0,Dn.safeParse)("{"+c+"}");if(d||!p){this.errors.push((0,se.invalidDirectiveError)(X.KEY,r,(0,je.numberToOrdinal)(i),[(0,se.unparsableFieldSetErrorMessage)(c,d)]));continue}let E=(0,ai.getNormalizedFieldSet)(p),I=n.get(E);I?I.isUnresolvable||(I.isUnresolvable=l):n.set(E,{documentNode:p,isUnresolvable:l,normalizedFieldSet:E,rawFieldSet:c})}}getFieldSetParent(t,n,r,i){if(!t)return{fieldSetParentData:n};let a=(0,je.getOrThrowError)(n.fieldDataByName,r,`${i}.fieldDataByFieldName`),o=(0,cr.getTypeNodeNamedTypeName)(a.node.type),c=`${i}.${r}`;if(Br.BASE_SCALARS.has(o))return{errorString:(0,se.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:c,responseType:o,subgraphName:this.subgraphName})};let l=this.parentDefinitionDataByTypeName.get(o);return l?l.kind!==W.Kind.INTERFACE_TYPE_DEFINITION&&l.kind!==W.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,se.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:c,responseType:o,subgraphName:this.subgraphName})}:{fieldSetParentData:l}:{errorString:(0,se.unknownNamedTypeErrorMessage)(c,o)}}validateConditionalFieldSet(t,n,r,i,a){let{error:o,documentNode:c}=(0,Dn.safeParse)("{"+n+"}");if(o||!c)return{errorMessages:[(0,se.unparsableFieldSetErrorMessage)(n,o)]};let l=this,d=[t],p=(0,ai.getConditionalFieldSetDirectiveName)(i),E=[],I=`${a}.${r}`,v=(0,ai.getInitialFieldCoordsPath)(i,I),A=[r],U=new Set,j=[],$=-1,re=!0,ee=r,me=!1;return(0,W.visit)(c,{Argument:{enter(){return!1}},Field:{enter(ue){var Tn,Ur;let Ae=d[$],xe=Ae.name;if(Ae.kind===W.Kind.UNION_TYPE_DEFINITION)return j.push((0,se.invalidSelectionOnUnionErrorMessage)(n,v,xe)),W.BREAK;let Ze=ue.name.value,Z=`${xe}.${Ze}`;if(l.unvalidatedExternalFieldCoords.delete(Z),re)return j.push((0,se.invalidSelectionSetErrorMessage)(n,v,xe,(0,je.kindToNodeType)(Ae.kind))),W.BREAK;if(v.push(Z),A.push(Ze),ee=Ze,Ze===X.TYPENAME){if(i)return j.push((0,se.typeNameAlreadyProvidedErrorMessage)(Z,l.subgraphName)),W.BREAK;U.size<1&&cl(Tn=l,Ep,tb).call(Tn,{currentFieldCoords:Z,directiveCoords:I,directiveName:p,fieldSet:n});return}let _e=Ae.fieldDataByName.get(Ze);if(!_e)return j.push((0,se.undefinedFieldInFieldSetErrorMessage)(n,xe,Ze)),W.BREAK;if(E[$].has(Ze))return j.push((0,se.duplicateFieldInFieldSetErrorMessage)(n,Z)),W.BREAK;E[$].add(Ze);let{isDefinedExternal:vt,isUnconditionallyProvided:rn}=(0,je.getOrThrowError)(_e.externalFieldDataBySubgraphName,l.subgraphName,`${Z}.externalFieldDataBySubgraphName`),an=vt&&!rn;rn||(me=!0);let wn=(0,cr.getTypeNodeNamedTypeName)(_e.node.type),$t=l.parentDefinitionDataByTypeName.get(wn);if(Br.BASE_SCALARS.has(wn)||($t==null?void 0:$t.kind)===W.Kind.SCALAR_TYPE_DEFINITION||($t==null?void 0:$t.kind)===W.Kind.ENUM_TYPE_DEFINITION){if(U.size<1&&!vt){cl(Ur=l,Ep,tb).call(Ur,{currentFieldCoords:Z,directiveCoords:I,directiveName:p,fieldSet:n});return}if(U.size<1&&rn){l.isSubgraphVersionTwo?j.push((0,se.fieldAlreadyProvidedErrorMessage)(Z,l.subgraphName,p)):l.warnings.push((0,rs.fieldAlreadyProvidedWarning)(Z,p,I,l.subgraphName));return}if(!an&&!i)return;let lr=(0,je.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,nn.newConditionalFieldData),gn=(0,Np.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...A]});i?lr.providedBy.push(gn):lr.requiredBy.push(gn);return}if(!$t)return j.push((0,se.unknownTypeInFieldSetErrorMessage)(n,Z,wn)),W.BREAK;if(vt&&(i&&(0,je.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,nn.newConditionalFieldData).providedBy.push((0,Np.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...A]})),U.add(Z)),$t.kind===W.Kind.OBJECT_TYPE_DEFINITION||$t.kind===W.Kind.INTERFACE_TYPE_DEFINITION||$t.kind===W.Kind.UNION_TYPE_DEFINITION){re=!0,d.push($t);return}},leave(){U.delete(v.pop()||""),A.pop()}},InlineFragment:{enter(ue){let Ae=d[$],xe=Ae.name,Ze=v.length<1?t.name:v[v.length-1];if(!ue.typeCondition)return j.push((0,se.inlineFragmentWithoutTypeConditionErrorMessage)(n,Ze)),W.BREAK;let Z=ue.typeCondition.name.value;if(Z===xe){d.push(Ae),re=!0;return}if(!(0,Dn.isKindAbstract)(Ae.kind))return j.push((0,se.invalidInlineFragmentTypeErrorMessage)(n,v,Z,xe)),W.BREAK;let _e=l.parentDefinitionDataByTypeName.get(Z);if(!_e)return j.push((0,se.unknownInlineFragmentTypeConditionErrorMessage)(n,v,xe,Z)),W.BREAK;switch(re=!0,_e.kind){case W.Kind.INTERFACE_TYPE_DEFINITION:{if(!_e.implementedInterfaceTypeNames.has(xe))break;d.push(_e);return}case W.Kind.OBJECT_TYPE_DEFINITION:{let vt=l.concreteTypeNamesByAbstractTypeName.get(xe);if(!vt||!vt.has(Z))break;d.push(_e);return}case W.Kind.UNION_TYPE_DEFINITION:{d.push(_e);return}default:return j.push((0,se.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,v,xe,Z,(0,je.kindToNodeType)(_e.kind))),W.BREAK}return j.push((0,se.invalidInlineFragmentTypeConditionErrorMessage)(n,v,Z,(0,je.kindToNodeType)(Ae.kind),xe)),W.BREAK}},SelectionSet:{enter(){if(!re){let ue=d[$];if(ue.kind===W.Kind.UNION_TYPE_DEFINITION)return j.push((0,se.unparsableFieldSetSelectionErrorMessage)(n,ee)),W.BREAK;if(ee===X.TYPENAME)return j.push((0,se.invalidSelectionSetDefinitionErrorMessage)(n,v,X.STRING_SCALAR,(0,je.kindToNodeType)(W.Kind.SCALAR_TYPE_DEFINITION))),W.BREAK;let Ae=ue.fieldDataByName.get(ee);if(!Ae)return j.push((0,se.undefinedFieldInFieldSetErrorMessage)(n,ue.name,ee)),W.BREAK;let xe=(0,cr.getTypeNodeNamedTypeName)(Ae.node.type),Ze=l.parentDefinitionDataByTypeName.get(xe),Z=Ze?Ze.kind:W.Kind.SCALAR_TYPE_DEFINITION;return j.push((0,se.invalidSelectionSetDefinitionErrorMessage)(n,v,xe,(0,je.kindToNodeType)(Z))),W.BREAK}if($+=1,re=!1,$<0||$>=d.length)return j.push((0,se.unparsableFieldSetSelectionErrorMessage)(n,ee)),W.BREAK;E.push(new Set)},leave(){if(re){let ue=d[$+1];j.push((0,se.invalidSelectionSetErrorMessage)(n,v,ue.name,(0,je.kindToNodeType)(ue.kind))),re=!1}$-=1,d.pop(),E.pop()}}}),j.length>0||!me?{errorMessages:j}:{configuration:{fieldName:r,selectionSet:(0,ai.getNormalizedFieldSet)(c)},errorMessages:j}}validateProvidesOrRequires(t,n,r){let i=[],a=[],o=(0,nn.getParentTypeName)(t);for(let[c,l]of n){let{fieldSetParentData:d,errorString:p}=this.getFieldSetParent(r,t,c,o),E=`${o}.${c}`;if(p){i.push(p);continue}if(!d)continue;let{errorMessages:I,configuration:v}=this.validateConditionalFieldSet(d,l,c,r,o);if(I.length>0){i.push(` On field "${E}": - -`+I.join(X.HYPHEN_JOIN));continue}v&&a.push(v)}if(i.length>0){this.errors.push((0,se.invalidProvidesOrRequiresDirectivesError)((0,ai.getConditionalFieldSetDirectiveName)(r),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByName.has(X.INACCESSIBLE),r=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(Br.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!c)continue;if(c.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){i.set(c.name,(0,je.kindToNodeType)(c.kind));continue}if(t.name===c.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},d=!1;for(let[p,E]of c.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${p}`);let I=!1,v=t.fieldDataByName.get(p);if(!v){d=!0,l.unimplementedFields.push(p);continue}let A={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,yi.printTypeNode)(E.node.type),unimplementedArguments:new Set};(0,nn.isTypeValidImplementation)(E.node.type,v.node.type,this.concreteTypeNamesByAbstractTypeName)||(d=!0,I=!0,A.implementedResponseType=(0,yi.printTypeNode)(v.node.type));let U=new Set;for(let[j,$]of E.argumentDataByName){U.add(j);let re=v.argumentDataByName.get(j);if(!re){d=!0,I=!0,A.unimplementedArguments.add(j);continue}let ee=(0,yi.printTypeNode)(re.type),me=(0,yi.printTypeNode)($.type);me!==ee&&(d=!0,I=!0,A.invalidImplementedArguments.push({actualType:ee,argumentName:j,expectedType:me}))}for(let[j,$]of v.argumentDataByName)U.has(j)||$.type.kind===W.Kind.NON_NULL_TYPE&&(d=!0,I=!0,A.invalidAdditionalArguments.add(j));!n&&v.isInaccessible&&!E.isInaccessible&&(d=!0,I=!0,A.isInaccessible=!0),I&&l.invalidFieldImplementations.set(p,A)}d&&r.set(o,l)}i.size>0&&this.errors.push((0,se.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,se.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,se.invalidInterfaceImplementationError)(t.name,(0,je.kindToNodeType)(t.kind),r))}handleAuthenticatedDirective(t,n){let r=(0,je.getValueOrDefault)(this.authorizationDataByParentTypeName,n,()=>(0,Yn.newAuthorizationData)(n));if(t.kind===W.Kind.FIELD_DEFINITION){let i=(0,je.getValueOrDefault)(r.fieldAuthDataByFieldName,t.name,()=>(0,Yn.newFieldAuthorizationData)(t.name));i.inheritedData.requiresAuthentication=!0,i.originalData.requiresAuthentication=!0}else r.requiresAuthentication=!0,this.parentTypeNamesWithAuthDirectives.add(n)}handleOverrideDirective({data:t,directiveCoords:n,errorMessages:r,targetSubgraphName:i}){if(i===this.subgraphName){r.push((0,se.equivalentSourceAndTargetOverrideErrorMessage)(i,n));return}let a=(0,je.getValueOrDefault)(this.overridesByTargetSubgraphName,i,()=>new Map);(0,je.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}handleSemanticNonNullDirective({data:t,directiveNode:n,errorMessages:r}){var E;let i=new Set,a=t.node.type,o=0;for(;a;)switch(a.kind){case W.Kind.LIST_TYPE:{o+=1,a=a.type;break}case W.Kind.NON_NULL_TYPE:{i.add(o),a=a.type;break}default:{a=null;break}}let c=(E=n.arguments)==null?void 0:E.find(I=>I.name.value===X.LEVELS);if(!c||c.value.kind!==W.Kind.LIST){r.push(se.semanticNonNullArgumentErrorMessage);return}let l=c.value.values,d=(0,yi.printTypeNode)(t.type),p=new Set;for(let{value:I}of l){let v=parseInt(I,10);if(Number.isNaN(v)){r.push((0,se.semanticNonNullLevelsNaNIndexErrorMessage)(I));continue}if(v<0||v>o){r.push((0,se.semanticNonNullLevelsIndexOutOfBoundsErrorMessage)({maxIndex:o,typeString:d,value:I}));continue}if(!i.has(v)){p.add(v);continue}r.push((0,se.semanticNonNullLevelsNonNullErrorMessage)({typeString:d,value:I}))}t.nullLevelsBySubgraphName.set(this.subgraphName,p)}extractRequiredScopes({directiveCoords:t,orScopes:n,requiredScopes:r}){if(n.length>Br.MAX_OR_SCOPES){this.invalidORScopesCoords.add(t);return}for(let i of n){let a=new Set;for(let o of i.values)a.add(o.value);a.size<1||(0,Yn.addScopes)(r,a)}}getKafkaPublishConfiguration(t,n,r,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case X.TOPIC:{if(c.value.kind!==W.Kind.STRING||c.value.value.length<1){i.push((0,se.invalidEventSubjectErrorMessage)(X.TOPIC));continue}(0,ai.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case X.PROVIDER_ID:{if(c.value.kind!==W.Kind.STRING||c.value.value.length<1){i.push(se.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:X.PROVIDER_TYPE_KAFKA,topics:a,type:X.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case X.TOPICS:{if(c.value.kind!==W.Kind.LIST){i.push((0,se.invalidEventSubjectsErrorMessage)(X.TOPICS));continue}for(let l of c.value.values){if(l.kind!==W.Kind.STRING||l.value.length<1){i.push((0,se.invalidEventSubjectsItemErrorMessage)(X.TOPICS));break}(0,ai.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case X.PROVIDER_ID:{if(c.value.kind!==W.Kind.STRING||c.value.value.length<1){i.push(se.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:X.PROVIDER_TYPE_KAFKA,topics:a,type:X.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i,a){let o=[],c=X.DEFAULT_EDFS_PROVIDER_ID;for(let l of n.arguments||[])switch(l.name.value){case X.SUBJECT:{if(l.value.kind!==W.Kind.STRING||l.value.value.length<1){a.push((0,se.invalidEventSubjectErrorMessage)(X.SUBJECT));continue}(0,ai.validateArgumentTemplateReferences)(l.value.value,r,a),o.push(l.value.value);break}case X.PROVIDER_ID:{if(l.value.kind!==W.Kind.STRING||l.value.value.length<1){a.push(se.invalidEventProviderIdErrorMessage);continue}c=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:c,providerType:X.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,n,r,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID,c=GE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",d="";for(let p of t.arguments||[])switch(p.name.value){case X.SUBJECTS:{if(p.value.kind!==W.Kind.LIST){i.push((0,se.invalidEventSubjectsErrorMessage)(X.SUBJECTS));continue}for(let E of p.value.values){if(E.kind!==W.Kind.STRING||E.value.length<1){i.push((0,se.invalidEventSubjectsItemErrorMessage)(X.SUBJECTS));break}(0,ai.validateArgumentTemplateReferences)(E.value,n,i),a.push(E.value)}break}case X.PROVIDER_ID:{if(p.value.kind!==W.Kind.STRING||p.value.value.length<1){i.push(se.invalidEventProviderIdErrorMessage);continue}o=p.value.value;break}case X.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,p.value.kind!==W.Kind.OBJECT||p.value.fields.length<1){i.push(se.invalidNatsStreamInputErrorMessage);continue}let E=!0,I=new Set,v=new Set(mp.STREAM_CONFIGURATION_FIELD_NAMES),A=new Set([X.CONSUMER_NAME,X.STREAM_NAME]),U=new Set,j=new Set;for(let $ of p.value.fields){let re=$.name.value;if(!mp.STREAM_CONFIGURATION_FIELD_NAMES.has(re)){I.add(re),E=!1;continue}if(v.has(re))v.delete(re);else{U.add(re),E=!1;continue}switch(A.has(re)&&A.delete(re),re){case X.CONSUMER_NAME:if($.value.kind!=W.Kind.STRING||$.value.value.length<1){j.add(re),E=!1;continue}l=$.value.value;break;case X.STREAM_NAME:if($.value.kind!=W.Kind.STRING||$.value.value.length<1){j.add(re),E=!1;continue}d=$.value.value;break;case X.CONSUMER_INACTIVE_THRESHOLD:if($.value.kind!=W.Kind.INT){i.push((0,se.invalidArgumentValueErrorMessage)((0,W.print)($.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",X.INT_SCALAR)),E=!1;continue}try{c=parseInt($.value.value,10)}catch(ee){i.push((0,se.invalidArgumentValueErrorMessage)((0,W.print)($.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",X.INT_SCALAR)),E=!1}break}}(!E||A.size>0)&&i.push((0,se.invalidNatsStreamInputFieldsErrorMessage)([...A],[...U],[...j],[...I]))}}if(!(i.length>0))return c<0?(c=GE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,rs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${GE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):c>ife.MAX_INT32&&(c=0,this.warnings.push((0,rs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),M({fieldName:r,providerId:o,providerType:X.PROVIDER_TYPE_NATS,subjects:a,type:X.SUBSCRIBE},l&&d?{streamConfiguration:{consumerInactiveThreshold:c,consumerName:l,streamName:d}}:{})}getRedisPublishConfiguration(t,n,r,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case X.CHANNEL:{if(c.value.kind!==W.Kind.STRING||c.value.value.length<1){i.push((0,se.invalidEventSubjectErrorMessage)(X.CHANNEL));continue}(0,ai.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case X.PROVIDER_ID:{if(c.value.kind!==W.Kind.STRING||c.value.value.length<1){i.push(se.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:X.PROVIDER_TYPE_REDIS,channels:a,type:X.PUBLISH}}getRedisSubscribeConfiguration(t,n,r,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case X.CHANNELS:{if(c.value.kind!==W.Kind.LIST){i.push((0,se.invalidEventSubjectsErrorMessage)(X.CHANNELS));continue}for(let l of c.value.values){if(l.kind!==W.Kind.STRING||l.value.length<1){i.push((0,se.invalidEventSubjectsItemErrorMessage)(X.CHANNELS));break}(0,ai.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case X.PROVIDER_ID:{if(c.value.kind!==W.Kind.STRING||c.value.value.length<1){i.push(se.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:X.PROVIDER_TYPE_REDIS,channels:a,type:X.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===W.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===X.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,se.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t,n){if(!t.directives)return;let r=t.name.value,i=`${this.renamedParentTypeName||this.originalParentTypeName}.${r}`;for(let a of t.directives){let o=[],c;switch(a.name.value){case X.EDFS_KAFKA_PUBLISH:c=this.getKafkaPublishConfiguration(a,n,r,o);break;case X.EDFS_KAFKA_SUBSCRIBE:c=this.getKafkaSubscribeConfiguration(a,n,r,o);break;case X.EDFS_NATS_PUBLISH:{c=this.getNatsPublishAndRequestConfiguration(X.PUBLISH,a,n,r,o);break}case X.EDFS_NATS_REQUEST:{c=this.getNatsPublishAndRequestConfiguration(X.REQUEST,a,n,r,o);break}case X.EDFS_NATS_SUBSCRIBE:{c=this.getNatsSubscribeConfiguration(a,n,r,o);break}case X.EDFS_REDIS_PUBLISH:{c=this.getRedisPublishConfiguration(a,n,r,o);break}case X.EDFS_REDIS_SUBSCRIBE:{c=this.getRedisSubscribeConfiguration(a,n,r,o);break}default:continue}if(o.length>0){this.errors.push((0,se.invalidEventDirectiveError)(a.name.value,i,o));continue}c&&(0,je.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(c)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case W.OperationTypeNode.MUTATION:return new Set([X.EDFS_KAFKA_PUBLISH,X.EDFS_NATS_PUBLISH,X.EDFS_NATS_REQUEST,X.EDFS_REDIS_PUBLISH]);case W.OperationTypeNode.QUERY:return new Set([X.EDFS_NATS_REQUEST]);case W.OperationTypeNode.SUBSCRIPTION:return new Set([X.EDFS_KAFKA_SUBSCRIBE,X.EDFS_NATS_SUBSCRIBE,X.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case X.MUTATION:return W.OperationTypeNode.MUTATION;case X.QUERY:return W.OperationTypeNode.QUERY;case X.SUBSCRIPTION:return W.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,se.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[c,l]of t.fieldDataByName){let d=`${l.originalParentTypeName}.${c}`,p=new Set;for(let j of mp.EVENT_DIRECTIVE_NAMES)l.directivesByName.has(j)&&p.add(j);let E=new Set;for(let j of p)o.has(j)||E.add(j);if((p.size<1||E.size>0)&&n.set(d,{definesDirectives:p.size>0,invalidDirectiveNames:[...E]}),a===W.OperationTypeNode.MUTATION){let j=(0,yi.printTypeNode)(l.type);j!==X.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(d,j);continue}let I=(0,yi.printTypeNode)(l.type),v=l.namedTypeName+"!",A=!1,U=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let j of U)if(A||(A=this.entityDataByTypeName.has(j)),A)break;(!A||I!==v)&&r.set(d,I)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDatasByTypeName.get(t);if(r)for(let[i,{isUnresolvable:a}]of r)a||(0,je.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){var a;for(let[o,c]of t){let l=`${c.originalParentTypeName}.${o}`;if(n.has(o)){(a=c.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal||r.set(l,o);continue}i.set(l,o)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(X.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==W.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!=1)return!1;for(let[n,r]of t.fieldDataByName)if(r.argumentDataByName.size>0||n!==X.SUCCESS||(0,yi.printTypeNode)(r.type)!==X.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(!(0,nn.isInputObjectDefinitionData)(t)||t.inputValueDataByName.size!=3)return!1;for(let[n,r]of t.inputValueDataByName)switch(n){case X.CONSUMER_INACTIVE_THRESHOLD:{if((0,yi.printTypeNode)(r.type)!==X.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==W.Kind.INT||r.defaultValue.value!==`${GE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case X.CONSUMER_NAME:case X.STREAM_NAME:{if((0,yi.printTypeNode)(r.type)!==X.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(){let t=[],n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,c=new Map,l=new Set,d=new Set;for(let[p,E]of this.parentDefinitionDataByTypeName){if(p===X.EDFS_PUBLISH_RESULT||p===X.EDFS_NATS_STREAM_CONFIGURATION||E.kind!==W.Kind.OBJECT_TYPE_DEFINITION)continue;if(E.isRootType){this.validateEventDrivenRootType(E,n,r,i);continue}let I=this.keyFieldNamesByParentTypeName.get(p);if(!I){d.add(p);continue}this.validateEventDrivenKeyDefinition(p,a),this.validateEventDrivenObjectFields(E.fieldDataByName,I,o,c)}if(this.isEdfsPublishResultValid()||t.push(se.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(X.EDFS_NATS_SUBSCRIBE)){let p=this.parentDefinitionDataByTypeName.get(X.EDFS_NATS_STREAM_CONFIGURATION);p&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(p)&&t.push(se.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(X.EDFS_NATS_STREAM_CONFIGURATION);let E=this.upsertInputObjectByNode(sV.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION);if(E.success)for(let I of sV.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION.fields)this.addInputValueDataByNode({fieldName:I.name.value,isArgument:!1,inputValueDataByName:E.data.inputValueDataByName,node:I,originalParentTypeName:X.EDFS_NATS_STREAM_CONFIGURATION});else return}n.size>0&&t.push((0,se.invalidRootTypeFieldEventsDirectivesErrorMessage)(n)),i.size>0&&t.push((0,se.invalidEventDrivenMutationResponseTypeErrorMessage)(i)),r.size>0&&t.push((0,se.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(r)),a.size>0&&t.push((0,se.invalidKeyFieldSetsEventDrivenErrorMessage)(a)),o.size>0&&t.push((0,se.nonExternalKeyFieldNamesEventDrivenErrorMessage)(o)),c.size>0&&t.push((0,se.nonKeyFieldNamesEventDrivenErrorMessage)(c)),l.size>0&&t.push((0,se.nonEntityObjectExtensionsEventDrivenErrorMessage)([...l])),d.size>0&&t.push((0,se.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...d])),t.length>0&&this.errors.push((0,se.invalidEventDrivenGraphError)(t))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,se.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,je.kindToNodeType)(i.kind)}"`)}n.length>0&&this.errors.push((0,se.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let n=t.name.value;for(let r of t.types){let i=r.name.value;(0,je.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}addValidKeyFieldSetConfigurations(){for(let[t,n]of this.keyFieldSetDatasByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,se.undefinedCompositeOutputTypeError)(t));continue}let i=(0,nn.getParentTypeName)(r),a=(0,je.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Np.newConfigurationData)(!0,i)),o=(0,ai.validateKeyFieldSets)(this,r,n);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,n,r=!1){let i=[];for(let[a,o]of t){if(r&&X.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let c=this.directiveDefinitionDataByName.get(a);if(!c)continue;if(!c.isRepeatable&&o.length>1){let p=(0,je.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);p.has(a)||(p.add(a),this.errors.push((0,se.invalidDirectiveError)(a,n,"1st",[(0,se.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==X.KEY){i.push(...o);continue}let l=[],d=new Set;for(let p=0;p0)return Q(M({},t.description?{description:t.description}:{}),{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:W.Kind.SCHEMA_DEFINITION,operationTypes:n});if(!(t.directivesByName.size<1))return{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:W.Kind.SCHEMA_EXTENSION}}getUnionNodeByData(t){return t.node.description=t.description,t.node.directives=this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),t.node.types=(0,Yn.mapToArrayOfValues)(t.memberByMemberTypeName),t.node}evaluateExternalKeyFields(){let t=[];for(let[n,r]of this.keyFieldSetDatasByTypeName){let i=this.parentDefinitionDataByTypeName.get(n);if(!i||i.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&i.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){t.push(n),this.errors.push((0,se.undefinedCompositeOutputTypeError)(n));continue}let a=this;for(let o of r.values()){let c=[i],l=new Map,d=-1,p=!0;if((0,W.visit)(o.documentNode,{Argument:{enter(){return W.BREAK}},Field:{enter(E){let I=c[d],v=I.name;if(p)return W.BREAK;let A=E.name.value,U=`${v}.${A}`;a.unvalidatedExternalFieldCoords.delete(U);let j=I.fieldDataByName.get(A);if(!j||j.argumentDataByName.size)return W.BREAK;j.isShareableBySubgraphName.set(a.subgraphName,!0);let $=j.externalFieldDataBySubgraphName.get(a.subgraphName);a.edfsDirectiveReferences.size<1&&$&&$.isDefinedExternal&&!$.isUnconditionallyProvided&&i.extensionType!==ns.ExtensionType.NONE&&($.isUnconditionallyProvided=!0,(0,je.getValueOrDefault)(l,o.rawFieldSet,()=>new Set).add(U)),(0,je.getValueOrDefault)(a.keyFieldNamesByParentTypeName,v,()=>new Set).add(A);let re=(0,cr.getTypeNodeNamedTypeName)(j.node.type);if(Br.BASE_SCALARS.has(re))return;let ee=a.parentDefinitionDataByTypeName.get(re);if(!ee)return W.BREAK;if(ee.kind===W.Kind.OBJECT_TYPE_DEFINITION){p=!0,c.push(ee);return}if((0,Dn.isKindAbstract)(ee.kind))return W.BREAK}},InlineFragment:{enter(){return W.BREAK}},SelectionSet:{enter(){if(!p||(d+=1,p=!1,d<0||d>=c.length))return W.BREAK},leave(){p&&(p=!1),d-=1,c.pop()}}}),!(l.size<1))for(let[E,I]of l)this.warnings.push((0,rs.externalEntityExtensionKeyFieldWarning)(i.name,E,[...I],this.subgraphName))}}for(let n of t)this.keyFieldSetDatasByTypeName.delete(n)}addValidConditionalFieldSetConfigurations(){for(let[t,n]of this.fieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,se.undefinedCompositeOutputTypeError)(t));continue}let i=(0,nn.getParentTypeName)(r),a=(0,je.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Np.newConfigurationData)(!1,i)),o=this.validateProvidesOrRequires(r,n.provides,!0);o&&(a.provides=o);let c=this.validateProvidesOrRequires(r,n.requires,!1);c&&(a.requires=c)}}addFieldNamesToConfigurationData(t,n){let r=new Set;for(let[i,a]of t){let o=a.externalFieldDataBySubgraphName.get(this.subgraphName);if(!o||o.isUnconditionallyProvided){n.fieldNames.add(i);continue}r.add(i),this.edfsDirectiveReferences.size>0&&n.fieldNames.add(i)}r.size>0&&(n.externalFieldNames=r)}validateOneOfDirective({data:t,requiredFieldNames:n}){var r,i;return t.directivesByName.has(X.ONE_OF)?n.size>0?(this.errors.push((0,se.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(n),typeName:t.name})),!1):(t.inputValueDataByName.size===1&&this.warnings.push((0,rs.singleSubgraphInputFieldOneOfWarning)({fieldName:(i=(r=(0,je.getFirstEntry)(t.inputValueDataByName))==null?void 0:r.name)!=null?i:"unknown",subgraphName:this.subgraphName,typeName:t.name})),!0):!0}normalize(t){var o;(0,aV.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,aV.upsertParentsAndChildren)(this,t);let n=[];cl(this,$E,uV).call(this,n),this.validateDirectives(this.schemaData,X.SCHEMA);let r=this.getSchemaNodeByData(this.schemaData);(r==null?void 0:r.kind)===W.Kind.SCHEMA_DEFINITION&&n.push(r);for(let[c,l]of this.parentDefinitionDataByTypeName)this.validateDirectives(l,c);this.invalidORScopesCoords.size>0&&this.errors.push((0,se.orScopesLimitError)(Br.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let c of this.invalidConfigureDescriptionNodeDatas)c.description||this.errors.push((0,se.configureDescriptionNoDescriptionError)((0,je.kindToNodeType)(c.kind),c.name));this.evaluateExternalKeyFields();for(let[c,l]of this.parentDefinitionDataByTypeName)switch(l.kind){case W.Kind.ENUM_TYPE_DEFINITION:{if(l.enumValueDataByName.size<1){this.errors.push((0,se.noDefinedEnumValuesError)(c));break}n.push(this.getEnumNodeByData(l));break}case W.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(l.inputValueDataByName.size<1){this.errors.push((0,se.noInputValueDefinitionsError)(c));break}let d=new Set;for(let p of l.inputValueDataByName.values()){if((0,nn.isTypeRequired)(p.type)&&d.add(p.name),p.namedTypeKind!==W.Kind.NULL)continue;let E=this.parentDefinitionDataByTypeName.get(p.namedTypeName);if(E){if(!(0,nn.isInputNodeKind)(E.kind)){this.errors.push((0,se.invalidNamedTypeError)({data:p,namedTypeData:E,nodeType:`${(0,je.kindToNodeType)(l.kind)} field`}));continue}p.namedTypeKind=E.kind}}if(!this.validateOneOfDirective({data:l,requiredFieldNames:d}))break;c!==X.EDFS_NATS_STREAM_CONFIGURATION&&n.push(this.getInputObjectNodeByData(l));break}case W.Kind.INTERFACE_TYPE_DEFINITION:case W.Kind.OBJECT_TYPE_DEFINITION:{let d=this.entityDataByTypeName.has(c),p=this.operationTypeNodeByTypeName.get(c),E=l.kind===W.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&l.extensionType===ns.ExtensionType.EXTENDS&&(l.extensionType=ns.ExtensionType.NONE),p&&(l.fieldDataByName.delete(X.SERVICE_FIELD),l.fieldDataByName.delete(X.ENTITIES_FIELD));let I=[];for(let[$,re]of l.fieldDataByName){if(!E&&((o=re.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&o.isDefinedExternal)&&I.push($),this.validateArguments(re,l.kind),re.namedTypeKind!==W.Kind.NULL)continue;let ee=this.parentDefinitionDataByTypeName.get(re.namedTypeName);if(ee){if(!(0,nn.isOutputNodeKind)(ee.kind)){this.errors.push((0,se.invalidNamedTypeError)({data:re,namedTypeData:ee,nodeType:`${(0,je.kindToNodeType)(l.kind)} field`}));continue}re.namedTypeKind=this.entityInterfaceDataByTypeName.get(ee.name)?W.Kind.INTERFACE_TYPE_DEFINITION:ee.kind}}I.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,se.externalInterfaceFieldsError)(c,I)):this.warnings.push((0,rs.externalInterfaceFieldsWarning)(this.subgraphName,c,I)));let v=(0,nn.getParentTypeName)(l),A=(0,je.getValueOrDefault)(this.configurationDataByTypeName,v,()=>(0,Np.newConfigurationData)(d,c)),U=this.entityInterfaceDataByTypeName.get(c);if(U){U.fieldDatas=(0,Yn.fieldDatasToSimpleFieldDatas)(l.fieldDataByName.values());let $=this.concreteTypeNamesByAbstractTypeName.get(c);$&&(0,je.addIterableToSet)({source:$,target:U.concreteTypeNames}),A.isInterfaceObject=U.isInterfaceObject,A.entityInterfaceConcreteTypeNames=U.concreteTypeNames}let j=this.eventsConfigurations.get(v);j&&(A.events=j),this.addFieldNamesToConfigurationData(l.fieldDataByName,A),this.validateInterfaceImplementations(l),n.push(this.getCompositeOutputNodeByData(l)),l.fieldDataByName.size<1&&!(0,ai.isNodeQuery)(c,p)&&this.errors.push((0,se.noFieldDefinitionsError)((0,je.kindToNodeType)(l.kind),c)),l.requireFetchReasonsFieldNames.size>0&&(A.requireFetchReasonsFieldNames=[...l.requireFetchReasonsFieldNames]);break}case W.Kind.SCALAR_TYPE_DEFINITION:{if(l.extensionType===ns.ExtensionType.REAL){this.errors.push((0,se.noBaseScalarDefinitionError)(c));break}n.push(this.getScalarNodeByData(l));break}case W.Kind.UNION_TYPE_DEFINITION:{n.push(this.getUnionNodeByData(l)),this.validateUnionMembers(l);break}default:throw(0,se.unexpectedKindFatalError)(c)}this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let c of Object.values(W.OperationTypeNode)){let l=this.schemaData.operationTypes.get(c),d=(0,je.getOrThrowError)(Dn.operationTypeNodeToDefaultType,c,X.OPERATION_TO_DEFAULT),p=l?(0,cr.getTypeNodeNamedTypeName)(l.type):d;if(Br.BASE_SCALARS.has(p)&&this.referencedTypeNames.add(p),p!==d&&this.parentDefinitionDataByTypeName.has(d)){this.errors.push((0,se.invalidRootTypeDefinitionError)(c,p,d));continue}let E=this.parentDefinitionDataByTypeName.get(p);if(l){if(!E)continue;this.operationTypeNodeByTypeName.set(p,c)}if(!E)continue;let I=this.configurationDataByTypeName.get(d);I&&(I.isRootNode=!0,I.typeName=d),E.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,se.operationDefinitionError)(p,c,E.kind))}for(let c of this.referencedTypeNames){let l=this.parentDefinitionDataByTypeName.get(c);if(!l){this.errors.push((0,se.undefinedTypeError)(c));continue}if(l.kind!==W.Kind.INTERFACE_TYPE_DEFINITION)continue;let d=this.concreteTypeNamesByAbstractTypeName.get(c);(!d||d.size<1)&&this.warnings.push((0,rs.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,c))}let i=new Map;for(let c of this.directiveDefinitionByName.values()){let l=(0,Dn.extractExecutableDirectiveLocations)(c.locations,new Set);l.size<1||this.addPersistedDirectiveDefinitionDataByNode(i,c,l)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph();for(let c of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,se.invalidExternalDirectiveError)(c)):this.warnings.push((0,rs.invalidExternalFieldWarning)(c,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let a={kind:W.Kind.DOCUMENT,definitions:n};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,directiveDefinitionByName:this.directiveDefinitionByName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,keyFieldSetsByEntityTypeNameByKeyFieldCoords:this.keyFieldSetsByEntityTypeNameByFieldCoords,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:i,schemaNode:r,subgraphAST:a,subgraphString:(0,W.print)(a),schema:(0,nfe.buildASTSchema)(a,{addInvalidExtensionOrphans:!0,assumeValid:!0,assumeValidSDL:!0}),success:!0,warnings:this.warnings}}};Ep=new WeakSet,tb=function({currentFieldCoords:t,directiveCoords:n,directiveName:r,fieldSet:i}){if(this.isSubgraphVersionTwo){this.errors.push((0,se.nonExternalConditionalFieldError)({directiveCoords:n,directiveName:r,fieldSet:i,subgraphName:this.subgraphName,targetCoords:t}));return}this.warnings.push((0,rs.nonExternalConditionalFieldWarning)(n,this.subgraphName,t,i,r))},$E=new WeakSet,uV=function(t){let n=new Set;for(let r of this.referencedDirectiveNames){let i=Br.DIRECTIVE_DEFINITION_BY_NAME.get(r);i&&(this.directiveDefinitionByName.set(r,i),(0,je.addOptionalIterableToSet)({source:mp.DEPENDENCIES_BY_DIRECTIVE_NAME.get(r),target:n}),t.push(i))}for(let r of this.customDirectiveDefinitionByName.values())t.push(r);t.push(...n)};Lc.NormalizationFactory=Tp;function sfe(e){let t=new Map,n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,c=new Set,l=new Map,d=new Set,p=new Set,E=[],I=new Set,v=new Map,A=[],U=[];for(let re of e)re.name&&(0,rfe.recordSubgraphName)(re.name,d,p);let j=new nb.Graph;for(let re=0;re0&&A.push(...ue.warnings),!ue.success){U.push((0,se.subgraphValidationError)(me,ue.errors));continue}if(!ue){U.push((0,se.subgraphValidationError)(me,[se.subgraphValidationFailureError]));continue}l.set(me,ue.parentDefinitionDataByTypeName);for(let Ae of ue.authorizationDataByParentTypeName.values())(0,Yn.upsertAuthorizationData)(t,Ae,I);for(let[Ae,xe]of ue.fieldCoordsByNamedTypeName)(0,je.addIterableToSet)({source:xe,target:(0,je.getValueOrDefault)(v,Ae,()=>new Set)});for(let[Ae,xe]of ue.concreteTypeNamesByAbstractTypeName){let Ze=n.get(Ae);if(!Ze){n.set(Ae,new Set(xe));continue}(0,je.addIterableToSet)({source:xe,target:Ze})}for(let[Ae,xe]of ue.entityDataByTypeName){let Ze=xe.keyFieldSetDatasBySubgraphName.get(me);Ze&&(0,Yn.upsertEntityData)({entityDataByTypeName:r,keyFieldSetDataByFieldSet:Ze,typeName:Ae,subgraphName:me})}if(ee.name&&i.set(me,{conditionalFieldDataByCoordinates:ue.conditionalFieldDataByCoordinates,configurationDataByTypeName:ue.configurationDataByTypeName,definitions:ue.subgraphAST,directiveDefinitionByName:ue.directiveDefinitionByName,entityInterfaces:ue.entityInterfaces,isVersionTwo:ue.isVersionTwo,keyFieldNamesByParentTypeName:ue.keyFieldNamesByParentTypeName,name:me,operationTypes:ue.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:ue.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:ue.persistedDirectiveDefinitionDataByDirectiveName,schema:ue.schema,schemaNode:ue.schemaNode,url:ee.url}),!(ue.overridesByTargetSubgraphName.size<1))for(let[Ae,xe]of ue.overridesByTargetSubgraphName){let Ze=d.has(Ae);for(let[Z,_e]of xe){let vt=ue.originalTypeNameByRenamedTypeName.get(Z)||Z;if(!Ze)A.push((0,rs.invalidOverrideTargetSubgraphNameWarning)(Ae,vt,[..._e],ee.name));else{let rn=(0,je.getValueOrDefault)(a,Ae,()=>new Map),an=(0,je.getValueOrDefault)(rn,Z,()=>new Set(_e));(0,je.addIterableToSet)({source:_e,target:an})}for(let rn of _e){let an=`${vt}.${rn}`,wn=o.get(an);if(!wn){o.set(an,[me]);continue}wn.push(me),c.add(an)}}}}let $=[];if(I.size>0&&$.push((0,se.orScopesLimitError)(Br.MAX_OR_SCOPES,[...I])),(E.length>0||p.size>0)&&$.push((0,se.invalidSubgraphNamesError)([...p],E)),c.size>0){let re=[];for(let ee of c){let me=(0,je.getOrThrowError)(o,ee,"overrideSourceSubgraphNamesByFieldPath");re.push((0,se.duplicateOverriddenFieldErrorMessage)(ee,me))}$.push((0,se.duplicateOverriddenFieldsError)(re))}if($.push(...U),$.length>0)return{errors:$,success:!1,warnings:A};for(let[re,ee]of a){let me=(0,je.getOrThrowError)(i,re,"internalSubgraphBySubgraphName");me.overriddenFieldNamesByParentTypeName=ee;for(let[ue,Ae]of ee){let xe=me.configurationDataByTypeName.get(ue);xe&&((0,Yn.subtractSet)(Ae,xe.fieldNames),xe.fieldNames.size<1&&me.configurationDataByTypeName.delete(ue))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,fieldCoordsByNamedTypeName:v,internalSubgraphBySubgraphName:i,internalGraph:j,success:!0,warnings:A}}});var QE=w(Uc=>{"use strict";m();T();N();Object.defineProperty(Uc,"__esModule",{value:!0});Uc.DivergentType=void 0;Uc.getLeastRestrictiveMergedTypeNode=ufe;Uc.getMostRestrictiveMergedTypeNode=cfe;Uc.renameNamedTypeName=lfe;var Cc=Oe(),lV=qi(),ofe=Iu(),cV=Pr(),dV=wl(),Bc;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Bc||(Uc.DivergentType=Bc={}));function fV(e,t,n,r,i){t=(0,ofe.getMutableTypeNode)(t,n,i);let a={kind:e.kind},o=Bc.NONE,c=a;for(let l=0;l{"use strict";m();T();N();Object.defineProperty(ab,"__esModule",{value:!0});ab.renameRootTypes=pfe;var dfe=Oe(),ib=Pr(),ffe=QE(),Pu=zn(),kc=Fr();function pfe(e,t){let n,r=!1,i;(0,dfe.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(r&&(o===Pu.SERVICE_FIELD||o===Pu.ENTITIES_FIELD))return n.fieldDataByName.delete(o),!1;let c=n.name,l=(0,kc.getOrThrowError)(n.fieldDataByName,o,`${c}.fieldDataByFieldName`),d=t.operationTypes.get(l.namedTypeName);if(d){let p=(0,kc.getOrThrowError)(ib.operationTypeNodeToDefaultType,d,Pu.OPERATION_TO_DEFAULT);l.namedTypeName!==p&&(0,ffe.renameNamedTypeName)(l,p,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(a){let o=a.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;n=(0,kc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Pu.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,kc.getOrThrowError)(ib.operationTypeNodeToDefaultType,c,Pu.OPERATION_TO_DEFAULT):o;n=(0,kc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Pu.PARENT_DEFINITION_DATA),r=n.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o)))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,kc.getOrThrowError)(ib.operationTypeNodeToDefaultType,c,Pu.OPERATION_TO_DEFAULT):o;n=(0,kc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Pu.PARENT_DEFINITION_DATA),r=n.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o))},leave(){n=void 0,r=!1,i=void 0}}})}});var pV=w((cd,hp)=>{"use strict";m();T();N();(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",c=500,l="__lodash_placeholder__",d=1,p=2,E=4,I=1,v=2,A=1,U=2,j=4,$=8,re=16,ee=32,me=64,ue=128,Ae=256,xe=512,Ze=30,Z="...",_e=800,vt=16,rn=1,an=2,wn=3,$t=1/0,Tn=9007199254740991,Ur=17976931348623157e292,lr=NaN,gn=4294967295,Ht=gn-1,Ln=gn>>>1,ae=[["ary",ue],["bind",A],["bindKey",U],["curry",$],["curryRight",re],["flip",xe],["partial",ee],["partialRight",me],["rearg",Ae]],De="[object Arguments]",Ie="[object Array]",Ce="[object AsyncFunction]",St="[object Boolean]",Y="[object Date]",ie="[object DOMException]",qe="[object Error]",He="[object Function]",Bt="[object GeneratorFunction]",it="[object Map]",Pt="[object Number]",us="[object Null]",Qr="[object Object]",cs="[object Promise]",Hc="[object Proxy]",Pa="[object RegExp]",yr="[object Set]",si="[object String]",xt="[object Symbol]",Ir="[object Undefined]",Bu="[object WeakMap]",Fa="[object WeakSet]",Uu="[object ArrayBuffer]",P="[object DataView]",y="[object Float32Array]",g="[object Float64Array]",B="[object Int8Array]",K="[object Int16Array]",te="[object Int32Array]",ce="[object Uint8Array]",Tt="[object Uint8ClampedArray]",En="[object Uint16Array]",un="[object Uint32Array]",_n=/\b__p \+= '';/g,sn=/\b(__p \+=) '' \+/g,Jj=/(__e\(.*?\)|\b__t\)) \+\n'';/g,o0=/&(?:amp|lt|gt|quot|#39);/g,u0=/[&<>"']/g,Hj=RegExp(o0.source),zj=RegExp(u0.source),Wj=/<%-([\s\S]+?)%>/g,Xj=/<%([\s\S]+?)%>/g,c0=/<%=([\s\S]+?)%>/g,Zj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eK=/^\w*$/,tK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bh=/[\\^$.*+?()[\]{}|]/g,nK=RegExp(bh.source),Ah=/^\s+/,rK=/\s/,iK=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,aK=/\{\n\/\* \[wrapped with (.+)\] \*/,sK=/,? & /,oK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,uK=/[()=,{}\[\]\/\s]/,cK=/\\(\\)?/g,lK=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,l0=/\w*$/,dK=/^[-+]0x[0-9a-f]+$/i,fK=/^0b[01]+$/i,pK=/^\[object .+?Constructor\]$/,mK=/^0o[0-7]+$/i,NK=/^(?:0|[1-9]\d*)$/,TK=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kp=/($^)/,EK=/['\n\r\u2028\u2029\\]/g,Gp="\\ud800-\\udfff",hK="\\u0300-\\u036f",yK="\\ufe20-\\ufe2f",IK="\\u20d0-\\u20ff",d0=hK+yK+IK,f0="\\u2700-\\u27bf",p0="a-z\\xdf-\\xf6\\xf8-\\xff",gK="\\xac\\xb1\\xd7\\xf7",_K="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vK="\\u2000-\\u206f",OK=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",m0="A-Z\\xc0-\\xd6\\xd8-\\xde",N0="\\ufe0e\\ufe0f",T0=gK+_K+vK+OK,Rh="['\u2019]",SK="["+Gp+"]",E0="["+T0+"]",$p="["+d0+"]",h0="\\d+",DK="["+f0+"]",y0="["+p0+"]",I0="[^"+Gp+T0+h0+f0+p0+m0+"]",Ph="\\ud83c[\\udffb-\\udfff]",bK="(?:"+$p+"|"+Ph+")",g0="[^"+Gp+"]",Fh="(?:\\ud83c[\\udde6-\\uddff]){2}",wh="[\\ud800-\\udbff][\\udc00-\\udfff]",zc="["+m0+"]",_0="\\u200d",v0="(?:"+y0+"|"+I0+")",AK="(?:"+zc+"|"+I0+")",O0="(?:"+Rh+"(?:d|ll|m|re|s|t|ve))?",S0="(?:"+Rh+"(?:D|LL|M|RE|S|T|VE))?",D0=bK+"?",b0="["+N0+"]?",RK="(?:"+_0+"(?:"+[g0,Fh,wh].join("|")+")"+b0+D0+")*",PK="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",FK="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",A0=b0+D0+RK,wK="(?:"+[DK,Fh,wh].join("|")+")"+A0,LK="(?:"+[g0+$p+"?",$p,Fh,wh,SK].join("|")+")",CK=RegExp(Rh,"g"),BK=RegExp($p,"g"),Lh=RegExp(Ph+"(?="+Ph+")|"+LK+A0,"g"),UK=RegExp([zc+"?"+y0+"+"+O0+"(?="+[E0,zc,"$"].join("|")+")",AK+"+"+S0+"(?="+[E0,zc+v0,"$"].join("|")+")",zc+"?"+v0+"+"+O0,zc+"+"+S0,FK,PK,h0,wK].join("|"),"g"),kK=RegExp("["+_0+Gp+d0+N0+"]"),MK=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xK=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qK=-1,yn={};yn[y]=yn[g]=yn[B]=yn[K]=yn[te]=yn[ce]=yn[Tt]=yn[En]=yn[un]=!0,yn[De]=yn[Ie]=yn[Uu]=yn[St]=yn[P]=yn[Y]=yn[qe]=yn[He]=yn[it]=yn[Pt]=yn[Qr]=yn[Pa]=yn[yr]=yn[si]=yn[Bu]=!1;var hn={};hn[De]=hn[Ie]=hn[Uu]=hn[P]=hn[St]=hn[Y]=hn[y]=hn[g]=hn[B]=hn[K]=hn[te]=hn[it]=hn[Pt]=hn[Qr]=hn[Pa]=hn[yr]=hn[si]=hn[xt]=hn[ce]=hn[Tt]=hn[En]=hn[un]=!0,hn[qe]=hn[He]=hn[Bu]=!1;var VK={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},jK={"&":"&","<":"<",">":">",'"':""","'":"'"},KK={"&":"&","<":"<",">":">",""":'"',"'":"'"},GK={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$K=parseFloat,QK=parseInt,R0=typeof global=="object"&&global&&global.Object===Object&&global,YK=typeof self=="object"&&self&&self.Object===Object&&self,dr=R0||YK||Function("return this")(),Ch=typeof cd=="object"&&cd&&!cd.nodeType&&cd,ku=Ch&&typeof hp=="object"&&hp&&!hp.nodeType&&hp,P0=ku&&ku.exports===Ch,Bh=P0&&R0.process,Ii=function(){try{var G=ku&&ku.require&&ku.require("util").types;return G||Bh&&Bh.binding&&Bh.binding("util")}catch(oe){}}(),F0=Ii&&Ii.isArrayBuffer,w0=Ii&&Ii.isDate,L0=Ii&&Ii.isMap,C0=Ii&&Ii.isRegExp,B0=Ii&&Ii.isSet,U0=Ii&&Ii.isTypedArray;function oi(G,oe,ne){switch(ne.length){case 0:return G.call(oe);case 1:return G.call(oe,ne[0]);case 2:return G.call(oe,ne[0],ne[1]);case 3:return G.call(oe,ne[0],ne[1],ne[2])}return G.apply(oe,ne)}function JK(G,oe,ne,Be){for(var dt=-1,Qt=G==null?0:G.length;++dt-1}function Uh(G,oe,ne){for(var Be=-1,dt=G==null?0:G.length;++Be-1;);return ne}function G0(G,oe){for(var ne=G.length;ne--&&Wc(oe,G[ne],0)>-1;);return ne}function rG(G,oe){for(var ne=G.length,Be=0;ne--;)G[ne]===oe&&++Be;return Be}var iG=qh(VK),aG=qh(jK);function sG(G){return"\\"+GK[G]}function oG(G,oe){return G==null?e:G[oe]}function Xc(G){return kK.test(G)}function uG(G){return MK.test(G)}function cG(G){for(var oe,ne=[];!(oe=G.next()).done;)ne.push(oe.value);return ne}function Gh(G){var oe=-1,ne=Array(G.size);return G.forEach(function(Be,dt){ne[++oe]=[dt,Be]}),ne}function $0(G,oe){return function(ne){return G(oe(ne))}}function Zo(G,oe){for(var ne=-1,Be=G.length,dt=0,Qt=[];++ne-1}function zG(s,u){var f=this.__data__,h=cm(f,s);return h<0?(++this.size,f.push([s,u])):f[h][1]=u,this}ls.prototype.clear=QG,ls.prototype.delete=YG,ls.prototype.get=JG,ls.prototype.has=HG,ls.prototype.set=zG;function ds(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u=u?s:u)),s}function Oi(s,u,f,h,O,L){var k,V=u&d,J=u&p,le=u&E;if(f&&(k=O?f(s,h,O,L):f(s)),k!==e)return k;if(!bn(s))return s;var de=ft(s);if(de){if(k=eQ(s),!V)return Yr(s,k)}else{var Te=Sr(s),be=Te==He||Te==Bt;if(su(s))return bA(s,V);if(Te==Qr||Te==De||be&&!O){if(k=J||be?{}:QA(s),!V)return J?K$(s,f$(k,s)):j$(s,rA(k,s))}else{if(!hn[Te])return O?s:{};k=tQ(s,Te,V)}}L||(L=new ra);var $e=L.get(s);if($e)return $e;L.set(s,k),gR(s)?s.forEach(function(tt){k.add(Oi(tt,u,f,tt,s,L))}):yR(s)&&s.forEach(function(tt,Dt){k.set(Dt,Oi(tt,u,f,Dt,s,L))});var et=le?J?Ty:Ny:J?Hr:fr,yt=de?e:et(s);return gi(yt||s,function(tt,Dt){yt&&(Dt=tt,tt=s[Dt]),bd(k,Dt,Oi(tt,u,f,Dt,s,L))}),k}function p$(s){var u=fr(s);return function(f){return iA(f,s,u)}}function iA(s,u,f){var h=f.length;if(s==null)return!h;for(s=mn(s);h--;){var O=f[h],L=u[O],k=s[O];if(k===e&&!(O in s)||!L(k))return!1}return!0}function aA(s,u,f){if(typeof s!="function")throw new _i(i);return Cd(function(){s.apply(e,f)},u)}function Ad(s,u,f,h){var O=-1,L=Qp,k=!0,V=s.length,J=[],le=u.length;if(!V)return J;f&&(u=vn(u,ui(f))),h?(L=Uh,k=!1):u.length>=n&&(L=gd,k=!1,u=new qu(u));e:for(;++OO?0:O+f),h=h===e||h>O?O:Et(h),h<0&&(h+=O),h=f>h?0:vR(h);f0&&f(V)?u>1?gr(V,u-1,f,h,O):Xo(O,V):h||(O[O.length]=V)}return O}var Wh=LA(),uA=LA(!0);function wa(s,u){return s&&Wh(s,u,fr)}function Xh(s,u){return s&&uA(s,u,fr)}function dm(s,u){return Wo(u,function(f){return Ts(s[f])})}function ju(s,u){u=iu(u,s);for(var f=0,h=u.length;s!=null&&fu}function T$(s,u){return s!=null&&on.call(s,u)}function E$(s,u){return s!=null&&u in mn(s)}function h$(s,u,f){return s>=Or(u,f)&&s=120&&de.length>=120)?new qu(k&&de):e}de=s[0];var Te=-1,be=V[0];e:for(;++Te-1;)V!==s&&nm.call(V,J,1),nm.call(s,J,1);return s}function yA(s,u){for(var f=s?u.length:0,h=f-1;f--;){var O=u[f];if(f==h||O!==L){var L=O;Ns(O)?nm.call(s,O,1):uy(s,O)}}return s}function ay(s,u){return s+am(Z0()*(u-s+1))}function F$(s,u,f,h){for(var O=-1,L=rr(im((u-s)/(f||1)),0),k=ne(L);L--;)k[h?L:++O]=s,s+=f;return k}function sy(s,u){var f="";if(!s||u<1||u>Tn)return f;do u%2&&(f+=s),u=am(u/2),u&&(s+=s);while(u);return f}function gt(s,u){return vy(HA(s,u,zr),s+"")}function w$(s){return nA(ul(s))}function L$(s,u){var f=ul(s);return _m(f,Vu(u,0,f.length))}function Fd(s,u,f,h){if(!bn(s))return s;u=iu(u,s);for(var O=-1,L=u.length,k=L-1,V=s;V!=null&&++OO?0:O+u),f=f>O?O:f,f<0&&(f+=O),O=u>f?0:f-u>>>0,u>>>=0;for(var L=ne(O);++h>>1,k=s[L];k!==null&&!li(k)&&(f?k<=u:k=n){var le=u?null:Y$(s);if(le)return Jp(le);k=!1,O=gd,J=new qu}else J=u?[]:V;e:for(;++h=h?s:Si(s,u,f)}var DA=OG||function(s){return dr.clearTimeout(s)};function bA(s,u){if(u)return s.slice();var f=s.length,h=J0?J0(f):new s.constructor(f);return s.copy(h),h}function fy(s){var u=new s.constructor(s.byteLength);return new em(u).set(new em(s)),u}function M$(s,u){var f=u?fy(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function x$(s){var u=new s.constructor(s.source,l0.exec(s));return u.lastIndex=s.lastIndex,u}function q$(s){return Dd?mn(Dd.call(s)):{}}function AA(s,u){var f=u?fy(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function RA(s,u){if(s!==u){var f=s!==e,h=s===null,O=s===s,L=li(s),k=u!==e,V=u===null,J=u===u,le=li(u);if(!V&&!le&&!L&&s>u||L&&k&&J&&!V&&!le||h&&k&&J||!f&&J||!O)return 1;if(!h&&!L&&!le&&s=V)return J;var le=f[h];return J*(le=="desc"?-1:1)}}return s.index-u.index}function PA(s,u,f,h){for(var O=-1,L=s.length,k=f.length,V=-1,J=u.length,le=rr(L-k,0),de=ne(J+le),Te=!h;++V1?f[O-1]:e,k=O>2?f[2]:e;for(L=s.length>3&&typeof L=="function"?(O--,L):e,k&&Mr(f[0],f[1],k)&&(L=O<3?e:L,O=1),u=mn(u);++h-1?O[L?u[k]:k]:e}}function UA(s){return ms(function(u){var f=u.length,h=f,O=vi.prototype.thru;for(s&&u.reverse();h--;){var L=u[h];if(typeof L!="function")throw new _i(i);if(O&&!k&&Im(L)=="wrapper")var k=new vi([],!0)}for(h=k?h:f;++h1&&Ft.reverse(),de&&JV))return!1;var le=L.get(s),de=L.get(u);if(le&&de)return le==u&&de==s;var Te=-1,be=!0,$e=f&v?new qu:e;for(L.set(s,u),L.set(u,s);++Te1?"& ":"")+u[h],u=u.join(f>2?", ":" "),s.replace(iK,`{ -/* [wrapped with `+u+`] */ -`)}function rQ(s){return ft(s)||$u(s)||!!(W0&&s&&s[W0])}function Ns(s,u){var f=typeof s;return u=u==null?Tn:u,!!u&&(f=="number"||f!="symbol"&&NK.test(s))&&s>-1&&s%1==0&&s0){if(++u>=_e)return arguments[0]}else u=0;return s.apply(e,arguments)}}function _m(s,u){var f=-1,h=s.length,O=h-1;for(u=u===e?h:u;++f1?s[u-1]:e;return f=typeof f=="function"?(s.pop(),f):e,oR(s,f)});function uR(s){var u=F(s);return u.__chain__=!0,u}function mY(s,u){return u(s),s}function vm(s,u){return u(s)}var NY=ms(function(s){var u=s.length,f=u?s[0]:0,h=this.__wrapped__,O=function(L){return zh(L,s)};return u>1||this.__actions__.length||!(h instanceof bt)||!Ns(f)?this.thru(O):(h=h.slice(f,+f+(u?1:0)),h.__actions__.push({func:vm,args:[O],thisArg:e}),new vi(h,this.__chain__).thru(function(L){return u&&!L.length&&L.push(e),L}))});function TY(){return uR(this)}function EY(){return new vi(this.value(),this.__chain__)}function hY(){this.__values__===e&&(this.__values__=_R(this.value()));var s=this.__index__>=this.__values__.length,u=s?e:this.__values__[this.__index__++];return{done:s,value:u}}function yY(){return this}function IY(s){for(var u,f=this;f instanceof um;){var h=tR(f);h.__index__=0,h.__values__=e,u?O.__wrapped__=h:u=h;var O=h;f=f.__wrapped__}return O.__wrapped__=s,u}function gY(){var s=this.__wrapped__;if(s instanceof bt){var u=s;return this.__actions__.length&&(u=new bt(this)),u=u.reverse(),u.__actions__.push({func:vm,args:[Oy],thisArg:e}),new vi(u,this.__chain__)}return this.thru(Oy)}function _Y(){return OA(this.__wrapped__,this.__actions__)}var vY=Nm(function(s,u,f){on.call(s,f)?++s[f]:fs(s,f,1)});function OY(s,u,f){var h=ft(s)?k0:m$;return f&&Mr(s,u,f)&&(u=e),h(s,We(u,3))}function SY(s,u){var f=ft(s)?Wo:oA;return f(s,We(u,3))}var DY=BA(nR),bY=BA(rR);function AY(s,u){return gr(Om(s,u),1)}function RY(s,u){return gr(Om(s,u),$t)}function PY(s,u,f){return f=f===e?1:Et(f),gr(Om(s,u),f)}function cR(s,u){var f=ft(s)?gi:nu;return f(s,We(u,3))}function lR(s,u){var f=ft(s)?HK:sA;return f(s,We(u,3))}var FY=Nm(function(s,u,f){on.call(s,f)?s[f].push(u):fs(s,f,[u])});function wY(s,u,f,h){s=Jr(s)?s:ul(s),f=f&&!h?Et(f):0;var O=s.length;return f<0&&(f=rr(O+f,0)),Rm(s)?f<=O&&s.indexOf(u,f)>-1:!!O&&Wc(s,u,f)>-1}var LY=gt(function(s,u,f){var h=-1,O=typeof u=="function",L=Jr(s)?ne(s.length):[];return nu(s,function(k){L[++h]=O?oi(u,k,f):Rd(k,u,f)}),L}),CY=Nm(function(s,u,f){fs(s,f,u)});function Om(s,u){var f=ft(s)?vn:pA;return f(s,We(u,3))}function BY(s,u,f,h){return s==null?[]:(ft(u)||(u=u==null?[]:[u]),f=h?e:f,ft(f)||(f=f==null?[]:[f]),EA(s,u,f))}var UY=Nm(function(s,u,f){s[f?0:1].push(u)},function(){return[[],[]]});function kY(s,u,f){var h=ft(s)?kh:V0,O=arguments.length<3;return h(s,We(u,4),f,O,nu)}function MY(s,u,f){var h=ft(s)?zK:V0,O=arguments.length<3;return h(s,We(u,4),f,O,sA)}function xY(s,u){var f=ft(s)?Wo:oA;return f(s,bm(We(u,3)))}function qY(s){var u=ft(s)?nA:w$;return u(s)}function VY(s,u,f){(f?Mr(s,u,f):u===e)?u=1:u=Et(u);var h=ft(s)?c$:L$;return h(s,u)}function jY(s){var u=ft(s)?l$:B$;return u(s)}function KY(s){if(s==null)return 0;if(Jr(s))return Rm(s)?Zc(s):s.length;var u=Sr(s);return u==it||u==yr?s.size:ny(s).length}function GY(s,u,f){var h=ft(s)?Mh:U$;return f&&Mr(s,u,f)&&(u=e),h(s,We(u,3))}var $Y=gt(function(s,u){if(s==null)return[];var f=u.length;return f>1&&Mr(s,u[0],u[1])?u=[]:f>2&&Mr(u[0],u[1],u[2])&&(u=[u[0]]),EA(s,gr(u,1),[])}),Sm=SG||function(){return dr.Date.now()};function QY(s,u){if(typeof u!="function")throw new _i(i);return s=Et(s),function(){if(--s<1)return u.apply(this,arguments)}}function dR(s,u,f){return u=f?e:u,u=s&&u==null?s.length:u,ps(s,ue,e,e,e,e,u)}function fR(s,u){var f;if(typeof u!="function")throw new _i(i);return s=Et(s),function(){return--s>0&&(f=u.apply(this,arguments)),s<=1&&(u=e),f}}var Dy=gt(function(s,u,f){var h=A;if(f.length){var O=Zo(f,sl(Dy));h|=ee}return ps(s,h,u,f,O)}),pR=gt(function(s,u,f){var h=A|U;if(f.length){var O=Zo(f,sl(pR));h|=ee}return ps(u,h,s,f,O)});function mR(s,u,f){u=f?e:u;var h=ps(s,$,e,e,e,e,e,u);return h.placeholder=mR.placeholder,h}function NR(s,u,f){u=f?e:u;var h=ps(s,re,e,e,e,e,e,u);return h.placeholder=NR.placeholder,h}function TR(s,u,f){var h,O,L,k,V,J,le=0,de=!1,Te=!1,be=!0;if(typeof s!="function")throw new _i(i);u=bi(u)||0,bn(f)&&(de=!!f.leading,Te="maxWait"in f,L=Te?rr(bi(f.maxWait)||0,u):L,be="trailing"in f?!!f.trailing:be);function $e(Vn){var aa=h,hs=O;return h=O=e,le=Vn,k=s.apply(hs,aa),k}function et(Vn){return le=Vn,V=Cd(Dt,u),de?$e(Vn):k}function yt(Vn){var aa=Vn-J,hs=Vn-le,BR=u-aa;return Te?Or(BR,L-hs):BR}function tt(Vn){var aa=Vn-J,hs=Vn-le;return J===e||aa>=u||aa<0||Te&&hs>=L}function Dt(){var Vn=Sm();if(tt(Vn))return Ft(Vn);V=Cd(Dt,yt(Vn))}function Ft(Vn){return V=e,be&&h?$e(Vn):(h=O=e,k)}function di(){V!==e&&DA(V),le=0,h=J=O=V=e}function xr(){return V===e?k:Ft(Sm())}function fi(){var Vn=Sm(),aa=tt(Vn);if(h=arguments,O=this,J=Vn,aa){if(V===e)return et(J);if(Te)return DA(V),V=Cd(Dt,u),$e(J)}return V===e&&(V=Cd(Dt,u)),k}return fi.cancel=di,fi.flush=xr,fi}var YY=gt(function(s,u){return aA(s,1,u)}),JY=gt(function(s,u,f){return aA(s,bi(u)||0,f)});function HY(s){return ps(s,xe)}function Dm(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new _i(i);var f=function(){var h=arguments,O=u?u.apply(this,h):h[0],L=f.cache;if(L.has(O))return L.get(O);var k=s.apply(this,h);return f.cache=L.set(O,k)||L,k};return f.cache=new(Dm.Cache||ds),f}Dm.Cache=ds;function bm(s){if(typeof s!="function")throw new _i(i);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function zY(s){return fR(2,s)}var WY=k$(function(s,u){u=u.length==1&&ft(u[0])?vn(u[0],ui(We())):vn(gr(u,1),ui(We()));var f=u.length;return gt(function(h){for(var O=-1,L=Or(h.length,f);++O=u}),$u=lA(function(){return arguments}())?lA:function(s){return Cn(s)&&on.call(s,"callee")&&!z0.call(s,"callee")},ft=ne.isArray,f2=F0?ui(F0):I$;function Jr(s){return s!=null&&Am(s.length)&&!Ts(s)}function qn(s){return Cn(s)&&Jr(s)}function p2(s){return s===!0||s===!1||Cn(s)&&kr(s)==St}var su=bG||My,m2=w0?ui(w0):g$;function N2(s){return Cn(s)&&s.nodeType===1&&!Bd(s)}function T2(s){if(s==null)return!0;if(Jr(s)&&(ft(s)||typeof s=="string"||typeof s.splice=="function"||su(s)||ol(s)||$u(s)))return!s.length;var u=Sr(s);if(u==it||u==yr)return!s.size;if(Ld(s))return!ny(s).length;for(var f in s)if(on.call(s,f))return!1;return!0}function E2(s,u){return Pd(s,u)}function h2(s,u,f){f=typeof f=="function"?f:e;var h=f?f(s,u):e;return h===e?Pd(s,u,e,f):!!h}function Ay(s){if(!Cn(s))return!1;var u=kr(s);return u==qe||u==ie||typeof s.message=="string"&&typeof s.name=="string"&&!Bd(s)}function y2(s){return typeof s=="number"&&X0(s)}function Ts(s){if(!bn(s))return!1;var u=kr(s);return u==He||u==Bt||u==Ce||u==Hc}function hR(s){return typeof s=="number"&&s==Et(s)}function Am(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Tn}function bn(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Cn(s){return s!=null&&typeof s=="object"}var yR=L0?ui(L0):v$;function I2(s,u){return s===u||ty(s,u,hy(u))}function g2(s,u,f){return f=typeof f=="function"?f:e,ty(s,u,hy(u),f)}function _2(s){return IR(s)&&s!=+s}function v2(s){if(sQ(s))throw new dt(r);return dA(s)}function O2(s){return s===null}function S2(s){return s==null}function IR(s){return typeof s=="number"||Cn(s)&&kr(s)==Pt}function Bd(s){if(!Cn(s)||kr(s)!=Qr)return!1;var u=tm(s);if(u===null)return!0;var f=on.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&Wp.call(f)==gG}var Ry=C0?ui(C0):O$;function D2(s){return hR(s)&&s>=-Tn&&s<=Tn}var gR=B0?ui(B0):S$;function Rm(s){return typeof s=="string"||!ft(s)&&Cn(s)&&kr(s)==si}function li(s){return typeof s=="symbol"||Cn(s)&&kr(s)==xt}var ol=U0?ui(U0):D$;function b2(s){return s===e}function A2(s){return Cn(s)&&Sr(s)==Bu}function R2(s){return Cn(s)&&kr(s)==Fa}var P2=ym(ry),F2=ym(function(s,u){return s<=u});function _R(s){if(!s)return[];if(Jr(s))return Rm(s)?na(s):Yr(s);if(_d&&s[_d])return cG(s[_d]());var u=Sr(s),f=u==it?Gh:u==yr?Jp:ul;return f(s)}function Es(s){if(!s)return s===0?s:0;if(s=bi(s),s===$t||s===-$t){var u=s<0?-1:1;return u*Ur}return s===s?s:0}function Et(s){var u=Es(s),f=u%1;return u===u?f?u-f:u:0}function vR(s){return s?Vu(Et(s),0,gn):0}function bi(s){if(typeof s=="number")return s;if(li(s))return lr;if(bn(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=bn(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=j0(s);var f=fK.test(s);return f||mK.test(s)?QK(s.slice(2),f?2:8):dK.test(s)?lr:+s}function OR(s){return La(s,Hr(s))}function w2(s){return s?Vu(Et(s),-Tn,Tn):s===0?s:0}function zt(s){return s==null?"":ci(s)}var L2=il(function(s,u){if(Ld(u)||Jr(u)){La(u,fr(u),s);return}for(var f in u)on.call(u,f)&&bd(s,f,u[f])}),SR=il(function(s,u){La(u,Hr(u),s)}),Pm=il(function(s,u,f,h){La(u,Hr(u),s,h)}),C2=il(function(s,u,f,h){La(u,fr(u),s,h)}),B2=ms(zh);function U2(s,u){var f=rl(s);return u==null?f:rA(f,u)}var k2=gt(function(s,u){s=mn(s);var f=-1,h=u.length,O=h>2?u[2]:e;for(O&&Mr(u[0],u[1],O)&&(h=1);++f1),L}),La(s,Ty(s),f),h&&(f=Oi(f,d|p|E,J$));for(var O=u.length;O--;)uy(f,u[O]);return f});function tJ(s,u){return bR(s,bm(We(u)))}var nJ=ms(function(s,u){return s==null?{}:R$(s,u)});function bR(s,u){if(s==null)return{};var f=vn(Ty(s),function(h){return[h]});return u=We(u),hA(s,f,function(h,O){return u(h,O[0])})}function rJ(s,u,f){u=iu(u,s);var h=-1,O=u.length;for(O||(O=1,s=e);++hu){var h=s;s=u,u=h}if(f||s%1||u%1){var O=Z0();return Or(s+O*(u-s+$K("1e-"+((O+"").length-1))),u)}return ay(s,u)}var mJ=al(function(s,u,f){return u=u.toLowerCase(),s+(f?PR(u):u)});function PR(s){return wy(zt(s).toLowerCase())}function FR(s){return s=zt(s),s&&s.replace(TK,iG).replace(BK,"")}function NJ(s,u,f){s=zt(s),u=ci(u);var h=s.length;f=f===e?h:Vu(Et(f),0,h);var O=f;return f-=u.length,f>=0&&s.slice(f,O)==u}function TJ(s){return s=zt(s),s&&zj.test(s)?s.replace(u0,aG):s}function EJ(s){return s=zt(s),s&&nK.test(s)?s.replace(bh,"\\$&"):s}var hJ=al(function(s,u,f){return s+(f?"-":"")+u.toLowerCase()}),yJ=al(function(s,u,f){return s+(f?" ":"")+u.toLowerCase()}),IJ=CA("toLowerCase");function gJ(s,u,f){s=zt(s),u=Et(u);var h=u?Zc(s):0;if(!u||h>=u)return s;var O=(u-h)/2;return hm(am(O),f)+s+hm(im(O),f)}function _J(s,u,f){s=zt(s),u=Et(u);var h=u?Zc(s):0;return u&&h>>0,f?(s=zt(s),s&&(typeof u=="string"||u!=null&&!Ry(u))&&(u=ci(u),!u&&Xc(s))?au(na(s),0,f):s.split(u,f)):[]}var RJ=al(function(s,u,f){return s+(f?" ":"")+wy(u)});function PJ(s,u,f){return s=zt(s),f=f==null?0:Vu(Et(f),0,s.length),u=ci(u),s.slice(f,f+u.length)==u}function FJ(s,u,f){var h=F.templateSettings;f&&Mr(s,u,f)&&(u=e),s=zt(s),u=Pm({},u,h,VA);var O=Pm({},u.imports,h.imports,VA),L=fr(O),k=Kh(O,L),V,J,le=0,de=u.interpolate||Kp,Te="__p += '",be=$h((u.escape||Kp).source+"|"+de.source+"|"+(de===c0?lK:Kp).source+"|"+(u.evaluate||Kp).source+"|$","g"),$e="//# sourceURL="+(on.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qK+"]")+` -`;s.replace(be,function(tt,Dt,Ft,di,xr,fi){return Ft||(Ft=di),Te+=s.slice(le,fi).replace(EK,sG),Dt&&(V=!0,Te+=`' + -__e(`+Dt+`) + -'`),xr&&(J=!0,Te+=`'; -`+xr+`; -__p += '`),Ft&&(Te+=`' + -((__t = (`+Ft+`)) == null ? '' : __t) + -'`),le=fi+tt.length,tt}),Te+=`'; -`;var et=on.call(u,"variable")&&u.variable;if(!et)Te=`with (obj) { -`+Te+` +`+Qa.LITERAL_SPACE.repeat(t+3)+`... +`+Qa.LITERAL_SPACE.repeat(t+2)+`} +`}function bR({entityAncestorData:e,rootFieldData:t,unresolvableFieldData:n}){let{fieldName:r,typeName:i,subgraphNames:s}=n,a=[t.message,`The field "${i}.${r}" is defined in the following subgraph`+(s.size>1?"s":"")+`: "${[...s].join(Qa.QUOTATION_JOIN)}".`];if(e){let u=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName)if(s.has(l)){u=!0;for(let f of d)a.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${f}" to access subgraph "${l}".`)}u||a.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`),a.push(`The type "${i}" is not a descendant of any other entity ancestors that can provide a shared route to access "${r}".`)}else t.subgraphNames.size>1&&a.push(`None of the subgraphs that shares the same root type field "${t.coords}" can provide a route to access "${r}".`),a.push(`The type "${i}" is not a descendant of an entity ancestor that can provide a shared route to access "${r}".`);return i!==(e==null?void 0:e.typeName)&&a.push(`The type "${i}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),a}function FG({entityAncestors:e,rootFieldData:t,unresolvableFieldData:n}){let{fieldName:r,typeName:i,subgraphNames:s}=n,a=[t.message,`The field "${i}.${r}" is defined in the following subgraph`+(s.size>1?"s":"")+`: "${[...s].join(Qa.QUOTATION_JOIN)}".`],u=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName){if(!s.has(l))continue;let f=e.subgraphNames.filter(h=>h!==l),E=f.length>1;u=!0;for(let h of d)a.push(`The entity ancestor "${e.typeName}" in subgraph${E?"s":""} "${f.join(Qa.QUOTATION_JOIN)}" do${E?"":"es"} not satisfy the key field set "${h}" to access subgraph "${l}".`)}if(!u){let l=e.subgraphNames.length>1;a.push(`The entity ancestor "${e.typeName}" in subgraph${l?"s":""} "${e.subgraphNames.join(Qa.QUOTATION_JOIN)}" ha${l?"ve":"s"} no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`)}return a.push(`The type "${i}" is not a descendant of any other entity ancestors that can provide a shared route to access "${r}".`),i!==e.typeName&&a.push(`The type "${i}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),a}function MI(e){let t=e.split(new RegExp("(?<=\\w)\\.")),n="",r="";for(let i=0;i{"use strict";p();N();m();Object.defineProperty(qI,"__esModule",{value:!0});qI.NodeResolutionData=void 0;var ame=As(),zl,FR=class FR{constructor({fieldDataByName:t,isResolved:n=!1,resolvedDescendantNames:r,resolvedFieldNames:i,typeName:s}){il(this,zl,!1);v(this,"fieldDataByName");v(this,"resolvedDescendantNames");v(this,"resolvedFieldNames");v(this,"typeName");H_(this,zl,n),this.fieldDataByName=t,this.resolvedDescendantNames=new Set(r),this.resolvedFieldNames=new Set(i),this.typeName=s}addData(t){for(let n of t.resolvedFieldNames)this.addResolvedFieldName(n);for(let n of t.resolvedDescendantNames)this.resolvedDescendantNames.add(n)}addResolvedFieldName(t){if(!this.fieldDataByName.has(t))throw(0,ame.unexpectedEdgeFatalError)(this.typeName,[t]);this.resolvedFieldNames.add(t)}copy(){return new FR({fieldDataByName:this.fieldDataByName,isResolved:J_(this,zl),resolvedDescendantNames:this.resolvedDescendantNames,resolvedFieldNames:this.resolvedFieldNames,typeName:this.typeName})}areDescendantsResolved(){return this.fieldDataByName.size===this.resolvedDescendantNames.size}isResolved(){if(J_(this,zl))return!0;if(this.fieldDataByName.size!==this.resolvedFieldNames.size)return!1;for(let t of this.fieldDataByName.keys())if(!this.resolvedFieldNames.has(t))return!1;return H_(this,zl,!0),!0}};zl=new WeakMap;var RR=FR;qI.NodeResolutionData=RR});var LG=C(jI=>{"use strict";p();N();m();Object.defineProperty(jI,"__esModule",{value:!0});jI.EntityWalker=void 0;var ome=$I(),Ya=di(),wR=class{constructor({encounteredEntityNodeNames:t,index:n,relativeOriginPaths:r,resDataByNodeName:i,resDataByRelativeOriginPath:s,subgraphNameByUnresolvablePath:a,visitedEntities:u}){v(this,"encounteredEntityNodeNames");v(this,"index");v(this,"resDataByNodeName");v(this,"resDataByRelativeOriginPath");v(this,"selectionPathByEntityNodeName",new Map);v(this,"subgraphNameByUnresolvablePath");v(this,"visitedEntities");v(this,"relativeOriginPaths");this.encounteredEntityNodeNames=t,this.index=n,this.relativeOriginPaths=r,this.resDataByNodeName=i,this.resDataByRelativeOriginPath=s,this.visitedEntities=u,this.subgraphNameByUnresolvablePath=a}getNodeResolutionData({node:{fieldDataByName:t,nodeName:n,typeName:r},selectionPath:i}){let s=(0,Ya.getValueOrDefault)(this.resDataByNodeName,n,()=>new ome.NodeResolutionData({fieldDataByName:t,typeName:r}));if(!this.relativeOriginPaths||this.relativeOriginPaths.size<1)return(0,Ya.getValueOrDefault)(this.resDataByRelativeOriginPath,i,()=>s.copy());let a;for(let u of this.relativeOriginPaths){let l=(0,Ya.getValueOrDefault)(this.resDataByRelativeOriginPath,`${u}${i}`,()=>s.copy());a!=null||(a=l)}return a}visitEntityDescendantEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!1}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Ya.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.visitedEntities.has(t.node.nodeName)||this.encounteredEntityNodeNames.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:(this.encounteredEntityNodeNames.add(t.node.nodeName),(0,Ya.getValueOrDefault)(this.selectionPathByEntityNodeName,t.node.nodeName,()=>`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitEntityDescendantAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitEntityDescendantConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):(this.removeUnresolvablePaths({selectionPath:`${n}.${t.edgeName}`,removeDescendantPaths:!0}),{visited:!0,areDescendantsResolved:!0,isRevisitedNode:!0})}visitEntityDescendantConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};let i;for(let[s,a]of t.headToTailEdges){let{visited:u,areDescendantsResolved:l,isRevisitedNode:d}=this.visitEntityDescendantEdge({edge:a,selectionPath:n});i!=null||(i=d),this.propagateVisitedField({areDescendantsResolved:l,fieldName:s,data:r,nodeName:t.nodeName,selectionPath:n,visited:u})}return r.isResolved()?this.removeUnresolvablePaths({removeDescendantPaths:i,selectionPath:n}):this.addUnresolvablePaths({selectionPath:n,subgraphName:t.subgraphName}),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}visitEntityDescendantAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEntityDescendantEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,nodeName:i,selectionPath:s,visited:a}){if(!a)return;let u=(0,Ya.getValueOrDefault)(this.resDataByNodeName,i,()=>n.copy());if(n.addResolvedFieldName(r),u.addResolvedFieldName(r),t&&n.resolvedDescendantNames.add(r),this.relativeOriginPaths){for(let d of this.relativeOriginPaths){let f=(0,Ya.getValueOrDefault)(this.resDataByRelativeOriginPath,`${d}${s}`,()=>n.copy());f.addResolvedFieldName(r),t&&f.resolvedDescendantNames.add(r)}return}let l=(0,Ya.getValueOrDefault)(this.resDataByRelativeOriginPath,s,()=>n.copy());l.addResolvedFieldName(r),t&&l.resolvedDescendantNames.add(r)}addUnresolvablePaths({selectionPath:t,subgraphName:n}){if(!this.relativeOriginPaths){(0,Ya.getValueOrDefault)(this.subgraphNameByUnresolvablePath,t,()=>n);return}for(let r of this.relativeOriginPaths)(0,Ya.getValueOrDefault)(this.subgraphNameByUnresolvablePath,`${r}${t}`,()=>n)}removeUnresolvablePaths({selectionPath:t,removeDescendantPaths:n}){if(!this.relativeOriginPaths){if(this.subgraphNameByUnresolvablePath.delete(t),n)for(let r of this.subgraphNameByUnresolvablePath.keys())r.startsWith(t)&&this.subgraphNameByUnresolvablePath.delete(r);return}for(let r of this.relativeOriginPaths){let i=`${r}${t}`;if(this.subgraphNameByUnresolvablePath.delete(i),n)for(let s of this.subgraphNameByUnresolvablePath.keys())s.startsWith(i)&&this.subgraphNameByUnresolvablePath.delete(s)}}};jI.EntityWalker=wR});var PG=C(GI=>{"use strict";p();N();m();Object.defineProperty(GI,"__esModule",{value:!0});GI.RootFieldWalker=void 0;var Ja=di(),KI=$I(),LR=class{constructor({index:t,nodeResolutionDataByNodeName:n}){v(this,"index");v(this,"resDataByNodeName");v(this,"resDataByPath",new Map);v(this,"entityNodeNamesByPath",new Map);v(this,"pathsByEntityNodeName",new Map);v(this,"unresolvablePaths",new Set);this.index=t,this.resDataByNodeName=n}visitEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Ja.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.resDataByNodeName.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:((0,Ja.getValueOrDefault)(this.pathsByEntityNodeName,t.node.nodeName,()=>new Set).add(`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):{visited:!0,areDescendantsResolved:!0}}visitAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.resDataByNodeName.get(t.nodeName);if(r)return{visited:!0,areDescendantsResolved:r.areDescendantsResolved()};let i=this.getNodeResolutionData({node:t,selectionPath:n});if(i.isResolved()&&i.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[s,a]of t.headToTailEdges){let{visited:u,areDescendantsResolved:l}=this.visitEdge({edge:a,selectionPath:n});this.propagateVisitedField({areDescendantsResolved:l,fieldName:s,data:i,node:t,selectionPath:n,visited:u})}return i.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:i.areDescendantsResolved()}}visitSharedEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Ja.add)(t.visitedIndices,this.index)?(t.node.hasEntitySiblings&&(0,Ja.getValueOrDefault)(this.entityNodeNamesByPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),t.node.isAbstract?this.visitSharedAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitSharedConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`})):{visited:!0,areDescendantsResolved:!0}}visitSharedAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitSharedEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitSharedConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getSharedNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[i,s]of t.headToTailEdges){let{visited:a,areDescendantsResolved:u}=this.visitSharedEdge({edge:s,selectionPath:n});this.propagateSharedVisitedField({areDescendantsResolved:u,data:r,fieldName:i,node:t,visited:a})}return r.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}getNodeResolutionData({node:t,selectionPath:n}){let r=(0,Ja.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new KI.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Ja.getValueOrDefault)(this.resDataByPath,n,()=>r.copy()),r}getSharedNodeResolutionData({node:t,selectionPath:n}){let r=(0,Ja.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new KI.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Ja.getValueOrDefault)(this.resDataByPath,n,()=>r.copy())}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,selectionPath:s,visited:a}){if(!a)return;n.addResolvedFieldName(r);let u=(0,Ja.getValueOrDefault)(this.resDataByPath,s,()=>new KI.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));u.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),u.resolvedDescendantNames.add(r))}propagateSharedVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,visited:s}){if(!s)return;n.addResolvedFieldName(r);let a=(0,Ja.getValueOrDefault)(this.resDataByNodeName,i.nodeName,()=>new KI.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));a.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),a.resolvedDescendantNames.add(r))}visitRootFieldEdges({edges:t,rootTypeName:n}){let r=t.length>1;for(let i of t){if(i.isInaccessible)return{visited:!1,areDescendantsResolved:!1};let s=r?this.visitSharedEdge({edge:i,selectionPath:n}):this.visitEdge({edge:i,selectionPath:n});if(s.areDescendantsResolved)return s}return{visited:!0,areDescendantsResolved:!1}}};GI.RootFieldWalker=LR});var CR=C(YI=>{"use strict";p();N();m();Object.defineProperty(YI,"__esModule",{value:!0});YI.Graph=void 0;var Zf=vR(),Wl=AR(),$s=di(),QI=SR(),ume=LG(),cme=PG(),PR=class{constructor(){v(this,"edgeId",-1);v(this,"entityDataNodeByTypeName",new Map);v(this,"nodeByNodeName",new Map);v(this,"nodesByTypeName",new Map);v(this,"resolvedRootFieldNodeNames",new Set);v(this,"rootNodeByTypeName",new Map);v(this,"subgraphName",QI.NOT_APPLICABLE);v(this,"resDataByNodeName",new Map);v(this,"resDataByRelativePathByEntity",new Map);v(this,"visitedEntitiesByOriginEntity",new Map);v(this,"walkerIndex",-1)}getRootNode(t){return(0,$s.getValueOrDefault)(this.rootNodeByTypeName,t,()=>new Zf.RootNode(t))}addOrUpdateNode(t,n){let r=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(r);if(i)return i.isAbstract||(i.isAbstract=!!(n!=null&&n.isAbstract)),!i.isLeaf&&(n!=null&&n.isLeaf)&&(i.isLeaf=!0),i;let s=new Zf.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,s),(0,$s.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(s),s}addEdge(t,n,r,i=!1){if(t.isRootNode){let u=new Zf.Edge(this.getNextEdgeId(),n,r);return(0,$s.getValueOrDefault)(t.headToSharedTailEdges,r,()=>[]).push(u),u}let s=t,a=new Zf.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return s.headToTailEdges.set(r,a),a}addEntityDataNode(t){let n=this.entityDataNodeByTypeName.get(t);if(n)return n;let r=new Zf.EntityDataNode(t);return this.entityDataNodeByTypeName.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}getNextWalkerIndex(){return this.walkerIndex+=1}setNodeInaccessible(t){let n=this.nodesByTypeName.get(t);if(n)for(let r of n)r.isInaccessible=!0}initializeNode(t,n){let r=this.entityDataNodeByTypeName.get(t);if(QI.ROOT_TYPE_NAMES.has(t)){let s=this.getRootNode(t);s.removeInaccessibleEdges(n),s.fieldDataByName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let s of i)if(s.fieldDataByName=n,s.handleInaccessibleEdges(),s.isLeaf=!1,!!r){s.hasEntitySiblings=!0;for(let a of s.satisfiedFieldSets){let u=r.targetSubgraphNamesByFieldSet.get(a);for(let l of u!=null?u:[]){if(l===s.subgraphName)continue;let d=this.nodeByNodeName.get(`${l}.${s.typeName}`);d&&s.entityEdges.push(new Zf.Edge(this.getNextEdgeId(),d,""))}}}}}setSubgraphName(t){this.subgraphName=t}visitEntity({encounteredEntityNodeNames:t,entityNodeName:n,relativeOriginPaths:r,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:s,visitedEntities:a}){let u=this.nodeByNodeName.get(n);if(!u)throw new Error(`Fatal: Could not find entity node for "${n}".`);a.add(n);let l=this.nodesByTypeName.get(u.typeName);if(!(l!=null&&l.length))throw new Error(`Fatal: Could not find any nodes for "${n}".`);let d=new ume.EntityWalker({encounteredEntityNodeNames:t,index:this.getNextWalkerIndex(),relativeOriginPaths:r,resDataByNodeName:this.resDataByNodeName,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:s,visitedEntities:a}),f=u.getAllAccessibleEntityNodeNames();for(let E of l){if(E.nodeName!==u.nodeName&&!f.has(E.nodeName))continue;let{areDescendantsResolved:h}=d.visitEntityDescendantConcreteNode({node:E,selectionPath:""});if(h)return}for(let[E,h]of d.selectionPathByEntityNodeName)this.visitEntity({encounteredEntityNodeNames:t,entityNodeName:E,relativeOriginPaths:(0,Wl.getMultipliedRelativeOriginPaths)({relativeOriginPaths:r,selectionPath:h}),resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:s,visitedEntities:a})}validate(){for(let t of this.rootNodeByTypeName.values())for(let[n,r]of t.headToSharedTailEdges){let i=r.length>1;if(!i){let f=r[0].node.nodeName;if(this.resolvedRootFieldNodeNames.has(f))continue;this.resolvedRootFieldNodeNames.add(f)}let s=new cme.RootFieldWalker({index:this.getNextWalkerIndex(),nodeResolutionDataByNodeName:this.resDataByNodeName});if(s.visitRootFieldEdges({edges:r,rootTypeName:t.typeName.toLowerCase()}).areDescendantsResolved)continue;let a=i?s.entityNodeNamesByPath.size>0:s.pathsByEntityNodeName.size>0;if(s.unresolvablePaths.size<1&&!a)continue;let u=(0,$s.getOrThrowError)(t.fieldDataByName,n,"fieldDataByName"),l=(0,Wl.newRootFieldData)(t.typeName,n,u.subgraphNames);if(!a)return{errors:(0,Wl.generateRootResolvabilityErrors)({unresolvablePaths:s.unresolvablePaths,resDataByPath:s.resDataByPath,rootFieldData:l}),success:!1};let d=this.validateEntities({isSharedRootField:i,rootFieldData:l,walker:s});if(!d.success)return d}return{success:!0}}consolidateUnresolvableRootWithEntityPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let s of i.unresolvablePaths){if(!s.startsWith(t))continue;let a=s.slice(t.length),u=(0,$s.getOrThrowError)(i.resDataByPath,s,"rootFieldWalker.unresolvablePaths"),l=n.get(a);if(l){if(u.addData(l),l.addData(u),!u.isResolved()){i.unresolvablePaths.delete(s);continue}i.unresolvablePaths.delete(s),r.delete(a)}}}consolidateUnresolvableEntityWithRootPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let s of r.keys()){let a=(0,$s.getOrThrowError)(n,s,"resDataByRelativeOriginPath"),u=`${t}${s}`,l=i.resDataByPath.get(u);l&&(a.addData(l),l.addData(a)),a.isResolved()&&r.delete(s)}}validateSharedRootFieldEntities({rootFieldData:t,walker:n}){for(let[r,i]of n.entityNodeNamesByPath){let s=new Map,a=new Map;for(let l of i)this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:l,resDataByRelativeOriginPath:a,subgraphNameByUnresolvablePath:s,visitedEntities:new Set});if(this.consolidateUnresolvableRootWithEntityPaths({pathFromRoot:r,resDataByRelativeOriginPath:a,subgraphNameByUnresolvablePath:s,walker:n}),s.size<1)continue;this.consolidateUnresolvableEntityWithRootPaths({pathFromRoot:r,resDataByRelativeOriginPath:a,subgraphNameByUnresolvablePath:s,walker:n});let u=new Array;if(s.size>0&&u.push(...this.getSharedEntityResolvabilityErrors({entityNodeNames:i,resDataByPath:a,pathFromRoot:r,rootFieldData:t,subgraphNameByUnresolvablePath:s})),n.unresolvablePaths.size>0&&u.push(...(0,Wl.generateRootResolvabilityErrors)({unresolvablePaths:n.unresolvablePaths,resDataByPath:n.resDataByPath,rootFieldData:t})),!(u.length<1))return{errors:u,success:!1}}return n.unresolvablePaths.size>0?{errors:(0,Wl.generateRootResolvabilityErrors)({resDataByPath:n.resDataByPath,rootFieldData:t,unresolvablePaths:n.unresolvablePaths}),success:!1}:{success:!0}}validateRootFieldEntities({rootFieldData:t,walker:n}){var r;for(let[i,s]of n.pathsByEntityNodeName){let a=new Map;if(this.resDataByNodeName.has(i))continue;let u=(0,$s.getValueOrDefault)(this.resDataByRelativePathByEntity,i,()=>new Map);if(this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:i,resDataByRelativeOriginPath:u,subgraphNameByUnresolvablePath:a,visitedEntities:(0,$s.getValueOrDefault)(this.visitedEntitiesByOriginEntity,i,()=>new Set)}),!(a.size<1))return{errors:this.getEntityResolvabilityErrors({entityNodeName:i,pathFromRoot:(r=(0,$s.getFirstEntry)(s))!=null?r:"",rootFieldData:t,subgraphNameByUnresolvablePath:a}),success:!1}}return{success:!0}}validateEntities(t){return t.isSharedRootField?this.validateSharedRootFieldEntities(t):this.validateRootFieldEntities(t)}getEntityResolvabilityErrors({entityNodeName:t,pathFromRoot:n,rootFieldData:r,subgraphNameByUnresolvablePath:i}){let s=(0,$s.getOrThrowError)(this.resDataByRelativePathByEntity,t,"resDataByRelativePathByEntity"),a=t.split(QI.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:u}=(0,$s.getOrThrowError)(this.entityDataNodeByTypeName,a,"entityDataNodeByTypeName");return(0,Wl.generateEntityResolvabilityErrors)({entityAncestorData:{fieldSetsByTargetSubgraphName:u,subgraphName:"",typeName:a},pathFromRoot:n,resDataByPath:s,rootFieldData:r,subgraphNameByUnresolvablePath:i})}getSharedEntityResolvabilityErrors({entityNodeNames:t,pathFromRoot:n,rootFieldData:r,resDataByPath:i,subgraphNameByUnresolvablePath:s}){let a,u=new Array;for(let d of t){let f=d.split(QI.LITERAL_PERIOD);a!=null||(a=f[1]),u.push(f[0])}let{fieldSetsByTargetSubgraphName:l}=(0,$s.getOrThrowError)(this.entityDataNodeByTypeName,a,"entityDataNodeByTypeName");return(0,Wl.generateSharedEntityResolvabilityErrors)({entityAncestors:{fieldSetsByTargetSubgraphName:l,subgraphNames:u,typeName:a},pathFromRoot:n,resDataByPath:i,rootFieldData:r,subgraphNameByUnresolvablePath:s})}};YI.Graph=PR});var UR=C(JI=>{"use strict";p();N();m();Object.defineProperty(JI,"__esModule",{value:!0});JI.newFieldSetConditionData=lme;JI.newConfigurationData=dme;function lme({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function dme(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var xR=C(Xl=>{"use strict";p();N();m();Object.defineProperty(Xl,"__esModule",{value:!0});Xl.NormalizationFactory=void 0;Xl.normalizeSubgraphFromString=Nme;Xl.normalizeSubgraph=BG;Xl.batchNormalize=Tme;var X=(Oe(),Ae(Pe)),qn=ui(),Ki=eT(),Ni=Pc(),fr=ZN(),de=As(),rT=Jf(),fme=Nb(),us=cI(),pme=fR(),za=tT(),CG=hR(),Ha=DN(),dn=bf(),wr=Lc(),kR=CR(),HI=fI(),Z=Er(),mme=vf(),Qe=di(),iT=UR(),UG=pI();function Nme(e,t=!0){let{error:n,documentNode:r}=(0,qn.safeParse)(e,t);return n||!r?{errors:[(0,de.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new sT(new kR.Graph).normalize(r)}function BG(e,t,n){return new sT(n||new kR.Graph,t).normalize(e)}var aT,BR,zI,kG,sT=class{constructor(t,n){il(this,aT);il(this,zI);v(this,"argumentName","");v(this,"authorizationDataByParentTypeName",new Map);v(this,"concreteTypeNamesByAbstractTypeName",new Map);v(this,"conditionalFieldDataByCoords",new Map);v(this,"configurationDataByTypeName",new Map);v(this,"customDirectiveDefinitionByName",new Map);v(this,"definedDirectiveNames",new Set);v(this,"directiveDefinitionByName",new Map);v(this,"directiveDefinitionDataByName",(0,Ki.initializeDirectiveDefinitionDatas)());v(this,"doesParentRequireFetchReasons",!1);v(this,"edfsDirectiveReferences",new Set);v(this,"errors",new Array);v(this,"entityDataByTypeName",new Map);v(this,"entityInterfaceDataByTypeName",new Map);v(this,"eventsConfigurations",new Map);v(this,"fieldSetDataByTypeName",new Map);v(this,"internalGraph");v(this,"invalidConfigureDescriptionNodeDatas",[]);v(this,"invalidORScopesCoords",new Set);v(this,"invalidRepeatedDirectiveNameByCoords",new Map);v(this,"isParentObjectExternal",!1);v(this,"isParentObjectShareable",!1);v(this,"isSubgraphEventDrivenGraph",!1);v(this,"isSubgraphVersionTwo",!1);v(this,"keyFieldSetDatasByTypeName",new Map);v(this,"lastParentNodeKind",X.Kind.NULL);v(this,"lastChildNodeKind",X.Kind.NULL);v(this,"parentTypeNamesWithAuthDirectives",new Set);v(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);v(this,"keyFieldNamesByParentTypeName",new Map);v(this,"fieldCoordsByNamedTypeName",new Map);v(this,"operationTypeNodeByTypeName",new Map);v(this,"originalParentTypeName","");v(this,"originalTypeNameByRenamedTypeName",new Map);v(this,"overridesByTargetSubgraphName",new Map);v(this,"parentDefinitionDataByTypeName",new Map);v(this,"schemaData");v(this,"referencedDirectiveNames",new Set);v(this,"referencedTypeNames",new Set);v(this,"renamedParentTypeName","");v(this,"subgraphName");v(this,"unvalidatedExternalFieldCoords",new Set);v(this,"usesEdfsNatsStreamConfiguration",!1);v(this,"warnings",[]);this.subgraphName=n||Z.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByName:new Map,kind:X.Kind.SCHEMA_DEFINITION,name:Z.SCHEMA,operationTypes:new Map}}validateArguments(t,n){for(let r of t.argumentDataByName.values()){let i=(0,wr.getTypeNodeNamedTypeName)(r.type);if(Ni.BASE_SCALARS.has(i)){r.namedTypeKind=X.Kind.SCALAR_TYPE_DEFINITION;continue}let s=this.parentDefinitionDataByTypeName.get(i);if(s){if((0,dn.isInputNodeKind)(s.kind)){r.namedTypeKind=s.kind;continue}this.errors.push((0,de.invalidNamedTypeError)({data:r,namedTypeData:s,nodeType:`${(0,Qe.kindToNodeType)(n)} field argument`}))}}}isTypeNameRootType(t){return Z.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}isArgumentValueValid(t,n){if(n.kind===X.Kind.NULL)return t.kind!==X.Kind.NON_NULL_TYPE;switch(t.kind){case X.Kind.LIST_TYPE:{if(n.kind!==X.Kind.LIST)return this.isArgumentValueValid((0,wr.getNamedTypeNode)(t.type),n);for(let r of n.values)if(!this.isArgumentValueValid(t.type,r))return!1;return!0}case X.Kind.NAMED_TYPE:switch(t.name.value){case Z.BOOLEAN_SCALAR:return n.kind===X.Kind.BOOLEAN;case Z.FLOAT_SCALAR:return n.kind===X.Kind.FLOAT||n.kind===X.Kind.INT;case Z.ID_SCALAR:return n.kind===X.Kind.STRING||n.kind===X.Kind.INT;case Z.INT_SCALAR:return n.kind===X.Kind.INT;case Z.FIELD_SET_SCALAR:case Z.SCOPE_SCALAR:case Z.STRING_SCALAR:return n.kind===X.Kind.STRING;case Z.LINK_IMPORT:return!0;case Z.LINK_PURPOSE:return n.kind!==X.Kind.ENUM?!1:n.value===Z.SECURITY||n.value===Z.EXECUTION;case Z.SUBSCRIPTION_FIELD_CONDITION:case Z.SUBSCRIPTION_FILTER_CONDITION:return n.kind===X.Kind.OBJECT;default:{let r=this.parentDefinitionDataByTypeName.get(t.name.value);if(!r)return!1;if(r.kind===X.Kind.SCALAR_TYPE_DEFINITION)return!0;if(r.kind===X.Kind.ENUM_TYPE_DEFINITION){if(n.kind!==X.Kind.ENUM)return!1;let i=r.enumValueDataByName.get(n.value);return i?!i.directivesByName.has(Z.INACCESSIBLE):!1}return r.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:n.kind===X.Kind.OBJECT}}default:return this.isArgumentValueValid(t.type,n)}}handleFieldInheritableDirectives({directivesByName:t,fieldName:n,inheritedDirectiveNames:r,parentData:i}){this.doesParentRequireFetchReasons&&!t.has(Z.REQUIRE_FETCH_REASONS)&&(t.set(Z.REQUIRE_FETCH_REASONS,[(0,Qe.generateSimpleDirective)(Z.REQUIRE_FETCH_REASONS)]),r.add(Z.REQUIRE_FETCH_REASONS)),(this.doesParentRequireFetchReasons||t.has(Z.REQUIRE_FETCH_REASONS))&&i.requireFetchReasonsFieldNames.add(n),(0,fr.isObjectDefinitionData)(i)&&(this.isParentObjectExternal&&!t.has(Z.EXTERNAL)&&(t.set(Z.EXTERNAL,[(0,Qe.generateSimpleDirective)(Z.EXTERNAL)]),r.add(Z.EXTERNAL)),t.has(Z.EXTERNAL)&&this.unvalidatedExternalFieldCoords.add(`${i.name}.${n}`),this.isParentObjectShareable&&!t.has(Z.SHAREABLE)&&(t.set(Z.SHAREABLE,[(0,Qe.generateSimpleDirective)(Z.SHAREABLE)]),r.add(Z.SHAREABLE)))}extractDirectives(t,n){if(!t.directives)return n;let r=(0,fr.isCompositeOutputNodeKind)(t.kind),i=(0,fr.isObjectNodeKind)(t.kind);for(let s of t.directives){let a=s.name.value;a===Z.SHAREABLE?(0,Qe.getValueOrDefault)(n,a,()=>[s]):(0,Qe.getValueOrDefault)(n,a,()=>[]).push(s),r&&(this.doesParentRequireFetchReasons||(this.doesParentRequireFetchReasons=a===Z.REQUIRE_FETCH_REASONS),i&&(this.isParentObjectExternal||(this.isParentObjectExternal=a===Z.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=a===Z.SHAREABLE)))}return n}validateDirective({data:t,definitionData:n,directiveCoords:r,directiveNode:i,errorMessages:s,requiredArgumentNames:a}){let u=i.name.value,l=t.kind===X.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,d=u===Z.AUTHENTICATED,f=(0,dn.isFieldData)(t),E=u===Z.OVERRIDE,h=u===Z.REQUIRES_SCOPES,_=u===Z.SEMANTIC_NON_NULL;if(!i.arguments||i.arguments.length<1)return n.requiredArgumentNames.size>0&&s.push((0,de.undefinedRequiredArgumentsErrorMessage)(u,a,[])),d&&this.handleAuthenticatedDirective(t,l),_&&f&&((0,dn.isTypeRequired)(t.type)?s.push((0,de.semanticNonNullLevelsNonNullErrorMessage)({typeString:(0,us.printTypeNode)(t.type),value:"0"})):t.nullLevelsBySubgraphName.set(this.subgraphName,new Set([0]))),s;let A=new Set,U=new Set,q=new Set,j=[];for(let me of i.arguments){let ce=me.name.value;if(A.has(ce)){U.add(ce);continue}A.add(ce);let be=n.argumentTypeNodeByName.get(ce);if(!be){q.add(ce);continue}if(!this.isArgumentValueValid(be.typeNode,me.value)){s.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(me.value),`@${u}`,ce,(0,us.printTypeNode)(be.typeNode)));continue}if(E&&f){this.handleOverrideDirective({data:t,directiveCoords:r,errorMessages:s,targetSubgraphName:me.value.value});continue}if(_&&f){this.handleSemanticNonNullDirective({data:t,directiveNode:i,errorMessages:s});continue}!h||ce!==Z.SCOPES||this.extractRequiredScopes({directiveCoords:r,orScopes:me.value.values,requiredScopes:j})}U.size>0&&s.push((0,de.duplicateDirectiveArgumentDefinitionsErrorMessage)([...U])),q.size>0&&s.push((0,de.unexpectedDirectiveArgumentErrorMessage)(u,[...q]));let re=(0,Qe.getEntriesNotInHashSet)(a,A);if(re.length>0&&s.push((0,de.undefinedRequiredArgumentsErrorMessage)(u,a,re)),s.length>0||!h)return s;let ee=(0,Qe.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,fr.newAuthorizationData)(l));if(t.kind!==X.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),ee.requiredScopes.push(...j);else{let me=(0,Qe.getValueOrDefault)(ee.fieldAuthDataByFieldName,t.name,()=>(0,fr.newFieldAuthorizationData)(t.name));me.inheritedData.requiredScopes.push(...j),me.originalData.requiredScopes.push(...j)}return s}validateDirectives(t,n){let r=new Set;for(let[i,s]of t.directivesByName){let a=this.directiveDefinitionDataByName.get(i);if(!a){r.has(i)||(this.errors.push((0,de.undefinedDirectiveError)(i,n)),r.add(i));continue}let u=[],l=(0,qn.nodeKindToDirectiveLocation)(t.kind);if(a.locations.has(l)||u.push((0,de.invalidDirectiveLocationErrorMessage)(i,l)),s.length>1&&!a.isRepeatable){let f=(0,Qe.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(i)||(f.add(i),u.push((0,de.invalidRepeatedDirectiveErrorMessage)(i)))}let d=[...a.requiredArgumentNames];for(let f=0;f0&&this.errors.push((0,de.invalidDirectiveError)(i,n,(0,Qe.numberToOrdinal)(f+1),E))}}switch(t.kind){case X.Kind.ENUM_TYPE_DEFINITION:{for(let[i,s]of t.enumValueDataByName)this.validateDirectives(s,`${t.name}.${i}`);return}case X.Kind.FIELD_DEFINITION:{for(let[i,s]of t.argumentDataByName)this.validateDirectives(s,`${t.originalParentTypeName}.${t.name}(${i}: ...)`);return}case X.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[i,s]of t.inputValueDataByName)this.validateDirectives(s,`${t.name}.${i}`);return}case X.Kind.INTERFACE_TYPE_DEFINITION:case X.Kind.OBJECT_TYPE_DEFINITION:{for(let[i,s]of t.fieldDataByName)this.validateDirectives(s,`${t.name}.${i}`);return}default:return}}getNodeExtensionType(t,n,r=!1){return t?Ha.ExtensionType.REAL:r||!n.has(Z.EXTENDS)?Ha.ExtensionType.NONE:Ha.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case Ha.ExtensionType.EXTENDS:case Ha.ExtensionType.NONE:{if(n===Ha.ExtensionType.REAL)return;this.errors.push((0,de.duplicateTypeDefinitionError)((0,Qe.kindToNodeType)(t.kind),t.name));return}default:t.extensionType=n}}extractConfigureDescriptionData(t,n){var i,s;if(!n.arguments||n.arguments.length<1){t.description||this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,{propagate:!0,description:((i=t.description)==null?void 0:i.value)||""});return}let r={propagate:!0,description:((s=t.description)==null?void 0:s.value)||""};for(let a of n.arguments)switch(a.name.value){case Z.PROPAGATE:{if(a.value.kind!=X.Kind.BOOLEAN)return;r.propagate=a.value.value;break}case Z.DESCRIPTION_OVERRIDE:{if(a.value.kind!=X.Kind.STRING)return;r.description=a.value.value;break}default:return}!t.description&&!r.description&&this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,r)}extractConfigureDescriptionsData(t){let n=t.directivesByName.get(Z.CONFIGURE_DESCRIPTION);n&&n.length==1&&this.extractConfigureDescriptionData(t,n[0])}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let s=i.name.value;if(n.has(s)){this.errors.push((0,de.duplicateImplementedInterfaceError)((0,fr.kindToConvertedTypeString)(t.kind),r,s));continue}n.add(s)}return n}updateCompositeOutputDataByNode(t,n,r){this.setParentDataExtensionType(n,r),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.description||(n.description=(0,qn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(n),n.isEntity||(n.isEntity=n.directivesByName.has(Z.KEY)),n.isInaccessible||(n.isInaccessible=n.directivesByName.has(Z.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,Qe.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}extractArguments(t,n){var a;if(!((a=n.arguments)!=null&&a.length))return t;let r=n.name.value,i=`${this.originalParentTypeName}.${r}`,s=new Set;for(let u of n.arguments){let l=u.name.value;if(t.has(l)){s.add(l);continue}this.addInputValueDataByNode({fieldName:r,inputValueDataByName:t,isArgument:!0,node:u,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return s.size>0&&this.errors.push((0,de.duplicateArgumentsError)(i,[...s])),t}addPersistedDirectiveDefinitionDataByNode(t,n,r){let i=n.name.value,s=`@${i}`,a=new Map;for(let u of n.arguments||[])this.addInputValueDataByNode({inputValueDataByName:a,isArgument:!0,node:u,originalParentTypeName:s});t.set(i,{argumentDataByName:a,executableLocations:r,name:i,repeatable:n.repeatable,subgraphNames:new Set([this.subgraphName]),description:(0,qn.formatDescription)(n.description)})}extractDirectiveLocations(t,n){let r=new Set,i=new Set;for(let s of t.locations){let a=s.value;if(!i.has(a)){if(!Z.EXECUTABLE_DIRECTIVE_LOCATIONS.has(a)&&!rT.TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(a)){n.push((0,de.invalidDirectiveDefinitionLocationErrorMessage)(a)),i.add(a);continue}if(r.has(a)){n.push((0,de.duplicateDirectiveDefinitionLocationErrorMessage)(a)),i.add(a);continue}r.add(a)}}return r}extractArgumentData(t,n){let r=new Map,i=new Set,s=new Set,a={argumentTypeNodeByName:r,optionalArgumentNames:i,requiredArgumentNames:s};if(!t)return a;let u=new Set;for(let l of t){let d=l.name.value;if(r.has(d)){u.add(d);continue}l.defaultValue&&i.add(d),(0,dn.isTypeRequired)(l.type)&&!l.defaultValue&&s.add(d),r.set(d,{name:d,typeNode:l.type,defaultValue:l.defaultValue})}return u.size>0&&n.push((0,de.duplicateDirectiveDefinitionArgumentErrorMessage)([...u])),a}addDirectiveDefinitionDataByNode(t){let n=t.name.value;if(this.definedDirectiveNames.has(n))return this.errors.push((0,de.duplicateDirectiveDefinitionError)(n)),!1;this.definedDirectiveNames.add(n);let r=Ni.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(n);if(r)return this.directiveDefinitionByName.set(n,r),this.isSubgraphVersionTwo=!0,!1;if(Ni.DIRECTIVE_DEFINITION_BY_NAME.has(n))return!1;this.directiveDefinitionByName.set(n,t);let i=[],{argumentTypeNodeByName:s,optionalArgumentNames:a,requiredArgumentNames:u}=this.extractArgumentData(t.arguments,i);return this.directiveDefinitionDataByName.set(n,{argumentTypeNodeByName:s,isRepeatable:t.repeatable,locations:this.extractDirectiveLocations(t,i),name:n,node:t,optionalArgumentNames:a,requiredArgumentNames:u}),i.length>0&&this.errors.push((0,de.invalidDirectiveDefinitionError)(n,i)),!0}addFieldDataByNode(t,n,r,i,s=new Set){let a=n.name.value,u=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${a}`,{isExternal:d,isShareable:f}=(0,dn.isNodeExternalOrShareable)(n,!this.isSubgraphVersionTwo,i),E=(0,wr.getTypeNodeNamedTypeName)(n.type),h={argumentDataByName:r,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,dn.newExternalFieldData)(d)]]),federatedCoords:`${u}.${a}`,inheritedDirectiveNames:s,isInaccessible:i.has(Z.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,f]]),kind:X.Kind.FIELD_DEFINITION,name:a,namedTypeKind:Ni.BASE_SCALARS.has(E)?X.Kind.SCALAR_TYPE_DEFINITION:X.Kind.NULL,namedTypeName:E,node:(0,wr.getMutableFieldNode)(n,l,this.errors),nullLevelsBySubgraphName:new Map,originalParentTypeName:this.originalParentTypeName,persistedDirectivesData:(0,dn.newPersistedDirectivesData)(),renamedParentTypeName:u,subgraphNames:new Set([this.subgraphName]),type:(0,wr.getMutableTypeNode)(n.type,l,this.errors),directivesByName:i,description:(0,qn.formatDescription)(n.description)};return Ni.BASE_SCALARS.has(h.namedTypeName)||this.referencedTypeNames.add(h.namedTypeName),this.extractConfigureDescriptionsData(h),t.set(a,h),h}addInputValueDataByNode({fieldName:t,inputValueDataByName:n,isArgument:r,node:i,originalParentTypeName:s,renamedParentTypeName:a}){let u=a||s,l=i.name.value,d=r?`${s}${t?`.${t}`:""}(${l}: ...)`:`${s}.${l}`;i.defaultValue&&!(0,dn.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,de.incompatibleInputValueDefaultValueTypeError)((r?Z.ARGUMENT:Z.INPUT_FIELD)+` "${l}"`,d,(0,us.printTypeNode)(i.type),(0,X.print)(i.defaultValue)));let f=r?`${u}${t?`.${t}`:""}(${l}: ...)`:`${u}.${l}`,E=(0,wr.getTypeNodeNamedTypeName)(i.type),h={configureDescriptionDataBySubgraphName:new Map,directivesByName:this.extractDirectives(i,new Map),federatedCoords:f,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:r,kind:r?X.Kind.ARGUMENT:X.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:Ni.BASE_SCALARS.has(E)?X.Kind.SCALAR_TYPE_DEFINITION:X.Kind.NULL,namedTypeName:E,node:(0,wr.getMutableInputValueNode)(i,s,this.errors),originalCoords:d,originalParentTypeName:s,persistedDirectivesData:(0,dn.newPersistedDirectivesData)(),renamedParentTypeName:u,requiredSubgraphNames:new Set((0,dn.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,wr.getMutableTypeNode)(i.type,s,this.errors),defaultValue:i.defaultValue,description:(0,qn.formatDescription)(i.description)};this.extractConfigureDescriptionsData(h),n.set(l,h)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),a=this.getNodeExtensionType(n,s),u=this.entityInterfaceDataByTypeName.get(r);if(u&&t.fields)for(let d of t.fields)u.interfaceFieldNames.add(d.name.value);if(i){if(i.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Qe.kindToNodeType)(i.kind),(0,fr.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,a);return}let l={configureDescriptionDataBySubgraphName:new Map,directivesByName:s,extensionType:a,fieldDataByName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:s.has(Z.KEY),isInaccessible:s.has(Z.INACCESSIBLE),kind:X.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,wr.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,dn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,subgraphNames:new Set([this.subgraphName]),description:(0,qn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(l),this.parentDefinitionDataByTypeName.set(r,l)}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case X.OperationTypeNode.MUTATION:return Z.MUTATION;case X.OperationTypeNode.SUBSCRIPTION:return Z.SUBSCRIPTION;default:return Z.QUERY}}addInterfaceObjectFieldsByNode(t){let n=t.name.value,r=this.entityInterfaceDataByTypeName.get(n);if(!(!r||!r.isInterfaceObject||!t.fields))for(let i of t.fields)r.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,n=!1){var f;let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(f=i==null?void 0:i.directivesByName)!=null?f:new Map),a=this.isTypeNameRootType(r),u=this.getNodeExtensionType(n,s,a);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==X.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Qe.kindToNodeType)(i.kind),(0,fr.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,u),s.has(Z.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);s.has(Z.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(l,r);let d={configureDescriptionDataBySubgraphName:new Map,directivesByName:s,extensionType:u,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:s.has(Z.KEY),isInaccessible:s.has(Z.INACCESSIBLE),isRootType:a,kind:X.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,wr.getMutableObjectNode)(t.name),persistedDirectivesData:(0,dn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,qn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(d),this.parentDefinitionDataByTypeName.set(r,d)}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),a=this.getNodeExtensionType(n,s);if(i){if(i.kind!==X.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Qe.kindToNodeType)(i.kind),(0,fr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,a),i.isInaccessible||(i.isInaccessible=s.has(Z.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,qn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let u={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByName:s,extensionType:a,enumValueDataByName:new Map,isInaccessible:s.has(Z.INACCESSIBLE),kind:X.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,wr.getMutableEnumNode)(t.name),persistedDirectivesData:(0,dn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,qn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(r,u)}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),a=this.getNodeExtensionType(n,s);if(i)return i.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION?(this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Qe.kindToNodeType)(i.kind),(0,fr.kindToConvertedTypeString)(t.kind))),{success:!1}):(this.setParentDataExtensionType(i,a),i.isInaccessible||(i.isInaccessible=s.has(Z.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,qn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i),{success:!0,data:i});let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:s,extensionType:a,inputValueDataByName:new Map,isInaccessible:s.has(Z.INACCESSIBLE),kind:X.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,wr.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,dn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,qn.formatDescription)("description"in t?t.description:void 0)};return this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(r,u),{success:!0,data:u}}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),a=this.getNodeExtensionType(n,s);if(i){if(i.kind!==X.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Qe.kindToNodeType)(i.kind),(0,fr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,a),i.description||(i.description=(0,qn.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:s,extensionType:a,kind:X.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,wr.getMutableScalarNode)(t.name),persistedDirectivesData:(0,dn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,qn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(r,u)}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let s=i.name.value;if(n.has(s)){this.errors.push((0,de.duplicateUnionMemberDefinitionError)(r,s));continue}(0,Qe.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(s),Ni.BASE_SCALARS.has(s)||this.referencedTypeNames.add(s),n.set(s,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),a=this.getNodeExtensionType(n,s);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==X.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Qe.kindToNodeType)(i.kind),(0,fr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,a),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,qn.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:s,extensionType:a,kind:X.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,wr.getMutableUnionNode)(t.name),persistedDirectivesData:(0,dn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,qn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(r,u)}extractKeyFieldSets(t,n){var s;let r=t.name.value;if(!((s=t.directives)!=null&&s.length)){this.errors.push((0,de.expectedEntityError)(r));return}let i=0;for(let a of t.directives){if(a.name.value!==Z.KEY||(i+=1,!a.arguments||a.arguments.length<1))continue;let u,l=!1;for(let _ of a.arguments){if(_.name.value===Z.RESOLVABLE){_.value.kind===X.Kind.BOOLEAN&&!_.value.value&&(l=!0);continue}if(_.name.value!==Z.FIELDS){u=void 0;break}if(_.value.kind!==X.Kind.STRING){u=void 0;break}u=_.value.value}if(u===void 0)continue;let{error:d,documentNode:f}=(0,qn.safeParse)("{"+u+"}");if(d||!f){this.errors.push((0,de.invalidDirectiveError)(Z.KEY,r,(0,Qe.numberToOrdinal)(i),[(0,de.unparsableFieldSetErrorMessage)(u,d)]));continue}let E=(0,Ki.getNormalizedFieldSet)(f),h=n.get(E);h?h.isUnresolvable||(h.isUnresolvable=l):n.set(E,{documentNode:f,isUnresolvable:l,normalizedFieldSet:E,rawFieldSet:u})}}getFieldSetParent(t,n,r,i){if(!t)return{fieldSetParentData:n};let s=(0,Qe.getOrThrowError)(n.fieldDataByName,r,`${i}.fieldDataByFieldName`),a=(0,wr.getTypeNodeNamedTypeName)(s.node.type),u=`${i}.${r}`;if(Ni.BASE_SCALARS.has(a))return{errorString:(0,de.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:u,responseType:a,subgraphName:this.subgraphName})};let l=this.parentDefinitionDataByTypeName.get(a);return l?l.kind!==X.Kind.INTERFACE_TYPE_DEFINITION&&l.kind!==X.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,de.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:u,responseType:a,subgraphName:this.subgraphName})}:{fieldSetParentData:l}:{errorString:(0,de.unknownNamedTypeErrorMessage)(u,a)}}validateConditionalFieldSet(t,n,r,i,s){let{error:a,documentNode:u}=(0,qn.safeParse)("{"+n+"}");if(a||!u)return{errorMessages:[(0,de.unparsableFieldSetErrorMessage)(n,a)]};let l=this,d=[t],f=(0,Ki.getConditionalFieldSetDirectiveName)(i),E=[],h=`${s}.${r}`,_=(0,Ki.getInitialFieldCoordsPath)(i,h),A=[r],U=new Set,q=[],j=-1,re=!0,ee=r,me=!1;return(0,X.visit)(u,{Argument:{enter(){return!1}},Field:{enter(ce){var Sn,Ti;let be=d[j],xe=be.name;if(be.kind===X.Kind.UNION_TYPE_DEFINITION)return q.push((0,de.invalidSelectionOnUnionErrorMessage)(n,_,xe)),X.BREAK;let at=ce.name.value,te=`${xe}.${at}`;if(l.unvalidatedExternalFieldCoords.delete(te),re)return q.push((0,de.invalidSelectionSetErrorMessage)(n,_,xe,(0,Qe.kindToNodeType)(be.kind))),X.BREAK;if(_.push(te),A.push(at),ee=at,at===Z.TYPENAME){if(i)return q.push((0,de.typeNameAlreadyProvidedErrorMessage)(te,l.subgraphName)),X.BREAK;U.size<1&&bd(Sn=l,aT,BR).call(Sn,{currentFieldCoords:te,directiveCoords:h,directiveName:f,fieldSet:n});return}let Se=be.fieldDataByName.get(at);if(!Se)return q.push((0,de.undefinedFieldInFieldSetErrorMessage)(n,xe,at)),X.BREAK;if(E[j].has(at))return q.push((0,de.duplicateFieldInFieldSetErrorMessage)(n,te)),X.BREAK;E[j].add(at);let{isDefinedExternal:wt,isUnconditionallyProvided:fn}=(0,Qe.getOrThrowError)(Se.externalFieldDataBySubgraphName,l.subgraphName,`${te}.externalFieldDataBySubgraphName`),pn=wt&&!fn;fn||(me=!0);let Hn=(0,wr.getTypeNodeNamedTypeName)(Se.node.type),Zt=l.parentDefinitionDataByTypeName.get(Hn);if(Ni.BASE_SCALARS.has(Hn)||(Zt==null?void 0:Zt.kind)===X.Kind.SCALAR_TYPE_DEFINITION||(Zt==null?void 0:Zt.kind)===X.Kind.ENUM_TYPE_DEFINITION){if(U.size<1&&!wt){bd(Ti=l,aT,BR).call(Ti,{currentFieldCoords:te,directiveCoords:h,directiveName:f,fieldSet:n});return}if(U.size<1&&fn){l.isSubgraphVersionTwo?q.push((0,de.fieldAlreadyProvidedErrorMessage)(te,l.subgraphName,f)):l.warnings.push((0,za.fieldAlreadyProvidedWarning)(te,f,h,l.subgraphName));return}if(!pn&&!i)return;let Lr=(0,Qe.getValueOrDefault)(l.conditionalFieldDataByCoords,te,dn.newConditionalFieldData),Cn=(0,iT.newFieldSetConditionData)({fieldCoordinatesPath:[..._],fieldPath:[...A]});i?Lr.providedBy.push(Cn):Lr.requiredBy.push(Cn);return}if(!Zt)return q.push((0,de.unknownTypeInFieldSetErrorMessage)(n,te,Hn)),X.BREAK;if(wt&&(i&&(0,Qe.getValueOrDefault)(l.conditionalFieldDataByCoords,te,dn.newConditionalFieldData).providedBy.push((0,iT.newFieldSetConditionData)({fieldCoordinatesPath:[..._],fieldPath:[...A]})),U.add(te)),Zt.kind===X.Kind.OBJECT_TYPE_DEFINITION||Zt.kind===X.Kind.INTERFACE_TYPE_DEFINITION||Zt.kind===X.Kind.UNION_TYPE_DEFINITION){re=!0,d.push(Zt);return}},leave(){U.delete(_.pop()||""),A.pop()}},InlineFragment:{enter(ce){let be=d[j],xe=be.name,at=_.length<1?t.name:_[_.length-1];if(!ce.typeCondition)return q.push((0,de.inlineFragmentWithoutTypeConditionErrorMessage)(n,at)),X.BREAK;let te=ce.typeCondition.name.value;if(te===xe){d.push(be),re=!0;return}if(!(0,qn.isKindAbstract)(be.kind))return q.push((0,de.invalidInlineFragmentTypeErrorMessage)(n,_,te,xe)),X.BREAK;let Se=l.parentDefinitionDataByTypeName.get(te);if(!Se)return q.push((0,de.unknownInlineFragmentTypeConditionErrorMessage)(n,_,xe,te)),X.BREAK;switch(re=!0,Se.kind){case X.Kind.INTERFACE_TYPE_DEFINITION:{if(!Se.implementedInterfaceTypeNames.has(xe))break;d.push(Se);return}case X.Kind.OBJECT_TYPE_DEFINITION:{let wt=l.concreteTypeNamesByAbstractTypeName.get(xe);if(!wt||!wt.has(te))break;d.push(Se);return}case X.Kind.UNION_TYPE_DEFINITION:{d.push(Se);return}default:return q.push((0,de.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,_,xe,te,(0,Qe.kindToNodeType)(Se.kind))),X.BREAK}return q.push((0,de.invalidInlineFragmentTypeConditionErrorMessage)(n,_,te,(0,Qe.kindToNodeType)(be.kind),xe)),X.BREAK}},SelectionSet:{enter(){if(!re){let ce=d[j];if(ce.kind===X.Kind.UNION_TYPE_DEFINITION)return q.push((0,de.unparsableFieldSetSelectionErrorMessage)(n,ee)),X.BREAK;if(ee===Z.TYPENAME)return q.push((0,de.invalidSelectionSetDefinitionErrorMessage)(n,_,Z.STRING_SCALAR,(0,Qe.kindToNodeType)(X.Kind.SCALAR_TYPE_DEFINITION))),X.BREAK;let be=ce.fieldDataByName.get(ee);if(!be)return q.push((0,de.undefinedFieldInFieldSetErrorMessage)(n,ce.name,ee)),X.BREAK;let xe=(0,wr.getTypeNodeNamedTypeName)(be.node.type),at=l.parentDefinitionDataByTypeName.get(xe),te=at?at.kind:X.Kind.SCALAR_TYPE_DEFINITION;return q.push((0,de.invalidSelectionSetDefinitionErrorMessage)(n,_,xe,(0,Qe.kindToNodeType)(te))),X.BREAK}if(j+=1,re=!1,j<0||j>=d.length)return q.push((0,de.unparsableFieldSetSelectionErrorMessage)(n,ee)),X.BREAK;E.push(new Set)},leave(){if(re){let ce=d[j+1];q.push((0,de.invalidSelectionSetErrorMessage)(n,_,ce.name,(0,Qe.kindToNodeType)(ce.kind))),re=!1}j-=1,d.pop(),E.pop()}}}),q.length>0||!me?{errorMessages:q}:{configuration:{fieldName:r,selectionSet:(0,Ki.getNormalizedFieldSet)(u)},errorMessages:q}}validateProvidesOrRequires(t,n,r){let i=[],s=[],a=(0,dn.getParentTypeName)(t);for(let[u,l]of n){let{fieldSetParentData:d,errorString:f}=this.getFieldSetParent(r,t,u,a),E=`${a}.${u}`;if(f){i.push(f);continue}if(!d)continue;let{errorMessages:h,configuration:_}=this.validateConditionalFieldSet(d,l,u,r,a);if(h.length>0){i.push(` On field "${E}": + -`+h.join(Z.HYPHEN_JOIN));continue}_&&s.push(_)}if(i.length>0){this.errors.push((0,de.invalidProvidesOrRequiresDirectivesError)((0,Ki.getConditionalFieldSetDirectiveName)(r),i));return}if(s.length>0)return s}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByName.has(Z.INACCESSIBLE),r=new Map,i=new Map,s=!1;for(let a of t.implementedInterfaceTypeNames){let u=this.parentDefinitionDataByTypeName.get(a);if(Ni.BASE_SCALARS.has(a)&&this.referencedTypeNames.add(a),!u)continue;if(u.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){i.set(u.name,(0,Qe.kindToNodeType)(u.kind));continue}if(t.name===u.name){s=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},d=!1;for(let[f,E]of u.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${f}`);let h=!1,_=t.fieldDataByName.get(f);if(!_){d=!0,l.unimplementedFields.push(f);continue}let A={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,us.printTypeNode)(E.node.type),unimplementedArguments:new Set};(0,dn.isTypeValidImplementation)(E.node.type,_.node.type,this.concreteTypeNamesByAbstractTypeName)||(d=!0,h=!0,A.implementedResponseType=(0,us.printTypeNode)(_.node.type));let U=new Set;for(let[q,j]of E.argumentDataByName){U.add(q);let re=_.argumentDataByName.get(q);if(!re){d=!0,h=!0,A.unimplementedArguments.add(q);continue}let ee=(0,us.printTypeNode)(re.type),me=(0,us.printTypeNode)(j.type);me!==ee&&(d=!0,h=!0,A.invalidImplementedArguments.push({actualType:ee,argumentName:q,expectedType:me}))}for(let[q,j]of _.argumentDataByName)U.has(q)||j.type.kind===X.Kind.NON_NULL_TYPE&&(d=!0,h=!0,A.invalidAdditionalArguments.add(q));!n&&_.isInaccessible&&!E.isInaccessible&&(d=!0,h=!0,A.isInaccessible=!0),h&&l.invalidFieldImplementations.set(f,A)}d&&r.set(a,l)}i.size>0&&this.errors.push((0,de.invalidImplementedTypeError)(t.name,i)),s&&this.errors.push((0,de.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,de.invalidInterfaceImplementationError)(t.name,(0,Qe.kindToNodeType)(t.kind),r))}handleAuthenticatedDirective(t,n){let r=(0,Qe.getValueOrDefault)(this.authorizationDataByParentTypeName,n,()=>(0,fr.newAuthorizationData)(n));if(t.kind===X.Kind.FIELD_DEFINITION){let i=(0,Qe.getValueOrDefault)(r.fieldAuthDataByFieldName,t.name,()=>(0,fr.newFieldAuthorizationData)(t.name));i.inheritedData.requiresAuthentication=!0,i.originalData.requiresAuthentication=!0}else r.requiresAuthentication=!0,this.parentTypeNamesWithAuthDirectives.add(n)}handleOverrideDirective({data:t,directiveCoords:n,errorMessages:r,targetSubgraphName:i}){if(i===this.subgraphName){r.push((0,de.equivalentSourceAndTargetOverrideErrorMessage)(i,n));return}let s=(0,Qe.getValueOrDefault)(this.overridesByTargetSubgraphName,i,()=>new Map);(0,Qe.getValueOrDefault)(s,t.renamedParentTypeName,()=>new Set).add(t.name)}handleSemanticNonNullDirective({data:t,directiveNode:n,errorMessages:r}){var E;let i=new Set,s=t.node.type,a=0;for(;s;)switch(s.kind){case X.Kind.LIST_TYPE:{a+=1,s=s.type;break}case X.Kind.NON_NULL_TYPE:{i.add(a),s=s.type;break}default:{s=null;break}}let u=(E=n.arguments)==null?void 0:E.find(h=>h.name.value===Z.LEVELS);if(!u||u.value.kind!==X.Kind.LIST){r.push(de.semanticNonNullArgumentErrorMessage);return}let l=u.value.values,d=(0,us.printTypeNode)(t.type),f=new Set;for(let{value:h}of l){let _=parseInt(h,10);if(Number.isNaN(_)){r.push((0,de.semanticNonNullLevelsNaNIndexErrorMessage)(h));continue}if(_<0||_>a){r.push((0,de.semanticNonNullLevelsIndexOutOfBoundsErrorMessage)({maxIndex:a,typeString:d,value:h}));continue}if(!i.has(_)){f.add(_);continue}r.push((0,de.semanticNonNullLevelsNonNullErrorMessage)({typeString:d,value:h}))}t.nullLevelsBySubgraphName.set(this.subgraphName,f)}extractRequiredScopes({directiveCoords:t,orScopes:n,requiredScopes:r}){if(n.length>Ni.MAX_OR_SCOPES){this.invalidORScopesCoords.add(t);return}for(let i of n){let s=new Set;for(let a of i.values)s.add(a.value);s.size<1||(0,fr.addScopes)(r,s)}}getKafkaPublishConfiguration(t,n,r,i){let s=[],a=Z.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case Z.TOPIC:{if(u.value.kind!==X.Kind.STRING||u.value.value.length<1){i.push((0,de.invalidEventSubjectErrorMessage)(Z.TOPIC));continue}(0,Ki.validateArgumentTemplateReferences)(u.value.value,n,i),s.push(u.value.value);break}case Z.PROVIDER_ID:{if(u.value.kind!==X.Kind.STRING||u.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}a=u.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:a,providerType:Z.PROVIDER_TYPE_KAFKA,topics:s,type:Z.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r,i){let s=[],a=Z.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case Z.TOPICS:{if(u.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(Z.TOPICS));continue}for(let l of u.value.values){if(l.kind!==X.Kind.STRING||l.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(Z.TOPICS));break}(0,Ki.validateArgumentTemplateReferences)(l.value,n,i),s.push(l.value)}break}case Z.PROVIDER_ID:{if(u.value.kind!==X.Kind.STRING||u.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}a=u.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:a,providerType:Z.PROVIDER_TYPE_KAFKA,topics:s,type:Z.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i,s){let a=[],u=Z.DEFAULT_EDFS_PROVIDER_ID;for(let l of n.arguments||[])switch(l.name.value){case Z.SUBJECT:{if(l.value.kind!==X.Kind.STRING||l.value.value.length<1){s.push((0,de.invalidEventSubjectErrorMessage)(Z.SUBJECT));continue}(0,Ki.validateArgumentTemplateReferences)(l.value.value,r,s),a.push(l.value.value);break}case Z.PROVIDER_ID:{if(l.value.kind!==X.Kind.STRING||l.value.value.length<1){s.push(de.invalidEventProviderIdErrorMessage);continue}u=l.value.value;break}}if(!(s.length>0))return{fieldName:i,providerId:u,providerType:Z.PROVIDER_TYPE_NATS,subjects:a,type:t}}getNatsSubscribeConfiguration(t,n,r,i){let s=[],a=Z.DEFAULT_EDFS_PROVIDER_ID,u=HI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",d="";for(let f of t.arguments||[])switch(f.name.value){case Z.SUBJECTS:{if(f.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(Z.SUBJECTS));continue}for(let E of f.value.values){if(E.kind!==X.Kind.STRING||E.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(Z.SUBJECTS));break}(0,Ki.validateArgumentTemplateReferences)(E.value,n,i),s.push(E.value)}break}case Z.PROVIDER_ID:{if(f.value.kind!==X.Kind.STRING||f.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}a=f.value.value;break}case Z.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,f.value.kind!==X.Kind.OBJECT||f.value.fields.length<1){i.push(de.invalidNatsStreamInputErrorMessage);continue}let E=!0,h=new Set,_=new Set(rT.STREAM_CONFIGURATION_FIELD_NAMES),A=new Set([Z.CONSUMER_NAME,Z.STREAM_NAME]),U=new Set,q=new Set;for(let j of f.value.fields){let re=j.name.value;if(!rT.STREAM_CONFIGURATION_FIELD_NAMES.has(re)){h.add(re),E=!1;continue}if(_.has(re))_.delete(re);else{U.add(re),E=!1;continue}switch(A.has(re)&&A.delete(re),re){case Z.CONSUMER_NAME:if(j.value.kind!=X.Kind.STRING||j.value.value.length<1){q.add(re),E=!1;continue}l=j.value.value;break;case Z.STREAM_NAME:if(j.value.kind!=X.Kind.STRING||j.value.value.length<1){q.add(re),E=!1;continue}d=j.value.value;break;case Z.CONSUMER_INACTIVE_THRESHOLD:if(j.value.kind!=X.Kind.INT){i.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(j.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",Z.INT_SCALAR)),E=!1;continue}try{u=parseInt(j.value.value,10)}catch(ee){i.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(j.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",Z.INT_SCALAR)),E=!1}break}}(!E||A.size>0)&&i.push((0,de.invalidNatsStreamInputFieldsErrorMessage)([...A],[...U],[...q],[...h]))}}if(!(i.length>0))return u<0?(u=HI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,za.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${HI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):u>mme.MAX_INT32&&(u=0,this.warnings.push((0,za.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),x({fieldName:r,providerId:a,providerType:Z.PROVIDER_TYPE_NATS,subjects:s,type:Z.SUBSCRIBE},l&&d?{streamConfiguration:{consumerInactiveThreshold:u,consumerName:l,streamName:d}}:{})}getRedisPublishConfiguration(t,n,r,i){let s=[],a=Z.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case Z.CHANNEL:{if(u.value.kind!==X.Kind.STRING||u.value.value.length<1){i.push((0,de.invalidEventSubjectErrorMessage)(Z.CHANNEL));continue}(0,Ki.validateArgumentTemplateReferences)(u.value.value,n,i),s.push(u.value.value);break}case Z.PROVIDER_ID:{if(u.value.kind!==X.Kind.STRING||u.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}a=u.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:a,providerType:Z.PROVIDER_TYPE_REDIS,channels:s,type:Z.PUBLISH}}getRedisSubscribeConfiguration(t,n,r,i){let s=[],a=Z.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case Z.CHANNELS:{if(u.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(Z.CHANNELS));continue}for(let l of u.value.values){if(l.kind!==X.Kind.STRING||l.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(Z.CHANNELS));break}(0,Ki.validateArgumentTemplateReferences)(l.value,n,i),s.push(l.value)}break}case Z.PROVIDER_ID:{if(u.value.kind!==X.Kind.STRING||u.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}a=u.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:a,providerType:Z.PROVIDER_TYPE_REDIS,channels:s,type:Z.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===X.OperationTypeNode.SUBSCRIPTION;for(let s of t.directives)if(s.name.value===Z.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,de.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t,n){if(!t.directives)return;let r=t.name.value,i=`${this.renamedParentTypeName||this.originalParentTypeName}.${r}`;for(let s of t.directives){let a=[],u;switch(s.name.value){case Z.EDFS_KAFKA_PUBLISH:u=this.getKafkaPublishConfiguration(s,n,r,a);break;case Z.EDFS_KAFKA_SUBSCRIBE:u=this.getKafkaSubscribeConfiguration(s,n,r,a);break;case Z.EDFS_NATS_PUBLISH:{u=this.getNatsPublishAndRequestConfiguration(Z.PUBLISH,s,n,r,a);break}case Z.EDFS_NATS_REQUEST:{u=this.getNatsPublishAndRequestConfiguration(Z.REQUEST,s,n,r,a);break}case Z.EDFS_NATS_SUBSCRIBE:{u=this.getNatsSubscribeConfiguration(s,n,r,a);break}case Z.EDFS_REDIS_PUBLISH:{u=this.getRedisPublishConfiguration(s,n,r,a);break}case Z.EDFS_REDIS_SUBSCRIBE:{u=this.getRedisSubscribeConfiguration(s,n,r,a);break}default:continue}if(a.length>0){this.errors.push((0,de.invalidEventDirectiveError)(s.name.value,i,a));continue}u&&(0,Qe.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(u)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case X.OperationTypeNode.MUTATION:return new Set([Z.EDFS_KAFKA_PUBLISH,Z.EDFS_NATS_PUBLISH,Z.EDFS_NATS_REQUEST,Z.EDFS_REDIS_PUBLISH]);case X.OperationTypeNode.QUERY:return new Set([Z.EDFS_NATS_REQUEST]);case X.OperationTypeNode.SUBSCRIPTION:return new Set([Z.EDFS_KAFKA_SUBSCRIBE,Z.EDFS_NATS_SUBSCRIBE,Z.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case Z.MUTATION:return X.OperationTypeNode.MUTATION;case Z.QUERY:return X.OperationTypeNode.QUERY;case Z.SUBSCRIPTION:return X.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let s=this.getOperationTypeNodeForRootTypeName(t.name);if(!s){this.errors.push((0,de.invalidRootTypeError)(t.name));return}let a=this.getValidEventsDirectiveNamesForOperationTypeNode(s);for(let[u,l]of t.fieldDataByName){let d=`${l.originalParentTypeName}.${u}`,f=new Set;for(let q of rT.EVENT_DIRECTIVE_NAMES)l.directivesByName.has(q)&&f.add(q);let E=new Set;for(let q of f)a.has(q)||E.add(q);if((f.size<1||E.size>0)&&n.set(d,{definesDirectives:f.size>0,invalidDirectiveNames:[...E]}),s===X.OperationTypeNode.MUTATION){let q=(0,us.printTypeNode)(l.type);q!==Z.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(d,q);continue}let h=(0,us.printTypeNode)(l.type),_=l.namedTypeName+"!",A=!1,U=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let q of U)if(A||(A=this.entityDataByTypeName.has(q)),A)break;(!A||h!==_)&&r.set(d,h)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDatasByTypeName.get(t);if(r)for(let[i,{isUnresolvable:s}]of r)s||(0,Qe.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){var s;for(let[a,u]of t){let l=`${u.originalParentTypeName}.${a}`;if(n.has(a)){(s=u.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&s.isDefinedExternal||r.set(l,a);continue}i.set(l,a)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(Z.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==X.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!=1)return!1;for(let[n,r]of t.fieldDataByName)if(r.argumentDataByName.size>0||n!==Z.SUCCESS||(0,us.printTypeNode)(r.type)!==Z.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(!(0,dn.isInputObjectDefinitionData)(t)||t.inputValueDataByName.size!=3)return!1;for(let[n,r]of t.inputValueDataByName)switch(n){case Z.CONSUMER_INACTIVE_THRESHOLD:{if((0,us.printTypeNode)(r.type)!==Z.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==X.Kind.INT||r.defaultValue.value!==`${HI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case Z.CONSUMER_NAME:case Z.STREAM_NAME:{if((0,us.printTypeNode)(r.type)!==Z.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(){let t=[],n=new Map,r=new Map,i=new Map,s=new Map,a=new Map,u=new Map,l=new Set,d=new Set;for(let[f,E]of this.parentDefinitionDataByTypeName){if(f===Z.EDFS_PUBLISH_RESULT||f===Z.EDFS_NATS_STREAM_CONFIGURATION||E.kind!==X.Kind.OBJECT_TYPE_DEFINITION)continue;if(E.isRootType){this.validateEventDrivenRootType(E,n,r,i);continue}let h=this.keyFieldNamesByParentTypeName.get(f);if(!h){d.add(f);continue}this.validateEventDrivenKeyDefinition(f,s),this.validateEventDrivenObjectFields(E.fieldDataByName,h,a,u)}if(this.isEdfsPublishResultValid()||t.push(de.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(Z.EDFS_NATS_SUBSCRIBE)){let f=this.parentDefinitionDataByTypeName.get(Z.EDFS_NATS_STREAM_CONFIGURATION);f&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(f)&&t.push(de.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(Z.EDFS_NATS_STREAM_CONFIGURATION);let E=this.upsertInputObjectByNode(UG.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION);if(E.success)for(let h of UG.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION.fields)this.addInputValueDataByNode({fieldName:h.name.value,isArgument:!1,inputValueDataByName:E.data.inputValueDataByName,node:h,originalParentTypeName:Z.EDFS_NATS_STREAM_CONFIGURATION});else return}n.size>0&&t.push((0,de.invalidRootTypeFieldEventsDirectivesErrorMessage)(n)),i.size>0&&t.push((0,de.invalidEventDrivenMutationResponseTypeErrorMessage)(i)),r.size>0&&t.push((0,de.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(r)),s.size>0&&t.push((0,de.invalidKeyFieldSetsEventDrivenErrorMessage)(s)),a.size>0&&t.push((0,de.nonExternalKeyFieldNamesEventDrivenErrorMessage)(a)),u.size>0&&t.push((0,de.nonKeyFieldNamesEventDrivenErrorMessage)(u)),l.size>0&&t.push((0,de.nonEntityObjectExtensionsEventDrivenErrorMessage)([...l])),d.size>0&&t.push((0,de.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...d])),t.length>0&&this.errors.push((0,de.invalidEventDrivenGraphError)(t))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,de.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,Qe.kindToNodeType)(i.kind)}"`)}n.length>0&&this.errors.push((0,de.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let n=t.name.value;for(let r of t.types){let i=r.name.value;(0,Qe.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}addValidKeyFieldSetConfigurations(){for(let[t,n]of this.keyFieldSetDatasByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.undefinedCompositeOutputTypeError)(t));continue}let i=(0,dn.getParentTypeName)(r),s=(0,Qe.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,iT.newConfigurationData)(!0,i)),a=(0,Ki.validateKeyFieldSets)(this,r,n);a&&(s.keys=a)}}getValidFlattenedDirectiveArray(t,n,r=!1){let i=[];for(let[s,a]of t){if(r&&Z.INHERITABLE_DIRECTIVE_NAMES.has(s))continue;let u=this.directiveDefinitionDataByName.get(s);if(!u)continue;if(!u.isRepeatable&&a.length>1){let f=(0,Qe.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(s)||(f.add(s),this.errors.push((0,de.invalidDirectiveError)(s,n,"1st",[(0,de.invalidRepeatedDirectiveErrorMessage)(s)])));continue}if(s!==Z.KEY){i.push(...a);continue}let l=[],d=new Set;for(let f=0;f0)return K(x({},t.description?{description:t.description}:{}),{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:X.Kind.SCHEMA_DEFINITION,operationTypes:n});if(!(t.directivesByName.size<1))return{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:X.Kind.SCHEMA_EXTENSION}}getUnionNodeByData(t){return t.node.description=t.description,t.node.directives=this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),t.node.types=(0,fr.mapToArrayOfValues)(t.memberByMemberTypeName),t.node}evaluateExternalKeyFields(){let t=[];for(let[n,r]of this.keyFieldSetDatasByTypeName){let i=this.parentDefinitionDataByTypeName.get(n);if(!i||i.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&i.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){t.push(n),this.errors.push((0,de.undefinedCompositeOutputTypeError)(n));continue}let s=this;for(let a of r.values()){let u=[i],l=new Map,d=-1,f=!0;if((0,X.visit)(a.documentNode,{Argument:{enter(){return X.BREAK}},Field:{enter(E){let h=u[d],_=h.name;if(f)return X.BREAK;let A=E.name.value,U=`${_}.${A}`;s.unvalidatedExternalFieldCoords.delete(U);let q=h.fieldDataByName.get(A);if(!q||q.argumentDataByName.size)return X.BREAK;q.isShareableBySubgraphName.set(s.subgraphName,!0);let j=q.externalFieldDataBySubgraphName.get(s.subgraphName);s.edfsDirectiveReferences.size<1&&j&&j.isDefinedExternal&&!j.isUnconditionallyProvided&&i.extensionType!==Ha.ExtensionType.NONE&&(j.isUnconditionallyProvided=!0,(0,Qe.getValueOrDefault)(l,a.rawFieldSet,()=>new Set).add(U)),(0,Qe.getValueOrDefault)(s.keyFieldNamesByParentTypeName,_,()=>new Set).add(A);let re=(0,wr.getTypeNodeNamedTypeName)(q.node.type);if(Ni.BASE_SCALARS.has(re))return;let ee=s.parentDefinitionDataByTypeName.get(re);if(!ee)return X.BREAK;if(ee.kind===X.Kind.OBJECT_TYPE_DEFINITION){f=!0,u.push(ee);return}if((0,qn.isKindAbstract)(ee.kind))return X.BREAK}},InlineFragment:{enter(){return X.BREAK}},SelectionSet:{enter(){if(!f||(d+=1,f=!1,d<0||d>=u.length))return X.BREAK},leave(){f&&(f=!1),d-=1,u.pop()}}}),!(l.size<1))for(let[E,h]of l)this.warnings.push((0,za.externalEntityExtensionKeyFieldWarning)(i.name,E,[...h],this.subgraphName))}}for(let n of t)this.keyFieldSetDatasByTypeName.delete(n)}addValidConditionalFieldSetConfigurations(){for(let[t,n]of this.fieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.undefinedCompositeOutputTypeError)(t));continue}let i=(0,dn.getParentTypeName)(r),s=(0,Qe.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,iT.newConfigurationData)(!1,i)),a=this.validateProvidesOrRequires(r,n.provides,!0);a&&(s.provides=a);let u=this.validateProvidesOrRequires(r,n.requires,!1);u&&(s.requires=u)}}addFieldNamesToConfigurationData(t,n){let r=new Set;for(let[i,s]of t){let a=s.externalFieldDataBySubgraphName.get(this.subgraphName);if(!a||a.isUnconditionallyProvided){n.fieldNames.add(i);continue}r.add(i),this.edfsDirectiveReferences.size>0&&n.fieldNames.add(i)}r.size>0&&(n.externalFieldNames=r)}validateOneOfDirective({data:t,requiredFieldNames:n}){var r,i;return t.directivesByName.has(Z.ONE_OF)?n.size>0?(this.errors.push((0,de.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(n),typeName:t.name})),!1):(t.inputValueDataByName.size===1&&this.warnings.push((0,za.singleSubgraphInputFieldOneOfWarning)({fieldName:(i=(r=(0,Qe.getFirstEntry)(t.inputValueDataByName))==null?void 0:r.name)!=null?i:"unknown",subgraphName:this.subgraphName,typeName:t.name})),!0):!0}normalize(t){var a;(0,CG.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,CG.upsertParentsAndChildren)(this,t);let n=[];bd(this,zI,kG).call(this,n),this.validateDirectives(this.schemaData,Z.SCHEMA);let r=this.getSchemaNodeByData(this.schemaData);(r==null?void 0:r.kind)===X.Kind.SCHEMA_DEFINITION&&n.push(r);for(let[u,l]of this.parentDefinitionDataByTypeName)this.validateDirectives(l,u);this.invalidORScopesCoords.size>0&&this.errors.push((0,de.orScopesLimitError)(Ni.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let u of this.invalidConfigureDescriptionNodeDatas)u.description||this.errors.push((0,de.configureDescriptionNoDescriptionError)((0,Qe.kindToNodeType)(u.kind),u.name));this.evaluateExternalKeyFields();for(let[u,l]of this.parentDefinitionDataByTypeName)switch(l.kind){case X.Kind.ENUM_TYPE_DEFINITION:{if(l.enumValueDataByName.size<1){this.errors.push((0,de.noDefinedEnumValuesError)(u));break}n.push(this.getEnumNodeByData(l));break}case X.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(l.inputValueDataByName.size<1){this.errors.push((0,de.noInputValueDefinitionsError)(u));break}let d=new Set;for(let f of l.inputValueDataByName.values()){if((0,dn.isTypeRequired)(f.type)&&d.add(f.name),f.namedTypeKind!==X.Kind.NULL)continue;let E=this.parentDefinitionDataByTypeName.get(f.namedTypeName);if(E){if(!(0,dn.isInputNodeKind)(E.kind)){this.errors.push((0,de.invalidNamedTypeError)({data:f,namedTypeData:E,nodeType:`${(0,Qe.kindToNodeType)(l.kind)} field`}));continue}f.namedTypeKind=E.kind}}if(!this.validateOneOfDirective({data:l,requiredFieldNames:d}))break;u!==Z.EDFS_NATS_STREAM_CONFIGURATION&&n.push(this.getInputObjectNodeByData(l));break}case X.Kind.INTERFACE_TYPE_DEFINITION:case X.Kind.OBJECT_TYPE_DEFINITION:{let d=this.entityDataByTypeName.has(u),f=this.operationTypeNodeByTypeName.get(u),E=l.kind===X.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&l.extensionType===Ha.ExtensionType.EXTENDS&&(l.extensionType=Ha.ExtensionType.NONE),f&&(l.fieldDataByName.delete(Z.SERVICE_FIELD),l.fieldDataByName.delete(Z.ENTITIES_FIELD));let h=[];for(let[j,re]of l.fieldDataByName){if(!E&&((a=re.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal)&&h.push(j),this.validateArguments(re,l.kind),re.namedTypeKind!==X.Kind.NULL)continue;let ee=this.parentDefinitionDataByTypeName.get(re.namedTypeName);if(ee){if(!(0,dn.isOutputNodeKind)(ee.kind)){this.errors.push((0,de.invalidNamedTypeError)({data:re,namedTypeData:ee,nodeType:`${(0,Qe.kindToNodeType)(l.kind)} field`}));continue}re.namedTypeKind=this.entityInterfaceDataByTypeName.get(ee.name)?X.Kind.INTERFACE_TYPE_DEFINITION:ee.kind}}h.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,de.externalInterfaceFieldsError)(u,h)):this.warnings.push((0,za.externalInterfaceFieldsWarning)(this.subgraphName,u,h)));let _=(0,dn.getParentTypeName)(l),A=(0,Qe.getValueOrDefault)(this.configurationDataByTypeName,_,()=>(0,iT.newConfigurationData)(d,u)),U=this.entityInterfaceDataByTypeName.get(u);if(U){U.fieldDatas=(0,fr.fieldDatasToSimpleFieldDatas)(l.fieldDataByName.values());let j=this.concreteTypeNamesByAbstractTypeName.get(u);j&&(0,Qe.addIterableToSet)({source:j,target:U.concreteTypeNames}),A.isInterfaceObject=U.isInterfaceObject,A.entityInterfaceConcreteTypeNames=U.concreteTypeNames}let q=this.eventsConfigurations.get(_);q&&(A.events=q),this.addFieldNamesToConfigurationData(l.fieldDataByName,A),this.validateInterfaceImplementations(l),n.push(this.getCompositeOutputNodeByData(l)),l.fieldDataByName.size<1&&!(0,Ki.isNodeQuery)(u,f)&&this.errors.push((0,de.noFieldDefinitionsError)((0,Qe.kindToNodeType)(l.kind),u)),l.requireFetchReasonsFieldNames.size>0&&(A.requireFetchReasonsFieldNames=[...l.requireFetchReasonsFieldNames]);break}case X.Kind.SCALAR_TYPE_DEFINITION:{if(l.extensionType===Ha.ExtensionType.REAL){this.errors.push((0,de.noBaseScalarDefinitionError)(u));break}n.push(this.getScalarNodeByData(l));break}case X.Kind.UNION_TYPE_DEFINITION:{n.push(this.getUnionNodeByData(l)),this.validateUnionMembers(l);break}default:throw(0,de.unexpectedKindFatalError)(u)}this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let u of Object.values(X.OperationTypeNode)){let l=this.schemaData.operationTypes.get(u),d=(0,Qe.getOrThrowError)(qn.operationTypeNodeToDefaultType,u,Z.OPERATION_TO_DEFAULT),f=l?(0,wr.getTypeNodeNamedTypeName)(l.type):d;if(Ni.BASE_SCALARS.has(f)&&this.referencedTypeNames.add(f),f!==d&&this.parentDefinitionDataByTypeName.has(d)){this.errors.push((0,de.invalidRootTypeDefinitionError)(u,f,d));continue}let E=this.parentDefinitionDataByTypeName.get(f);if(l){if(!E)continue;this.operationTypeNodeByTypeName.set(f,u)}if(!E)continue;let h=this.configurationDataByTypeName.get(d);h&&(h.isRootNode=!0,h.typeName=d),E.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,de.operationDefinitionError)(f,u,E.kind))}for(let u of this.referencedTypeNames){let l=this.parentDefinitionDataByTypeName.get(u);if(!l){this.errors.push((0,de.undefinedTypeError)(u));continue}if(l.kind!==X.Kind.INTERFACE_TYPE_DEFINITION)continue;let d=this.concreteTypeNamesByAbstractTypeName.get(u);(!d||d.size<1)&&this.warnings.push((0,za.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,u))}let i=new Map;for(let u of this.directiveDefinitionByName.values()){let l=(0,qn.extractExecutableDirectiveLocations)(u.locations,new Set);l.size<1||this.addPersistedDirectiveDefinitionDataByNode(i,u,l)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph();for(let u of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,de.invalidExternalDirectiveError)(u)):this.warnings.push((0,za.invalidExternalFieldWarning)(u,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let s={kind:X.Kind.DOCUMENT,definitions:n};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,directiveDefinitionByName:this.directiveDefinitionByName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,keyFieldSetsByEntityTypeNameByKeyFieldCoords:this.keyFieldSetsByEntityTypeNameByFieldCoords,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:i,schemaNode:r,subgraphAST:s,subgraphString:(0,X.print)(s),schema:(0,fme.buildASTSchema)(s,{addInvalidExtensionOrphans:!0,assumeValid:!0,assumeValidSDL:!0}),success:!0,warnings:this.warnings}}};aT=new WeakSet,BR=function({currentFieldCoords:t,directiveCoords:n,directiveName:r,fieldSet:i}){if(this.isSubgraphVersionTwo){this.errors.push((0,de.nonExternalConditionalFieldError)({directiveCoords:n,directiveName:r,fieldSet:i,subgraphName:this.subgraphName,targetCoords:t}));return}this.warnings.push((0,za.nonExternalConditionalFieldWarning)(n,this.subgraphName,t,i,r))},zI=new WeakSet,kG=function(t){let n=new Set;for(let r of this.referencedDirectiveNames){let i=Ni.DIRECTIVE_DEFINITION_BY_NAME.get(r);i&&(this.directiveDefinitionByName.set(r,i),(0,Qe.addOptionalIterableToSet)({source:rT.DEPENDENCIES_BY_DIRECTIVE_NAME.get(r),target:n}),t.push(i))}for(let r of this.customDirectiveDefinitionByName.values())t.push(r);t.push(...n)};Xl.NormalizationFactory=sT;function Tme(e){let t=new Map,n=new Map,r=new Map,i=new Map,s=new Map,a=new Map,u=new Set,l=new Map,d=new Set,f=new Set,E=[],h=new Set,_=new Map,A=[],U=[];for(let re of e)re.name&&(0,pme.recordSubgraphName)(re.name,d,f);let q=new kR.Graph;for(let re=0;re0&&A.push(...ce.warnings),!ce.success){U.push((0,de.subgraphValidationError)(me,ce.errors));continue}if(!ce){U.push((0,de.subgraphValidationError)(me,[de.subgraphValidationFailureError]));continue}l.set(me,ce.parentDefinitionDataByTypeName);for(let be of ce.authorizationDataByParentTypeName.values())(0,fr.upsertAuthorizationData)(t,be,h);for(let[be,xe]of ce.fieldCoordsByNamedTypeName)(0,Qe.addIterableToSet)({source:xe,target:(0,Qe.getValueOrDefault)(_,be,()=>new Set)});for(let[be,xe]of ce.concreteTypeNamesByAbstractTypeName){let at=n.get(be);if(!at){n.set(be,new Set(xe));continue}(0,Qe.addIterableToSet)({source:xe,target:at})}for(let[be,xe]of ce.entityDataByTypeName){let at=xe.keyFieldSetDatasBySubgraphName.get(me);at&&(0,fr.upsertEntityData)({entityDataByTypeName:r,keyFieldSetDataByFieldSet:at,typeName:be,subgraphName:me})}if(ee.name&&i.set(me,{conditionalFieldDataByCoordinates:ce.conditionalFieldDataByCoordinates,configurationDataByTypeName:ce.configurationDataByTypeName,definitions:ce.subgraphAST,directiveDefinitionByName:ce.directiveDefinitionByName,entityInterfaces:ce.entityInterfaces,isVersionTwo:ce.isVersionTwo,keyFieldNamesByParentTypeName:ce.keyFieldNamesByParentTypeName,name:me,operationTypes:ce.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:ce.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:ce.persistedDirectiveDefinitionDataByDirectiveName,schema:ce.schema,schemaNode:ce.schemaNode,url:ee.url}),!(ce.overridesByTargetSubgraphName.size<1))for(let[be,xe]of ce.overridesByTargetSubgraphName){let at=d.has(be);for(let[te,Se]of xe){let wt=ce.originalTypeNameByRenamedTypeName.get(te)||te;if(!at)A.push((0,za.invalidOverrideTargetSubgraphNameWarning)(be,wt,[...Se],ee.name));else{let fn=(0,Qe.getValueOrDefault)(s,be,()=>new Map),pn=(0,Qe.getValueOrDefault)(fn,te,()=>new Set(Se));(0,Qe.addIterableToSet)({source:Se,target:pn})}for(let fn of Se){let pn=`${wt}.${fn}`,Hn=a.get(pn);if(!Hn){a.set(pn,[me]);continue}Hn.push(me),u.add(pn)}}}}let j=[];if(h.size>0&&j.push((0,de.orScopesLimitError)(Ni.MAX_OR_SCOPES,[...h])),(E.length>0||f.size>0)&&j.push((0,de.invalidSubgraphNamesError)([...f],E)),u.size>0){let re=[];for(let ee of u){let me=(0,Qe.getOrThrowError)(a,ee,"overrideSourceSubgraphNamesByFieldPath");re.push((0,de.duplicateOverriddenFieldErrorMessage)(ee,me))}j.push((0,de.duplicateOverriddenFieldsError)(re))}if(j.push(...U),j.length>0)return{errors:j,success:!1,warnings:A};for(let[re,ee]of s){let me=(0,Qe.getOrThrowError)(i,re,"internalSubgraphBySubgraphName");me.overriddenFieldNamesByParentTypeName=ee;for(let[ce,be]of ee){let xe=me.configurationDataByTypeName.get(ce);xe&&((0,fr.subtractSet)(be,xe.fieldNames),xe.fieldNames.size<1&&me.configurationDataByTypeName.delete(ce))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,fieldCoordsByNamedTypeName:_,internalSubgraphBySubgraphName:i,internalGraph:q,success:!0,warnings:A}}});var WI=C(td=>{"use strict";p();N();m();Object.defineProperty(td,"__esModule",{value:!0});td.DivergentType=void 0;td.getLeastRestrictiveMergedTypeNode=hme;td.getMostRestrictiveMergedTypeNode=yme;td.renameNamedTypeName=Ime;var Zl=(Oe(),Ae(Pe)),MG=As(),Eme=Lc(),xG=ui(),VG=vf(),ed;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(ed||(td.DivergentType=ed={}));function qG(e,t,n,r,i){t=(0,Eme.getMutableTypeNode)(t,n,i);let s={kind:e.kind},a=ed.NONE,u=s;for(let l=0;l{"use strict";p();N();m();Object.defineProperty(VR,"__esModule",{value:!0});VR.renameRootTypes=vme;var gme=(Oe(),Ae(Pe)),MR=ui(),_me=WI(),$c=Er(),nd=di();function vme(e,t){let n,r=!1,i;(0,gme.visit)(t.definitions,{FieldDefinition:{enter(s){let a=s.name.value;if(r&&(a===$c.SERVICE_FIELD||a===$c.ENTITIES_FIELD))return n.fieldDataByName.delete(a),!1;let u=n.name,l=(0,nd.getOrThrowError)(n.fieldDataByName,a,`${u}.fieldDataByFieldName`),d=t.operationTypes.get(l.namedTypeName);if(d){let f=(0,nd.getOrThrowError)(MR.operationTypeNodeToDefaultType,d,$c.OPERATION_TO_DEFAULT);l.namedTypeName!==f&&(0,_me.renameNamedTypeName)(l,f,e.errors)}return i!=null&&i.has(a)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(s){let a=s.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(a))return!1;n=(0,nd.getOrThrowError)(t.parentDefinitionDataByTypeName,a,$c.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(s){let a=s.name.value,u=t.operationTypes.get(a),l=u?(0,nd.getOrThrowError)(MR.operationTypeNodeToDefaultType,u,$c.OPERATION_TO_DEFAULT):a;n=(0,nd.getOrThrowError)(t.parentDefinitionDataByTypeName,a,$c.PARENT_DEFINITION_DATA),r=n.isRootType,!e.entityInterfaceFederationDataByTypeName.get(a)&&(e.addValidPrimaryKeyTargetsToEntityData(a),i=t.overriddenFieldNamesByParentTypeName.get(l),a!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(a)))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(s){let a=s.name.value,u=t.operationTypes.get(a),l=u?(0,nd.getOrThrowError)(MR.operationTypeNodeToDefaultType,u,$c.OPERATION_TO_DEFAULT):a;n=(0,nd.getOrThrowError)(t.parentDefinitionDataByTypeName,a,$c.PARENT_DEFINITION_DATA),r=n.isRootType,e.addValidPrimaryKeyTargetsToEntityData(a),i=t.overriddenFieldNamesByParentTypeName.get(a),a!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(a))},leave(){n=void 0,r=!1,i=void 0}}})}});var $G=C((ep,oT)=>{"use strict";p();N();m();(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",u=500,l="__lodash_placeholder__",d=1,f=2,E=4,h=1,_=2,A=1,U=2,q=4,j=8,re=16,ee=32,me=64,ce=128,be=256,xe=512,at=30,te="...",Se=800,wt=16,fn=1,pn=2,Hn=3,Zt=1/0,Sn=9007199254740991,Ti=17976931348623157e292,Lr=NaN,Cn=4294967295,rn=Cn-1,zn=Cn>>>1,ue=[["ary",ce],["bind",A],["bindKey",U],["curry",j],["curryRight",re],["flip",xe],["partial",ee],["partialRight",me],["rearg",be]],Re="[object Arguments]",_e="[object Array]",Be="[object AsyncFunction]",Pt="[object Boolean]",J="[object Date]",oe="[object DOMException]",$e="[object Error]",et="[object Function]",Qt="[object GeneratorFunction]",ft="[object Map]",Vt="[object Number]",Za="[object Null]",Fi="[object Object]",eo="[object Promise]",pd="[object Proxy]",Ia="[object RegExp]",Kr="[object Set]",Gi="[object String]",Jt="[object Symbol]",Gr="[object Undefined]",Yc="[object WeakMap]",ga="[object WeakSet]",Jc="[object ArrayBuffer]",w="[object DataView]",I="[object Float32Array]",g="[object Float64Array]",k="[object Int8Array]",Q="[object Int16Array]",ie="[object Int32Array]",pe="[object Uint8Array]",St="[object Uint8ClampedArray]",Dn="[object Uint16Array]",Tn="[object Uint32Array]",Un=/\b__p \+= '';/g,mn=/\b(__p \+=) '' \+/g,gY=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$F=/&(?:amp|lt|gt|quot|#39);/g,jF=/[&<>"']/g,_Y=RegExp($F.source),vY=RegExp(jF.source),SY=/<%-([\s\S]+?)%>/g,DY=/<%([\s\S]+?)%>/g,KF=/<%=([\s\S]+?)%>/g,OY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bY=/^\w*$/,AY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lg=/[\\^$.*+?()[\]{}|]/g,RY=RegExp(Lg.source),Pg=/^\s+/,FY=/\s/,wY=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,LY=/\{\n\/\* \[wrapped with (.+)\] \*/,PY=/,? & /,CY=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,UY=/[()=,{}\[\]\/\s]/,BY=/\\(\\)?/g,kY=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,GF=/\w*$/,xY=/^[-+]0x[0-9a-f]+$/i,MY=/^0b[01]+$/i,VY=/^\[object .+?Constructor\]$/,qY=/^0o[0-7]+$/i,$Y=/^(?:0|[1-9]\d*)$/,jY=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,LT=/($^)/,KY=/['\n\r\u2028\u2029\\]/g,PT="\\ud800-\\udfff",GY="\\u0300-\\u036f",QY="\\ufe20-\\ufe2f",YY="\\u20d0-\\u20ff",QF=GY+QY+YY,YF="\\u2700-\\u27bf",JF="a-z\\xdf-\\xf6\\xf8-\\xff",JY="\\xac\\xb1\\xd7\\xf7",HY="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zY="\\u2000-\\u206f",WY=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",HF="A-Z\\xc0-\\xd6\\xd8-\\xde",zF="\\ufe0e\\ufe0f",WF=JY+HY+zY+WY,Cg="['\u2019]",XY="["+PT+"]",XF="["+WF+"]",CT="["+QF+"]",ZF="\\d+",ZY="["+YF+"]",ew="["+JF+"]",tw="[^"+PT+WF+ZF+YF+JF+HF+"]",Ug="\\ud83c[\\udffb-\\udfff]",e2="(?:"+CT+"|"+Ug+")",nw="[^"+PT+"]",Bg="(?:\\ud83c[\\udde6-\\uddff]){2}",kg="[\\ud800-\\udbff][\\udc00-\\udfff]",md="["+HF+"]",rw="\\u200d",iw="(?:"+ew+"|"+tw+")",t2="(?:"+md+"|"+tw+")",sw="(?:"+Cg+"(?:d|ll|m|re|s|t|ve))?",aw="(?:"+Cg+"(?:D|LL|M|RE|S|T|VE))?",ow=e2+"?",uw="["+zF+"]?",n2="(?:"+rw+"(?:"+[nw,Bg,kg].join("|")+")"+uw+ow+")*",r2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cw=uw+ow+n2,s2="(?:"+[ZY,Bg,kg].join("|")+")"+cw,a2="(?:"+[nw+CT+"?",CT,Bg,kg,XY].join("|")+")",o2=RegExp(Cg,"g"),u2=RegExp(CT,"g"),xg=RegExp(Ug+"(?="+Ug+")|"+a2+cw,"g"),c2=RegExp([md+"?"+ew+"+"+sw+"(?="+[XF,md,"$"].join("|")+")",t2+"+"+aw+"(?="+[XF,md+iw,"$"].join("|")+")",md+"?"+iw+"+"+sw,md+"+"+aw,i2,r2,ZF,s2].join("|"),"g"),l2=RegExp("["+rw+PT+QF+zF+"]"),d2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,f2=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],p2=-1,Ln={};Ln[I]=Ln[g]=Ln[k]=Ln[Q]=Ln[ie]=Ln[pe]=Ln[St]=Ln[Dn]=Ln[Tn]=!0,Ln[Re]=Ln[_e]=Ln[Jc]=Ln[Pt]=Ln[w]=Ln[J]=Ln[$e]=Ln[et]=Ln[ft]=Ln[Vt]=Ln[Fi]=Ln[Ia]=Ln[Kr]=Ln[Gi]=Ln[Yc]=!1;var On={};On[Re]=On[_e]=On[Jc]=On[w]=On[Pt]=On[J]=On[I]=On[g]=On[k]=On[Q]=On[ie]=On[ft]=On[Vt]=On[Fi]=On[Ia]=On[Kr]=On[Gi]=On[Jt]=On[pe]=On[St]=On[Dn]=On[Tn]=!0,On[$e]=On[et]=On[Yc]=!1;var m2={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},N2={"&":"&","<":"<",">":">",'"':""","'":"'"},T2={"&":"&","<":"<",">":">",""":'"',"'":"'"},E2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},h2=parseFloat,y2=parseInt,lw=typeof global=="object"&&global&&global.Object===Object&&global,I2=typeof self=="object"&&self&&self.Object===Object&&self,Pr=lw||I2||Function("return this")(),Mg=typeof ep=="object"&&ep&&!ep.nodeType&&ep,Hc=Mg&&typeof oT=="object"&&oT&&!oT.nodeType&&oT,dw=Hc&&Hc.exports===Mg,Vg=dw&&lw.process,cs=function(){try{var Y=Hc&&Hc.require&&Hc.require("util").types;return Y||Vg&&Vg.binding&&Vg.binding("util")}catch(fe){}}(),fw=cs&&cs.isArrayBuffer,pw=cs&&cs.isDate,mw=cs&&cs.isMap,Nw=cs&&cs.isRegExp,Tw=cs&&cs.isSet,Ew=cs&&cs.isTypedArray;function Qi(Y,fe,se){switch(se.length){case 0:return Y.call(fe);case 1:return Y.call(fe,se[0]);case 2:return Y.call(fe,se[0],se[1]);case 3:return Y.call(fe,se[0],se[1],se[2])}return Y.apply(fe,se)}function g2(Y,fe,se,ke){for(var yt=-1,en=Y==null?0:Y.length;++yt-1}function qg(Y,fe,se){for(var ke=-1,yt=Y==null?0:Y.length;++ke-1;);return se}function Dw(Y,fe){for(var se=Y.length;se--&&Nd(fe,Y[se],0)>-1;);return se}function F2(Y,fe){for(var se=Y.length,ke=0;se--;)Y[se]===fe&&++ke;return ke}var w2=Gg(m2),L2=Gg(N2);function P2(Y){return"\\"+E2[Y]}function C2(Y,fe){return Y==null?e:Y[fe]}function Td(Y){return l2.test(Y)}function U2(Y){return d2.test(Y)}function B2(Y){for(var fe,se=[];!(fe=Y.next()).done;)se.push(fe.value);return se}function Hg(Y){var fe=-1,se=Array(Y.size);return Y.forEach(function(ke,yt){se[++fe]=[yt,ke]}),se}function Ow(Y,fe){return function(se){return Y(fe(se))}}function ec(Y,fe){for(var se=-1,ke=Y.length,yt=0,en=[];++se-1}function vJ(o,c){var T=this.__data__,y=XT(T,o);return y<0?(++this.size,T.push([o,c])):T[y][1]=c,this}to.prototype.clear=yJ,to.prototype.delete=IJ,to.prototype.get=gJ,to.prototype.has=_J,to.prototype.set=vJ;function no(o){var c=-1,T=o==null?0:o.length;for(this.clear();++c=c?o:c)),o}function ps(o,c,T,y,b,P){var M,$=c&d,H=c&f,Ne=c&E;if(T&&(M=b?T(o,y,b,P):T(o)),M!==e)return M;if(!$n(o))return o;var Te=It(o);if(Te){if(M=bH(o),!$)return wi(o,M)}else{var Ie=Zr(o),Fe=Ie==et||Ie==Qt;if(oc(o))return uL(o,$);if(Ie==Fi||Ie==Re||Fe&&!b){if(M=H||Fe?{}:bL(o),!$)return H?TH(o,MJ(M,o)):NH(o,xw(M,o))}else{if(!On[Ie])return b?o:{};M=AH(o,Ie,$)}}P||(P=new Gs);var He=P.get(o);if(He)return He;P.set(o,M),nP(o)?o.forEach(function(ut){M.add(ps(ut,c,T,ut,o,P))}):eP(o)&&o.forEach(function(ut,Ct){M.set(Ct,ps(ut,c,T,Ct,o,P))});var ot=Ne?H?g_:I_:H?Pi:Cr,At=Te?e:ot(o);return ls(At||o,function(ut,Ct){At&&(Ct=ut,ut=o[Ct]),hp(M,Ct,ps(ut,c,T,Ct,o,P))}),M}function VJ(o){var c=Cr(o);return function(T){return Mw(T,o,c)}}function Mw(o,c,T){var y=T.length;if(o==null)return!y;for(o=_n(o);y--;){var b=T[y],P=c[b],M=o[b];if(M===e&&!(b in o)||!P(M))return!1}return!0}function Vw(o,c,T){if(typeof o!="function")throw new ds(i);return Dp(function(){o.apply(e,T)},c)}function yp(o,c,T,y){var b=-1,P=UT,M=!0,$=o.length,H=[],Ne=c.length;if(!$)return H;T&&(c=Bn(c,Yi(T))),y?(P=qg,M=!1):c.length>=n&&(P=fp,M=!1,c=new Xc(c));e:for(;++b<$;){var Te=o[b],Ie=T==null?Te:T(Te);if(Te=y||Te!==0?Te:0,M&&Ie===Ie){for(var Fe=Ne;Fe--;)if(c[Fe]===Ie)continue e;H.push(Te)}else P(c,Ie,y)||H.push(Te)}return H}var rc=pL(_a),qw=pL(r_,!0);function qJ(o,c){var T=!0;return rc(o,function(y,b,P){return T=!!c(y,b,P),T}),T}function ZT(o,c,T){for(var y=-1,b=o.length;++yb?0:b+T),y=y===e||y>b?b:Ot(y),y<0&&(y+=b),y=T>y?0:iP(y);T0&&T($)?c>1?Qr($,c-1,T,y,b):Zu(b,$):y||(b[b.length]=$)}return b}var n_=mL(),jw=mL(!0);function _a(o,c){return o&&n_(o,c,Cr)}function r_(o,c){return o&&jw(o,c,Cr)}function eE(o,c){return Xu(c,function(T){return oo(o[T])})}function el(o,c){c=sc(c,o);for(var T=0,y=c.length;o!=null&&Tc}function jJ(o,c){return o!=null&&Nn.call(o,c)}function KJ(o,c){return o!=null&&c in _n(o)}function GJ(o,c,T){return o>=Xr(c,T)&&o=120&&Te.length>=120)?new Xc(M&&Te):e}Te=o[0];var Ie=-1,Fe=$[0];e:for(;++Ie-1;)$!==o&>.call($,H,1),GT.call(o,H,1);return o}function eL(o,c){for(var T=o?c.length:0,y=T-1;T--;){var b=c[T];if(T==y||b!==P){var P=b;ao(b)?GT.call(o,b,1):p_(o,b)}}return o}function l_(o,c){return o+JT(Cw()*(c-o+1))}function iH(o,c,T,y){for(var b=-1,P=Sr(YT((c-o)/(T||1)),0),M=se(P);P--;)M[y?P:++b]=o,o+=T;return M}function d_(o,c){var T="";if(!o||c<1||c>Sn)return T;do c%2&&(T+=o),c=JT(c/2),c&&(o+=o);while(c);return T}function Ft(o,c){return A_(FL(o,c,Ci),o+"")}function sH(o){return kw(Od(o))}function aH(o,c){var T=Od(o);return dE(T,Zc(c,0,T.length))}function _p(o,c,T,y){if(!$n(o))return o;c=sc(c,o);for(var b=-1,P=c.length,M=P-1,$=o;$!=null&&++bb?0:b+c),T=T>b?b:T,T<0&&(T+=b),b=c>T?0:T-c>>>0,c>>>=0;for(var P=se(b);++y>>1,M=o[P];M!==null&&!Hi(M)&&(T?M<=c:M=n){var Ne=c?null:IH(o);if(Ne)return kT(Ne);M=!1,b=fp,H=new Xc}else H=c?[]:$;e:for(;++y=y?o:ms(o,c,T)}var oL=W2||function(o){return Pr.clearTimeout(o)};function uL(o,c){if(c)return o.slice();var T=o.length,y=Rw?Rw(T):new o.constructor(T);return o.copy(y),y}function E_(o){var c=new o.constructor(o.byteLength);return new jT(c).set(new jT(o)),c}function dH(o,c){var T=c?E_(o.buffer):o.buffer;return new o.constructor(T,o.byteOffset,o.byteLength)}function fH(o){var c=new o.constructor(o.source,GF.exec(o));return c.lastIndex=o.lastIndex,c}function pH(o){return Ep?_n(Ep.call(o)):{}}function cL(o,c){var T=c?E_(o.buffer):o.buffer;return new o.constructor(T,o.byteOffset,o.length)}function lL(o,c){if(o!==c){var T=o!==e,y=o===null,b=o===o,P=Hi(o),M=c!==e,$=c===null,H=c===c,Ne=Hi(c);if(!$&&!Ne&&!P&&o>c||P&&M&&H&&!$&&!Ne||y&&M&&H||!T&&H||!b)return 1;if(!y&&!P&&!Ne&&o=$)return H;var Ne=T[y];return H*(Ne=="desc"?-1:1)}}return o.index-c.index}function dL(o,c,T,y){for(var b=-1,P=o.length,M=T.length,$=-1,H=c.length,Ne=Sr(P-M,0),Te=se(H+Ne),Ie=!y;++$1?T[b-1]:e,M=b>2?T[2]:e;for(P=o.length>3&&typeof P=="function"?(b--,P):e,M&&hi(T[0],T[1],M)&&(P=b<3?e:P,b=1),c=_n(c);++y-1?b[P?c[M]:M]:e}}function EL(o){return so(function(c){var T=c.length,y=T,b=fs.prototype.thru;for(o&&c.reverse();y--;){var P=c[y];if(typeof P!="function")throw new ds(i);if(b&&!M&&cE(P)=="wrapper")var M=new fs([],!0)}for(y=M?y:T;++y1&&qt.reverse(),Te&&H$))return!1;var Ne=P.get(o),Te=P.get(c);if(Ne&&Te)return Ne==c&&Te==o;var Ie=-1,Fe=!0,He=T&_?new Xc:e;for(P.set(o,c),P.set(c,o);++Ie<$;){var ot=o[Ie],At=c[Ie];if(y)var ut=M?y(At,ot,Ie,c,o,P):y(ot,At,Ie,o,c,P);if(ut!==e){if(ut)continue;Fe=!1;break}if(He){if(!jg(c,function(Ct,qt){if(!fp(He,qt)&&(ot===Ct||b(ot,Ct,T,y,P)))return He.push(qt)})){Fe=!1;break}}else if(!(ot===At||b(ot,At,T,y,P))){Fe=!1;break}}return P.delete(o),P.delete(c),Fe}function _H(o,c,T,y,b,P,M){switch(T){case w:if(o.byteLength!=c.byteLength||o.byteOffset!=c.byteOffset)return!1;o=o.buffer,c=c.buffer;case Jc:return!(o.byteLength!=c.byteLength||!P(new jT(o),new jT(c)));case Pt:case J:case Vt:return Qs(+o,+c);case $e:return o.name==c.name&&o.message==c.message;case Ia:case Gi:return o==c+"";case ft:var $=Hg;case Kr:var H=y&h;if($||($=kT),o.size!=c.size&&!H)return!1;var Ne=M.get(o);if(Ne)return Ne==c;y|=_,M.set(o,c);var Te=SL($(o),$(c),y,b,P,M);return M.delete(o),Te;case Jt:if(Ep)return Ep.call(o)==Ep.call(c)}return!1}function vH(o,c,T,y,b,P){var M=T&h,$=I_(o),H=$.length,Ne=I_(c),Te=Ne.length;if(H!=Te&&!M)return!1;for(var Ie=H;Ie--;){var Fe=$[Ie];if(!(M?Fe in c:Nn.call(c,Fe)))return!1}var He=P.get(o),ot=P.get(c);if(He&&ot)return He==c&&ot==o;var At=!0;P.set(o,c),P.set(c,o);for(var ut=M;++Ie1?"& ":"")+c[y],c=c.join(T>2?", ":" "),o.replace(wY,`{ +/* [wrapped with `+c+`] */ +`)}function FH(o){return It(o)||rl(o)||!!(Lw&&o&&o[Lw])}function ao(o,c){var T=typeof o;return c=c==null?Sn:c,!!c&&(T=="number"||T!="symbol"&&$Y.test(o))&&o>-1&&o%1==0&&o0){if(++c>=Se)return arguments[0]}else c=0;return o.apply(e,arguments)}}function dE(o,c){var T=-1,y=o.length,b=y-1;for(c=c===e?y:c;++T1?o[c-1]:e;return T=typeof T=="function"?(o.pop(),T):e,$L(o,T)});function jL(o){var c=L(o);return c.__chain__=!0,c}function q3(o,c){return c(o),o}function fE(o,c){return c(o)}var $3=so(function(o){var c=o.length,T=c?o[0]:0,y=this.__wrapped__,b=function(P){return t_(P,o)};return c>1||this.__actions__.length||!(y instanceof Ut)||!ao(T)?this.thru(b):(y=y.slice(T,+T+(c?1:0)),y.__actions__.push({func:fE,args:[b],thisArg:e}),new fs(y,this.__chain__).thru(function(P){return c&&!P.length&&P.push(e),P}))});function j3(){return jL(this)}function K3(){return new fs(this.value(),this.__chain__)}function G3(){this.__values__===e&&(this.__values__=rP(this.value()));var o=this.__index__>=this.__values__.length,c=o?e:this.__values__[this.__index__++];return{done:o,value:c}}function Q3(){return this}function Y3(o){for(var c,T=this;T instanceof WT;){var y=BL(T);y.__index__=0,y.__values__=e,c?b.__wrapped__=y:c=y;var b=y;T=T.__wrapped__}return b.__wrapped__=o,c}function J3(){var o=this.__wrapped__;if(o instanceof Ut){var c=o;return this.__actions__.length&&(c=new Ut(this)),c=c.reverse(),c.__actions__.push({func:fE,args:[R_],thisArg:e}),new fs(c,this.__chain__)}return this.thru(R_)}function H3(){return sL(this.__wrapped__,this.__actions__)}var z3=iE(function(o,c,T){Nn.call(o,T)?++o[T]:ro(o,T,1)});function W3(o,c,T){var y=It(o)?hw:qJ;return T&&hi(o,c,T)&&(c=e),y(o,it(c,3))}function X3(o,c){var T=It(o)?Xu:$w;return T(o,it(c,3))}var Z3=TL(kL),ez=TL(xL);function tz(o,c){return Qr(pE(o,c),1)}function nz(o,c){return Qr(pE(o,c),Zt)}function rz(o,c,T){return T=T===e?1:Ot(T),Qr(pE(o,c),T)}function KL(o,c){var T=It(o)?ls:rc;return T(o,it(c,3))}function GL(o,c){var T=It(o)?_2:qw;return T(o,it(c,3))}var iz=iE(function(o,c,T){Nn.call(o,T)?o[T].push(c):ro(o,T,[c])});function sz(o,c,T,y){o=Li(o)?o:Od(o),T=T&&!y?Ot(T):0;var b=o.length;return T<0&&(T=Sr(b+T,0)),hE(o)?T<=b&&o.indexOf(c,T)>-1:!!b&&Nd(o,c,T)>-1}var az=Ft(function(o,c,T){var y=-1,b=typeof c=="function",P=Li(o)?se(o.length):[];return rc(o,function(M){P[++y]=b?Qi(c,M,T):Ip(M,c,T)}),P}),oz=iE(function(o,c,T){ro(o,T,c)});function pE(o,c){var T=It(o)?Bn:Jw;return T(o,it(c,3))}function uz(o,c,T,y){return o==null?[]:(It(c)||(c=c==null?[]:[c]),T=y?e:T,It(T)||(T=T==null?[]:[T]),Xw(o,c,T))}var cz=iE(function(o,c,T){o[T?0:1].push(c)},function(){return[[],[]]});function lz(o,c,T){var y=It(o)?$g:_w,b=arguments.length<3;return y(o,it(c,4),T,b,rc)}function dz(o,c,T){var y=It(o)?v2:_w,b=arguments.length<3;return y(o,it(c,4),T,b,qw)}function fz(o,c){var T=It(o)?Xu:$w;return T(o,TE(it(c,3)))}function pz(o){var c=It(o)?kw:sH;return c(o)}function mz(o,c,T){(T?hi(o,c,T):c===e)?c=1:c=Ot(c);var y=It(o)?BJ:aH;return y(o,c)}function Nz(o){var c=It(o)?kJ:uH;return c(o)}function Tz(o){if(o==null)return 0;if(Li(o))return hE(o)?Ed(o):o.length;var c=Zr(o);return c==ft||c==Kr?o.size:o_(o).length}function Ez(o,c,T){var y=It(o)?jg:cH;return T&&hi(o,c,T)&&(c=e),y(o,it(c,3))}var hz=Ft(function(o,c){if(o==null)return[];var T=c.length;return T>1&&hi(o,c[0],c[1])?c=[]:T>2&&hi(c[0],c[1],c[2])&&(c=[c[0]]),Xw(o,Qr(c,1),[])}),mE=X2||function(){return Pr.Date.now()};function yz(o,c){if(typeof c!="function")throw new ds(i);return o=Ot(o),function(){if(--o<1)return c.apply(this,arguments)}}function QL(o,c,T){return c=T?e:c,c=o&&c==null?o.length:c,io(o,ce,e,e,e,e,c)}function YL(o,c){var T;if(typeof c!="function")throw new ds(i);return o=Ot(o),function(){return--o>0&&(T=c.apply(this,arguments)),o<=1&&(c=e),T}}var w_=Ft(function(o,c,T){var y=A;if(T.length){var b=ec(T,Sd(w_));y|=ee}return io(o,y,c,T,b)}),JL=Ft(function(o,c,T){var y=A|U;if(T.length){var b=ec(T,Sd(JL));y|=ee}return io(c,y,o,T,b)});function HL(o,c,T){c=T?e:c;var y=io(o,j,e,e,e,e,e,c);return y.placeholder=HL.placeholder,y}function zL(o,c,T){c=T?e:c;var y=io(o,re,e,e,e,e,e,c);return y.placeholder=zL.placeholder,y}function WL(o,c,T){var y,b,P,M,$,H,Ne=0,Te=!1,Ie=!1,Fe=!0;if(typeof o!="function")throw new ds(i);c=Ts(c)||0,$n(T)&&(Te=!!T.leading,Ie="maxWait"in T,P=Ie?Sr(Ts(T.maxWait)||0,c):P,Fe="trailing"in T?!!T.trailing:Fe);function He(ir){var Ys=y,co=b;return y=b=e,Ne=ir,M=o.apply(co,Ys),M}function ot(ir){return Ne=ir,$=Dp(Ct,c),Te?He(ir):M}function At(ir){var Ys=ir-H,co=ir-Ne,TP=c-Ys;return Ie?Xr(TP,P-co):TP}function ut(ir){var Ys=ir-H,co=ir-Ne;return H===e||Ys>=c||Ys<0||Ie&&co>=P}function Ct(){var ir=mE();if(ut(ir))return qt(ir);$=Dp(Ct,At(ir))}function qt(ir){return $=e,Fe&&y?He(ir):(y=b=e,M)}function zi(){$!==e&&oL($),Ne=0,y=H=b=$=e}function yi(){return $===e?M:qt(mE())}function Wi(){var ir=mE(),Ys=ut(ir);if(y=arguments,b=this,H=ir,Ys){if($===e)return ot(H);if(Ie)return oL($),$=Dp(Ct,c),He(H)}return $===e&&($=Dp(Ct,c)),M}return Wi.cancel=zi,Wi.flush=yi,Wi}var Iz=Ft(function(o,c){return Vw(o,1,c)}),gz=Ft(function(o,c,T){return Vw(o,Ts(c)||0,T)});function _z(o){return io(o,xe)}function NE(o,c){if(typeof o!="function"||c!=null&&typeof c!="function")throw new ds(i);var T=function(){var y=arguments,b=c?c.apply(this,y):y[0],P=T.cache;if(P.has(b))return P.get(b);var M=o.apply(this,y);return T.cache=P.set(b,M)||P,M};return T.cache=new(NE.Cache||no),T}NE.Cache=no;function TE(o){if(typeof o!="function")throw new ds(i);return function(){var c=arguments;switch(c.length){case 0:return!o.call(this);case 1:return!o.call(this,c[0]);case 2:return!o.call(this,c[0],c[1]);case 3:return!o.call(this,c[0],c[1],c[2])}return!o.apply(this,c)}}function vz(o){return YL(2,o)}var Sz=lH(function(o,c){c=c.length==1&&It(c[0])?Bn(c[0],Yi(it())):Bn(Qr(c,1),Yi(it()));var T=c.length;return Ft(function(y){for(var b=-1,P=Xr(y.length,T);++b=c}),rl=Gw(function(){return arguments}())?Gw:function(o){return Wn(o)&&Nn.call(o,"callee")&&!ww.call(o,"callee")},It=se.isArray,Mz=fw?Yi(fw):YJ;function Li(o){return o!=null&&EE(o.length)&&!oo(o)}function rr(o){return Wn(o)&&Li(o)}function Vz(o){return o===!0||o===!1||Wn(o)&&Ei(o)==Pt}var oc=eJ||j_,qz=pw?Yi(pw):JJ;function $z(o){return Wn(o)&&o.nodeType===1&&!Op(o)}function jz(o){if(o==null)return!0;if(Li(o)&&(It(o)||typeof o=="string"||typeof o.splice=="function"||oc(o)||Dd(o)||rl(o)))return!o.length;var c=Zr(o);if(c==ft||c==Kr)return!o.size;if(Sp(o))return!o_(o).length;for(var T in o)if(Nn.call(o,T))return!1;return!0}function Kz(o,c){return gp(o,c)}function Gz(o,c,T){T=typeof T=="function"?T:e;var y=T?T(o,c):e;return y===e?gp(o,c,e,T):!!y}function P_(o){if(!Wn(o))return!1;var c=Ei(o);return c==$e||c==oe||typeof o.message=="string"&&typeof o.name=="string"&&!Op(o)}function Qz(o){return typeof o=="number"&&Pw(o)}function oo(o){if(!$n(o))return!1;var c=Ei(o);return c==et||c==Qt||c==Be||c==pd}function ZL(o){return typeof o=="number"&&o==Ot(o)}function EE(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=Sn}function $n(o){var c=typeof o;return o!=null&&(c=="object"||c=="function")}function Wn(o){return o!=null&&typeof o=="object"}var eP=mw?Yi(mw):zJ;function Yz(o,c){return o===c||a_(o,c,v_(c))}function Jz(o,c,T){return T=typeof T=="function"?T:e,a_(o,c,v_(c),T)}function Hz(o){return tP(o)&&o!=+o}function zz(o){if(PH(o))throw new yt(r);return Qw(o)}function Wz(o){return o===null}function Xz(o){return o==null}function tP(o){return typeof o=="number"||Wn(o)&&Ei(o)==Vt}function Op(o){if(!Wn(o)||Ei(o)!=Fi)return!1;var c=KT(o);if(c===null)return!0;var T=Nn.call(c,"constructor")&&c.constructor;return typeof T=="function"&&T instanceof T&&VT.call(T)==J2}var C_=Nw?Yi(Nw):WJ;function Zz(o){return ZL(o)&&o>=-Sn&&o<=Sn}var nP=Tw?Yi(Tw):XJ;function hE(o){return typeof o=="string"||!It(o)&&Wn(o)&&Ei(o)==Gi}function Hi(o){return typeof o=="symbol"||Wn(o)&&Ei(o)==Jt}var Dd=Ew?Yi(Ew):ZJ;function e6(o){return o===e}function t6(o){return Wn(o)&&Zr(o)==Yc}function n6(o){return Wn(o)&&Ei(o)==ga}var r6=uE(u_),i6=uE(function(o,c){return o<=c});function rP(o){if(!o)return[];if(Li(o))return hE(o)?Ks(o):wi(o);if(pp&&o[pp])return B2(o[pp]());var c=Zr(o),T=c==ft?Hg:c==Kr?kT:Od;return T(o)}function uo(o){if(!o)return o===0?o:0;if(o=Ts(o),o===Zt||o===-Zt){var c=o<0?-1:1;return c*Ti}return o===o?o:0}function Ot(o){var c=uo(o),T=c%1;return c===c?T?c-T:c:0}function iP(o){return o?Zc(Ot(o),0,Cn):0}function Ts(o){if(typeof o=="number")return o;if(Hi(o))return Lr;if($n(o)){var c=typeof o.valueOf=="function"?o.valueOf():o;o=$n(c)?c+"":c}if(typeof o!="string")return o===0?o:+o;o=vw(o);var T=MY.test(o);return T||qY.test(o)?y2(o.slice(2),T?2:8):xY.test(o)?Lr:+o}function sP(o){return va(o,Pi(o))}function s6(o){return o?Zc(Ot(o),-Sn,Sn):o===0?o:0}function sn(o){return o==null?"":Ji(o)}var a6=_d(function(o,c){if(Sp(c)||Li(c)){va(c,Cr(c),o);return}for(var T in c)Nn.call(c,T)&&hp(o,T,c[T])}),aP=_d(function(o,c){va(c,Pi(c),o)}),yE=_d(function(o,c,T,y){va(c,Pi(c),o,y)}),o6=_d(function(o,c,T,y){va(c,Cr(c),o,y)}),u6=so(t_);function c6(o,c){var T=gd(o);return c==null?T:xw(T,c)}var l6=Ft(function(o,c){o=_n(o);var T=-1,y=c.length,b=y>2?c[2]:e;for(b&&hi(c[0],c[1],b)&&(y=1);++T1),P}),va(o,g_(o),T),y&&(T=ps(T,d|f|E,gH));for(var b=c.length;b--;)p_(T,c[b]);return T});function A6(o,c){return uP(o,TE(it(c)))}var R6=so(function(o,c){return o==null?{}:nH(o,c)});function uP(o,c){if(o==null)return{};var T=Bn(g_(o),function(y){return[y]});return c=it(c),Zw(o,T,function(y,b){return c(y,b[0])})}function F6(o,c,T){c=sc(c,o);var y=-1,b=c.length;for(b||(b=1,o=e);++yc){var y=o;o=c,c=y}if(T||o%1||c%1){var b=Cw();return Xr(o+b*(c-o+h2("1e-"+((b+"").length-1))),c)}return l_(o,c)}var q6=vd(function(o,c,T){return c=c.toLowerCase(),o+(T?dP(c):c)});function dP(o){return k_(sn(o).toLowerCase())}function fP(o){return o=sn(o),o&&o.replace(jY,w2).replace(u2,"")}function $6(o,c,T){o=sn(o),c=Ji(c);var y=o.length;T=T===e?y:Zc(Ot(T),0,y);var b=T;return T-=c.length,T>=0&&o.slice(T,b)==c}function j6(o){return o=sn(o),o&&vY.test(o)?o.replace(jF,L2):o}function K6(o){return o=sn(o),o&&RY.test(o)?o.replace(Lg,"\\$&"):o}var G6=vd(function(o,c,T){return o+(T?"-":"")+c.toLowerCase()}),Q6=vd(function(o,c,T){return o+(T?" ":"")+c.toLowerCase()}),Y6=NL("toLowerCase");function J6(o,c,T){o=sn(o),c=Ot(c);var y=c?Ed(o):0;if(!c||y>=c)return o;var b=(c-y)/2;return oE(JT(b),T)+o+oE(YT(b),T)}function H6(o,c,T){o=sn(o),c=Ot(c);var y=c?Ed(o):0;return c&&y>>0,T?(o=sn(o),o&&(typeof c=="string"||c!=null&&!C_(c))&&(c=Ji(c),!c&&Td(o))?ac(Ks(o),0,T):o.split(c,T)):[]}var nW=vd(function(o,c,T){return o+(T?" ":"")+k_(c)});function rW(o,c,T){return o=sn(o),T=T==null?0:Zc(Ot(T),0,o.length),c=Ji(c),o.slice(T,T+c.length)==c}function iW(o,c,T){var y=L.templateSettings;T&&hi(o,c,T)&&(c=e),o=sn(o),c=yE({},c,y,_L);var b=yE({},c.imports,y.imports,_L),P=Cr(b),M=Jg(b,P),$,H,Ne=0,Te=c.interpolate||LT,Ie="__p += '",Fe=zg((c.escape||LT).source+"|"+Te.source+"|"+(Te===KF?kY:LT).source+"|"+(c.evaluate||LT).source+"|$","g"),He="//# sourceURL="+(Nn.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++p2+"]")+` +`;o.replace(Fe,function(ut,Ct,qt,zi,yi,Wi){return qt||(qt=zi),Ie+=o.slice(Ne,Wi).replace(KY,P2),Ct&&($=!0,Ie+=`' + +__e(`+Ct+`) + +'`),yi&&(H=!0,Ie+=`'; +`+yi+`; +__p += '`),qt&&(Ie+=`' + +((__t = (`+qt+`)) == null ? '' : __t) + +'`),Ne=Wi+ut.length,ut}),Ie+=`'; +`;var ot=Nn.call(c,"variable")&&c.variable;if(!ot)Ie=`with (obj) { +`+Ie+` } -`;else if(uK.test(et))throw new dt(a);Te=(J?Te.replace(_n,""):Te).replace(sn,"$1").replace(Jj,"$1;"),Te="function("+(et||"obj")+`) { -`+(et?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(V?", __e = _.escape":"")+(J?`, __j = Array.prototype.join; +`;else if(UY.test(ot))throw new yt(s);Ie=(H?Ie.replace(Un,""):Ie).replace(mn,"$1").replace(gY,"$1;"),Ie="function("+(ot||"obj")+`) { +`+(ot?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+($?", __e = _.escape":"")+(H?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+Te+`return __p -}`;var yt=LR(function(){return Qt(L,$e+"return "+Te).apply(e,k)});if(yt.source=Te,Ay(yt))throw yt;return yt}function wJ(s){return zt(s).toLowerCase()}function LJ(s){return zt(s).toUpperCase()}function CJ(s,u,f){if(s=zt(s),s&&(f||u===e))return j0(s);if(!s||!(u=ci(u)))return s;var h=na(s),O=na(u),L=K0(h,O),k=G0(h,O)+1;return au(h,L,k).join("")}function BJ(s,u,f){if(s=zt(s),s&&(f||u===e))return s.slice(0,Q0(s)+1);if(!s||!(u=ci(u)))return s;var h=na(s),O=G0(h,na(u))+1;return au(h,0,O).join("")}function UJ(s,u,f){if(s=zt(s),s&&(f||u===e))return s.replace(Ah,"");if(!s||!(u=ci(u)))return s;var h=na(s),O=K0(h,na(u));return au(h,O).join("")}function kJ(s,u){var f=Ze,h=Z;if(bn(u)){var O="separator"in u?u.separator:O;f="length"in u?Et(u.length):f,h="omission"in u?ci(u.omission):h}s=zt(s);var L=s.length;if(Xc(s)){var k=na(s);L=k.length}if(f>=L)return s;var V=f-Zc(h);if(V<1)return h;var J=k?au(k,0,V).join(""):s.slice(0,V);if(O===e)return J+h;if(k&&(V+=J.length-V),Ry(O)){if(s.slice(V).search(O)){var le,de=J;for(O.global||(O=$h(O.source,zt(l0.exec(O))+"g")),O.lastIndex=0;le=O.exec(de);)var Te=le.index;J=J.slice(0,Te===e?V:Te)}}else if(s.indexOf(ci(O),V)!=V){var be=J.lastIndexOf(O);be>-1&&(J=J.slice(0,be))}return J+h}function MJ(s){return s=zt(s),s&&Hj.test(s)?s.replace(o0,pG):s}var xJ=al(function(s,u,f){return s+(f?" ":"")+u.toUpperCase()}),wy=CA("toUpperCase");function wR(s,u,f){return s=zt(s),u=f?e:u,u===e?uG(s)?TG(s):ZK(s):s.match(u)||[]}var LR=gt(function(s,u){try{return oi(s,e,u)}catch(f){return Ay(f)?f:new dt(f)}}),qJ=ms(function(s,u){return gi(u,function(f){f=Ca(f),fs(s,f,Dy(s[f],s))}),s});function VJ(s){var u=s==null?0:s.length,f=We();return s=u?vn(s,function(h){if(typeof h[1]!="function")throw new _i(i);return[f(h[0]),h[1]]}):[],gt(function(h){for(var O=-1;++OTn)return[];var f=gn,h=Or(s,gn);u=We(u),s-=gn;for(var O=jh(h,u);++f0||u<0)?new bt(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),u!==e&&(u=Et(u),f=u<0?f.dropRight(-u):f.take(u-s)),f)},bt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},bt.prototype.toArray=function(){return this.take(gn)},wa(bt.prototype,function(s,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),h=/^(?:head|last)$/.test(u),O=F[h?"take"+(u=="last"?"Right":""):u],L=h||/^find/.test(u);O&&(F.prototype[u]=function(){var k=this.__wrapped__,V=h?[1]:arguments,J=k instanceof bt,le=V[0],de=J||ft(k),Te=function(Dt){var Ft=O.apply(F,Xo([Dt],V));return h&&be?Ft[0]:Ft};de&&f&&typeof le=="function"&&le.length!=1&&(J=de=!1);var be=this.__chain__,$e=!!this.__actions__.length,et=L&&!be,yt=J&&!$e;if(!L&&de){k=yt?k:new bt(this);var tt=s.apply(k,V);return tt.__actions__.push({func:vm,args:[Te],thisArg:e}),new vi(tt,be)}return et&&yt?s.apply(this,V):(tt=this.thru(Te),et?h?tt.value()[0]:tt.value():tt)})}),gi(["pop","push","shift","sort","splice","unshift"],function(s){var u=Hp[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",h=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var O=arguments;if(h&&!this.__chain__){var L=this.value();return u.apply(ft(L)?L:[],O)}return this[f](function(k){return u.apply(ft(k)?k:[],O)})}}),wa(bt.prototype,function(s,u){var f=F[u];if(f){var h=f.name+"";on.call(nl,h)||(nl[h]=[]),nl[h].push({name:u,func:f})}}),nl[Tm(e,U).name]=[{name:"wrapper",func:e}],bt.prototype.clone=MG,bt.prototype.reverse=xG,bt.prototype.value=qG,F.prototype.at=NY,F.prototype.chain=TY,F.prototype.commit=EY,F.prototype.next=hY,F.prototype.plant=IY,F.prototype.reverse=gY,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=_Y,F.prototype.first=F.prototype.head,_d&&(F.prototype[_d]=yY),F},eu=EG();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(dr._=eu,define(function(){return eu})):ku?((ku.exports=eu)._=eu,Ch._=eu):dr._=eu}).call(cd)});var hV=w(qc=>{"use strict";m();T();N();Object.defineProperty(qc,"__esModule",{value:!0});qc.FederationFactory=void 0;qc.federateSubgraphs=hfe;qc.federateSubgraphsWithContracts=yfe;qc.federateSubgraphsContract=Ife;var Re=Oe(),mV=Iu(),Kr=Pr(),Pe=qi(),Mc=oT(),xc=rd(),Gr=lp(),YE=iE(),yp=gu(),mfe=rb(),Nfe=dp(),NV=Uf(),ge=Ul(),Tfe=sb(),TV=pV(),ld=QE(),ve=zn(),JE=wl(),Ne=Fr(),Efe=fp(),Fu=kf(),zE,EV,HE=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,disableResolvabilityValidation:r,entityDataByTypeName:i,entityInterfaceFederationDataByTypeName:a,fieldCoordsByNamedTypeName:o,internalGraph:c,internalSubgraphBySubgraphName:l,warnings:d}){Yu(this,zE);_(this,"authorizationDataByParentTypeName");_(this,"coordsByNamedTypeName",new Map);_(this,"disableResolvabilityValidation",!1);_(this,"directiveDefinitionByName",new Map);_(this,"clientDefinitions",[]);_(this,"currentSubgraphName","");_(this,"concreteTypeNamesByAbstractTypeName");_(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);_(this,"entityDataByTypeName");_(this,"entityInterfaceFederationDataByTypeName");_(this,"errors",[]);_(this,"fieldConfigurationByFieldCoords",new Map);_(this,"fieldCoordsByNamedTypeName");_(this,"inaccessibleCoords",new Set);_(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);_(this,"internalGraph");_(this,"internalSubgraphBySubgraphName");_(this,"invalidORScopesCoords",new Set);_(this,"isMaxDepth",!1);_(this,"isVersionTwo",!1);_(this,"namedInputValueTypeNames",new Set);_(this,"namedOutputTypeNames",new Set);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"parentTagDataByTypeName",new Map);_(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[ve.AUTHENTICATED,Fu.AUTHENTICATED_DEFINITION],[ve.DEPRECATED,Fu.DEPRECATED_DEFINITION],[ve.INACCESSIBLE,Fu.INACCESSIBLE_DEFINITION],[ve.ONE_OF,Fu.ONE_OF_DEFINITION],[ve.REQUIRES_SCOPES,Fu.REQUIRES_SCOPES_DEFINITION],[ve.SEMANTIC_NON_NULL,Fu.SEMANTIC_NON_NULL_DEFINITION],[ve.TAG,Fu.TAG_DEFINITION]]));_(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);_(this,"referencedPersistedDirectiveNames",new Set);_(this,"routerDefinitions",[]);_(this,"subscriptionFilterDataByFieldPath",new Map);_(this,"tagNamesByCoords",new Map);_(this,"warnings");this.authorizationDataByParentTypeName=t,this.concreteTypeNamesByAbstractTypeName=n,this.disableResolvabilityValidation=r!=null?r:!1,this.entityDataByTypeName=i,this.entityInterfaceFederationDataByTypeName=a,this.fieldCoordsByNamedTypeName=o,this.internalGraph=c,this.internalSubgraphBySubgraphName=l,this.warnings=d}extractPersistedDirectives({data:t,directivesByName:n}){for(let[r,i]of n)if(this.persistedDirectiveDefinitionByDirectiveName.get(r)&&(this.referencedPersistedDirectiveNames.add(r),!(ve.AUTHORIZATION_DIRECTIVES.has(r)||i.length<1)))switch(r){case ve.DEPRECATED:{t.isDeprecated=!0,(0,ge.upsertDeprecatedDirective)(t,i[0]);break}case ve.TAG:{(0,ge.upsertTagDirectives)(t,i);break}default:{let o=t.directivesByName.get(r);if(!o){t.directivesByName.set(r,[...i]);break}if(ve.NON_REPEATABLE_PERSISTED_DIRECTIVES.has(r))break;o.push(...i)}}return t}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,ge.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let c of t.implementedInterfaceTypeNames){n.push((0,Kr.stringToNamedTypeNode)(c));let l=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,c,ve.PARENT_DEFINITION_DATA);if(l.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,Ne.kindToNodeType)(l.kind));continue}let d={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[E,I]of l.fieldDataByName){let v=!1,A=t.fieldDataByName.get(E);if(!A){p=!0,d.unimplementedFields.push(E);continue}let U={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,YE.printTypeNode)(I.node.type),unimplementedArguments:new Set};(0,ge.isTypeValidImplementation)(I.node.type,A.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,v=!0,U.implementedResponseType=(0,YE.printTypeNode)(A.node.type));let j=new Set;for(let[$,re]of I.argumentDataByName){let ee=re.node;j.add($);let me=(o=A.argumentDataByName.get($))==null?void 0:o.node;if(!me){p=!0,v=!0,U.unimplementedArguments.add($);continue}let ue=(0,YE.printTypeNode)(me.type),Ae=(0,YE.printTypeNode)(ee.type);Ae!==ue&&(p=!0,v=!0,U.invalidImplementedArguments.push({actualType:ue,argumentName:$,expectedType:Ae}))}for(let[$,re]of A.argumentDataByName){let ee=re.node;j.has($)||ee.type.kind===Re.Kind.NON_NULL_TYPE&&(p=!0,v=!0,U.invalidAdditionalArguments.add($))}!r&&A.isInaccessible&&!I.isInaccessible&&(p=!0,v=!0,U.isInaccessible=!0),v&&d.invalidFieldImplementations.set(E,U)}p&&i.set(c,d)}return a.size>0&&this.errors.push((0,Pe.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,Pe.invalidInterfaceImplementationError)(t.node.name.value,(0,Ne.kindToNodeType)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var p;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,Ne.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,a=i.get(n.typeName);if(!a||a.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)throw(0,Pe.incompatibleParentKindFatalError)(n.typeName,Re.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Re.Kind.NULL);let o=r.configurationDataByTypeName.get(n.typeName);if(!o)return;let c=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,Mc.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[E,I]of this.entityInterfaceFederationDataByTypeName){if(!((p=I.concreteTypeNames)!=null&&p.has(n.typeName)))continue;let v=this.entityDataByTypeName.get(E);v&&(0,Mc.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:v,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(c.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=c;return}let d=new Set(o.keys.map(E=>E.selectionSet));for(let E of c)d.has(E.selectionSet)||(o.keys.push(E),d.add(E.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let a=t.parentDefinitionDataByTypeName,o=a.get(n);if(!o||!(0,ge.isParentDataCompositeOutputType)(o))throw(0,Pe.incompatibleParentKindFatalError)(n,Re.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Re.Kind.NULL);let c=(0,Ne.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,Mc.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoordinates,currentSubgraphName:t.name,entityData:r,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,graphNode:i}),l.length<1)return;if(!c.keys||c.keys.length<1){c.isRootNode=!0,c.keys=l;return}let d=new Set(c.keys.map(p=>p.selectionSet));for(let p of l)d.has(p.selectionSet)||(c.keys.push(p),d.add(p.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?ge.MergeMethod.CONSISTENT:ge.MergeMethod.INTERSECTION:ge.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByCoords){let r=t.split(ve.LITERAL_PERIOD);if(r.length<1)continue;let i=(0,Ne.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,Mc.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let a=(0,Ne.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Mc.newChildTagData)(r[1]));for(let l of n)a.tagNames.add(l);break;case 3:let o=(0,Ne.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Mc.newChildTagData)(r[1])),c=(0,Ne.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)c.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),a=i||this.copyEnumValueData(n);this.extractPersistedDirectives({data:a.persistedDirectivesData,directivesByName:n.directivesByName});let o=(0,ge.isNodeDataInaccessible)(n);if((r||o)&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}a.appearances+=1,(0,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),(0,Ne.addIterableToSet)({source:n.subgraphNames,target:a.subgraphNames})}upsertInputValueData(t,n,r,i){let a=t.get(n.name),o=a||this.copyInputValueData(n);if(this.extractPersistedDirectives({data:o.persistedDirectivesData,directivesByName:n.directivesByName}),this.recordTagNamesByCoords(o,`${r}.${o.name}`),this.namedInputValueTypeNames.add(o.namedTypeName),(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){t.set(o.name,o);return}(0,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(o,n),(0,Ne.addIterableToSet)({source:n.requiredSubgraphNames,target:o.requiredSubgraphNames}),(0,Ne.addIterableToSet)({source:n.subgraphNames,target:o.subgraphNames}),this.handleInputValueInaccessibility(i,o,r);let c=(0,ld.getMostRestrictiveMergedTypeNode)(o.type,n.type,o.originalCoords,this.errors);c.success?o.type=c.typeNode:this.errors.push((0,Pe.incompatibleMergedTypesError)({actualType:c.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:c.expectedType})),(0,ge.compareAndValidateInputValueDefaultValues)(o,n,this.errors)}handleInputValueInaccessibility(t,n,r){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(n.federatedCoords),this.inaccessibleCoords.add(n.federatedCoords);return}if((0,ge.isNodeDataInaccessible)(n)){if((0,ge.isTypeRequired)(n.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(n.federatedCoords,(0,Pe.inaccessibleRequiredInputValueError)(n,r));return}this.inaccessibleCoords.add(n.federatedCoords)}}handleSubscriptionFilterDirective(t,n){let r=t.directivesByName.get(ve.SUBSCRIPTION_FILTER);if(!r)return;let i=(0,Ne.getFirstEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,Pe.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:r[0],fieldData:n||t,directiveSubgraphName:i})}federateOutputType({current:t,other:n,coords:r,mostRestrictive:i}){n=(0,mV.getMutableTypeNode)(n,r,this.errors);let a={kind:t.kind},o=ld.DivergentType.NONE,c=a;for(let l=0;lnew Set)})}upsertFieldData(t,n,r){let i=t.get(n.name),a=i||this.copyFieldData(n,r||(0,ge.isNodeDataInaccessible)(n));(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,n.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(n.namedTypeName),this.handleSubscriptionFilterDirective(n,a),this.extractPersistedDirectives({data:a.persistedDirectivesData,directivesByName:n.directivesByName});let o=r||(0,ge.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let c=this.federateOutputType({current:a.type,other:n.type,coords:a.federatedCoords,mostRestrictive:!1});if(c.success)if(a.type=c.typeNode,a.namedTypeName!==n.namedTypeName){let l=(0,Ne.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),d=(0,Ne.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(d.size<1)for(let p of a.subgraphNames)n.subgraphNames.has(p)||d.add(p);(0,Ne.addIterableToSet)({source:n.subgraphNames,target:(0,Ne.getValueOrDefault)(l,n.namedTypeName,()=>new Set)})}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(n);for(let l of n.argumentDataByName.values())this.upsertInputValueData(a.argumentDataByName,l,a.federatedCoords,o);(0,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),a.isInaccessible||(a.isInaccessible=n.isInaccessible),(0,Ne.addNewObjectValueMapEntries)(n.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,Ne.addMapEntries)({source:n.isShareableBySubgraphName,target:a.isShareableBySubgraphName}),(0,Ne.addMapEntries)({source:n.nullLevelsBySubgraphName,target:a.nullLevelsBySubgraphName}),(0,Ne.addIterableToSet)({source:n.subgraphNames,target:a.subgraphNames})}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(r)||n.push(i);return n}recordTagNamesByCoords(t,n){let r=n||t.name;if(t.persistedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,Ne.getValueOrDefault)(this.tagNamesByCoords,r,()=>new Set);for(let a of t.persistedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,Ne.copyArrayValueMap)(t.directivesByName),extensionType:t.extensionType,name:t.name,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByName:(0,Ne.copyArrayValueMap)(t.directivesByName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,Kr.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),subgraphNames:new Set(t.subgraphNames),description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,Ne.copyArrayValueMap)(t.directivesByName),federatedCoords:t.federatedCoords,fieldName:t.fieldName,includeDefaultValue:t.includeDefaultValue,isArgument:t.isArgument,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:Re.Kind.INPUT_VALUE_DEFINITION,name:(0,Kr.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,n,r){let i=new Map;for(let[a,o]of t){let c=this.copyInputValueData(o);this.handleInputValueInaccessibility(n,c,r),(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedInputValueTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,`${r}.${o.name}`),i.set(a,c)}return i}copyFieldData(t,n){return{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,n,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,Ne.copyArrayValueMap)(t.directivesByName),externalFieldDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.externalFieldDataBySubgraphName),federatedCoords:t.federatedCoords,inheritedDirectiveNames:new Set,isInaccessible:t.isInaccessible,isShareableBySubgraphName:new Map(t.isShareableBySubgraphName),kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{arguments:[],directives:[],kind:t.kind,name:(0,Kr.stringToNameNode)(t.name),type:t.type},nullLevelsBySubgraphName:t.nullLevelsBySubgraphName,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=this.copyEnumValueData(a);this.recordTagNamesByCoords(o,o.federatedCoords),(n||(0,ge.isNodeDataInaccessible)(o))&&this.inaccessibleCoords.add(o.federatedCoords),r.set(i,o)}return r}copyFieldDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=n||(0,ge.isNodeDataInaccessible)(a),c=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(c),(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedOutputTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,c.federatedCoords),o&&this.inaccessibleCoords.add(c.federatedCoords),r.set(i,c)}return r}copyParentDefinitionData(t){let n=this.copyMutualParentDefinitionData(t);switch(t.kind){case Re.Kind.ENUM_TYPE_DEFINITION:return Q(M({},n),{appearances:t.appearances,enumValueDataByName:this.copyEnumValueDataByName(t.enumValueDataByName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:return Q(M({},n),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INTERFACE_TYPE_DEFINITION:return Q(M({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Kr.stringToNameNode)(t.name)},requireFetchReasonsFieldNames:new Set,subgraphNames:new Set(t.subgraphNames)});case Re.Kind.OBJECT_TYPE_DEFINITION:return Q(M({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,isRootType:t.isRootType,kind:t.kind,node:{kind:t.kind,name:(0,Kr.stringToNameNode)(t.renamedTypeName||t.name)},requireFetchReasonsFieldNames:new Set,renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Re.Kind.SCALAR_TYPE_DEFINITION:return Q(M({},n),{kind:t.kind,node:{kind:t.kind,name:(0,Kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.UNION_TYPE_DEFINITION:return Q(M({},n),{kind:t.kind,node:{kind:t.kind,name:(0,Kr.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:n}){if(!t){let r=this.copyParentDefinitionData(n);return(0,ge.isParentDataRootType)(r)&&(r.extensionType=NV.ExtensionType.NONE),r}return this.extractPersistedDirectives({data:t.persistedDirectivesData,directivesByName:n.directivesByName}),t}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),a=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(a);let o=(0,ge.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),r&&r.interfaceObjectSubgraphNames.has(n)){if(i&&i.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,Pe.incompatibleParentTypeMergeError)({existingData:i,incomingSubgraphName:n}));return}a.kind=Re.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Re.Kind.INTERFACE_TYPE_DEFINITION}if(!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphNames.has(n)||a.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Pe.incompatibleParentTypeMergeError)({existingData:a,incomingNodeType:(0,Ne.kindToNodeType)(t.kind),incomingSubgraphName:n}));return}switch((0,Ne.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,t),(0,ge.setParentDataExtensionType)(a,t),a.kind){case Re.Kind.ENUM_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;a.appearances+=1,a.isInaccessible||(a.isInaccessible=o),(0,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});for(let l of t.enumValueDataByName.values())this.upsertEnumValueData(a.enumValueDataByName,l,o);return;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});for(let l of t.inputValueDataByName.values())this.upsertInputValueData(a.inputValueDataByName,l,a.name,a.isInaccessible);return;case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:let c=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,Ne.addIterableToSet)({source:c.implementedInterfaceTypeNames,target:a.implementedInterfaceTypeNames}),(0,Ne.addIterableToSet)({source:c.subgraphNames,target:a.subgraphNames});for(let l of c.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case Re.Kind.UNION_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;(0,Ne.addMapEntries)({source:t.memberByMemberTypeName,target:a.memberByMemberTypeName}),(0,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return;default:(0,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByName.values())this.inaccessibleCoords.add(n.federatedCoords);break;default:for(let n of t.fieldDataByName.values()){this.inaccessibleCoords.add(n.federatedCoords);for(let r of n.argumentDataByName.values())this.inaccessibleCoords.add(r.federatedCoords)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let a=new Map;for(let o of t.argumentDataByName.values())this.namedInputValueTypeNames.add(o.namedTypeName),this.upsertInputValueData(a,o,`@${t.name}`,!1);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByName:a,executableLocations:new Set(t.executableLocations),name:r,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(i.subgraphNames.size+1!==n){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}if((0,ge.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let a of t.argumentDataByName.values())this.namedInputValueTypeNames.add((0,mV.getTypeNodeNamedTypeName)(a.type)),this.upsertInputValueData(i.argumentDataByName,a,`@${i.name}`,!1);(0,ge.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,Ne.addIterableToSet)({source:t.subgraphNames,target:i.subgraphNames})}shouldUpdateFederatedFieldAbstractNamedType(t,n){if(!t)return!1;let r=this.concreteTypeNamesByAbstractTypeName.get(t);if(!r||r.size<1)return!1;for(let i of n)if(!r.has(i))return!1;return!0}updateTypeNodeNamedType(t,n){let r=t;for(let i=0;i1){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case Re.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=p;break}default:{this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<1&&!l){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let d=l;if(o.size>0){if(l){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let p of o.keys()){d=p;for(let[E,I]of o)if(p!==E&&!I.implementedInterfaceTypeNames.has(p)){d="";break}if(d)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(d,c)){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}a.namedTypeName=d,this.updateTypeNodeNamedType(a.type,d)}}federateInternalSubgraphData(){let t=0,n=!1;for(let r of this.internalSubgraphBySubgraphName.values()){t+=1,this.currentSubgraphName=r.name,this.isVersionTwo||(this.isVersionTwo=r.isVersionTwo),(0,Tfe.renameRootTypes)(this,r);for(let i of r.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(i,r.name);if(!n){if(!r.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let i of r.persistedDirectiveDefinitionDataByDirectiveName.values())this.upsertPersistedDirectiveDefinitionData(i,t);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size<1&&(n=!0)}}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:a,subgraphName:o}){let c=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let p of i.satisfiedFieldSets)c.satisfiedFieldSets.add(p),a.has(p)&&l.addTargetSubgraphByFieldSet(p,o);let d=r.fieldDatasBySubgraphName.get(o);for(let{name:p,namedTypeName:E}of d||[])this.internalGraph.addEdge(c,this.internalGraph.addOrUpdateNode(E),p);this.internalGraph.addEdge(i,c,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,c)}handleEntityInterfaces(){var t;for(let[n,r]of this.entityInterfaceFederationDataByTypeName){let i=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,n,ve.PARENT_DEFINITION_DATA);if(i.kind===Re.Kind.INTERFACE_TYPE_DEFINITION)for(let a of r.interfaceObjectSubgraphNames){let o=(0,Ne.getOrThrowError)(this.internalSubgraphBySubgraphName,a,"internalSubgraphBySubgraphName"),c=o.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(n);if(!l)continue;let d=(0,Ne.getOrThrowError)(c,n,"configurationDataByTypeName"),p=d.keys;if(!p)continue;d.entityInterfaceConcreteTypeNames=new Set(r.concreteTypeNames),this.internalGraph.setSubgraphName(a);let E=this.internalGraph.addOrUpdateNode(n,{isAbstract:!0});for(let I of l){let v=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,I,ve.PARENT_DEFINITION_DATA);if(!(0,Gr.isObjectDefinitionData)(v))continue;let A=(0,Ne.getOrThrowError)(this.entityDataByTypeName,I,"entityDataByTypeName");A.subgraphNames.add(a);let U=c.get(I);if(U)if((0,Ne.addIterableToSet)({source:d.fieldNames,target:U.fieldNames}),!U.keys)U.keys=[...p];else e:for(let ee of p){for(let{selectionSet:me}of U.keys)if(ee.selectionSet===me)continue e;U.keys.push(ee)}else c.set(I,{fieldNames:new Set(d.fieldNames),isRootNode:!0,keys:[...p],typeName:I});let j=new Set;for(let ee of p.filter(me=>!me.disableEntityResolver))j.add(ee.selectionSet);let $=this.authorizationDataByParentTypeName.get(n),re=(0,Ne.getOrThrowError)(o.parentDefinitionDataByTypeName,n,"internalSubgraph.parentDefinitionDataByTypeName");if((0,Gr.isObjectDefinitionData)(re)){for(let[ee,me]of re.fieldDataByName){let ue=`${I}.${ee}`;(0,Ne.getValueOrDefault)(this.fieldCoordsByNamedTypeName,me.namedTypeName,()=>new Set).add(ue);let Ae=$==null?void 0:$.fieldAuthDataByFieldName.get(ee);if(Ae){let Z=(0,Ne.getValueOrDefault)(this.authorizationDataByParentTypeName,I,()=>(0,Gr.newAuthorizationData)(I));(0,Gr.upsertFieldAuthorizationData)(Z.fieldAuthDataByFieldName,Ae)||this.invalidORScopesCoords.add(ue)}let xe=v.fieldDataByName.get(ee);if(xe){let Z=(t=me.isShareableBySubgraphName.get(a))!=null?t:!1;xe.isShareableBySubgraphName.set(a,Z),xe.subgraphNames.add(a);let _e=me.externalFieldDataBySubgraphName.get(a);if(!_e)continue;xe.externalFieldDataBySubgraphName.set(a,M({},_e));continue}let Ze=i.isInaccessible||v.isInaccessible||me.isInaccessible;v.fieldDataByName.set(ee,this.copyFieldData(me,Ze))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:o,subgraphName:a,interfaceObjectData:r,interfaceObjectNode:E,resolvableKeyFieldSets:j,entityData:A})}}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,Gr.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t){var i;let n=(0,Gr.getNodeCoords)(t),r=[];for(let[a,o]of t.persistedDirectivesData.directivesByName){if(a===ve.SEMANTIC_NON_NULL&&(0,ge.isFieldData)(t)){r.push((0,Ne.generateSemanticNonNullDirective)((i=(0,Ne.getFirstEntry)(t.nullLevelsBySubgraphName))!=null?i:new Set([0])));continue}let c=this.persistedDirectiveDefinitionByDirectiveName.get(a);if(c){if(o.length<2){r.push(...o);continue}if(!c.repeatable){this.errors.push((0,Pe.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}r.push(...o)}}return r}getRouterPersistedDirectiveNodes(t){let n=[...t.persistedDirectivesData.tagDirectiveByName.values()];return t.persistedDirectivesData.isDeprecated&&n.push((0,ge.generateDeprecatedDirective)(t.persistedDirectivesData.deprecatedReason)),n.push(...this.getValidFlattenedPersistedDirectiveNodeArray(t)),n}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let n=[],r="";for(let[i,{propagate:a,description:o}]of t.configureDescriptionDataBySubgraphName)a&&(n.push(i),r=o);if(n.length===1)return(0,Mc.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,Pe.configureDescriptionPropagationError)((0,ge.getDefinitionDataCoords)(t,!0),n))}getNodeForRouterSchemaByData(t){return t.node.name=(0,Kr.stringToNameNode)(t.name),t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}getNodeWithPersistedDirectivesByInputValueData(t){return t.node.name=(0,Kr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.includeDefaultValue&&(t.node.defaultValue=t.defaultValue),t.node}getValidFieldArgumentNodes(t){let n=[],r=[],i=[],a=`${t.renamedParentTypeName}.${t.name}`;for(let[o,c]of t.argumentDataByName)t.subgraphNames.size===c.subgraphNames.size?(r.push(o),n.push(this.getNodeWithPersistedDirectivesByInputValueData(c))):(0,ge.isTypeRequired)(c.type)&&i.push({inputValueName:o,missingSubgraphs:(0,Ne.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames),requiredSubgraphs:[...c.requiredSubgraphNames]});return i.length>0?this.errors.push((0,Pe.invalidRequiredInputValueError)(ve.FIELD,a,i)):r.length>0&&((0,Ne.getValueOrDefault)(this.fieldConfigurationByFieldCoords,a,()=>({argumentNames:r,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=r),n}getNodeWithPersistedDirectivesByFieldData(t,n){return t.node.arguments=n,t.node.name=(0,Kr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}validateSemanticNonNull(t){let n;for(let r of t.nullLevelsBySubgraphName.values()){if(!n){n=r;continue}if(n.size!==r.size){this.errors.push((0,Pe.semanticNonNullInconsistentLevelsError)(t));return}for(let i of r)if(!n.has(i)){this.errors.push((0,Pe.semanticNonNullInconsistentLevelsError)(t));return}}}validateOneOfDirective({data:t,inputValueNodes:n,requiredFieldNames:r}){return t.directivesByName.has(ve.ONE_OF)?r.size>0?(this.errors.push((0,Pe.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(r),typeName:t.name})),!1):(n.length===1&&this.warnings.push((0,Efe.singleFederatedInputFieldOneOfWarning)({fieldName:n[0].name.value,typeName:t.name})),!0):!0}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==NV.ExtensionType.NONE&&this.errors.push((0,Pe.noBaseDefinitionForExtensionError)((0,Ne.kindToNodeType)(r.kind),n)),r.kind){case Re.Kind.ENUM_TYPE_DEFINITION:{if(xc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=[],a=[],o=this.getEnumValueMergeMethod(n);(0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let c of r.enumValueDataByName.values()){let l=this.getNodeForRouterSchemaByData(c),d=(0,ge.isNodeDataInaccessible)(c),p=Q(M({},c.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(c)});switch(o){case ge.MergeMethod.CONSISTENT:!d&&r.appearances>c.appearances&&this.errors.push((0,Pe.incompatibleSharedEnumError)(n)),i.push(l),d||a.push(p);break;case ge.MergeMethod.INTERSECTION:r.appearances===c.appearances&&(i.push(l),d||a.push(p));break;default:i.push(l),d||a.push(p);break}}if(r.node.values=i,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){this.errors.push((0,Pe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,ve.ENUM_VALUE));break}this.clientDefinitions.push(Q(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),values:a}));break}case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(xc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=new Array,a=new Array,o=new Array,c=new Set;for(let[l,d]of r.inputValueDataByName)if((0,ge.isTypeRequired)(d.type)&&c.add(l),r.subgraphNames.size===d.subgraphNames.size){if(a.push(this.getNodeWithPersistedDirectivesByInputValueData(d)),(0,ge.isNodeDataInaccessible)(d))continue;o.push(Q(M({},d.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(d)}))}else(0,ge.isTypeRequired)(d.type)&&i.push({inputValueName:l,missingSubgraphs:(0,Ne.getEntriesNotInHashSet)(r.subgraphNames,d.subgraphNames),requiredSubgraphs:[...d.requiredSubgraphNames]});if(i.length>0){this.errors.push((0,Pe.invalidRequiredInputValueError)(ve.INPUT_OBJECT,n,i,!1));break}if(!this.validateOneOfDirective({data:r,inputValueNodes:a,requiredFieldNames:c}))break;if(r.node.fields=a,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(o.length<1){this.errors.push((0,Pe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,"Input field"));break}this.clientDefinitions.push(Q(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:o}));break}case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:{let i=[],a=[],o=new Map,c=(0,ge.newInvalidFieldNames)(),l=r.kind===Re.Kind.OBJECT_TYPE_DEFINITION,d=this.authorizationDataByParentTypeName.get(n);(0,ge.propagateAuthDirectives)(r,d);for(let[E,I]of r.fieldDataByName){(0,ge.propagateFieldAuthDirectives)(I,d);let v=this.getValidFieldArgumentNodes(I);l&&(0,ge.validateExternalAndShareable)(I,c),this.validateSemanticNonNull(I),i.push(this.getNodeWithPersistedDirectivesByFieldData(I,v)),!(0,ge.isNodeDataInaccessible)(I)&&(a.push((0,ge.getClientSchemaFieldNodeByFieldData)(I)),o.set(E,this.fieldDataToGraphFieldData(I)))}if(l&&(c.byShareable.size>0&&this.errors.push((0,Pe.invalidFieldShareabilityError)(r,c.byShareable)),c.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Pe.allExternalFieldInstancesError)(n,c.subgraphNamesByExternalFieldName))),r.node.fields=i,this.internalGraph.initializeNode(n,o),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:a});break}this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r));let p=(0,Nfe.isNodeQuery)(n);if((0,ge.isNodeDataInaccessible)(r)){if(p){this.errors.push(Pe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){let E=p?(0,Pe.noQueryRootTypeError)(!1):(0,Pe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,ve.FIELD);this.errors.push(E);break}this.clientDefinitions.push(Q(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:a}));break}case Re.Kind.SCALAR_TYPE_DEFINITION:{if(xc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;if((0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n)),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(Q(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r)}));break}case Re.Kind.UNION_TYPE_DEFINITION:{if(r.node.types=(0,Gr.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let i=this.getClientSchemaUnionMembers(r);if(i.length<1){this.errors.push((0,Pe.allChildDefinitionsAreInaccessibleError)(ve.UNION,n,"union member type"));break}this.clientDefinitions.push(Q(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),types:i}));break}}}pushNamedTypeAuthDataToFields(){var t;for(let[n,r]of this.authorizationDataByParentTypeName){if(!r.requiresAuthentication&&r.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(n);if(i)for(let a of i){let o=a.split(ve.LITERAL_PERIOD);switch(o.length){case 2:{let c=(0,Ne.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,Gr.newAuthorizationData)(o[0])),l=(0,Ne.getValueOrDefault)(c.fieldAuthDataByFieldName,o[1],()=>(0,Gr.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>yp.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,Gr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,Gr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),cl(this,zE,EV).call(this),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(n)),(0,ge.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let a of n.implementedInterfaceTypeNames)this.inaccessibleCoords.has(a)||i.push((0,Kr.stringToNamedTypeNode)(a));this.clientDefinitions.push(Q(M({},n.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(ve.LEFT_PARENTHESIS)[0].split(ve.LITERAL_PERIOD),i=r[0];for(let a=0;a0&&this.errors.push((0,Pe.invalidReferencesOfInaccessibleTypeError)((0,Ne.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(ve.QUERY);if(!t||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,Pe.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,ge.isNodeDataInaccessible)(n))return;this.errors.push((0,Pe.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,a){let o=t.split(ve.LITERAL_PERIOD);if(o.length<1)return a.push((0,Pe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let c=n;if(this.inaccessibleCoords.has(c.renamedTypeName))return a.push((0,Pe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],c.renamedTypeName)),[];let l="";for(let d=0;d0?`.${p}`:p,c.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,Pe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let E=c.fieldDataByName.get(p);if(!E)return a.push((0,Pe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,p,c.renamedTypeName)),[];let I=`${c.renamedTypeName}.${p}`;if(!E.subgraphNames.has(i))return a.push((0,Pe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,I,i)),[];if(this.inaccessibleCoords.has(I))return a.push((0,Pe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,I)),[];if(yp.BASE_SCALARS.has(E.namedTypeName)){c={kind:Re.Kind.SCALAR_TYPE_DEFINITION,name:E.namedTypeName};continue}c=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,E.namedTypeName,ve.PARENT_DEFINITION_DATA)}return(0,ge.isLeafKind)(c.kind)?o:(a.push((0,Pe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,Ne.kindToNodeType)(c.kind),c.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,a,o,c){if(i>JE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Pe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([ve.FIELD_PATH,ve.VALUES]),p=new Set,E=new Set,I=[];for(let v of t.fields){let A=v.name.value,U=a+`.${A}`;switch(A){case ve.FIELD_PATH:{if(d.has(ve.FIELD_PATH))d.delete(ve.FIELD_PATH);else{l=!0,p.add(ve.FIELD_PATH);break}if(v.value.kind!==Re.Kind.STRING){I.push((0,Pe.invalidInputFieldTypeErrorMessage)(U,ve.STRING,(0,Ne.kindToNodeType)(v.value.kind))),l=!0;break}let j=this.validateSubscriptionFieldConditionFieldPath(v.value.value,r,U,o,I);if(j.length<1){l=!0;break}n.fieldPath=j;break}case ve.VALUES:{if(d.has(ve.VALUES))d.delete(ve.VALUES);else{l=!0,p.add(ve.VALUES);break}let j=v.value.kind;if(j==Re.Kind.NULL||j==Re.Kind.OBJECT){I.push((0,Pe.invalidInputFieldTypeErrorMessage)(U,ve.LIST,(0,Ne.kindToNodeType)(v.value.kind))),l=!0;break}if(j!==Re.Kind.LIST){n.values=[(0,ge.getSubscriptionFilterValue)(v.value)];break}let $=new Set,re=[];for(let ee=0;ee0){I.push((0,Pe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(U,re));continue}if($.size<1){l=!0,I.push((0,Pe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(U));continue}n.values=[...$];break}default:l=!0,E.add(A)}}return l?(c.push((0,Pe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...d],[...p],[...E],I)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,a,o,c){if(i>JE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Pe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!xc.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,d)),!1;let p=a+`.${d}`;switch(l.value.kind){case Re.Kind.OBJECT:switch(d){case ve.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,a+".IN",o,c);case ve.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,a+".NOT",o,c);default:return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,ve.LIST,ve.OBJECT)),!1}case Re.Kind.LIST:{let E=[];switch(d){case ve.AND_UPPER:{n.and=E;break}case ve.OR_UPPER:{n.or=E;break}default:return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,ve.OBJECT,ve.LIST)),!1}let I=l.value.values.length;if(I<1||I>5)return c.push((0,Pe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(p,I)),!1;let v=!0,A=[];for(let U=0;U0?(c.push((0,Pe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(p,A)),!1):v}default:{let E=xc.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?ve.LIST:ve.OBJECT;return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,E,(0,Ne.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,a,o){if(!t.arguments||t.arguments.length!==1)return;let c=t.arguments[0];if(c.value.kind!==Re.Kind.OBJECT){this.errors.push((0,Pe.invalidSubscriptionFilterDirectiveError)(r,[(0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(ve.CONDITION,ve.OBJECT,(0,Ne.kindToNodeType)(c.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(c.value,l,n,0,ve.CONDITION,o,d)){this.errors.push((0,Pe.invalidSubscriptionFilterDirectiveError)(r,d)),this.isMaxDepth=!1;return}(0,Ne.getValueOrDefault)(this.fieldConfigurationByFieldCoords,r,()=>({argumentNames:[],fieldName:i,typeName:a})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,Pe.invalidSubscriptionFilterDirectiveError)(t,[(0,Pe.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,ge.isNodeDataInaccessible)(r)||r.kind===Re.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(n.directive,r,t,n.fieldData.name,n.fieldData.renamedParentTypeName,n.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,Pe.orScopesLimitError)(yp.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let a of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ge.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,a,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType();for(let a of this.inaccessibleRequiredInputValueErrorByCoords.values())this.errors.push(a);if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};if(!this.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(!a.success)return{errors:a.errors,success:!1,warnings:this.warnings}}let n={kind:Re.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,Re.buildASTSchema)({kind:Re.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let{configurationDataByTypeName:a,directiveDefinitionByName:o,isVersionTwo:c,name:l,parentDefinitionDataByTypeName:d,schema:p,schemaNode:E}of this.internalSubgraphBySubgraphName.values())i.set(l,{configurationDataByTypeName:a,directiveDefinitionByName:o,isVersionTwo:c,parentDefinitionDataByTypeName:d,schema:p,schemaNode:E});for(let a of this.authorizationDataByParentTypeName.values())(0,Gr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return M({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:n,federatedGraphSchema:(0,Re.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:i,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}getClientSchemaObjectBoolean(){return this.inaccessibleCoords.size<1&&this.tagNamesByCoords.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,n,r,i){let a=n.size;for(let[o,c]of r){let l=(0,Ne.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,ge.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(c.tagNames)||((0,Ne.getValueOrDefault)(l.persistedDirectivesData.directivesByName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,n,r,i){let a=n.size;for(let[o,c]of n){if((0,ge.isNodeDataInaccessible)(c)){a-=1;continue}let l=r.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,Ne.getValueOrDefault)(c.persistedDirectivesData.directivesByName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(Fu.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,c]of this.parentTagDataByTypeName){let l=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,o,ve.PARENT_DEFINITION_DATA);if(!(0,ge.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(c.tagNames)){l.persistedDirectivesData.directivesByName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(c.childTagDataByChildName.size<1))switch(l.kind){case Re.Kind.SCALAR_TYPE_DEFINITION:case Re.Kind.UNION_TYPE_DEFINITION:break;case Re.Kind.ENUM_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.enumValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break}case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.inputValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break}default:{let d=l.fieldDataByName.size;for(let[p,E]of c.childTagDataByChildName){let I=(0,Ne.getOrThrowError)(l.fieldDataByName,p,`${o}.fieldDataByFieldName`);if((0,ge.isNodeDataInaccessible)(I)){d-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(E.tagNames)){(0,Ne.getValueOrDefault)(I.persistedDirectivesData.directivesByName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(I.federatedCoords),d-=1;continue}for(let[v,A]of E.tagNamesByArgumentName){let U=(0,Ne.getOrThrowError)(I.argumentDataByName,v,`${p}.argumentDataByArgumentName`);(0,ge.isNodeDataInaccessible)(U)||t.tagNamesToExclude.isDisjointFrom(A)||((0,Ne.getValueOrDefault)(U.persistedDirectivesData.directivesByName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(U.federatedCoords))}}d<1&&(l.persistedDirectivesData.directivesByName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}}else if(t.tagNamesToInclude.size>0)for(let[o,c]of this.parentDefinitionDataByTypeName){if((0,ge.isNodeDataInaccessible)(c))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){c.persistedDirectivesData.directivesByName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){c.persistedDirectivesData.directivesByName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(c.kind){case Re.Kind.SCALAR_TYPE_DEFINITION:case Re.Kind.UNION_TYPE_DEFINITION:continue;case Re.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.enumValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let d=c.fieldDataByName.size;for(let[p,E]of c.fieldDataByName){if((0,ge.isNodeDataInaccessible)(E)){d-=1;continue}let I=l.childTagDataByChildName.get(p);(!I||t.tagNamesToInclude.isDisjointFrom(I.tagNames))&&((0,Ne.getValueOrDefault)(E.persistedDirectivesData.directivesByName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(E.federatedCoords),d-=1)}d<1&&(c.persistedDirectivesData.directivesByName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ge.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,o,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let n=[];if(this.pushParentDefinitionDataToDocumentDefinitions(n),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(n),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let r={kind:Re.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,Re.buildASTSchema)({kind:Re.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let{configurationDataByTypeName:o,directiveDefinitionByName:c,isVersionTwo:l,name:d,parentDefinitionDataByTypeName:p,schema:E,schemaNode:I}of this.internalSubgraphBySubgraphName.values())a.set(d,{configurationDataByTypeName:o,directiveDefinitionByName:c,isVersionTwo:l,parentDefinitionDataByTypeName:p,schema:E,schemaNode:I});for(let o of this.authorizationDataByParentTypeName.values())(0,Gr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return M({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:r,federatedGraphSchema:(0,Re.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:a,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};zE=new WeakSet,EV=function(){var r;let t=new Set,n=new Set;for(let i of this.referencedPersistedDirectiveNames){let a=yp.DIRECTIVE_DEFINITION_BY_NAME.get(i);if(!a)continue;let o=(r=xc.DEPENDENCIES_BY_DIRECTIVE_NAME.get(i))!=null?r:[];this.directiveDefinitionByName.set(i,a),xc.CLIENT_PERSISTED_DIRECTIVE_NAMES.has(i)&&(this.clientDefinitions.push(a),(0,Ne.addIterableToSet)({source:o,target:t})),this.routerDefinitions.push(a),(0,Ne.addIterableToSet)({source:o,target:n})}this.clientDefinitions.push(...t),this.routerDefinitions.push(...n)};qc.FederationFactory=HE;function ob({disableResolvabilityValidation:e,subgraphs:t}){if(t.length<1)return{errors:[Pe.minimumSubgraphRequirementError],success:!1,warnings:[]};let n=(0,mfe.batchNormalize)(t);if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};let r=new Map,i=new Map;for(let[c,l]of n.internalSubgraphBySubgraphName)for(let[d,p]of l.entityInterfaces){let E=r.get(d);if(!E){r.set(d,(0,Gr.newEntityInterfaceFederationData)(p,c));continue}(0,Gr.upsertEntityInterfaceFederationData)(E,p,c)}let a=new Array,o=new Map;for(let[c,l]of r){let d=l.concreteTypeNames.size;for(let[p,E]of l.subgraphDataByTypeName){let I=(0,Ne.getValueOrDefault)(o,p,()=>new Set);if((0,Ne.addIterableToSet)({source:E.concreteTypeNames,target:I}),!E.isInterfaceObject){E.resolvable&&E.concreteTypeNames.size!==d&&(0,Ne.getValueOrDefault)(i,c,()=>new Array).push({subgraphName:p,definedConcreteTypeNames:new Set(E.concreteTypeNames),requiredConcreteTypeNames:new Set(l.concreteTypeNames)});continue}(0,Ne.addIterableToSet)({source:l.concreteTypeNames,target:I});let{parentDefinitionDataByTypeName:v}=(0,Ne.getOrThrowError)(n.internalSubgraphBySubgraphName,p,"internalSubgraphBySubgraphName"),A=[];for(let U of l.concreteTypeNames)v.has(U)&&A.push(U);A.length>0&&a.push((0,Pe.invalidInterfaceObjectImplementationDefinitionsError)(c,p,A))}}for(let[c,l]of i){let d=new Array;for(let p of l){let E=o.get(p.subgraphName);if(!E){d.push(p);continue}let I=p.requiredConcreteTypeNames.intersection(E);p.requiredConcreteTypeNames.size!==I.size&&(p.definedConcreteTypeNames=I,d.push(p))}if(d.length>0){i.set(c,d);continue}i.delete(c)}return i.size>0&&a.push((0,Pe.undefinedEntityInterfaceImplementationsError)(i,r)),a.length>0?{errors:a,success:!1,warnings:n.warnings}:{federationFactory:new HE({authorizationDataByParentTypeName:n.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:n.concreteTypeNamesByAbstractTypeName,disableResolvabilityValidation:e,entityDataByTypeName:n.entityDataByTypeName,entityInterfaceFederationDataByTypeName:r,fieldCoordsByNamedTypeName:n.fieldCoordsByNamedTypeName,internalSubgraphBySubgraphName:n.internalSubgraphBySubgraphName,internalGraph:n.internalGraph,warnings:n.warnings}),success:!0,warnings:n.warnings}}function hfe({disableResolvabilityValidation:e,subgraphs:t}){let n=ob({subgraphs:t,disableResolvabilityValidation:e});return n.success?n.federationFactory.federateSubgraphsInternal():{errors:n.errors,success:!1,warnings:n.warnings}}function yfe({subgraphs:e,tagOptionsByContractName:t,disableResolvabilityValidation:n}){let r=ob({subgraphs:e,disableResolvabilityValidation:n});if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};r.federationFactory.federateSubgraphData();let i=[(0,TV.cloneDeep)(r.federationFactory)],a=r.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=t.size-1,c=new Map,l=0;for(let[d,p]of t){l!==o&&i.push((0,TV.cloneDeep)(i[l]));let E=i[l].buildFederationContractResult(p);c.set(d,E),l++}return Q(M({},a),{federationResultByContractName:c})}function Ife({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n}){let r=ob({subgraphs:n,disableResolvabilityValidation:t});return r.success?(r.federationFactory.federateSubgraphData(),r.federationFactory.buildFederationContractResult(e)):{errors:r.errors,success:!1,warnings:r.warnings}}});var WE=w(Bs=>{"use strict";m();T();N();Object.defineProperty(Bs,"__esModule",{value:!0});Bs.LATEST_ROUTER_COMPATIBILITY_VERSION=Bs.ROUTER_COMPATIBILITY_VERSIONS=Bs.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Bs.ROUTER_COMPATIBILITY_VERSION_ONE="1";Bs.ROUTER_COMPATIBILITY_VERSIONS=new Set([Bs.ROUTER_COMPATIBILITY_VERSION_ONE]);Bs.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var yV=w(Ip=>{"use strict";m();T();N();Object.defineProperty(Ip,"__esModule",{value:!0});Ip.federateSubgraphs=gfe;Ip.federateSubgraphsWithContracts=_fe;Ip.federateSubgraphsContract=vfe;var ub=hV(),cb=WE();function gfe({disableResolvabilityValidation:e,subgraphs:t,version:n=cb.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,ub.federateSubgraphs)({disableResolvabilityValidation:e,subgraphs:t})}}function _fe({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n,version:r=cb.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,ub.federateSubgraphsWithContracts)({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n})}}function vfe({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n,version:r=cb.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,ub.federateSubgraphsContract)({disableResolvabilityValidation:t,subgraphs:n,contractTagOptions:e})}}});var gV=w(IV=>{"use strict";m();T();N();Object.defineProperty(IV,"__esModule",{value:!0})});var _V=w(gp=>{"use strict";m();T();N();Object.defineProperty(gp,"__esModule",{value:!0});gp.normalizeSubgraphFromString=Ofe;gp.normalizeSubgraph=Sfe;gp.batchNormalize=Dfe;var lb=rb(),db=WE();function Ofe(e,t=!0,n=db.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,lb.normalizeSubgraphFromString)(e,t)}}function Sfe(e,t,n,r=db.ROUTER_COMPATIBILITY_VERSION_ONE){switch(r){default:return(0,lb.normalizeSubgraph)(e,t,n)}}function Dfe(e,t=db.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,lb.batchNormalize)(e)}}});var OV=w(vV=>{"use strict";m();T();N();Object.defineProperty(vV,"__esModule",{value:!0})});var DV=w(SV=>{"use strict";m();T();N();Object.defineProperty(SV,"__esModule",{value:!0})});var AV=w(bV=>{"use strict";m();T();N();Object.defineProperty(bV,"__esModule",{value:!0})});var PV=w(RV=>{"use strict";m();T();N();Object.defineProperty(RV,"__esModule",{value:!0})});var wV=w(FV=>{"use strict";m();T();N();Object.defineProperty(FV,"__esModule",{value:!0})});var CV=w(LV=>{"use strict";m();T();N();Object.defineProperty(LV,"__esModule",{value:!0})});var BV=w(XE=>{"use strict";m();T();N();Object.defineProperty(XE,"__esModule",{value:!0});XE.COMPOSITION_VERSION=void 0;XE.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var kV=w(UV=>{"use strict";m();T();N();Object.defineProperty(UV,"__esModule",{value:!0})});var xV=w(MV=>{"use strict";m();T();N();Object.defineProperty(MV,"__esModule",{value:!0})});var VV=w(qV=>{"use strict";m();T();N();Object.defineProperty(qV,"__esModule",{value:!0})});var KV=w(jV=>{"use strict";m();T();N();Object.defineProperty(jV,"__esModule",{value:!0})});var ZE=w(Xe=>{"use strict";m();T();N();var bfe=Xe&&Xe.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),lt=Xe&&Xe.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&bfe(t,e,n)};Object.defineProperty(Xe,"__esModule",{value:!0});lt(Pr(),Xe);lt(Cv(),Xe);lt(qi(),Xe);lt(QM(),Xe);lt(yV(),Xe);lt(gV(),Xe);lt(_V(),Xe);lt(OV(),Xe);lt(ZD(),Xe);lt(jD(),Xe);lt(kE(),Xe);lt(DV(),Xe);lt(AV(),Xe);lt(YD(),Xe);lt(WE(),Xe);lt(PV(),Xe);lt(eb(),Xe);lt(Iu(),Xe);lt(Uf(),Xe);lt(Ul(),Xe);lt(wV(),Xe);lt(CV(),Xe);lt(BV(),Xe);lt(kV(),Xe);lt(zn(),Xe);lt(xV(),Xe);lt(Fr(),Xe);lt(LD(),Xe);lt(gu(),Xe);lt(kf(),Xe);lt(oE(),Xe);lt(uE(),Xe);lt(rd(),Xe);lt(sT(),Xe);lt(oT(),Xe);lt(sb(),Xe);lt(VV(),Xe);lt(AD(),Xe);lt(dp(),Xe);lt(KV(),Xe);lt(kD(),Xe);lt(QE(),Xe);lt(FD(),Xe);lt(lp(),Xe);lt(fp(),Xe)});var Ipe={};wm(Ipe,{buildRouterConfiguration:()=>ype,federateSubgraphs:()=>hpe});m();T();N();var Yc=ys(ZE());m();T();N();m();T();N();function fb(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),n=e.indexOf("#"),r=e;return t>0?r=r.slice(0,n>0?Math.min(t,n):t):n>0&&(r=r.slice(0,n)),r}m();T();N();m();T();N();var GV={};m();T();N();function $V(e){return e!=null}m();T();N();m();T();N();var zV=ys(Oe(),1);m();T();N();var QV;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}QV=function(t,n){return new e(t,n)}}else QV=AggregateError;function YV(e){return"errors"in e&&Array.isArray(e.errors)}var WV=3;function XV(e){return eh(e,[])}function eh(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Afe(e,t);default:return String(e)}}function JV(e){return e instanceof zV.GraphQLError?e.toString():`${e.name}: ${e.message}; - ${e.stack}`}function Afe(e,t){if(e===null)return"null";if(e instanceof Error)return YV(e)?JV(e)+` -`+HV(e.errors,t):JV(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Rfe(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:eh(r,n)}else if(Array.isArray(e))return HV(e,n);return Pfe(e,n)}function Rfe(e){return typeof e.toJSON=="function"}function Pfe(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>WV?"["+Ffe(e)+"]":"{ "+n.map(([i,a])=>i+": "+eh(a,t)).join(", ")+" }"}function HV(e,t){if(e.length===0)return"[]";if(t.length>WV)return"[Array]";let n=e.length,r=[];for(let i=0;in==null?n:n[r],e==null?void 0:e.extensions)}m();T();N();var Fe=ys(Oe(),1);m();T();N();var is=ys(Oe(),1);function as(e){if((0,is.isNonNullType)(e)){let t=as(e.ofType);if(t.kind===is.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${XV(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:is.Kind.NON_NULL_TYPE,type:t}}else if((0,is.isListType)(e))return{kind:is.Kind.LIST_TYPE,type:as(e.ofType)};return{kind:is.Kind.NAMED_TYPE,name:{kind:is.Kind.NAME,value:e.name}}}m();T();N();var ss=ys(Oe(),1);function nh(e){if(e===null)return{kind:ss.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=nh(n);r!=null&&t.push(r)}return{kind:ss.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=nh(r);i&&t.push({kind:ss.Kind.OBJECT_FIELD,name:{kind:ss.Kind.NAME,value:n},value:i})}return{kind:ss.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:ss.Kind.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return wfe.test(t)?{kind:ss.Kind.INT,value:t}:{kind:ss.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:ss.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var wfe=/^-?(?:0|[1-9][0-9]*)$/;m();T();N();m();T();N();function rh(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}var Gxe=rh(function(t){let n=Lfe(t);return new Set([...n].map(r=>r.name))}),Lfe=rh(function(t){let n=pb(t);return new Set(n.values())}),pb=rh(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let a=t.getSubscriptionType();return a&&n.set("subscription",a),n});function Cfe(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Bfe(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,Fe.isSpecifiedDirective)(c)||a.push(Ufe(c,e,n));for(let c in r){let l=r[c],d=(0,Fe.isSpecifiedScalarType)(l),p=(0,Fe.isIntrospectionType)(l);if(!(d||p))if((0,Fe.isObjectType)(l))a.push(kfe(l,e,n));else if((0,Fe.isInterfaceType)(l))a.push(Mfe(l,e,n));else if((0,Fe.isUnionType)(l))a.push(xfe(l,e,n));else if((0,Fe.isInputObjectType)(l))a.push(qfe(l,e,n));else if((0,Fe.isEnumType)(l))a.push(Vfe(l,e,n));else if((0,Fe.isScalarType)(l))a.push(jfe(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:Fe.Kind.DOCUMENT,definitions:a}}function ZV(e,t={}){let n=Cfe(e,t);return(0,Fe.print)(n)}function Bfe(e,t){var n,r;let i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),a=[];if(e.astNode!=null&&a.push(e.astNode),e.extensionASTNodes!=null)for(let p of e.extensionASTNodes)a.push(p);for(let p of a)if(p.operationTypes)for(let E of p.operationTypes)i.set(E.operation,E);let o=pb(e);for(let[p,E]of i){let I=o.get(p);if(I!=null){let v=as(I);E!=null?E.type=v:i.set(p,{kind:Fe.Kind.OPERATION_TYPE_DEFINITION,operation:p,type:v})}}let c=[...i.values()].filter($V),l=dd(e,e,t);if(!c.length&&!l.length)return null;let d={kind:c!=null?Fe.Kind.SCHEMA_DEFINITION:Fe.Kind.SCHEMA_EXTENSION,operationTypes:c,directives:l};return d.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,d}function Ufe(e,t,n){var r,i,a,o;return{kind:Fe.Kind.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},arguments:(a=e.args)===null||a===void 0?void 0:a.map(c=>ej(c,t,n)),repeatable:e.isRepeatable,locations:((o=e.locations)===null||o===void 0?void 0:o.map(c=>({kind:Fe.Kind.NAME,value:c})))||[]}}function dd(e,t,n){let r=th(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let a;if(r!=null)a=mb(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}function ah(e,t,n){var r,i;let a=[],o=null,c=th(e,n),l;return c!=null?l=mb(t,c):l=(r=e.astNode)===null||r===void 0?void 0:r.directives,l!=null&&(a=l.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(o=(i=l.filter(d=>d.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&o==null&&(o=$fe(e.deprecationReason)),o==null?a:[o].concat(a)}function ej(e,t,n){var r,i,a;return{kind:Fe.Kind.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},type:as(e.type),defaultValue:e.defaultValue!==void 0&&(a=(0,Fe.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0,directives:ah(e,t,n)}}function kfe(e,t,n){var r,i;return{kind:Fe.Kind.OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>tj(a,t,n)),interfaces:Object.values(e.getInterfaces()).map(a=>as(a)),directives:dd(e,t,n)}}function Mfe(e,t,n){var r,i;let a={kind:Fe.Kind.INTERFACE_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>tj(o,t,n)),directives:dd(e,t,n)};return"getInterfaces"in e&&(a.interfaces=Object.values(e.getInterfaces()).map(o=>as(o))),a}function xfe(e,t,n){var r,i;return{kind:Fe.Kind.UNION_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},directives:dd(e,t,n),types:e.getTypes().map(a=>as(a))}}function qfe(e,t,n){var r,i;return{kind:Fe.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>Kfe(a,t,n)),directives:dd(e,t,n)}}function Vfe(e,t,n){var r,i;return{kind:Fe.Kind.ENUM_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(a=>Gfe(a,t,n)),directives:dd(e,t,n)}}function jfe(e,t,n){var r,i,a;let o=th(e,n),c=o?mb(t,o):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!c.some(d=>d.name.value==="specifiedBy")){let d={url:l};c.push(ih("specifiedBy",d))}return{kind:Fe.Kind.SCALAR_TYPE_DEFINITION,description:(a=(i=e.astNode)===null||i===void 0?void 0:i.description)!==null&&a!==void 0?a:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},directives:c}}function tj(e,t,n){var r,i;return{kind:Fe.Kind.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},arguments:e.args.map(a=>ej(a,t,n)),type:as(e.type),directives:ah(e,t,n)}}function Kfe(e,t,n){var r,i,a;return{kind:Fe.Kind.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},type:as(e.type),directives:ah(e,t,n),defaultValue:(a=(0,Fe.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0}}function Gfe(e,t,n){var r,i;return{kind:Fe.Kind.ENUM_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},directives:ah(e,t,n)}}function $fe(e){return ih("deprecated",{reason:e},Fe.GraphQLDeprecatedDirective)}function ih(e,t,n){let r=[];if(n!=null)for(let i of n.args){let a=i.name,o=t[a];if(o!==void 0){let c=(0,Fe.astFromValue)(o,i.type);c&&r.push({kind:Fe.Kind.ARGUMENT,name:{kind:Fe.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=nh(a);o&&r.push({kind:Fe.Kind.ARGUMENT,name:{kind:Fe.Kind.NAME,value:i},value:o})}return{kind:Fe.Kind.DIRECTIVE,name:{kind:Fe.Kind.NAME,value:e},arguments:r}}function mb(e,t){let n=[];for(let r in t){let i=t[r],a=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(ih(r,o,a));else n.push(ih(r,i,a))}return n}var Id=ys(ZE(),1);m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();function pn(e,t){if(!e)throw new Error(t)}var Qfe=34028234663852886e22,Yfe=-34028234663852886e22,Jfe=4294967295,Hfe=2147483647,zfe=-2147483648;function fd(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>Hfe||eJfe||e<0)throw new Error("invalid uint 32: "+e)}function sh(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>Qfe||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function Tb(e,t,n){let r=Object.create(null),i=Object.create(null),a=[];for(let o of t){let c=aj(o);a.push(c),r[o.name]=c,i[o.no]=c}return{typeName:e,values:a,findName(o){return r[o]},findNumber(o){return i[o]}}}function ij(e,t,n){let r={};for(let i of t){let a=aj(i);r[a.localName]=a.no,r[a.no]=a.localName}return Nb(r,e,t,n),r}function aj(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();N();m();T();N();var we=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){let r=this.getType(),i=r.runtime.bin,a=i.makeReadOptions(n);return i.readMessage(this,a.readerFactory(t),t.byteLength,a),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,a=i.makeReadOptions(n);return i.readMessage(r,t,a,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${i instanceof Error?i.message:String(i)}`)}return this.fromJson(r,n)}toBinary(t){let n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),a=i.writerFactory();return r.writeMessage(this,a,i),a.finish()}toJson(t){let n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;let r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function sj(e,t,n,r){var i;let a=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[a]:function(c){e.util.initFields(this),e.util.initPartial(c,this)}}[a];return Object.setPrototypeOf(o.prototype,new we),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(c,l){return new o().fromBinary(c,l)},fromJson(c,l){return new o().fromJson(c,l)},fromJsonString(c,l){return new o().fromJsonString(c,l)},equals(c,l){return e.util.equals(o,c,l)}}),o}m();T();N();m();T();N();m();T();N();m();T();N();function uj(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>a,c=!(!(o>>>7)&&t==0),l=(c?o|128:o)&255;if(n.push(l),!c)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let a=3;a<31;a=a+7){let o=t>>>a,c=!!(o>>>7),l=(c?o|128:o)&255;if(n.push(l),!c)return}n.push(t>>>31&1)}}var oh=4294967296;function Eb(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function a(o,c){let l=Number(e.slice(o,c));i*=n,r=r*n+l,r>=oh&&(i=i+(r/oh|0),r=r%oh)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?lj(r,i):yb(r,i)}function cj(e,t){let n=yb(e,t),r=n.hi&2147483648;r&&(n=lj(n.lo,n.hi));let i=hb(n.lo,n.hi);return r?"-"+i:i}function hb(e,t){if({lo:e,hi:t}=Wfe(e,t),t<=2097151)return String(oh*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=n+r*6777216+i*6710656,o=r+i*8147497,c=i*2,l=1e7;return a>=l&&(o+=Math.floor(a/l),a%=l),o>=l&&(c+=Math.floor(o/l),o%=l),c.toString()+oj(o)+oj(a)}function Wfe(e,t){return{lo:e>>>0,hi:t>>>0}}function yb(e,t){return{lo:e|0,hi:t|0}}function lj(e,t){return t=~t,e?e=~e+1:t+=1,yb(e,t)}var oj=e=>{let t=String(e);return"0000000".slice(t.length)+t};function Ib(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function dj(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function Xfe(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof S!="object"||typeof S.env!="object"||S.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),o=BigInt("0"),c=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let d=typeof l=="bigint"?l:BigInt(l);if(d>a||dc||dpn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>pn(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),Eb(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),Eb(i)},dec(i,a){return cj(i,a)},uDec(i,a){return hb(i,a)}}}var Jn=Xfe();m();T();N();var fe;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(fe||(fe={}));var ba;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(ba||(ba={}));function Us(e,t,n){if(t===n)return!0;if(e==fe.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(_p(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return fd(t),Ib(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){sh(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){_p(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){fd(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return fd(t),t=(t<<1^t>>31)>>>0,Ib(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Jn.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Jn.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Jn.enc(t);return uh(n.lo,n.hi,this.buf),this}sint64(t){let n=Jn.enc(t),r=n.hi>>31,i=n.lo<<1^r,a=(n.hi<<1|n.lo>>>31)^r;return uh(i,a,this.buf),this}uint64(t){let n=Jn.uEnc(t);return uh(n.lo,n.hi,this.buf),this}},dh=class{constructor(t,n){this.varint64=uj,this.uint32=dj,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n!=null?n:new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t){let n=this.pos;switch(t){case xn.Varint:for(;this.buf[this.pos++]&128;);break;case xn.Bit64:this.pos+=4;case xn.Bit32:this.pos+=4;break;case xn.LengthDelimited:let r=this.uint32();this.pos+=r;break;case xn.StartGroup:let i;for(;(i=this.tag()[1])!==xn.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return Jn.dec(...this.varint64())}uint64(){return Jn.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Jn.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Jn.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Jn.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}};function fj(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){let a=typeof r=="function"?r():r;a.name=t.split(".").pop(),a.jsonName=`[${t}]`,i=e.util.newFieldList([a]).list()[0]}return i},runtime:e}}function fh(e){let t=e.field.localName,n=Object.create(null);return n[t]=Zfe(e),[n,()=>n[t]]}function Zfe(e){let t=e.field;if(t.repeated)return[];if(t.default!==void 0)return t.default;switch(t.kind){case"enum":return t.T.values[0].no;case"scalar":return Aa(t.T,t.L);case"message":let n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function pj(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}m();T();N();m();T();N();var ks="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ph=[];for(let e=0;e>4,o=a,i=2;break;case 2:n[r++]=(o&15)<<4|(a&60)>>2,o=a,i=3;break;case 3:n[r++]=(o&3)<<6|a,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let a=0;a>2],i=(r&3)<<4,n=1;break;case 1:t+=ks[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=ks[i|r>>6],t+=ks[r&63],n=0;break}return n&&(t+=ks[i],t+="=",n==1&&(t+="=")),t}};m();T();N();function mj(e,t,n){Tj(t,e);let r=t.runtime.bin.makeReadOptions(n),i=pj(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=fh(t);for(let c of i)t.runtime.bin.readField(a,r.readerFactory(c.data),t.field,c.wireType,r);return o()}function Nj(e,t,n,r){Tj(t,e);let i=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(_b(e,t)){let d=e.getType().runtime.bin.listUnknownFields(e).filter(p=>p.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let p of d)e.getType().runtime.bin.onUnknownField(e,p.no,p.wireType,p.data)}let o=a.writerFactory(),c=t.field;!c.opt&&!c.repeated&&(c.kind=="enum"||c.kind=="scalar")&&(c=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(c,n,o,a);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function Tj(e,t){pn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();N();function mh(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!ch(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function vb(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?Aa(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();N();m();T();N();function Ra(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(we.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function Nh(e,t){return Ra(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var v1e={"google.protobuf.DoubleValue":fe.DOUBLE,"google.protobuf.FloatValue":fe.FLOAT,"google.protobuf.Int64Value":fe.INT64,"google.protobuf.UInt64Value":fe.UINT64,"google.protobuf.Int32Value":fe.INT32,"google.protobuf.UInt32Value":fe.UINT32,"google.protobuf.BoolValue":fe.BOOL,"google.protobuf.StringValue":fe.STRING,"google.protobuf.BytesValue":fe.BYTES};var Ej={ignoreUnknownFields:!1},hj={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function epe(e){return e?Object.assign(Object.assign({},Ej),e):Ej}function tpe(e){return e?Object.assign(Object.assign({},hj),e):hj}var hh=Symbol(),Th=Symbol();function gj(){return{makeReadOptions:epe,makeWriteOptions:tpe,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${os(t)}`);r=r!=null?r:new e;let i=new Map,a=n.typeRegistry;for(let[o,c]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(c===null&&l.kind=="scalar")continue;let d=i.get(l.oneof);if(d!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${d}", "${o}"`);i.set(l.oneof,o)}yj(r,c,l,n,e)}else{let d=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let p=a.findExtension(o.substring(1,o.length-1));if(p&&p.extendee.typeName==e.typeName){d=!0;let[E,I]=fh(p);yj(E,c,p.field,n,p),Nj(r,p,I(),n)}}if(!d&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},i;try{for(i of n.fields.byNumber()){if(!mh(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!rpe(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],c=Ij(i,o,t);c!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=c)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let c=a.findExtensionFor(n.typeName,o.no);if(c&&_b(e,c)){let l=mj(e,c,t),d=Ij(c.field,l,t);d!==void 0&&(r[c.field.jsonName]=d)}}}catch(a){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,c=a instanceof Error?a.message:String(a);throw new Error(o+(c.length>0?`: ${c}`:""))}return r},readScalar(e,t,n){return vp(e,t,n!=null?n:ba.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||ch(e,t)))return Eh(e,t)},debug:os}}function os(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function yj(e,t,n,r,i){let a=n.localName;if(n.repeated){if(pn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${os(t)}`);let o=e[a];for(let c of t){if(c===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${os(c)}`);switch(n.kind){case"message":o.push(n.T.fromJson(c,r));break;case"enum":let l=Ob(n.T,c,r.ignoreUnknownFields,!0);l!==Th&&o.push(l);break;case"scalar":try{o.push(vp(n.T,c,n.L,!0))}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${os(c)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${os(t)}`);let o=e[a];for(let[c,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let d;try{d=npe(n.K,c)}catch(p){let E=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${os(t)}`;throw p instanceof Error&&p.message.length>0&&(E+=`: ${p.message}`),new Error(E)}switch(n.V.kind){case"message":o[d]=n.V.T.fromJson(l,r);break;case"enum":let p=Ob(n.V.T,l,r.ignoreUnknownFields,!0);p!==Th&&(o[d]=p);break;case"scalar":try{o[d]=vp(n.V.T,l,ba.BIGINT,!0)}catch(E){let I=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${os(t)}`;throw E instanceof Error&&E.message.length>0&&(I+=`: ${E.message}`),new Error(I)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:a},a="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let c=e[a];Ra(c)?c.fromJson(t,r):(e[a]=c=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[a]=o.fieldWrapper.unwrapField(c)));break;case"enum":let l=Ob(n.T,t,r.ignoreUnknownFields,!1);switch(l){case hh:vb(n,e);break;case Th:break;default:e[a]=l;break}break;case"scalar":try{let d=vp(n.T,t,n.L,!1);switch(d){case hh:vb(n,e);break;default:e[a]=d;break}}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${os(t)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}function npe(e,t){if(e===fe.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return vp(e,t,ba.BIGINT,!0).toString()}function vp(e,t,n,r){if(t===null)return r?Aa(e,n):hh;switch(e){case fe.DOUBLE:case fe.FLOAT:if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==fe.FLOAT&&sh(i),i;case fe.INT32:case fe.FIXED32:case fe.SFIXED32:case fe.SINT32:case fe.UINT32:let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==fe.UINT32||e==fe.FIXED32?_p(a):fd(a),a;case fe.INT64:case fe.SFIXED64:case fe.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Jn.parse(t);return n?o.toString():o;case fe.FIXED64:case fe.UINT64:if(typeof t!="number"&&typeof t!="string")break;let c=Jn.uParse(t);return n?c.toString():c;case fe.BOOL:if(typeof t!="boolean")break;return t;case fe.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case fe.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return gb.dec(t)}throw new Error}function Ob(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:hh;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let i=e.findName(t);if(i!==void 0)return i.no;if(n)return Th;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${os(t)}`)}function rpe(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function Ij(e,t,n){if(e.kind=="map"){pn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,c]of i)r[o.toString()]=Eh(e.V.T,c);break;case"message":for(let[o,c]of i)r[o.toString()]=c.toJson(n);break;case"enum":let a=e.V.T;for(let[o,c]of i)r[o.toString()]=Sb(a,c,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){pn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return Eh(e.T,t);case"enum":return Sb(e.T,t,n.enumAsInteger);case"message":return Nh(e.T,t).toJson(n)}}function Sb(e,t,n){var r;if(pn(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;let i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function Eh(e,t){switch(e){case fe.INT32:case fe.SFIXED32:case fe.SINT32:case fe.FIXED32:case fe.UINT32:return pn(typeof t=="number"),t;case fe.FLOAT:case fe.DOUBLE:return pn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case fe.STRING:return pn(typeof t=="string"),t;case fe.BOOL:return pn(typeof t=="boolean"),t;case fe.UINT64:case fe.FIXED64:case fe.INT64:case fe.SFIXED64:case fe.SINT64:return pn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case fe.BYTES:return pn(t instanceof Uint8Array),gb.enc(t)}}m();T();N();var pd=Symbol("@bufbuild/protobuf/unknown-fields"),_j={readUnknownFields:!0,readerFactory:e=>new dh(e)},vj={writeUnknownFields:!0,writerFactory:()=>new lh};function ipe(e){return e?Object.assign(Object.assign({},_j),e):_j}function ape(e){return e?Object.assign(Object.assign({},vj),e):vj}function bj(){return{makeReadOptions:ipe,makeWriteOptions:ape,listUnknownFields(e){var t;return(t=e[pd])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[pd]},writeUnknownFields(e,t){let r=e[pd];if(r)for(let i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){let i=e;Array.isArray(i[pd])||(i[pd]=[]),i[pd].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let a=e.getType(),o=i?t.len:t.pos+n,c,l;for(;t.pos0&&(l=ope),a){let I=e[o];if(r==xn.LengthDelimited&&c!=fe.STRING&&c!=fe.BYTES){let A=t.uint32()+t.pos;for(;t.posRa(I,E)?I:new E(I));else{let I=o[i];E.fieldWrapper?E.typeName==="google.protobuf.BytesValue"?a[i]=Sp(I):a[i]=I:a[i]=Ra(I,E)?I:new E(I)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],a=n[r.localName];if(r.repeated){if(i.length!==a.length)return!1;switch(r.kind){case"message":return i.every((o,c)=>r.T.equals(o,a[c]));case"scalar":return i.every((o,c)=>Us(r.T,o,a[c]));case"enum":return i.every((o,c)=>Us(fe.INT32,o,a[c]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,a);case"enum":return Us(fe.INT32,i,a);case"scalar":return Us(r.T,i,a);case"oneof":if(i.case!==a.case)return!1;let o=r.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,a.value);case"enum":return Us(fe.INT32,i.value,a.value);case"scalar":return Us(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let c=Object.keys(i).concat(Object.keys(a));switch(r.V.kind){case"message":let l=r.V.T;return c.every(p=>l.equals(i[p],a[p]));case"enum":return c.every(p=>Us(fe.INT32,i[p],a[p]));case"scalar":let d=r.V.T;return c.every(p=>Us(d,i[p],a[p]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let a=e[i.localName],o;if(i.repeated)o=a.map(gh);else if(i.kind=="map"){o=r[i.localName];for(let[c,l]of Object.entries(a))o[c]=gh(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:gh(a.value)}:{case:void 0}:o=gh(a);r[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function gh(e){if(e===void 0)return e;if(Ra(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Sp(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Pj(e,t,n){return{syntax:e,json:gj(),bin:bj(),util:Object.assign(Object.assign({},Rj()),{newFieldList:t,initFields:n}),makeMessageType(r,i,a){return sj(this,r,i,a)},makeEnum:ij,makeEnumType:Tb,getEnumType:rj,makeExtension(r,i,a){return fj(this,r,i,a)}}}m();T();N();var _h=class{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){let n={};for(let r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){let n={};for(let r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,n;for(let r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}};m();T();N();m();T();N();m();T();N();function Db(e,t){let n=Lj(e);return t?n:ppe(fpe(n))}function Fj(e){return Db(e,!1)}var wj=Lj;function Lj(e){let t=!1,n=[];for(let r=0;r`${e}$`,fpe=e=>dpe.has(e)?Cj(e):e,ppe=e=>lpe.has(e)?Cj(e):e;var vh=class{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=Fj(t)}addField(t){pn(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;nnew _h(e,t=>Bj(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=Aa(t.T,t.L);break;case"message":break}}});var md;(function(e){e[e.OK=0]="OK",e[e.ERR=1]="ERR",e[e.ERR_NOT_FOUND=2]="ERR_NOT_FOUND",e[e.ERR_ALREADY_EXISTS=3]="ERR_ALREADY_EXISTS",e[e.ERR_INVALID_SUBGRAPH_SCHEMA=4]="ERR_INVALID_SUBGRAPH_SCHEMA",e[e.ERR_SUBGRAPH_COMPOSITION_FAILED=5]="ERR_SUBGRAPH_COMPOSITION_FAILED",e[e.ERR_SUBGRAPH_CHECK_FAILED=6]="ERR_SUBGRAPH_CHECK_FAILED",e[e.ERR_INVALID_LABELS=7]="ERR_INVALID_LABELS",e[e.ERR_ANALYTICS_DISABLED=8]="ERR_ANALYTICS_DISABLED",e[e.ERROR_NOT_AUTHENTICATED=9]="ERROR_NOT_AUTHENTICATED",e[e.ERR_OPENAI_DISABLED=10]="ERR_OPENAI_DISABLED",e[e.ERR_FREE_TRIAL_EXPIRED=11]="ERR_FREE_TRIAL_EXPIRED",e[e.ERROR_NOT_AUTHORIZED=12]="ERROR_NOT_AUTHORIZED",e[e.ERR_LIMIT_REACHED=13]="ERR_LIMIT_REACHED",e[e.ERR_DEPLOYMENT_FAILED=14]="ERR_DEPLOYMENT_FAILED",e[e.ERR_INVALID_NAME=15]="ERR_INVALID_NAME",e[e.ERR_UPGRADE_PLAN=16]="ERR_UPGRADE_PLAN",e[e.ERR_BAD_REQUEST=17]="ERR_BAD_REQUEST",e[e.ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL=18]="ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"})(md||(md={}));C.util.setEnumType(md,"wg.cosmo.common.EnumStatusCode",[{no:0,name:"OK"},{no:1,name:"ERR"},{no:2,name:"ERR_NOT_FOUND"},{no:3,name:"ERR_ALREADY_EXISTS"},{no:4,name:"ERR_INVALID_SUBGRAPH_SCHEMA"},{no:5,name:"ERR_SUBGRAPH_COMPOSITION_FAILED"},{no:6,name:"ERR_SUBGRAPH_CHECK_FAILED"},{no:7,name:"ERR_INVALID_LABELS"},{no:8,name:"ERR_ANALYTICS_DISABLED"},{no:9,name:"ERROR_NOT_AUTHENTICATED"},{no:10,name:"ERR_OPENAI_DISABLED"},{no:11,name:"ERR_FREE_TRIAL_EXPIRED"},{no:12,name:"ERROR_NOT_AUTHORIZED"},{no:13,name:"ERR_LIMIT_REACHED"},{no:14,name:"ERR_DEPLOYMENT_FAILED"},{no:15,name:"ERR_INVALID_NAME"},{no:16,name:"ERR_UPGRADE_PLAN"},{no:17,name:"ERR_BAD_REQUEST"},{no:18,name:"ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"}]);var Ms;(function(e){e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS=0]="GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE=1]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST=2]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"})(Ms||(Ms={}));C.util.setEnumType(Ms,"wg.cosmo.common.GraphQLSubscriptionProtocol",[{no:0,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_WS"},{no:1,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE"},{no:2,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"}]);var xs;(function(e){e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO=0]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS=1]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS=2]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"})(xs||(xs={}));C.util.setEnumType(xs,"wg.cosmo.common.GraphQLWebsocketSubprotocol",[{no:0,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"},{no:1,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS"},{no:2,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"}]);var $j=ys(Oe(),1);m();T();N();var bb;(function(e){e[e.RENDER_ARGUMENT_DEFAULT=0]="RENDER_ARGUMENT_DEFAULT",e[e.RENDER_ARGUMENT_AS_GRAPHQL_VALUE=1]="RENDER_ARGUMENT_AS_GRAPHQL_VALUE",e[e.RENDER_ARGUMENT_AS_ARRAY_CSV=2]="RENDER_ARGUMENT_AS_ARRAY_CSV"})(bb||(bb={}));C.util.setEnumType(bb,"wg.cosmo.node.v1.ArgumentRenderConfiguration",[{no:0,name:"RENDER_ARGUMENT_DEFAULT"},{no:1,name:"RENDER_ARGUMENT_AS_GRAPHQL_VALUE"},{no:2,name:"RENDER_ARGUMENT_AS_ARRAY_CSV"}]);var jc;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(jc||(jc={}));C.util.setEnumType(jc,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var wu;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(wu||(wu={}));C.util.setEnumType(wu,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var Dp;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RESOLVE=1]="RESOLVE",e[e.REQUIRES=2]="REQUIRES"})(Dp||(Dp={}));C.util.setEnumType(Dp,"wg.cosmo.node.v1.LookupType",[{no:0,name:"LOOKUP_TYPE_UNSPECIFIED"},{no:1,name:"LOOKUP_TYPE_RESOLVE"},{no:2,name:"LOOKUP_TYPE_REQUIRES"}]);var bp;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(bp||(bp={}));C.util.setEnumType(bp,"wg.cosmo.node.v1.OperationType",[{no:0,name:"OPERATION_TYPE_UNSPECIFIED"},{no:1,name:"OPERATION_TYPE_QUERY"},{no:2,name:"OPERATION_TYPE_MUTATION"},{no:3,name:"OPERATION_TYPE_SUBSCRIPTION"}]);var Ho;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(Ho||(Ho={}));C.util.setEnumType(Ho,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var Lu;(function(e){e[e.STATIC_CONFIGURATION_VARIABLE=0]="STATIC_CONFIGURATION_VARIABLE",e[e.ENV_CONFIGURATION_VARIABLE=1]="ENV_CONFIGURATION_VARIABLE",e[e.PLACEHOLDER_CONFIGURATION_VARIABLE=2]="PLACEHOLDER_CONFIGURATION_VARIABLE"})(Lu||(Lu={}));C.util.setEnumType(Lu,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Kc;(function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e[e.OPTIONS=4]="OPTIONS"})(Kc||(Kc={}));C.util.setEnumType(Kc,"wg.cosmo.node.v1.HTTPMethod",[{no:0,name:"GET"},{no:1,name:"POST"},{no:2,name:"PUT"},{no:3,name:"DELETE"},{no:4,name:"OPTIONS"}]);var qs=class qs extends we{constructor(n){super();_(this,"id","");_(this,"name","");_(this,"routingUrl","");C.util.initPartial(n,this)}static fromBinary(n,r){return new qs().fromBinary(n,r)}static fromJson(n,r){return new qs().fromJson(n,r)}static fromJsonString(n,r){return new qs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(qs,n,r)}};_(qs,"runtime",C),_(qs,"typeName","wg.cosmo.node.v1.Subgraph"),_(qs,"fields",C.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"routing_url",kind:"scalar",T:9}]));var Oh=qs,Vs=class Vs extends we{constructor(n){super();_(this,"configByFeatureFlagName",{});C.util.initPartial(n,this)}static fromBinary(n,r){return new Vs().fromBinary(n,r)}static fromJson(n,r){return new Vs().fromJson(n,r)}static fromJsonString(n,r){return new Vs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Vs,n,r)}};_(Vs,"runtime",C),_(Vs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),_(Vs,"fields",C.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:Rb}}]));var Ab=Vs,js=class js extends we{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new js().fromBinary(n,r)}static fromJson(n,r){return new js().fromJson(n,r)}static fromJsonString(n,r){return new js().fromJsonString(n,r)}static equals(n,r){return C.util.equals(js,n,r)}};_(js,"runtime",C),_(js,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),_(js,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Nd},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Oh,repeated:!0}]));var Rb=js,Ks=class Ks extends we{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);_(this,"featureFlagConfigs");_(this,"compatibilityVersion","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ks().fromBinary(n,r)}static fromJson(n,r){return new Ks().fromJson(n,r)}static fromJsonString(n,r){return new Ks().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ks,n,r)}};_(Ks,"runtime",C),_(Ks,"typeName","wg.cosmo.node.v1.RouterConfig"),_(Ks,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Nd},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Oh,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:Ab,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var Ap=Ks,Gs=class Gs extends we{constructor(n){super();_(this,"code",md.OK);_(this,"details");C.util.initPartial(n,this)}static fromBinary(n,r){return new Gs().fromBinary(n,r)}static fromJson(n,r){return new Gs().fromJson(n,r)}static fromJsonString(n,r){return new Gs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Gs,n,r)}};_(Gs,"runtime",C),_(Gs,"typeName","wg.cosmo.node.v1.Response"),_(Gs,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:C.getEnumType(md)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var Pb=Gs,$s=class $s extends we{constructor(n){super();_(this,"code",0);_(this,"message","");C.util.initPartial(n,this)}static fromBinary(n,r){return new $s().fromBinary(n,r)}static fromJson(n,r){return new $s().fromJson(n,r)}static fromJsonString(n,r){return new $s().fromJsonString(n,r)}static equals(n,r){return C.util.equals($s,n,r)}};_($s,"runtime",C),_($s,"typeName","wg.cosmo.node.v1.ResponseStatus"),_($s,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var Uj=$s,Qs=class Qs extends we{constructor(n){super();_(this,"accountLimits");_(this,"graphPublicKey","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Qs().fromBinary(n,r)}static fromJson(n,r){return new Qs().fromJson(n,r)}static fromJsonString(n,r){return new Qs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Qs,n,r)}};_(Qs,"runtime",C),_(Qs,"typeName","wg.cosmo.node.v1.RegistrationInfo"),_(Qs,"fields",C.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:wb},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var Fb=Qs,Ys=class Ys extends we{constructor(n){super();_(this,"traceSamplingRate",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ys().fromBinary(n,r)}static fromJson(n,r){return new Ys().fromJson(n,r)}static fromJsonString(n,r){return new Ys().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ys,n,r)}};_(Ys,"runtime",C),_(Ys,"typeName","wg.cosmo.node.v1.AccountLimits"),_(Ys,"fields",C.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var wb=Ys,Js=class Js extends we{constructor(t){super(),C.util.initPartial(t,this)}static fromBinary(t,n){return new Js().fromBinary(t,n)}static fromJson(t,n){return new Js().fromJson(t,n)}static fromJsonString(t,n){return new Js().fromJsonString(t,n)}static equals(t,n){return C.util.equals(Js,t,n)}};_(Js,"runtime",C),_(Js,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),_(Js,"fields",C.util.newFieldList(()=>[]));var kj=Js,Hs=class Hs extends we{constructor(n){super();_(this,"response");_(this,"registrationInfo");C.util.initPartial(n,this)}static fromBinary(n,r){return new Hs().fromBinary(n,r)}static fromJson(n,r){return new Hs().fromJson(n,r)}static fromJsonString(n,r){return new Hs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Hs,n,r)}};_(Hs,"runtime",C),_(Hs,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),_(Hs,"fields",C.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:Pb},{no:2,name:"registrationInfo",kind:"message",T:Fb,opt:!0}]));var Mj=Hs,zs=class zs extends we{constructor(n){super();_(this,"defaultFlushInterval",Jn.zero);_(this,"datasourceConfigurations",[]);_(this,"fieldConfigurations",[]);_(this,"graphqlSchema","");_(this,"typeConfigurations",[]);_(this,"stringStorage",{});_(this,"graphqlClientSchema");C.util.initPartial(n,this)}static fromBinary(n,r){return new zs().fromBinary(n,r)}static fromJson(n,r){return new zs().fromJson(n,r)}static fromJsonString(n,r){return new zs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(zs,n,r)}};_(zs,"runtime",C),_(zs,"typeName","wg.cosmo.node.v1.EngineConfiguration"),_(zs,"fields",C.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:Rp,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:wp,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:Lb,repeated:!0},{no:6,name:"string_storage",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:7,name:"graphql_client_schema",kind:"scalar",T:9,opt:!0}]));var Nd=zs,Ws=class Ws extends we{constructor(n){super();_(this,"kind",wu.STATIC);_(this,"rootNodes",[]);_(this,"childNodes",[]);_(this,"overrideFieldPathFromAlias",!1);_(this,"customGraphql");_(this,"customStatic");_(this,"directives",[]);_(this,"requestTimeoutSeconds",Jn.zero);_(this,"id","");_(this,"keys",[]);_(this,"provides",[]);_(this,"requires",[]);_(this,"customEvents");_(this,"entityInterfaces",[]);_(this,"interfaceObjects",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ws().fromBinary(n,r)}static fromJson(n,r){return new Ws().fromJson(n,r)}static fromJsonString(n,r){return new Ws().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ws,n,r)}};_(Ws,"runtime",C),_(Ws,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),_(Ws,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(wu)},{no:2,name:"root_nodes",kind:"message",T:Td,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Td,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:Bp},{no:6,name:"custom_static",kind:"message",T:$b},{no:7,name:"directives",kind:"message",T:Qb,repeated:!0},{no:8,name:"request_timeout_seconds",kind:"scalar",T:3},{no:9,name:"id",kind:"scalar",T:9},{no:10,name:"keys",kind:"message",T:Vc,repeated:!0},{no:11,name:"provides",kind:"message",T:Vc,repeated:!0},{no:12,name:"requires",kind:"message",T:Vc,repeated:!0},{no:13,name:"custom_events",kind:"message",T:$c},{no:14,name:"entity_interfaces",kind:"message",T:Ed,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:Ed,repeated:!0}]));var Rp=Ws,Xs=class Xs extends we{constructor(n){super();_(this,"name","");_(this,"sourceType",jc.OBJECT_FIELD);C.util.initPartial(n,this)}static fromBinary(n,r){return new Xs().fromBinary(n,r)}static fromJson(n,r){return new Xs().fromJson(n,r)}static fromJsonString(n,r){return new Xs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Xs,n,r)}};_(Xs,"runtime",C),_(Xs,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),_(Xs,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:C.getEnumType(jc)}]));var Pp=Xs,Zs=class Zs extends we{constructor(n){super();_(this,"requiredAndScopes",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Zs().fromBinary(n,r)}static fromJson(n,r){return new Zs().fromJson(n,r)}static fromJsonString(n,r){return new Zs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Zs,n,r)}};_(Zs,"runtime",C),_(Zs,"typeName","wg.cosmo.node.v1.Scopes"),_(Zs,"fields",C.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Gc=Zs,eo=class eo extends we{constructor(n){super();_(this,"requiresAuthentication",!1);_(this,"requiredOrScopes",[]);_(this,"requiredOrScopesByOr",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new eo().fromBinary(n,r)}static fromJson(n,r){return new eo().fromJson(n,r)}static fromJsonString(n,r){return new eo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(eo,n,r)}};_(eo,"runtime",C),_(eo,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),_(eo,"fields",C.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Gc,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:Gc,repeated:!0}]));var Fp=eo,to=class to extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"argumentsConfiguration",[]);_(this,"authorizationConfiguration");_(this,"subscriptionFilterCondition");C.util.initPartial(n,this)}static fromBinary(n,r){return new to().fromBinary(n,r)}static fromJson(n,r){return new to().fromJson(n,r)}static fromJsonString(n,r){return new to().fromJsonString(n,r)}static equals(n,r){return C.util.equals(to,n,r)}};_(to,"runtime",C),_(to,"typeName","wg.cosmo.node.v1.FieldConfiguration"),_(to,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:Pp,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:Fp},{no:5,name:"subscription_filter_condition",kind:"message",T:Cu,opt:!0}]));var wp=to,no=class no extends we{constructor(n){super();_(this,"typeName","");_(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new no().fromBinary(n,r)}static fromJson(n,r){return new no().fromJson(n,r)}static fromJsonString(n,r){return new no().fromJsonString(n,r)}static equals(n,r){return C.util.equals(no,n,r)}};_(no,"runtime",C),_(no,"typeName","wg.cosmo.node.v1.TypeConfiguration"),_(no,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var Lb=no,ro=class ro extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldNames",[]);_(this,"externalFieldNames",[]);_(this,"requireFetchReasonsFieldNames",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new ro().fromBinary(n,r)}static fromJson(n,r){return new ro().fromJson(n,r)}static fromJsonString(n,r){return new ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ro,n,r)}};_(ro,"runtime",C),_(ro,"typeName","wg.cosmo.node.v1.TypeField"),_(ro,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0},{no:3,name:"external_field_names",kind:"scalar",T:9,repeated:!0},{no:4,name:"require_fetch_reasons_field_names",kind:"scalar",T:9,repeated:!0}]));var Td=ro,io=class io extends we{constructor(n){super();_(this,"fieldName","");_(this,"typeName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new io().fromBinary(n,r)}static fromJson(n,r){return new io().fromJson(n,r)}static fromJsonString(n,r){return new io().fromJsonString(n,r)}static equals(n,r){return C.util.equals(io,n,r)}};_(io,"runtime",C),_(io,"typeName","wg.cosmo.node.v1.FieldCoordinates"),_(io,"fields",C.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var Lp=io,ao=class ao extends we{constructor(n){super();_(this,"fieldCoordinatesPath",[]);_(this,"fieldPath",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new ao().fromBinary(n,r)}static fromJson(n,r){return new ao().fromJson(n,r)}static fromJsonString(n,r){return new ao().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ao,n,r)}};_(ao,"runtime",C),_(ao,"typeName","wg.cosmo.node.v1.FieldSetCondition"),_(ao,"fields",C.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:Lp,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var Cp=ao,so=class so extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"selectionSet","");_(this,"disableEntityResolver",!1);_(this,"conditions",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new so().fromBinary(n,r)}static fromJson(n,r){return new so().fromJson(n,r)}static fromJsonString(n,r){return new so().fromJsonString(n,r)}static equals(n,r){return C.util.equals(so,n,r)}};_(so,"runtime",C),_(so,"typeName","wg.cosmo.node.v1.RequiredField"),_(so,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8},{no:5,name:"conditions",kind:"message",T:Cp,repeated:!0}]));var Vc=so,oo=class oo extends we{constructor(n){super();_(this,"interfaceTypeName","");_(this,"concreteTypeNames",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new oo().fromBinary(n,r)}static fromJson(n,r){return new oo().fromJson(n,r)}static fromJsonString(n,r){return new oo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(oo,n,r)}};_(oo,"runtime",C),_(oo,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),_(oo,"fields",C.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var Ed=oo,uo=class uo extends we{constructor(n){super();_(this,"url");_(this,"method",Kc.GET);_(this,"header",{});_(this,"body");_(this,"query",[]);_(this,"urlEncodeBody",!1);_(this,"mtls");_(this,"baseUrl");_(this,"path");_(this,"httpProxyUrl");C.util.initPartial(n,this)}static fromBinary(n,r){return new uo().fromBinary(n,r)}static fromJson(n,r){return new uo().fromJson(n,r)}static fromJsonString(n,r){return new uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(uo,n,r)}};_(uo,"runtime",C),_(uo,"typeName","wg.cosmo.node.v1.FetchConfiguration"),_(uo,"fields",C.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:$r},{no:2,name:"method",kind:"enum",T:C.getEnumType(Kc)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:Jb}},{no:4,name:"body",kind:"message",T:$r},{no:5,name:"query",kind:"message",T:Yb,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:Hb},{no:9,name:"base_url",kind:"message",T:$r},{no:10,name:"path",kind:"message",T:$r},{no:11,name:"http_proxy_url",kind:"message",T:$r,opt:!0}]));var Cb=uo,co=class co extends we{constructor(n){super();_(this,"statusCode",Jn.zero);_(this,"typeName","");_(this,"injectStatusCodeIntoBody",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new co().fromBinary(n,r)}static fromJson(n,r){return new co().fromJson(n,r)}static fromJsonString(n,r){return new co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(co,n,r)}};_(co,"runtime",C),_(co,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),_(co,"fields",C.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var xj=co,lo=class lo extends we{constructor(n){super();_(this,"fetch");_(this,"subscription");_(this,"federation");_(this,"upstreamSchema");_(this,"customScalarTypeFields",[]);_(this,"grpc");C.util.initPartial(n,this)}static fromBinary(n,r){return new lo().fromBinary(n,r)}static fromJson(n,r){return new lo().fromJson(n,r)}static fromJsonString(n,r){return new lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(lo,n,r)}};_(lo,"runtime",C),_(lo,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),_(lo,"fields",C.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:Cb},{no:2,name:"subscription",kind:"message",T:zb},{no:3,name:"federation",kind:"message",T:Wb},{no:4,name:"upstream_schema",kind:"message",T:Vp},{no:6,name:"custom_scalar_type_fields",kind:"message",T:Xb,repeated:!0},{no:7,name:"grpc",kind:"message",T:hd}]));var Bp=lo,fo=class fo extends we{constructor(n){super();_(this,"mapping");_(this,"protoSchema","");_(this,"plugin");C.util.initPartial(n,this)}static fromBinary(n,r){return new fo().fromBinary(n,r)}static fromJson(n,r){return new fo().fromJson(n,r)}static fromJsonString(n,r){return new fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(fo,n,r)}};_(fo,"runtime",C),_(fo,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),_(fo,"fields",C.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:Ub},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:Up}]));var hd=fo,po=class po extends we{constructor(n){super();_(this,"repository","");_(this,"reference","");C.util.initPartial(n,this)}static fromBinary(n,r){return new po().fromBinary(n,r)}static fromJson(n,r){return new po().fromJson(n,r)}static fromJsonString(n,r){return new po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(po,n,r)}};_(po,"runtime",C),_(po,"typeName","wg.cosmo.node.v1.ImageReference"),_(po,"fields",C.util.newFieldList(()=>[{no:1,name:"repository",kind:"scalar",T:9},{no:2,name:"reference",kind:"scalar",T:9}]));var Bb=po,mo=class mo extends we{constructor(n){super();_(this,"name","");_(this,"version","");_(this,"imageReference");C.util.initPartial(n,this)}static fromBinary(n,r){return new mo().fromBinary(n,r)}static fromJson(n,r){return new mo().fromJson(n,r)}static fromJsonString(n,r){return new mo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(mo,n,r)}};_(mo,"runtime",C),_(mo,"typeName","wg.cosmo.node.v1.PluginConfiguration"),_(mo,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"image_reference",kind:"message",T:Bb,opt:!0}]));var Up=mo,No=class No extends we{constructor(n){super();_(this,"enabled",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new No().fromBinary(n,r)}static fromJson(n,r){return new No().fromJson(n,r)}static fromJsonString(n,r){return new No().fromJsonString(n,r)}static equals(n,r){return C.util.equals(No,n,r)}};_(No,"runtime",C),_(No,"typeName","wg.cosmo.node.v1.SSLConfiguration"),_(No,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var qj=No,To=class To extends we{constructor(n){super();_(this,"version",0);_(this,"service","");_(this,"operationMappings",[]);_(this,"entityMappings",[]);_(this,"typeFieldMappings",[]);_(this,"enumMappings",[]);_(this,"resolveMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new To().fromBinary(n,r)}static fromJson(n,r){return new To().fromJson(n,r)}static fromJsonString(n,r){return new To().fromJsonString(n,r)}static equals(n,r){return C.util.equals(To,n,r)}};_(To,"runtime",C),_(To,"typeName","wg.cosmo.node.v1.GRPCMapping"),_(To,"fields",C.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:5},{no:2,name:"service",kind:"scalar",T:9},{no:3,name:"operation_mappings",kind:"message",T:xb,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:qb,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:Vb,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:Kb,repeated:!0},{no:7,name:"resolve_mappings",kind:"message",T:kb,repeated:!0}]));var Ub=To,Eo=class Eo extends we{constructor(n){super();_(this,"type",Dp.UNSPECIFIED);_(this,"lookupMapping");_(this,"rpc","");_(this,"request","");_(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Eo().fromBinary(n,r)}static fromJson(n,r){return new Eo().fromJson(n,r)}static fromJsonString(n,r){return new Eo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Eo,n,r)}};_(Eo,"runtime",C),_(Eo,"typeName","wg.cosmo.node.v1.LookupMapping"),_(Eo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(Dp)},{no:2,name:"lookup_mapping",kind:"message",T:Mb},{no:3,name:"rpc",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var kb=Eo,ho=class ho extends we{constructor(n){super();_(this,"type","");_(this,"fieldMapping");C.util.initPartial(n,this)}static fromBinary(n,r){return new ho().fromBinary(n,r)}static fromJson(n,r){return new ho().fromJson(n,r)}static fromJsonString(n,r){return new ho().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ho,n,r)}};_(ho,"runtime",C),_(ho,"typeName","wg.cosmo.node.v1.LookupFieldMapping"),_(ho,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mapping",kind:"message",T:Sh}]));var Mb=ho,yo=class yo extends we{constructor(n){super();_(this,"type",bp.UNSPECIFIED);_(this,"original","");_(this,"mapped","");_(this,"request","");_(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new yo().fromBinary(n,r)}static fromJson(n,r){return new yo().fromJson(n,r)}static fromJsonString(n,r){return new yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(yo,n,r)}};_(yo,"runtime",C),_(yo,"typeName","wg.cosmo.node.v1.OperationMapping"),_(yo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(bp)},{no:2,name:"original",kind:"scalar",T:9},{no:3,name:"mapped",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var xb=yo,Io=class Io extends we{constructor(n){super();_(this,"typeName","");_(this,"kind","");_(this,"key","");_(this,"rpc","");_(this,"request","");_(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Io().fromBinary(n,r)}static fromJson(n,r){return new Io().fromJson(n,r)}static fromJsonString(n,r){return new Io().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Io,n,r)}};_(Io,"runtime",C),_(Io,"typeName","wg.cosmo.node.v1.EntityMapping"),_(Io,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"kind",kind:"scalar",T:9},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"rpc",kind:"scalar",T:9},{no:5,name:"request",kind:"scalar",T:9},{no:6,name:"response",kind:"scalar",T:9}]));var qb=Io,go=class go extends we{constructor(n){super();_(this,"type","");_(this,"fieldMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new go().fromBinary(n,r)}static fromJson(n,r){return new go().fromJson(n,r)}static fromJsonString(n,r){return new go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(go,n,r)}};_(go,"runtime",C),_(go,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),_(go,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:Sh,repeated:!0}]));var Vb=go,_o=class _o extends we{constructor(n){super();_(this,"original","");_(this,"mapped","");_(this,"argumentMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new _o().fromBinary(n,r)}static fromJson(n,r){return new _o().fromJson(n,r)}static fromJsonString(n,r){return new _o().fromJsonString(n,r)}static equals(n,r){return C.util.equals(_o,n,r)}};_(_o,"runtime",C),_(_o,"typeName","wg.cosmo.node.v1.FieldMapping"),_(_o,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9},{no:3,name:"argument_mappings",kind:"message",T:jb,repeated:!0}]));var Sh=_o,vo=class vo extends we{constructor(n){super();_(this,"original","");_(this,"mapped","");C.util.initPartial(n,this)}static fromBinary(n,r){return new vo().fromBinary(n,r)}static fromJson(n,r){return new vo().fromJson(n,r)}static fromJsonString(n,r){return new vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(vo,n,r)}};_(vo,"runtime",C),_(vo,"typeName","wg.cosmo.node.v1.ArgumentMapping"),_(vo,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var jb=vo,Oo=class Oo extends we{constructor(n){super();_(this,"type","");_(this,"values",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Oo().fromBinary(n,r)}static fromJson(n,r){return new Oo().fromJson(n,r)}static fromJsonString(n,r){return new Oo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Oo,n,r)}};_(Oo,"runtime",C),_(Oo,"typeName","wg.cosmo.node.v1.EnumMapping"),_(Oo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:Gb,repeated:!0}]));var Kb=Oo,So=class So extends we{constructor(n){super();_(this,"original","");_(this,"mapped","");C.util.initPartial(n,this)}static fromBinary(n,r){return new So().fromBinary(n,r)}static fromJson(n,r){return new So().fromJson(n,r)}static fromJsonString(n,r){return new So().fromJsonString(n,r)}static equals(n,r){return C.util.equals(So,n,r)}};_(So,"runtime",C),_(So,"typeName","wg.cosmo.node.v1.EnumValueMapping"),_(So,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var Gb=So,Do=class Do extends we{constructor(n){super();_(this,"consumerName","");_(this,"streamName","");_(this,"consumerInactiveThreshold",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new Do().fromBinary(n,r)}static fromJson(n,r){return new Do().fromJson(n,r)}static fromJsonString(n,r){return new Do().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Do,n,r)}};_(Do,"runtime",C),_(Do,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),_(Do,"fields",C.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9},{no:3,name:"consumer_inactive_threshold",kind:"scalar",T:5}]));var kp=Do,bo=class bo extends we{constructor(n){super();_(this,"engineEventConfiguration");_(this,"subjects",[]);_(this,"streamConfiguration");C.util.initPartial(n,this)}static fromBinary(n,r){return new bo().fromBinary(n,r)}static fromJson(n,r){return new bo().fromJson(n,r)}static fromJsonString(n,r){return new bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(bo,n,r)}};_(bo,"runtime",C),_(bo,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),_(bo,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:zo},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:kp}]));var Mp=bo,Ao=class Ao extends we{constructor(n){super();_(this,"engineEventConfiguration");_(this,"topics",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ao().fromBinary(n,r)}static fromJson(n,r){return new Ao().fromJson(n,r)}static fromJsonString(n,r){return new Ao().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ao,n,r)}};_(Ao,"runtime",C),_(Ao,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),_(Ao,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:zo},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var xp=Ao,Ro=class Ro extends we{constructor(n){super();_(this,"engineEventConfiguration");_(this,"channels",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ro().fromBinary(n,r)}static fromJson(n,r){return new Ro().fromJson(n,r)}static fromJsonString(n,r){return new Ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ro,n,r)}};_(Ro,"runtime",C),_(Ro,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),_(Ro,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:zo},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var qp=Ro,Po=class Po extends we{constructor(n){super();_(this,"providerId","");_(this,"type",Ho.PUBLISH);_(this,"typeName","");_(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Po().fromBinary(n,r)}static fromJson(n,r){return new Po().fromJson(n,r)}static fromJsonString(n,r){return new Po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Po,n,r)}};_(Po,"runtime",C),_(Po,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),_(Po,"fields",C.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:C.getEnumType(Ho)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var zo=Po,Fo=class Fo extends we{constructor(n){super();_(this,"nats",[]);_(this,"kafka",[]);_(this,"redis",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Fo().fromBinary(n,r)}static fromJson(n,r){return new Fo().fromJson(n,r)}static fromJsonString(n,r){return new Fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Fo,n,r)}};_(Fo,"runtime",C),_(Fo,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),_(Fo,"fields",C.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:Mp,repeated:!0},{no:2,name:"kafka",kind:"message",T:xp,repeated:!0},{no:3,name:"redis",kind:"message",T:qp,repeated:!0}]));var $c=Fo,wo=class wo extends we{constructor(n){super();_(this,"data");C.util.initPartial(n,this)}static fromBinary(n,r){return new wo().fromBinary(n,r)}static fromJson(n,r){return new wo().fromJson(n,r)}static fromJsonString(n,r){return new wo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(wo,n,r)}};_(wo,"runtime",C),_(wo,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),_(wo,"fields",C.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:$r}]));var $b=wo,Lo=class Lo extends we{constructor(n){super();_(this,"kind",Lu.STATIC_CONFIGURATION_VARIABLE);_(this,"staticVariableContent","");_(this,"environmentVariableName","");_(this,"environmentVariableDefaultValue","");_(this,"placeholderVariableName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Lo().fromBinary(n,r)}static fromJson(n,r){return new Lo().fromJson(n,r)}static fromJsonString(n,r){return new Lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Lo,n,r)}};_(Lo,"runtime",C),_(Lo,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),_(Lo,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(Lu)},{no:2,name:"static_variable_content",kind:"scalar",T:9},{no:3,name:"environment_variable_name",kind:"scalar",T:9},{no:4,name:"environment_variable_default_value",kind:"scalar",T:9},{no:5,name:"placeholder_variable_name",kind:"scalar",T:9}]));var $r=Lo,Co=class Co extends we{constructor(n){super();_(this,"directiveName","");_(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Co().fromBinary(n,r)}static fromJson(n,r){return new Co().fromJson(n,r)}static fromJsonString(n,r){return new Co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Co,n,r)}};_(Co,"runtime",C),_(Co,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),_(Co,"fields",C.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var Qb=Co,Bo=class Bo extends we{constructor(n){super();_(this,"name","");_(this,"value","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Bo().fromBinary(n,r)}static fromJson(n,r){return new Bo().fromJson(n,r)}static fromJsonString(n,r){return new Bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Bo,n,r)}};_(Bo,"runtime",C),_(Bo,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),_(Bo,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var Yb=Bo,Uo=class Uo extends we{constructor(n){super();_(this,"values",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Uo().fromBinary(n,r)}static fromJson(n,r){return new Uo().fromJson(n,r)}static fromJsonString(n,r){return new Uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Uo,n,r)}};_(Uo,"runtime",C),_(Uo,"typeName","wg.cosmo.node.v1.HTTPHeader"),_(Uo,"fields",C.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:$r,repeated:!0}]));var Jb=Uo,ko=class ko extends we{constructor(n){super();_(this,"key");_(this,"cert");_(this,"insecureSkipVerify",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new ko().fromBinary(n,r)}static fromJson(n,r){return new ko().fromJson(n,r)}static fromJsonString(n,r){return new ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ko,n,r)}};_(ko,"runtime",C),_(ko,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),_(ko,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:$r},{no:2,name:"cert",kind:"message",T:$r},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var Hb=ko,Mo=class Mo extends we{constructor(n){super();_(this,"enabled",!1);_(this,"url");_(this,"useSSE");_(this,"protocol");_(this,"websocketSubprotocol");C.util.initPartial(n,this)}static fromBinary(n,r){return new Mo().fromBinary(n,r)}static fromJson(n,r){return new Mo().fromJson(n,r)}static fromJsonString(n,r){return new Mo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Mo,n,r)}};_(Mo,"runtime",C),_(Mo,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),_(Mo,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:$r},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:C.getEnumType(Ms),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:C.getEnumType(xs),opt:!0}]));var zb=Mo,xo=class xo extends we{constructor(n){super();_(this,"enabled",!1);_(this,"serviceSdl","");C.util.initPartial(n,this)}static fromBinary(n,r){return new xo().fromBinary(n,r)}static fromJson(n,r){return new xo().fromJson(n,r)}static fromJsonString(n,r){return new xo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(xo,n,r)}};_(xo,"runtime",C),_(xo,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),_(xo,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var Wb=xo,qo=class qo extends we{constructor(n){super();_(this,"key","");C.util.initPartial(n,this)}static fromBinary(n,r){return new qo().fromBinary(n,r)}static fromJson(n,r){return new qo().fromJson(n,r)}static fromJsonString(n,r){return new qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(qo,n,r)}};_(qo,"runtime",C),_(qo,"typeName","wg.cosmo.node.v1.InternedString"),_(qo,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var Vp=qo,Vo=class Vo extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Vo().fromBinary(n,r)}static fromJson(n,r){return new Vo().fromJson(n,r)}static fromJsonString(n,r){return new Vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Vo,n,r)}};_(Vo,"runtime",C),_(Vo,"typeName","wg.cosmo.node.v1.SingleTypeField"),_(Vo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var Xb=Vo,jo=class jo extends we{constructor(n){super();_(this,"fieldPath",[]);_(this,"json","");C.util.initPartial(n,this)}static fromBinary(n,r){return new jo().fromBinary(n,r)}static fromJson(n,r){return new jo().fromJson(n,r)}static fromJsonString(n,r){return new jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(jo,n,r)}};_(jo,"runtime",C),_(jo,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),_(jo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var jp=jo,ta=class ta extends we{constructor(n){super();_(this,"and",[]);_(this,"in");_(this,"not");_(this,"or",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new ta().fromBinary(n,r)}static fromJson(n,r){return new ta().fromJson(n,r)}static fromJsonString(n,r){return new ta().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ta,n,r)}};_(ta,"runtime",C),_(ta,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),_(ta,"fields",C.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:ta,repeated:!0},{no:2,name:"in",kind:"message",T:jp,opt:!0},{no:3,name:"not",kind:"message",T:ta,opt:!0},{no:4,name:"or",kind:"message",T:ta,repeated:!0}]));var Cu=ta,Ko=class Ko extends we{constructor(n){super();_(this,"operations",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ko().fromBinary(n,r)}static fromJson(n,r){return new Ko().fromJson(n,r)}static fromJsonString(n,r){return new Ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ko,n,r)}};_(Ko,"runtime",C),_(Ko,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),_(Ko,"fields",C.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:Zb,repeated:!0}]));var Vj=Ko,Go=class Go extends we{constructor(n){super();_(this,"request");_(this,"client");C.util.initPartial(n,this)}static fromBinary(n,r){return new Go().fromBinary(n,r)}static fromJson(n,r){return new Go().fromJson(n,r)}static fromJsonString(n,r){return new Go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Go,n,r)}};_(Go,"runtime",C),_(Go,"typeName","wg.cosmo.node.v1.Operation"),_(Go,"fields",C.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:e0},{no:2,name:"client",kind:"message",T:r0}]));var Zb=Go,$o=class $o extends we{constructor(n){super();_(this,"operationName","");_(this,"query","");_(this,"extensions");C.util.initPartial(n,this)}static fromBinary(n,r){return new $o().fromBinary(n,r)}static fromJson(n,r){return new $o().fromJson(n,r)}static fromJsonString(n,r){return new $o().fromJsonString(n,r)}static equals(n,r){return C.util.equals($o,n,r)}};_($o,"runtime",C),_($o,"typeName","wg.cosmo.node.v1.OperationRequest"),_($o,"fields",C.util.newFieldList(()=>[{no:1,name:"operation_name",kind:"scalar",T:9},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"extensions",kind:"message",T:t0}]));var e0=$o,Qo=class Qo extends we{constructor(n){super();_(this,"persistedQuery");C.util.initPartial(n,this)}static fromBinary(n,r){return new Qo().fromBinary(n,r)}static fromJson(n,r){return new Qo().fromJson(n,r)}static fromJsonString(n,r){return new Qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Qo,n,r)}};_(Qo,"runtime",C),_(Qo,"typeName","wg.cosmo.node.v1.Extension"),_(Qo,"fields",C.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:n0}]));var t0=Qo,Yo=class Yo extends we{constructor(n){super();_(this,"sha256Hash","");_(this,"version",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new Yo().fromBinary(n,r)}static fromJson(n,r){return new Yo().fromJson(n,r)}static fromJsonString(n,r){return new Yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Yo,n,r)}};_(Yo,"runtime",C),_(Yo,"typeName","wg.cosmo.node.v1.PersistedQuery"),_(Yo,"fields",C.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var n0=Yo,Jo=class Jo extends we{constructor(n){super();_(this,"name","");_(this,"version","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Jo().fromBinary(n,r)}static fromJson(n,r){return new Jo().fromJson(n,r)}static fromJsonString(n,r){return new Jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Jo,n,r)}};_(Jo,"runtime",C),_(Jo,"typeName","wg.cosmo.node.v1.ClientInfo"),_(Jo,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var r0=Jo;m();T();N();function i0(e){return new Error(`Normalization failed to return a ${e}.`)}function jj(e){return new Error(`Invalid router compatibility version "${e}".`)}m();T();N();var yd=ys(ZE(),1);function mpe(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let a=i.split(".");if(a.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new Lp({fieldName:a[1],typeName:a[0]}))}t.push(new Cp({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function a0(e,t,n){if(e)for(let r of e){let i=mpe(r);t.push(new Vc(M(M({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function s0(e){switch(e){case"publish":return Ho.PUBLISH;case"request":return Ho.REQUEST;case"subscribe":return Ho.SUBSCRIBE}}function Kj(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new $c({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,a=[...r.fieldNames],o=new Td({fieldNames:a,typeName:i});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.requireFetchReasonsFieldNames&&r.requireFetchReasonsFieldNames.length>0&&(o.requireFetchReasonsFieldNames=[...r.requireFetchReasonsFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let p=new Ed({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(p):t.entityInterfaces.push(p)}a0(r.keys,t.keys,i),a0(r.provides,t.provides,i),a0(r.requires,t.requires,i);let c=[],l=[],d=[];for(let p of(n=r.events)!=null?n:[])switch(p.providerType){case yd.PROVIDER_TYPE_KAFKA:{l.push(new xp({engineEventConfiguration:new zo({fieldName:p.fieldName,providerId:p.providerId,type:s0(p.type),typeName:i}),topics:p.topics}));break}case yd.PROVIDER_TYPE_NATS:{c.push(new Mp(M({engineEventConfiguration:new zo({fieldName:p.fieldName,providerId:p.providerId,type:s0(p.type),typeName:i}),subjects:p.subjects},p.streamConfiguration?{streamConfiguration:new kp({consumerInactiveThreshold:p.streamConfiguration.consumerInactiveThreshold,consumerName:p.streamConfiguration.consumerName,streamName:p.streamConfiguration.streamName})}:{})));break}case yd.PROVIDER_TYPE_REDIS:{d.push(new qp({engineEventConfiguration:new zo({fieldName:p.fieldName,providerId:p.providerId,type:s0(p.type),typeName:i}),channels:p.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...c),t.events.kafka.push(...l),t.events.redis.push(...d)}return t}function Gj(e){var n,r;let t=[];for(let i of e){let a=i.argumentNames.map(p=>new Pp({name:p,sourceType:jc.FIELD_ARGUMENT})),o=new wp({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),c=((n=i.requiredScopes)==null?void 0:n.map(p=>new Gc({requiredAndScopes:p})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(p=>new Gc({requiredAndScopes:p})))||[],d=c.length>0;if((i.requiresAuthentication||d)&&(o.authorizationConfiguration=new Fp({requiresAuthentication:i.requiresAuthentication||d,requiredOrScopes:c,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let p=new Cu;Dh(p,i.subscriptionFilterCondition),o.subscriptionFilterCondition=p}t.push(o)}return t}function Dh(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new Cu;Dh(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new jp({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new Cu,Dh(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new Cu;Dh(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}var Qc;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Qc||(Qc={}));var Npe=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new Vp({key:n})},Tpe=e=>{switch(e){case"ws":return Ms.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return Ms.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return Ms.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},Epe=e=>{switch(e){case"auto":return xs.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return xs.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return xs.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},Qj=function(e){if(!Id.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw jj(e.routerCompatibilityVersion);let t=new Nd({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw i0("ConfigurationDataByTypeName");if(!n.schema)throw i0("GraphQLSchema");let r={enabled:!0},i=Npe(t,ZV((0,$j.lexicographicSortSchema)(n.schema))),{childNodes:a,entityInterfaces:o,events:c,interfaceObjects:l,keys:d,provides:p,requires:E,rootNodes:I}=Kj(n.configurationDataByTypeName),v;switch(n.kind){case Qc.Standard:{r.enabled=!0,r.protocol=Tpe(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=Epe(n.websocketSubprotocol||"auto"),r.url=new $r({kind:Lu.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case Qc.Plugin:{v=new hd({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new Up({name:n.name,version:n.version,imageReference:n.imageReference})});break}case Qc.GRPC:{v=new hd({mapping:n.mapping,protoSchema:n.protoSchema});break}}let A,U,j;if(c.kafka.length>0||c.nats.length>0||c.redis.length>0){A=wu.PUBSUB,j=new $c({kafka:c.kafka,nats:c.nats,redis:c.redis});let re=ue=>Id.ROOT_TYPE_NAMES.has(ue.typeName),ee=0,me=0;for(;ee({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${Id.COMPOSITION_VERSION}`})};m();T();N();var Jc=ys(Oe());function Yj(e){let t;try{t=(0,Jc.parse)(e.schema)}catch(n){throw new Error(`could not parse schema for Graph ${e.name}: ${n}`)}return{definitions:t,name:e.name,url:e.url}}function hpe(e){let t=(0,Yc.federateSubgraphs)({subgraphs:e.map(Yj),version:Yc.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:(0,Jc.print)(t.federatedGraphAST)}}function ype(e){let t=(0,Yc.federateSubgraphs)({subgraphs:e.map(Yj),version:Yc.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return Qj({federatedClientSDL:(0,Jc.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,Jc.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:Yc.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,d;let a=t.subgraphConfigBySubgraphName.get(r.name),o=a==null?void 0:a.schema,c=a==null?void 0:a.configurationDataByTypeName;return{kind:Qc.Standard,id:`${i}`,name:r.name,url:fb(r.url),sdl:r.schema,subscriptionUrl:fb((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(d=r.subscription_protocol)!=null?d:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:c}})}).toJsonString()}return Lm(Ipe);})(); +`)+Ie+`return __p +}`;var At=mP(function(){return en(P,He+"return "+Ie).apply(e,M)});if(At.source=Ie,P_(At))throw At;return At}function sW(o){return sn(o).toLowerCase()}function aW(o){return sn(o).toUpperCase()}function oW(o,c,T){if(o=sn(o),o&&(T||c===e))return vw(o);if(!o||!(c=Ji(c)))return o;var y=Ks(o),b=Ks(c),P=Sw(y,b),M=Dw(y,b)+1;return ac(y,P,M).join("")}function uW(o,c,T){if(o=sn(o),o&&(T||c===e))return o.slice(0,bw(o)+1);if(!o||!(c=Ji(c)))return o;var y=Ks(o),b=Dw(y,Ks(c))+1;return ac(y,0,b).join("")}function cW(o,c,T){if(o=sn(o),o&&(T||c===e))return o.replace(Pg,"");if(!o||!(c=Ji(c)))return o;var y=Ks(o),b=Sw(y,Ks(c));return ac(y,b).join("")}function lW(o,c){var T=at,y=te;if($n(c)){var b="separator"in c?c.separator:b;T="length"in c?Ot(c.length):T,y="omission"in c?Ji(c.omission):y}o=sn(o);var P=o.length;if(Td(o)){var M=Ks(o);P=M.length}if(T>=P)return o;var $=T-Ed(y);if($<1)return y;var H=M?ac(M,0,$).join(""):o.slice(0,$);if(b===e)return H+y;if(M&&($+=H.length-$),C_(b)){if(o.slice($).search(b)){var Ne,Te=H;for(b.global||(b=zg(b.source,sn(GF.exec(b))+"g")),b.lastIndex=0;Ne=b.exec(Te);)var Ie=Ne.index;H=H.slice(0,Ie===e?$:Ie)}}else if(o.indexOf(Ji(b),$)!=$){var Fe=H.lastIndexOf(b);Fe>-1&&(H=H.slice(0,Fe))}return H+y}function dW(o){return o=sn(o),o&&_Y.test(o)?o.replace($F,V2):o}var fW=vd(function(o,c,T){return o+(T?" ":"")+c.toUpperCase()}),k_=NL("toUpperCase");function pP(o,c,T){return o=sn(o),c=T?e:c,c===e?U2(o)?j2(o):O2(o):o.match(c)||[]}var mP=Ft(function(o,c){try{return Qi(o,e,c)}catch(T){return P_(T)?T:new yt(T)}}),pW=so(function(o,c){return ls(c,function(T){T=Sa(T),ro(o,T,w_(o[T],o))}),o});function mW(o){var c=o==null?0:o.length,T=it();return o=c?Bn(o,function(y){if(typeof y[1]!="function")throw new ds(i);return[T(y[0]),y[1]]}):[],Ft(function(y){for(var b=-1;++bSn)return[];var T=Cn,y=Xr(o,Cn);c=it(c),o-=Cn;for(var b=Yg(y,c);++T0||c<0)?new Ut(T):(o<0?T=T.takeRight(-o):o&&(T=T.drop(o)),c!==e&&(c=Ot(c),T=c<0?T.dropRight(-c):T.take(c-o)),T)},Ut.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Ut.prototype.toArray=function(){return this.take(Cn)},_a(Ut.prototype,function(o,c){var T=/^(?:filter|find|map|reject)|While$/.test(c),y=/^(?:head|last)$/.test(c),b=L[y?"take"+(c=="last"?"Right":""):c],P=y||/^find/.test(c);b&&(L.prototype[c]=function(){var M=this.__wrapped__,$=y?[1]:arguments,H=M instanceof Ut,Ne=$[0],Te=H||It(M),Ie=function(Ct){var qt=b.apply(L,Zu([Ct],$));return y&&Fe?qt[0]:qt};Te&&T&&typeof Ne=="function"&&Ne.length!=1&&(H=Te=!1);var Fe=this.__chain__,He=!!this.__actions__.length,ot=P&&!Fe,At=H&&!He;if(!P&&Te){M=At?M:new Ut(this);var ut=o.apply(M,$);return ut.__actions__.push({func:fE,args:[Ie],thisArg:e}),new fs(ut,Fe)}return ot&&At?o.apply(this,$):(ut=this.thru(Ie),ot?y?ut.value()[0]:ut.value():ut)})}),ls(["pop","push","shift","sort","splice","unshift"],function(o){var c=xT[o],T=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",y=/^(?:pop|shift)$/.test(o);L.prototype[o]=function(){var b=arguments;if(y&&!this.__chain__){var P=this.value();return c.apply(It(P)?P:[],b)}return this[T](function(M){return c.apply(It(M)?M:[],b)})}}),_a(Ut.prototype,function(o,c){var T=L[c];if(T){var y=T.name+"";Nn.call(Id,y)||(Id[y]=[]),Id[y].push({name:c,func:T})}}),Id[sE(e,U).name]=[{name:"wrapper",func:e}],Ut.prototype.clone=dJ,Ut.prototype.reverse=fJ,Ut.prototype.value=pJ,L.prototype.at=$3,L.prototype.chain=j3,L.prototype.commit=K3,L.prototype.next=G3,L.prototype.plant=Y3,L.prototype.reverse=J3,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=H3,L.prototype.first=L.prototype.head,pp&&(L.prototype[pp]=Q3),L},tc=K2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Pr._=tc,define(function(){return tc})):Hc?((Hc.exports=tc)._=tc,Mg._=tc):Pr._=tc}).call(ep)});var YG=C(sd=>{"use strict";p();N();m();Object.defineProperty(sd,"__esModule",{value:!0});sd.FederationFactory=void 0;sd.federateSubgraphs=Ame;sd.federateSubgraphsWithContracts=Rme;sd.federateSubgraphsContract=Fme;var we=(Oe(),Ae(Pe)),jG=Lc(),bi=ui(),Le=As(),rd=fy(),id=Jf(),Ai=ZN(),XI=cI(),uT=Pc(),Sme=xR(),Dme=eT(),KG=DN(),ve=bf(),Ome=qR(),GG=$G(),tp=WI(),De=Er(),ZI=vf(),ye=di(),bme=tT(),jc=ON(),tg,QG,eg=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,disableResolvabilityValidation:r,entityDataByTypeName:i,entityInterfaceFederationDataByTypeName:s,fieldCoordsByNamedTypeName:a,internalGraph:u,internalSubgraphBySubgraphName:l,warnings:d}){il(this,tg);v(this,"authorizationDataByParentTypeName");v(this,"coordsByNamedTypeName",new Map);v(this,"disableResolvabilityValidation",!1);v(this,"directiveDefinitionByName",new Map);v(this,"clientDefinitions",[]);v(this,"currentSubgraphName","");v(this,"concreteTypeNamesByAbstractTypeName");v(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);v(this,"entityDataByTypeName");v(this,"entityInterfaceFederationDataByTypeName");v(this,"errors",[]);v(this,"fieldConfigurationByFieldCoords",new Map);v(this,"fieldCoordsByNamedTypeName");v(this,"inaccessibleCoords",new Set);v(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);v(this,"internalGraph");v(this,"internalSubgraphBySubgraphName");v(this,"invalidORScopesCoords",new Set);v(this,"isMaxDepth",!1);v(this,"isVersionTwo",!1);v(this,"namedInputValueTypeNames",new Set);v(this,"namedOutputTypeNames",new Set);v(this,"parentDefinitionDataByTypeName",new Map);v(this,"parentTagDataByTypeName",new Map);v(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[De.AUTHENTICATED,jc.AUTHENTICATED_DEFINITION],[De.DEPRECATED,jc.DEPRECATED_DEFINITION],[De.INACCESSIBLE,jc.INACCESSIBLE_DEFINITION],[De.ONE_OF,jc.ONE_OF_DEFINITION],[De.REQUIRES_SCOPES,jc.REQUIRES_SCOPES_DEFINITION],[De.SEMANTIC_NON_NULL,jc.SEMANTIC_NON_NULL_DEFINITION],[De.TAG,jc.TAG_DEFINITION]]));v(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);v(this,"referencedPersistedDirectiveNames",new Set);v(this,"routerDefinitions",[]);v(this,"subscriptionFilterDataByFieldPath",new Map);v(this,"tagNamesByCoords",new Map);v(this,"warnings");this.authorizationDataByParentTypeName=t,this.concreteTypeNamesByAbstractTypeName=n,this.disableResolvabilityValidation=r!=null?r:!1,this.entityDataByTypeName=i,this.entityInterfaceFederationDataByTypeName=s,this.fieldCoordsByNamedTypeName=a,this.internalGraph=u,this.internalSubgraphBySubgraphName=l,this.warnings=d}extractPersistedDirectives({data:t,directivesByName:n}){for(let[r,i]of n)if(this.persistedDirectiveDefinitionByDirectiveName.get(r)&&(this.referencedPersistedDirectiveNames.add(r),!(De.AUTHORIZATION_DIRECTIVES.has(r)||i.length<1)))switch(r){case De.DEPRECATED:{t.isDeprecated=!0,(0,ve.upsertDeprecatedDirective)(t,i[0]);break}case De.TAG:{(0,ve.upsertTagDirectives)(t,i);break}default:{let a=t.directivesByName.get(r);if(!a){t.directivesByName.set(r,[...i]);break}if(De.NON_REPEATABLE_PERSISTED_DIRECTIVES.has(r))break;a.push(...i)}}return t}getValidImplementedInterfaces(t){var a;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,ve.isNodeDataInaccessible)(t),i=new Map,s=new Map;for(let u of t.implementedInterfaceTypeNames){n.push((0,bi.stringToNamedTypeNode)(u));let l=(0,ye.getOrThrowError)(this.parentDefinitionDataByTypeName,u,De.PARENT_DEFINITION_DATA);if(l.kind!==we.Kind.INTERFACE_TYPE_DEFINITION){s.set(l.name,(0,ye.kindToNodeType)(l.kind));continue}let d={invalidFieldImplementations:new Map,unimplementedFields:[]},f=!1;for(let[E,h]of l.fieldDataByName){let _=!1,A=t.fieldDataByName.get(E);if(!A){f=!0,d.unimplementedFields.push(E);continue}let U={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,XI.printTypeNode)(h.node.type),unimplementedArguments:new Set};(0,ve.isTypeValidImplementation)(h.node.type,A.node.type,this.concreteTypeNamesByAbstractTypeName)||(f=!0,_=!0,U.implementedResponseType=(0,XI.printTypeNode)(A.node.type));let q=new Set;for(let[j,re]of h.argumentDataByName){let ee=re.node;q.add(j);let me=(a=A.argumentDataByName.get(j))==null?void 0:a.node;if(!me){f=!0,_=!0,U.unimplementedArguments.add(j);continue}let ce=(0,XI.printTypeNode)(me.type),be=(0,XI.printTypeNode)(ee.type);be!==ce&&(f=!0,_=!0,U.invalidImplementedArguments.push({actualType:ce,argumentName:j,expectedType:be}))}for(let[j,re]of A.argumentDataByName){let ee=re.node;q.has(j)||ee.type.kind===we.Kind.NON_NULL_TYPE&&(f=!0,_=!0,U.invalidAdditionalArguments.add(j))}!r&&A.isInaccessible&&!h.isInaccessible&&(f=!0,_=!0,U.isInaccessible=!0),_&&d.invalidFieldImplementations.set(E,U)}f&&i.set(u,d)}return s.size>0&&this.errors.push((0,Le.invalidImplementedTypeError)(t.name,s)),i.size>0&&this.errors.push((0,Le.invalidInterfaceImplementationError)(t.node.name.value,(0,ye.kindToNodeType)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var f;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,ye.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,s=i.get(n.typeName);if(!s||s.kind!==we.Kind.OBJECT_TYPE_DEFINITION)throw(0,Le.incompatibleParentKindFatalError)(n.typeName,we.Kind.OBJECT_TYPE_DEFINITION,(s==null?void 0:s.kind)||we.Kind.NULL);let a=r.configurationDataByTypeName.get(n.typeName);if(!a)return;let u=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,rd.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:u,objectData:s,parentDefinitionDataByTypeName:i,graphNode:l});for(let[E,h]of this.entityInterfaceFederationDataByTypeName){if(!((f=h.concreteTypeNames)!=null&&f.has(n.typeName)))continue;let _=this.entityDataByTypeName.get(E);_&&(0,rd.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:_,implicitKeys:u,objectData:s,parentDefinitionDataByTypeName:i,graphNode:l})}if(u.length<1)return;if(!a.keys||a.keys.length<1){a.isRootNode=!0,a.keys=u;return}let d=new Set(a.keys.map(E=>E.selectionSet));for(let E of u)d.has(E.selectionSet)||(a.keys.push(E),d.add(E.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let s=t.parentDefinitionDataByTypeName,a=s.get(n);if(!a||!(0,ve.isParentDataCompositeOutputType)(a))throw(0,Le.incompatibleParentKindFatalError)(n,we.Kind.INTERFACE_TYPE_DEFINITION,(a==null?void 0:a.kind)||we.Kind.NULL);let u=(0,ye.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,rd.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoordinates,currentSubgraphName:t.name,entityData:r,implicitKeys:l,objectData:a,parentDefinitionDataByTypeName:s,graphNode:i}),l.length<1)return;if(!u.keys||u.keys.length<1){u.isRootNode=!0,u.keys=l;return}let d=new Set(u.keys.map(f=>f.selectionSet));for(let f of l)d.has(f.selectionSet)||(u.keys.push(f),d.add(f.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?ve.MergeMethod.CONSISTENT:ve.MergeMethod.INTERSECTION:ve.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByCoords){let r=t.split(De.LITERAL_PERIOD);if(r.length<1)continue;let i=(0,ye.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,rd.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let s=(0,ye.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,rd.newChildTagData)(r[1]));for(let l of n)s.tagNames.add(l);break;case 3:let a=(0,ye.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,rd.newChildTagData)(r[1])),u=(0,ye.getValueOrDefault)(a.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)u.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),s=i||this.copyEnumValueData(n);this.extractPersistedDirectives({data:s.persistedDirectivesData,directivesByName:n.directivesByName});let a=(0,ve.isNodeDataInaccessible)(n);if((r||a)&&this.inaccessibleCoords.add(s.federatedCoords),this.recordTagNamesByCoords(s,s.federatedCoords),!i){t.set(s.name,s);return}s.appearances+=1,(0,ye.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,s.configureDescriptionDataBySubgraphName),(0,ve.setLongestDescription)(s,n),(0,ye.addIterableToSet)({source:n.subgraphNames,target:s.subgraphNames})}upsertInputValueData(t,n,r,i){let s=t.get(n.name),a=s||this.copyInputValueData(n);if(this.extractPersistedDirectives({data:a.persistedDirectivesData,directivesByName:n.directivesByName}),this.recordTagNamesByCoords(a,`${r}.${a.name}`),this.namedInputValueTypeNames.add(a.namedTypeName),(0,ye.getValueOrDefault)(this.coordsByNamedTypeName,a.namedTypeName,()=>new Set).add(a.federatedCoords),!s){t.set(a.name,a);return}(0,ye.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ve.setLongestDescription)(a,n),(0,ye.addIterableToSet)({source:n.requiredSubgraphNames,target:a.requiredSubgraphNames}),(0,ye.addIterableToSet)({source:n.subgraphNames,target:a.subgraphNames}),this.handleInputValueInaccessibility(i,a,r);let u=(0,tp.getMostRestrictiveMergedTypeNode)(a.type,n.type,a.originalCoords,this.errors);u.success?a.type=u.typeNode:this.errors.push((0,Le.incompatibleMergedTypesError)({actualType:u.actualType,isArgument:s.isArgument,coords:s.federatedCoords,expectedType:u.expectedType})),(0,ve.compareAndValidateInputValueDefaultValues)(a,n,this.errors)}handleInputValueInaccessibility(t,n,r){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(n.federatedCoords),this.inaccessibleCoords.add(n.federatedCoords);return}if((0,ve.isNodeDataInaccessible)(n)){if((0,ve.isTypeRequired)(n.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(n.federatedCoords,(0,Le.inaccessibleRequiredInputValueError)(n,r));return}this.inaccessibleCoords.add(n.federatedCoords)}}handleSubscriptionFilterDirective(t,n){let r=t.directivesByName.get(De.SUBSCRIPTION_FILTER);if(!r)return;let i=(0,ye.getFirstEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,Le.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:r[0],fieldData:n||t,directiveSubgraphName:i})}federateOutputType({current:t,other:n,coords:r,mostRestrictive:i}){n=(0,jG.getMutableTypeNode)(n,r,this.errors);let s={kind:t.kind},a=tp.DivergentType.NONE,u=s;for(let l=0;lnew Set)})}upsertFieldData(t,n,r){let i=t.get(n.name),s=i||this.copyFieldData(n,r||(0,ve.isNodeDataInaccessible)(n));(0,ye.getValueOrDefault)(this.coordsByNamedTypeName,n.namedTypeName,()=>new Set).add(s.federatedCoords),this.namedOutputTypeNames.add(n.namedTypeName),this.handleSubscriptionFilterDirective(n,s),this.extractPersistedDirectives({data:s.persistedDirectivesData,directivesByName:n.directivesByName});let a=r||(0,ve.isNodeDataInaccessible)(s);if(a&&this.inaccessibleCoords.add(s.federatedCoords),this.recordTagNamesByCoords(s,s.federatedCoords),!i){t.set(s.name,s);return}let u=this.federateOutputType({current:s.type,other:n.type,coords:s.federatedCoords,mostRestrictive:!1});if(u.success)if(s.type=u.typeNode,s.namedTypeName!==n.namedTypeName){let l=(0,ye.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,s.federatedCoords,()=>new Map),d=(0,ye.getValueOrDefault)(l,s.namedTypeName,()=>new Set);if(d.size<1)for(let f of s.subgraphNames)n.subgraphNames.has(f)||d.add(f);(0,ye.addIterableToSet)({source:n.subgraphNames,target:(0,ye.getValueOrDefault)(l,n.namedTypeName,()=>new Set)})}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(n);for(let l of n.argumentDataByName.values())this.upsertInputValueData(s.argumentDataByName,l,s.federatedCoords,a);(0,ye.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,ve.setLongestDescription)(s,n),s.isInaccessible||(s.isInaccessible=n.isInaccessible),(0,ye.addNewObjectValueMapEntries)(n.externalFieldDataBySubgraphName,s.externalFieldDataBySubgraphName),(0,ye.addMapEntries)({source:n.isShareableBySubgraphName,target:s.isShareableBySubgraphName}),(0,ye.addMapEntries)({source:n.nullLevelsBySubgraphName,target:s.nullLevelsBySubgraphName}),(0,ye.addIterableToSet)({source:n.subgraphNames,target:s.subgraphNames})}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(r)||n.push(i);return n}recordTagNamesByCoords(t,n){let r=n||t.name;if(t.persistedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,ye.getValueOrDefault)(this.tagNamesByCoords,r,()=>new Set);for(let s of t.persistedDirectivesData.tagDirectiveByName.keys())i.add(s)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,ye.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,ye.copyArrayValueMap)(t.directivesByName),extensionType:t.extensionType,name:t.name,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ve.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),description:(0,ve.getInitialFederatedDescription)(t)}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,ye.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByName:(0,ye.copyArrayValueMap)(t.directivesByName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,bi.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ve.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),subgraphNames:new Set(t.subgraphNames),description:(0,ve.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,ye.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,ye.copyArrayValueMap)(t.directivesByName),federatedCoords:t.federatedCoords,fieldName:t.fieldName,includeDefaultValue:t.includeDefaultValue,isArgument:t.isArgument,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:we.Kind.INPUT_VALUE_DEFINITION,name:(0,bi.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ve.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,ve.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,n,r){let i=new Map;for(let[s,a]of t){let u=this.copyInputValueData(a);this.handleInputValueInaccessibility(n,u,r),(0,ye.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedInputValueTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,`${r}.${a.name}`),i.set(s,u)}return i}copyFieldData(t,n){return{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,n,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,ye.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,ye.copyArrayValueMap)(t.directivesByName),externalFieldDataBySubgraphName:(0,ye.copyObjectValueMap)(t.externalFieldDataBySubgraphName),federatedCoords:t.federatedCoords,inheritedDirectiveNames:new Set,isInaccessible:t.isInaccessible,isShareableBySubgraphName:new Map(t.isShareableBySubgraphName),kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{arguments:[],directives:[],kind:t.kind,name:(0,bi.stringToNameNode)(t.name),type:t.type},nullLevelsBySubgraphName:t.nullLevelsBySubgraphName,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ve.newPersistedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,ve.getInitialFederatedDescription)(t)}}copyEnumValueDataByName(t,n){let r=new Map;for(let[i,s]of t){let a=this.copyEnumValueData(s);this.recordTagNamesByCoords(a,a.federatedCoords),(n||(0,ve.isNodeDataInaccessible)(a))&&this.inaccessibleCoords.add(a.federatedCoords),r.set(i,a)}return r}copyFieldDataByName(t,n){let r=new Map;for(let[i,s]of t){let a=n||(0,ve.isNodeDataInaccessible)(s),u=this.copyFieldData(s,a);this.handleSubscriptionFilterDirective(u),(0,ye.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedOutputTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,u.federatedCoords),a&&this.inaccessibleCoords.add(u.federatedCoords),r.set(i,u)}return r}copyParentDefinitionData(t){let n=this.copyMutualParentDefinitionData(t);switch(t.kind){case we.Kind.ENUM_TYPE_DEFINITION:return K(x({},n),{appearances:t.appearances,enumValueDataByName:this.copyEnumValueDataByName(t.enumValueDataByName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,bi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case we.Kind.INPUT_OBJECT_TYPE_DEFINITION:return K(x({},n),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,bi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case we.Kind.INTERFACE_TYPE_DEFINITION:return K(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,bi.stringToNameNode)(t.name)},requireFetchReasonsFieldNames:new Set,subgraphNames:new Set(t.subgraphNames)});case we.Kind.OBJECT_TYPE_DEFINITION:return K(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,isRootType:t.isRootType,kind:t.kind,node:{kind:t.kind,name:(0,bi.stringToNameNode)(t.renamedTypeName||t.name)},requireFetchReasonsFieldNames:new Set,renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case we.Kind.SCALAR_TYPE_DEFINITION:return K(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,bi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case we.Kind.UNION_TYPE_DEFINITION:return K(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,bi.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:n}){if(!t){let r=this.copyParentDefinitionData(n);return(0,ve.isParentDataRootType)(r)&&(r.extensionType=KG.ExtensionType.NONE),r}return this.extractPersistedDirectives({data:t.persistedDirectivesData,directivesByName:n.directivesByName}),t}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),s=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(s);let a=(0,ve.isNodeDataInaccessible)(s);if(a&&this.inaccessibleCoords.add(s.name),r&&r.interfaceObjectSubgraphNames.has(n)){if(i&&i.kind!==we.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,Le.incompatibleParentTypeMergeError)({existingData:i,incomingSubgraphName:n}));return}s.kind=we.Kind.INTERFACE_TYPE_DEFINITION,s.node.kind=we.Kind.INTERFACE_TYPE_DEFINITION}if(!i){this.parentDefinitionDataByTypeName.set(s.name,s);return}if(s.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphNames.has(n)||s.kind!==we.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==we.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Le.incompatibleParentTypeMergeError)({existingData:s,incomingNodeType:(0,ye.kindToNodeType)(t.kind),incomingSubgraphName:n}));return}switch((0,ye.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,s.configureDescriptionDataBySubgraphName),(0,ve.setLongestDescription)(s,t),(0,ve.setParentDataExtensionType)(s,t),s.kind){case we.Kind.ENUM_TYPE_DEFINITION:if(!(0,ve.areKindsEqual)(s,t))return;s.appearances+=1,s.isInaccessible||(s.isInaccessible=a),(0,ye.addIterableToSet)({source:t.subgraphNames,target:s.subgraphNames});for(let l of t.enumValueDataByName.values())this.upsertEnumValueData(s.enumValueDataByName,l,a);return;case we.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,ve.areKindsEqual)(s,t))return;a&&!s.isInaccessible&&this.propagateInaccessibilityToExistingChildren(s),s.isInaccessible||(s.isInaccessible=a),(0,ye.addIterableToSet)({source:t.subgraphNames,target:s.subgraphNames});for(let l of t.inputValueDataByName.values())this.upsertInputValueData(s.inputValueDataByName,l,s.name,s.isInaccessible);return;case we.Kind.INTERFACE_TYPE_DEFINITION:case we.Kind.OBJECT_TYPE_DEFINITION:let u=t;a&&!s.isInaccessible&&this.propagateInaccessibilityToExistingChildren(s),s.isInaccessible||(s.isInaccessible=a),(0,ye.addIterableToSet)({source:u.implementedInterfaceTypeNames,target:s.implementedInterfaceTypeNames}),(0,ye.addIterableToSet)({source:u.subgraphNames,target:s.subgraphNames});for(let l of u.fieldDataByName.values())this.upsertFieldData(s.fieldDataByName,l,s.isInaccessible);return;case we.Kind.UNION_TYPE_DEFINITION:if(!(0,ve.areKindsEqual)(s,t))return;(0,ye.addMapEntries)({source:t.memberByMemberTypeName,target:s.memberByMemberTypeName}),(0,ye.addIterableToSet)({source:t.subgraphNames,target:s.subgraphNames});return;default:(0,ye.addIterableToSet)({source:t.subgraphNames,target:s.subgraphNames});return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case we.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByName.values())this.inaccessibleCoords.add(n.federatedCoords);break;default:for(let n of t.fieldDataByName.values()){this.inaccessibleCoords.add(n.federatedCoords);for(let r of n.argumentDataByName.values())this.inaccessibleCoords.add(r.federatedCoords)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let s=new Map;for(let a of t.argumentDataByName.values())this.namedInputValueTypeNames.add(a.namedTypeName),this.upsertInputValueData(s,a,`@${t.name}`,!1);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByName:s,executableLocations:new Set(t.executableLocations),name:r,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(i.subgraphNames.size+1!==n){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}if((0,ve.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let s of t.argumentDataByName.values())this.namedInputValueTypeNames.add((0,jG.getTypeNodeNamedTypeName)(s.type)),this.upsertInputValueData(i.argumentDataByName,s,`@${i.name}`,!1);(0,ve.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,ye.addIterableToSet)({source:t.subgraphNames,target:i.subgraphNames})}shouldUpdateFederatedFieldAbstractNamedType(t,n){if(!t)return!1;let r=this.concreteTypeNamesByAbstractTypeName.get(t);if(!r||r.size<1)return!1;for(let i of n)if(!r.has(i))return!1;return!0}updateTypeNodeNamedType(t,n){let r=t;for(let i=0;i1){this.errors.push((0,Le.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case we.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Le.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=f;break}default:{this.errors.push((0,Le.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(a.size<1&&!l){this.errors.push((0,Le.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let d=l;if(a.size>0){if(l){this.errors.push((0,Le.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let f of a.keys()){d=f;for(let[E,h]of a)if(f!==E&&!h.implementedInterfaceTypeNames.has(f)){d="";break}if(d)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(d,u)){this.errors.push((0,Le.incompatibleFederatedFieldNamedTypeError)(t,n));continue}s.namedTypeName=d,this.updateTypeNodeNamedType(s.type,d)}}federateInternalSubgraphData(){let t=0,n=!1;for(let r of this.internalSubgraphBySubgraphName.values()){t+=1,this.currentSubgraphName=r.name,this.isVersionTwo||(this.isVersionTwo=r.isVersionTwo),(0,Ome.renameRootTypes)(this,r);for(let i of r.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(i,r.name);if(!n){if(!r.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let i of r.persistedDirectiveDefinitionDataByDirectiveName.values())this.upsertPersistedDirectiveDefinitionData(i,t);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size<1&&(n=!0)}}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:s,subgraphName:a}){let u=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let f of i.satisfiedFieldSets)u.satisfiedFieldSets.add(f),s.has(f)&&l.addTargetSubgraphByFieldSet(f,a);let d=r.fieldDatasBySubgraphName.get(a);for(let{name:f,namedTypeName:E}of d||[])this.internalGraph.addEdge(u,this.internalGraph.addOrUpdateNode(E),f);this.internalGraph.addEdge(i,u,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,u)}handleEntityInterfaces(){var t;for(let[n,r]of this.entityInterfaceFederationDataByTypeName){let i=(0,ye.getOrThrowError)(this.parentDefinitionDataByTypeName,n,De.PARENT_DEFINITION_DATA);if(i.kind===we.Kind.INTERFACE_TYPE_DEFINITION)for(let s of r.interfaceObjectSubgraphNames){let a=(0,ye.getOrThrowError)(this.internalSubgraphBySubgraphName,s,"internalSubgraphBySubgraphName"),u=a.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(n);if(!l)continue;let d=(0,ye.getOrThrowError)(u,n,"configurationDataByTypeName"),f=d.keys;if(!f)continue;d.entityInterfaceConcreteTypeNames=new Set(r.concreteTypeNames),this.internalGraph.setSubgraphName(s);let E=this.internalGraph.addOrUpdateNode(n,{isAbstract:!0});for(let h of l){let _=(0,ye.getOrThrowError)(this.parentDefinitionDataByTypeName,h,De.PARENT_DEFINITION_DATA);if(!(0,Ai.isObjectDefinitionData)(_))continue;let A=(0,ye.getOrThrowError)(this.entityDataByTypeName,h,"entityDataByTypeName");A.subgraphNames.add(s);let U=u.get(h);if(U)if((0,ye.addIterableToSet)({source:d.fieldNames,target:U.fieldNames}),!U.keys)U.keys=[...f];else e:for(let ee of f){for(let{selectionSet:me}of U.keys)if(ee.selectionSet===me)continue e;U.keys.push(ee)}else u.set(h,{fieldNames:new Set(d.fieldNames),isRootNode:!0,keys:[...f],typeName:h});let q=new Set;for(let ee of f.filter(me=>!me.disableEntityResolver))q.add(ee.selectionSet);let j=this.authorizationDataByParentTypeName.get(n),re=(0,ye.getOrThrowError)(a.parentDefinitionDataByTypeName,n,"internalSubgraph.parentDefinitionDataByTypeName");if((0,Ai.isObjectDefinitionData)(re)){for(let[ee,me]of re.fieldDataByName){let ce=`${h}.${ee}`;(0,ye.getValueOrDefault)(this.fieldCoordsByNamedTypeName,me.namedTypeName,()=>new Set).add(ce);let be=j==null?void 0:j.fieldAuthDataByFieldName.get(ee);if(be){let te=(0,ye.getValueOrDefault)(this.authorizationDataByParentTypeName,h,()=>(0,Ai.newAuthorizationData)(h));(0,Ai.upsertFieldAuthorizationData)(te.fieldAuthDataByFieldName,be)||this.invalidORScopesCoords.add(ce)}let xe=_.fieldDataByName.get(ee);if(xe){let te=(t=me.isShareableBySubgraphName.get(s))!=null?t:!1;xe.isShareableBySubgraphName.set(s,te),xe.subgraphNames.add(s);let Se=me.externalFieldDataBySubgraphName.get(s);if(!Se)continue;xe.externalFieldDataBySubgraphName.set(s,x({},Se));continue}let at=i.isInaccessible||_.isInaccessible||me.isInaccessible;_.fieldDataByName.set(ee,this.copyFieldData(me,at))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:a,subgraphName:s,interfaceObjectData:r,interfaceObjectNode:E,resolvableKeyFieldSets:q,entityData:A})}}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,Ai.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t){var i;let n=(0,Ai.getNodeCoords)(t),r=[];for(let[s,a]of t.persistedDirectivesData.directivesByName){if(s===De.SEMANTIC_NON_NULL&&(0,ve.isFieldData)(t)){r.push((0,ye.generateSemanticNonNullDirective)((i=(0,ye.getFirstEntry)(t.nullLevelsBySubgraphName))!=null?i:new Set([0])));continue}let u=this.persistedDirectiveDefinitionByDirectiveName.get(s);if(u){if(a.length<2){r.push(...a);continue}if(!u.repeatable){this.errors.push((0,Le.invalidRepeatedFederatedDirectiveErrorMessage)(s,n));continue}r.push(...a)}}return r}getRouterPersistedDirectiveNodes(t){let n=[...t.persistedDirectivesData.tagDirectiveByName.values()];return t.persistedDirectivesData.isDeprecated&&n.push((0,ve.generateDeprecatedDirective)(t.persistedDirectivesData.deprecatedReason)),n.push(...this.getValidFlattenedPersistedDirectiveNodeArray(t)),n}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let n=[],r="";for(let[i,{propagate:s,description:a}]of t.configureDescriptionDataBySubgraphName)s&&(n.push(i),r=a);if(n.length===1)return(0,rd.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,Le.configureDescriptionPropagationError)((0,ve.getDefinitionDataCoords)(t,!0),n))}getNodeForRouterSchemaByData(t){return t.node.name=(0,bi.stringToNameNode)(t.name),t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}getNodeWithPersistedDirectivesByInputValueData(t){return t.node.name=(0,bi.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.includeDefaultValue&&(t.node.defaultValue=t.defaultValue),t.node}getValidFieldArgumentNodes(t){let n=[],r=[],i=[],s=`${t.renamedParentTypeName}.${t.name}`;for(let[a,u]of t.argumentDataByName)t.subgraphNames.size===u.subgraphNames.size?(r.push(a),n.push(this.getNodeWithPersistedDirectivesByInputValueData(u))):(0,ve.isTypeRequired)(u.type)&&i.push({inputValueName:a,missingSubgraphs:(0,ye.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames),requiredSubgraphs:[...u.requiredSubgraphNames]});return i.length>0?this.errors.push((0,Le.invalidRequiredInputValueError)(De.FIELD,s,i)):r.length>0&&((0,ye.getValueOrDefault)(this.fieldConfigurationByFieldCoords,s,()=>({argumentNames:r,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=r),n}getNodeWithPersistedDirectivesByFieldData(t,n){return t.node.arguments=n,t.node.name=(0,bi.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}validateSemanticNonNull(t){let n;for(let r of t.nullLevelsBySubgraphName.values()){if(!n){n=r;continue}if(n.size!==r.size){this.errors.push((0,Le.semanticNonNullInconsistentLevelsError)(t));return}for(let i of r)if(!n.has(i)){this.errors.push((0,Le.semanticNonNullInconsistentLevelsError)(t));return}}}validateOneOfDirective({data:t,inputValueNodes:n,requiredFieldNames:r}){return t.directivesByName.has(De.ONE_OF)?r.size>0?(this.errors.push((0,Le.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(r),typeName:t.name})),!1):(n.length===1&&this.warnings.push((0,bme.singleFederatedInputFieldOneOfWarning)({fieldName:n[0].name.value,typeName:t.name})),!0):!0}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==KG.ExtensionType.NONE&&this.errors.push((0,Le.noBaseDefinitionForExtensionError)((0,ye.kindToNodeType)(r.kind),n)),r.kind){case we.Kind.ENUM_TYPE_DEFINITION:{if(id.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=[],s=[],a=this.getEnumValueMergeMethod(n);(0,ve.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let u of r.enumValueDataByName.values()){let l=this.getNodeForRouterSchemaByData(u),d=(0,ve.isNodeDataInaccessible)(u),f=K(x({},u.node),{directives:(0,ve.getClientPersistedDirectiveNodes)(u)});switch(a){case ve.MergeMethod.CONSISTENT:!d&&r.appearances>u.appearances&&this.errors.push((0,Le.incompatibleSharedEnumError)(n)),i.push(l),d||s.push(f);break;case ve.MergeMethod.INTERSECTION:r.appearances===u.appearances&&(i.push(l),d||s.push(f));break;default:i.push(l),d||s.push(f);break}}if(r.node.values=i,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ve.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(s.length<1){this.errors.push((0,Le.allChildDefinitionsAreInaccessibleError)((0,ye.kindToNodeType)(r.kind),n,De.ENUM_VALUE));break}this.clientDefinitions.push(K(x({},r.node),{directives:(0,ve.getClientPersistedDirectiveNodes)(r),values:s}));break}case we.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(id.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=new Array,s=new Array,a=new Array,u=new Set;for(let[l,d]of r.inputValueDataByName)if((0,ve.isTypeRequired)(d.type)&&u.add(l),r.subgraphNames.size===d.subgraphNames.size){if(s.push(this.getNodeWithPersistedDirectivesByInputValueData(d)),(0,ve.isNodeDataInaccessible)(d))continue;a.push(K(x({},d.node),{directives:(0,ve.getClientPersistedDirectiveNodes)(d)}))}else(0,ve.isTypeRequired)(d.type)&&i.push({inputValueName:l,missingSubgraphs:(0,ye.getEntriesNotInHashSet)(r.subgraphNames,d.subgraphNames),requiredSubgraphs:[...d.requiredSubgraphNames]});if(i.length>0){this.errors.push((0,Le.invalidRequiredInputValueError)(De.INPUT_OBJECT,n,i,!1));break}if(!this.validateOneOfDirective({data:r,inputValueNodes:s,requiredFieldNames:u}))break;if(r.node.fields=s,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ve.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(a.length<1){this.errors.push((0,Le.allChildDefinitionsAreInaccessibleError)((0,ye.kindToNodeType)(r.kind),n,"Input field"));break}this.clientDefinitions.push(K(x({},r.node),{directives:(0,ve.getClientPersistedDirectiveNodes)(r),fields:a}));break}case we.Kind.INTERFACE_TYPE_DEFINITION:case we.Kind.OBJECT_TYPE_DEFINITION:{let i=[],s=[],a=new Map,u=(0,ve.newInvalidFieldNames)(),l=r.kind===we.Kind.OBJECT_TYPE_DEFINITION,d=this.authorizationDataByParentTypeName.get(n);(0,ve.propagateAuthDirectives)(r,d);for(let[E,h]of r.fieldDataByName){(0,ve.propagateFieldAuthDirectives)(h,d);let _=this.getValidFieldArgumentNodes(h);l&&(0,ve.validateExternalAndShareable)(h,u),this.validateSemanticNonNull(h),i.push(this.getNodeWithPersistedDirectivesByFieldData(h,_)),!(0,ve.isNodeDataInaccessible)(h)&&(s.push((0,ve.getClientSchemaFieldNodeByFieldData)(h)),a.set(E,this.fieldDataToGraphFieldData(h)))}if(l&&(u.byShareable.size>0&&this.errors.push((0,Le.invalidFieldShareabilityError)(r,u.byShareable)),u.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Le.allExternalFieldInstancesError)(n,u.subgraphNamesByExternalFieldName))),r.node.fields=i,this.internalGraph.initializeNode(n,a),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:s});break}this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r));let f=(0,Dme.isNodeQuery)(n);if((0,ve.isNodeDataInaccessible)(r)){if(f){this.errors.push(Le.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(s.length<1){let E=f?(0,Le.noQueryRootTypeError)(!1):(0,Le.allChildDefinitionsAreInaccessibleError)((0,ye.kindToNodeType)(r.kind),n,De.FIELD);this.errors.push(E);break}this.clientDefinitions.push(K(x({},r.node),{directives:(0,ve.getClientPersistedDirectiveNodes)(r),fields:s}));break}case we.Kind.SCALAR_TYPE_DEFINITION:{if(id.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;if((0,ve.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n)),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ve.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(K(x({},r.node),{directives:(0,ve.getClientPersistedDirectiveNodes)(r)}));break}case we.Kind.UNION_TYPE_DEFINITION:{if(r.node.types=(0,Ai.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ve.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let i=this.getClientSchemaUnionMembers(r);if(i.length<1){this.errors.push((0,Le.allChildDefinitionsAreInaccessibleError)(De.UNION,n,"union member type"));break}this.clientDefinitions.push(K(x({},r.node),{directives:(0,ve.getClientPersistedDirectiveNodes)(r),types:i}));break}}}pushNamedTypeAuthDataToFields(){var t;for(let[n,r]of this.authorizationDataByParentTypeName){if(!r.requiresAuthentication&&r.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(n);if(i)for(let s of i){let a=s.split(De.LITERAL_PERIOD);switch(a.length){case 2:{let u=(0,ye.getValueOrDefault)(this.authorizationDataByParentTypeName,a[0],()=>(0,Ai.newAuthorizationData)(a[0])),l=(0,ye.getValueOrDefault)(u.fieldAuthDataByFieldName,a[1],()=>(0,Ai.newFieldAuthorizationData)(a[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>uT.MAX_OR_SCOPES?this.invalidORScopesCoords.add(s):(l.inheritedData.requiredScopesByOR=(0,Ai.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,Ai.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),bd(this,tg,QG).call(this),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(n)),(0,ve.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let s of n.implementedInterfaceTypeNames)this.inaccessibleCoords.has(s)||i.push((0,bi.stringToNamedTypeNode)(s));this.clientDefinitions.push(K(x({},n.node),{directives:(0,ve.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(De.LEFT_PARENTHESIS)[0].split(De.LITERAL_PERIOD),i=r[0];for(let s=0;s0&&this.errors.push((0,Le.invalidReferencesOfInaccessibleTypeError)((0,ye.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(De.QUERY);if(!t||t.kind!==we.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,Le.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,ve.isNodeDataInaccessible)(n))return;this.errors.push((0,Le.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,s){let a=t.split(De.LITERAL_PERIOD);if(a.length<1)return s.push((0,Le.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let u=n;if(this.inaccessibleCoords.has(u.renamedTypeName))return s.push((0,Le.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,a[0],u.renamedTypeName)),[];let l="";for(let d=0;d0?`.${f}`:f,u.kind!==we.Kind.OBJECT_TYPE_DEFINITION)return s.push((0,Le.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let E=u.fieldDataByName.get(f);if(!E)return s.push((0,Le.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,f,u.renamedTypeName)),[];let h=`${u.renamedTypeName}.${f}`;if(!E.subgraphNames.has(i))return s.push((0,Le.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,h,i)),[];if(this.inaccessibleCoords.has(h))return s.push((0,Le.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,h)),[];if(uT.BASE_SCALARS.has(E.namedTypeName)){u={kind:we.Kind.SCALAR_TYPE_DEFINITION,name:E.namedTypeName};continue}u=(0,ye.getOrThrowError)(this.parentDefinitionDataByTypeName,E.namedTypeName,De.PARENT_DEFINITION_DATA)}return(0,ve.isLeafKind)(u.kind)?a:(s.push((0,Le.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,a[a.length-1],(0,ye.kindToNodeType)(u.kind),u.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,s,a,u){if(i>ZI.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Le.subscriptionFilterConditionDepthExceededErrorMessage)(s)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([De.FIELD_PATH,De.VALUES]),f=new Set,E=new Set,h=[];for(let _ of t.fields){let A=_.name.value,U=s+`.${A}`;switch(A){case De.FIELD_PATH:{if(d.has(De.FIELD_PATH))d.delete(De.FIELD_PATH);else{l=!0,f.add(De.FIELD_PATH);break}if(_.value.kind!==we.Kind.STRING){h.push((0,Le.invalidInputFieldTypeErrorMessage)(U,De.STRING,(0,ye.kindToNodeType)(_.value.kind))),l=!0;break}let q=this.validateSubscriptionFieldConditionFieldPath(_.value.value,r,U,a,h);if(q.length<1){l=!0;break}n.fieldPath=q;break}case De.VALUES:{if(d.has(De.VALUES))d.delete(De.VALUES);else{l=!0,f.add(De.VALUES);break}let q=_.value.kind;if(q==we.Kind.NULL||q==we.Kind.OBJECT){h.push((0,Le.invalidInputFieldTypeErrorMessage)(U,De.LIST,(0,ye.kindToNodeType)(_.value.kind))),l=!0;break}if(q!==we.Kind.LIST){n.values=[(0,ve.getSubscriptionFilterValue)(_.value)];break}let j=new Set,re=[];for(let ee=0;ee<_.value.values.length;ee++){let me=_.value.values[ee];if(me.kind===we.Kind.OBJECT||me.kind===we.Kind.LIST){l=!0,re.push(ee);continue}j.add((0,ve.getSubscriptionFilterValue)(me))}if(re.length>0){h.push((0,Le.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(U,re));continue}if(j.size<1){l=!0,h.push((0,Le.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(U));continue}n.values=[...j];break}default:l=!0,E.add(A)}}return l?(u.push((0,Le.subscriptionFieldConditionInvalidInputFieldErrorMessage)(s,[...d],[...f],[...E],h)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,s,a,u){if(i>ZI.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Le.subscriptionFilterConditionDepthExceededErrorMessage)(s)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return u.push((0,Le.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(s,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!id.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return u.push((0,Le.subscriptionFilterConditionInvalidInputFieldErrorMessage)(s,d)),!1;let f=s+`.${d}`;switch(l.value.kind){case we.Kind.OBJECT:switch(d){case De.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,s+".IN",a,u);case De.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,s+".NOT",a,u);default:return u.push((0,Le.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,De.LIST,De.OBJECT)),!1}case we.Kind.LIST:{let E=[];switch(d){case De.AND_UPPER:{n.and=E;break}case De.OR_UPPER:{n.or=E;break}default:return u.push((0,Le.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,De.OBJECT,De.LIST)),!1}let h=l.value.values.length;if(h<1||h>5)return u.push((0,Le.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(f,h)),!1;let _=!0,A=[];for(let U=0;U0?(u.push((0,Le.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(f,A)),!1):_}default:{let E=id.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?De.LIST:De.OBJECT;return u.push((0,Le.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,E,(0,ye.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,s,a){if(!t.arguments||t.arguments.length!==1)return;let u=t.arguments[0];if(u.value.kind!==we.Kind.OBJECT){this.errors.push((0,Le.invalidSubscriptionFilterDirectiveError)(r,[(0,Le.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(De.CONDITION,De.OBJECT,(0,ye.kindToNodeType)(u.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(u.value,l,n,0,De.CONDITION,a,d)){this.errors.push((0,Le.invalidSubscriptionFilterDirectiveError)(r,d)),this.isMaxDepth=!1;return}(0,ye.getValueOrDefault)(this.fieldConfigurationByFieldCoords,r,()=>({argumentNames:[],fieldName:i,typeName:s})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,Le.invalidSubscriptionFilterDirectiveError)(t,[(0,Le.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,ve.isNodeDataInaccessible)(r)||r.kind===we.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(n.directive,r,t,n.fieldData.name,n.fieldData.renamedParentTypeName,n.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,Le.orScopesLimitError)(uT.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let s of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ve.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,s,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType();for(let s of this.inaccessibleRequiredInputValueErrorByCoords.values())this.errors.push(s);if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};if(!this.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let s=this.internalGraph.validate();if(!s.success)return{errors:s.errors,success:!1,warnings:this.warnings}}let n={kind:we.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,we.buildASTSchema)({kind:we.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let{configurationDataByTypeName:s,directiveDefinitionByName:a,isVersionTwo:u,name:l,parentDefinitionDataByTypeName:d,schema:f,schemaNode:E}of this.internalSubgraphBySubgraphName.values())i.set(l,{configurationDataByTypeName:s,directiveDefinitionByName:a,isVersionTwo:u,parentDefinitionDataByTypeName:d,schema:f,schemaNode:E});for(let s of this.authorizationDataByParentTypeName.values())(0,Ai.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,s);return x({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:n,federatedGraphSchema:(0,we.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:i,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}getClientSchemaObjectBoolean(){return this.inaccessibleCoords.size<1&&this.tagNamesByCoords.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,n,r,i){let s=n.size;for(let[a,u]of r){let l=(0,ye.getOrThrowError)(n,a,`${t.name}.childDataByChildName`);if((0,ve.isNodeDataInaccessible)(l)){s-=1;continue}i.isDisjointFrom(u.tagNames)||((0,ye.getValueOrDefault)(l.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${a}`),s-=1)}s<1&&(t.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,n,r,i){let s=n.size;for(let[a,u]of n){if((0,ve.isNodeDataInaccessible)(u)){s-=1;continue}let l=r.get(a);(!l||i.isDisjointFrom(l.tagNames))&&((0,ye.getValueOrDefault)(u.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${a}`),s-=1)}s<1&&(t.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(jc.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[a,u]of this.parentTagDataByTypeName){let l=(0,ye.getOrThrowError)(this.parentDefinitionDataByTypeName,a,De.PARENT_DEFINITION_DATA);if(!(0,ve.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(u.tagNames)){l.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(a);continue}if(!(u.childTagDataByChildName.size<1))switch(l.kind){case we.Kind.SCALAR_TYPE_DEFINITION:case we.Kind.UNION_TYPE_DEFINITION:break;case we.Kind.ENUM_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.enumValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}case we.Kind.INPUT_OBJECT_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.inputValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}default:{let d=l.fieldDataByName.size;for(let[f,E]of u.childTagDataByChildName){let h=(0,ye.getOrThrowError)(l.fieldDataByName,f,`${a}.fieldDataByFieldName`);if((0,ve.isNodeDataInaccessible)(h)){d-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(E.tagNames)){(0,ye.getValueOrDefault)(h.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(h.federatedCoords),d-=1;continue}for(let[_,A]of E.tagNamesByArgumentName){let U=(0,ye.getOrThrowError)(h.argumentDataByName,_,`${f}.argumentDataByArgumentName`);(0,ve.isNodeDataInaccessible)(U)||t.tagNamesToExclude.isDisjointFrom(A)||((0,ye.getValueOrDefault)(U.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(U.federatedCoords))}}d<1&&(l.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(a))}}}}else if(t.tagNamesToInclude.size>0)for(let[a,u]of this.parentDefinitionDataByTypeName){if((0,ve.isNodeDataInaccessible)(u))continue;let l=this.parentTagDataByTypeName.get(a);if(!l){u.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(a);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){u.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(a);continue}switch(u.kind){case we.Kind.SCALAR_TYPE_DEFINITION:case we.Kind.UNION_TYPE_DEFINITION:continue;case we.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.enumValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;case we.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let d=u.fieldDataByName.size;for(let[f,E]of u.fieldDataByName){if((0,ve.isNodeDataInaccessible)(E)){d-=1;continue}let h=l.childTagDataByChildName.get(f);(!h||t.tagNamesToInclude.isDisjointFrom(h.tagNames))&&((0,ye.getValueOrDefault)(E.persistedDirectivesData.directivesByName,De.INACCESSIBLE,()=>[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(E.federatedCoords),d-=1)}d<1&&(u.persistedDirectivesData.directivesByName.set(De.INACCESSIBLE,[(0,ye.generateSimpleDirective)(De.INACCESSIBLE)]),this.inaccessibleCoords.add(a))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let a of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ve.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,a,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let n=[];if(this.pushParentDefinitionDataToDocumentDefinitions(n),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(n),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let r={kind:we.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,we.buildASTSchema)({kind:we.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),s=new Map;for(let{configurationDataByTypeName:a,directiveDefinitionByName:u,isVersionTwo:l,name:d,parentDefinitionDataByTypeName:f,schema:E,schemaNode:h}of this.internalSubgraphBySubgraphName.values())s.set(d,{configurationDataByTypeName:a,directiveDefinitionByName:u,isVersionTwo:l,parentDefinitionDataByTypeName:f,schema:E,schemaNode:h});for(let a of this.authorizationDataByParentTypeName.values())(0,Ai.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return x({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:r,federatedGraphSchema:(0,we.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:s,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};tg=new WeakSet,QG=function(){var r;let t=new Set,n=new Set;for(let i of this.referencedPersistedDirectiveNames){let s=uT.DIRECTIVE_DEFINITION_BY_NAME.get(i);if(!s)continue;let a=(r=id.DEPENDENCIES_BY_DIRECTIVE_NAME.get(i))!=null?r:[];this.directiveDefinitionByName.set(i,s),id.CLIENT_PERSISTED_DIRECTIVE_NAMES.has(i)&&(this.clientDefinitions.push(s),(0,ye.addIterableToSet)({source:a,target:t})),this.routerDefinitions.push(s),(0,ye.addIterableToSet)({source:a,target:n})}this.clientDefinitions.push(...t),this.routerDefinitions.push(...n)};sd.FederationFactory=eg;function $R({disableResolvabilityValidation:e,subgraphs:t}){if(t.length<1)return{errors:[Le.minimumSubgraphRequirementError],success:!1,warnings:[]};let n=(0,Sme.batchNormalize)(t);if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};let r=new Map,i=new Map;for(let[u,l]of n.internalSubgraphBySubgraphName)for(let[d,f]of l.entityInterfaces){let E=r.get(d);if(!E){r.set(d,(0,Ai.newEntityInterfaceFederationData)(f,u));continue}(0,Ai.upsertEntityInterfaceFederationData)(E,f,u)}let s=new Array,a=new Map;for(let[u,l]of r){let d=l.concreteTypeNames.size;for(let[f,E]of l.subgraphDataByTypeName){let h=(0,ye.getValueOrDefault)(a,f,()=>new Set);if((0,ye.addIterableToSet)({source:E.concreteTypeNames,target:h}),!E.isInterfaceObject){E.resolvable&&E.concreteTypeNames.size!==d&&(0,ye.getValueOrDefault)(i,u,()=>new Array).push({subgraphName:f,definedConcreteTypeNames:new Set(E.concreteTypeNames),requiredConcreteTypeNames:new Set(l.concreteTypeNames)});continue}(0,ye.addIterableToSet)({source:l.concreteTypeNames,target:h});let{parentDefinitionDataByTypeName:_}=(0,ye.getOrThrowError)(n.internalSubgraphBySubgraphName,f,"internalSubgraphBySubgraphName"),A=[];for(let U of l.concreteTypeNames)_.has(U)&&A.push(U);A.length>0&&s.push((0,Le.invalidInterfaceObjectImplementationDefinitionsError)(u,f,A))}}for(let[u,l]of i){let d=new Array;for(let f of l){let E=a.get(f.subgraphName);if(!E){d.push(f);continue}let h=f.requiredConcreteTypeNames.intersection(E);f.requiredConcreteTypeNames.size!==h.size&&(f.definedConcreteTypeNames=h,d.push(f))}if(d.length>0){i.set(u,d);continue}i.delete(u)}return i.size>0&&s.push((0,Le.undefinedEntityInterfaceImplementationsError)(i,r)),s.length>0?{errors:s,success:!1,warnings:n.warnings}:{federationFactory:new eg({authorizationDataByParentTypeName:n.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:n.concreteTypeNamesByAbstractTypeName,disableResolvabilityValidation:e,entityDataByTypeName:n.entityDataByTypeName,entityInterfaceFederationDataByTypeName:r,fieldCoordsByNamedTypeName:n.fieldCoordsByNamedTypeName,internalSubgraphBySubgraphName:n.internalSubgraphBySubgraphName,internalGraph:n.internalGraph,warnings:n.warnings}),success:!0,warnings:n.warnings}}function Ame({disableResolvabilityValidation:e,subgraphs:t}){let n=$R({subgraphs:t,disableResolvabilityValidation:e});return n.success?n.federationFactory.federateSubgraphsInternal():{errors:n.errors,success:!1,warnings:n.warnings}}function Rme({subgraphs:e,tagOptionsByContractName:t,disableResolvabilityValidation:n}){let r=$R({subgraphs:e,disableResolvabilityValidation:n});if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};r.federationFactory.federateSubgraphData();let i=[(0,GG.cloneDeep)(r.federationFactory)],s=r.federationFactory.buildFederationResult();if(!s.success)return{errors:s.errors,success:!1,warnings:s.warnings};let a=t.size-1,u=new Map,l=0;for(let[d,f]of t){l!==a&&i.push((0,GG.cloneDeep)(i[l]));let E=i[l].buildFederationContractResult(f);u.set(d,E),l++}return K(x({},s),{federationResultByContractName:u})}function Fme({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n}){let r=$R({subgraphs:n,disableResolvabilityValidation:t});return r.success?(r.federationFactory.federateSubgraphData(),r.federationFactory.buildFederationContractResult(e)):{errors:r.errors,success:!1,warnings:r.warnings}}});var ng=C(ko=>{"use strict";p();N();m();Object.defineProperty(ko,"__esModule",{value:!0});ko.LATEST_ROUTER_COMPATIBILITY_VERSION=ko.ROUTER_COMPATIBILITY_VERSIONS=ko.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;ko.ROUTER_COMPATIBILITY_VERSION_ONE="1";ko.ROUTER_COMPATIBILITY_VERSIONS=new Set([ko.ROUTER_COMPATIBILITY_VERSION_ONE]);ko.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var JG=C(cT=>{"use strict";p();N();m();Object.defineProperty(cT,"__esModule",{value:!0});cT.federateSubgraphs=wme;cT.federateSubgraphsWithContracts=Lme;cT.federateSubgraphsContract=Pme;var jR=YG(),KR=ng();function wme({disableResolvabilityValidation:e,subgraphs:t,version:n=KR.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,jR.federateSubgraphs)({disableResolvabilityValidation:e,subgraphs:t})}}function Lme({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n,version:r=KR.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,jR.federateSubgraphsWithContracts)({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n})}}function Pme({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n,version:r=KR.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,jR.federateSubgraphsContract)({disableResolvabilityValidation:t,subgraphs:n,contractTagOptions:e})}}});var zG=C(HG=>{"use strict";p();N();m();Object.defineProperty(HG,"__esModule",{value:!0})});var WG=C(lT=>{"use strict";p();N();m();Object.defineProperty(lT,"__esModule",{value:!0});lT.normalizeSubgraphFromString=Cme;lT.normalizeSubgraph=Ume;lT.batchNormalize=Bme;var GR=xR(),QR=ng();function Cme(e,t=!0,n=QR.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,GR.normalizeSubgraphFromString)(e,t)}}function Ume(e,t,n,r=QR.ROUTER_COMPATIBILITY_VERSION_ONE){switch(r){default:return(0,GR.normalizeSubgraph)(e,t,n)}}function Bme(e,t=QR.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,GR.batchNormalize)(e)}}});var ZG=C(XG=>{"use strict";p();N();m();Object.defineProperty(XG,"__esModule",{value:!0})});var tQ=C(eQ=>{"use strict";p();N();m();Object.defineProperty(eQ,"__esModule",{value:!0})});var rQ=C(nQ=>{"use strict";p();N();m();Object.defineProperty(nQ,"__esModule",{value:!0})});var sQ=C(iQ=>{"use strict";p();N();m();Object.defineProperty(iQ,"__esModule",{value:!0})});var oQ=C(aQ=>{"use strict";p();N();m();Object.defineProperty(aQ,"__esModule",{value:!0})});var cQ=C(uQ=>{"use strict";p();N();m();Object.defineProperty(uQ,"__esModule",{value:!0})});var lQ=C(rg=>{"use strict";p();N();m();Object.defineProperty(rg,"__esModule",{value:!0});rg.COMPOSITION_VERSION=void 0;rg.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var fQ=C(dQ=>{"use strict";p();N();m();Object.defineProperty(dQ,"__esModule",{value:!0})});var mQ=C(pQ=>{"use strict";p();N();m();Object.defineProperty(pQ,"__esModule",{value:!0})});var TQ=C(NQ=>{"use strict";p();N();m();Object.defineProperty(NQ,"__esModule",{value:!0})});var hQ=C(EQ=>{"use strict";p();N();m();Object.defineProperty(EQ,"__esModule",{value:!0})});var ig=C(st=>{"use strict";p();N();m();var kme=st&&st.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),ht=st&&st.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&kme(t,e,n)};Object.defineProperty(st,"__esModule",{value:!0});ht(ui(),st);ht(Nb(),st);ht(As(),st);ht(g$(),st);ht(JG(),st);ht(zG(),st);ht(WG(),st);ht(ZG(),st);ht(CR(),st);ht(vR(),st);ht($I(),st);ht(tQ(),st);ht(rQ(),st);ht(AR(),st);ht(ng(),st);ht(sQ(),st);ht(UR(),st);ht(Lc(),st);ht(DN(),st);ht(bf(),st);ht(oQ(),st);ht(cQ(),st);ht(lQ(),st);ht(fQ(),st);ht(Er(),st);ht(mQ(),st);ht(di(),st);ht(mR(),st);ht(Pc(),st);ht(ON(),st);ht(fI(),st);ht(pI(),st);ht(Jf(),st);ht(dy(),st);ht(fy(),st);ht(qR(),st);ht(TQ(),st);ht(cR(),st);ht(eT(),st);ht(hQ(),st);ht(hR(),st);ht(WI(),st);ht(fR(),st);ht(ZN(),st);ht(tT(),st)});var FNe={};Ap(FNe,{buildRouterConfiguration:()=>RNe,federateSubgraphs:()=>ANe});p();N();m();var fd=Q_(ig());p();N();m();p();N();m();function YR(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),n=e.indexOf("#"),r=e;return t>0?r=r.slice(0,n>0?Math.min(t,n):t):n>0&&(r=r.slice(0,n)),r}p();N();m();p();N();m();var yQ={};p();N();m();function IQ(e){return e!=null}p();N();m();p();N();m();Oe();p();N();m();var gQ;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}gQ=function(t,n){return new e(t,n)}}else gQ=AggregateError;function _Q(e){return"errors"in e&&Array.isArray(e.errors)}var DQ=3;function OQ(e){return sg(e,[])}function sg(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return xme(e,t);default:return String(e)}}function vQ(e){return e instanceof G?e.toString():`${e.name}: ${e.message}; + ${e.stack}`}function xme(e,t){if(e===null)return"null";if(e instanceof Error)return _Q(e)?vQ(e)+` +`+SQ(e.errors,t):vQ(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Mme(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:sg(r,n)}else if(Array.isArray(e))return SQ(e,n);return Vme(e,n)}function Mme(e){return typeof e.toJSON=="function"}function Vme(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>DQ?"["+qme(e)+"]":"{ "+n.map(([i,s])=>i+": "+sg(s,t)).join(", ")+" }"}function SQ(e,t){if(e.length===0)return"[]";if(t.length>DQ)return"[Array]";let n=e.length,r=[];for(let i=0;in==null?n:n[r],e==null?void 0:e.extensions)}p();N();m();Oe();p();N();m();Oe();function Wa(e){if(Ke(e)){let t=Wa(e.ofType);if(t.kind===F.NON_NULL_TYPE)throw new Error(`Invalid type node ${OQ(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:F.NON_NULL_TYPE,type:t}}else if(bt(e))return{kind:F.LIST_TYPE,type:Wa(e.ofType)};return{kind:F.NAMED_TYPE,name:{kind:F.NAME,value:e.name}}}p();N();m();Oe();function og(e){if(e===null)return{kind:F.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=og(n);r!=null&&t.push(r)}return{kind:F.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=og(r);i&&t.push({kind:F.OBJECT_FIELD,name:{kind:F.NAME,value:n},value:i})}return{kind:F.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:F.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return $me.test(t)?{kind:F.INT,value:t}:{kind:F.FLOAT,value:t}}if(typeof e=="string")return{kind:F.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var $me=/^-?(?:0|[1-9][0-9]*)$/;p();N();m();p();N();m();function ug(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let s=e(r);return t.set(r,s),s}return i}}var K8e=ug(function(t){let n=jme(t);return new Set([...n].map(r=>r.name))}),jme=ug(function(t){let n=JR(t);return new Set(n.values())}),JR=ug(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let s=t.getSubscriptionType();return s&&n.set("subscription",s),n});function Kme(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Gme(e,n),s=i!=null?[i]:[],a=e.getDirectives();for(let u of a)Ec(u)||s.push(Qme(u,e,n));for(let u in r){let l=r[u],d=Xs(l),f=oi(l);if(!(d||f))if(rt(l))s.push(Yme(l,e,n));else if(mt(l))s.push(Jme(l,e,n));else if(tn(l))s.push(Hme(l,e,n));else if(Nt(l))s.push(zme(l,e,n));else if(Gt(l))s.push(Wme(l,e,n));else if(Kn(l))s.push(Xme(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:F.DOCUMENT,definitions:s}}function bQ(e,t={}){let n=Kme(e,t);return Dt(n)}function Gme(e,t){var n,r;let i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),s=[];if(e.astNode!=null&&s.push(e.astNode),e.extensionASTNodes!=null)for(let f of e.extensionASTNodes)s.push(f);for(let f of s)if(f.operationTypes)for(let E of f.operationTypes)i.set(E.operation,E);let a=JR(e);for(let[f,E]of i){let h=a.get(f);if(h!=null){let _=Wa(h);E!=null?E.type=_:i.set(f,{kind:F.OPERATION_TYPE_DEFINITION,operation:f,type:_})}}let u=[...i.values()].filter(IQ),l=np(e,e,t);if(!u.length&&!l.length)return null;let d={kind:u!=null?F.SCHEMA_DEFINITION:F.SCHEMA_EXTENSION,operationTypes:u,directives:l};return d.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:F.STRING,value:e.description,block:!0}:void 0,d}function Qme(e,t,n){var r,i,s,a;return{kind:F.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:F.STRING,value:e.description}:void 0,name:{kind:F.NAME,value:e.name},arguments:(s=e.args)===null||s===void 0?void 0:s.map(u=>AQ(u,t,n)),repeatable:e.isRepeatable,locations:((a=e.locations)===null||a===void 0?void 0:a.map(u=>({kind:F.NAME,value:u})))||[]}}function np(e,t,n){let r=ag(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let s;if(r!=null)s=HR(t,r);else{s=[];for(let a of i)a.directives&&s.push(...a.directives)}return s}function lg(e,t,n){var r,i;let s=[],a=null,u=ag(e,n),l;return u!=null?l=HR(t,u):l=(r=e.astNode)===null||r===void 0?void 0:r.directives,l!=null&&(s=l.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(a=(i=l.filter(d=>d.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&a==null&&(a=tNe(e.deprecationReason)),a==null?s:[a].concat(s)}function AQ(e,t,n){var r,i,s;return{kind:F.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:F.STRING,value:e.description,block:!0}:void 0,name:{kind:F.NAME,value:e.name},type:Wa(e.type),defaultValue:e.defaultValue!==void 0&&(s=Hr(e.defaultValue,e.type))!==null&&s!==void 0?s:void 0,directives:lg(e,t,n)}}function Yme(e,t,n){var r,i;return{kind:F.OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:F.STRING,value:e.description,block:!0}:void 0,name:{kind:F.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>RQ(s,t,n)),interfaces:Object.values(e.getInterfaces()).map(s=>Wa(s)),directives:np(e,t,n)}}function Jme(e,t,n){var r,i;let s={kind:F.INTERFACE_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:F.STRING,value:e.description,block:!0}:void 0,name:{kind:F.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>RQ(a,t,n)),directives:np(e,t,n)};return"getInterfaces"in e&&(s.interfaces=Object.values(e.getInterfaces()).map(a=>Wa(a))),s}function Hme(e,t,n){var r,i;return{kind:F.UNION_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:F.STRING,value:e.description,block:!0}:void 0,name:{kind:F.NAME,value:e.name},directives:np(e,t,n),types:e.getTypes().map(s=>Wa(s))}}function zme(e,t,n){var r,i;return{kind:F.INPUT_OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:F.STRING,value:e.description,block:!0}:void 0,name:{kind:F.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>Zme(s,t,n)),directives:np(e,t,n)}}function Wme(e,t,n){var r,i;return{kind:F.ENUM_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:F.STRING,value:e.description,block:!0}:void 0,name:{kind:F.NAME,value:e.name},values:Object.values(e.getValues()).map(s=>eNe(s,t,n)),directives:np(e,t,n)}}function Xme(e,t,n){var r,i,s;let a=ag(e,n),u=a?HR(t,a):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!u.some(d=>d.name.value==="specifiedBy")){let d={url:l};u.push(cg("specifiedBy",d))}return{kind:F.SCALAR_TYPE_DEFINITION,description:(s=(i=e.astNode)===null||i===void 0?void 0:i.description)!==null&&s!==void 0?s:e.description?{kind:F.STRING,value:e.description,block:!0}:void 0,name:{kind:F.NAME,value:e.name},directives:u}}function RQ(e,t,n){var r,i;return{kind:F.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:F.STRING,value:e.description,block:!0}:void 0,name:{kind:F.NAME,value:e.name},arguments:e.args.map(s=>AQ(s,t,n)),type:Wa(e.type),directives:lg(e,t,n)}}function Zme(e,t,n){var r,i,s;return{kind:F.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:F.STRING,value:e.description,block:!0}:void 0,name:{kind:F.NAME,value:e.name},type:Wa(e.type),directives:lg(e,t,n),defaultValue:(s=Hr(e.defaultValue,e.type))!==null&&s!==void 0?s:void 0}}function eNe(e,t,n){var r,i;return{kind:F.ENUM_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:F.STRING,value:e.description,block:!0}:void 0,name:{kind:F.NAME,value:e.name},directives:lg(e,t,n)}}function tNe(e){return cg("deprecated",{reason:e},Fa)}function cg(e,t,n){let r=[];if(n!=null)for(let i of n.args){let s=i.name,a=t[s];if(a!==void 0){let u=Hr(a,i.type);u&&r.push({kind:F.ARGUMENT,name:{kind:F.NAME,value:s},value:u})}}else for(let i in t){let s=t[i],a=og(s);a&&r.push({kind:F.ARGUMENT,name:{kind:F.NAME,value:i},value:a})}return{kind:F.DIRECTIVE,name:{kind:F.NAME,value:e},arguments:r}}function HR(e,t){let n=[];for(let r in t){let i=t[r],s=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let a of i)n.push(cg(r,a,s));else n.push(cg(r,i,s))}return n}var dp=Q_(ig(),1);p();N();m();p();N();m();p();N();m();p();N();m();p();N();m();p();N();m();function gn(e,t){if(!e)throw new Error(t)}var nNe=34028234663852886e22,rNe=-34028234663852886e22,iNe=4294967295,sNe=2147483647,aNe=-2147483648;function rp(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>sNe||eiNe||e<0)throw new Error("invalid uint 32: "+e)}function dg(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>nNe||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function WR(e,t,n){let r=Object.create(null),i=Object.create(null),s=[];for(let a of t){let u=PQ(a);s.push(u),r[a.name]=u,i[a.no]=u}return{typeName:e,values:s,findName(a){return r[a]},findNumber(a){return i[a]}}}function LQ(e,t,n){let r={};for(let i of t){let s=PQ(i);r[s.localName]=s.no,r[s.no]=s.localName}return zR(r,e,t,n),r}function PQ(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}p();N();m();p();N();m();var Ce=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){let r=this.getType(),i=r.runtime.bin,s=i.makeReadOptions(n);return i.readMessage(this,s.readerFactory(t),t.byteLength,s),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,s=i.makeReadOptions(n);return i.readMessage(r,t,s,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${i instanceof Error?i.message:String(i)}`)}return this.fromJson(r,n)}toBinary(t){let n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),s=i.writerFactory();return r.writeMessage(this,s,i),s.finish()}toJson(t){let n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;let r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function CQ(e,t,n,r){var i;let s=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),a={[s]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[s];return Object.setPrototypeOf(a.prototype,new Ce),Object.assign(a,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(u,l){return new a().fromBinary(u,l)},fromJson(u,l){return new a().fromJson(u,l)},fromJsonString(u,l){return new a().fromJsonString(u,l)},equals(u,l){return e.util.equals(a,u,l)}}),a}p();N();m();p();N();m();p();N();m();p();N();m();function BQ(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>s,u=!(!(a>>>7)&&t==0),l=(u?a|128:a)&255;if(n.push(l),!u)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let s=3;s<31;s=s+7){let a=t>>>s,u=!!(a>>>7),l=(u?a|128:a)&255;if(n.push(l),!u)return}n.push(t>>>31&1)}}var fg=4294967296;function XR(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function s(a,u){let l=Number(e.slice(a,u));i*=n,r=r*n+l,r>=fg&&(i=i+(r/fg|0),r=r%fg)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),t?xQ(r,i):eF(r,i)}function kQ(e,t){let n=eF(e,t),r=n.hi&2147483648;r&&(n=xQ(n.lo,n.hi));let i=ZR(n.lo,n.hi);return r?"-"+i:i}function ZR(e,t){if({lo:e,hi:t}=oNe(e,t),t<=2097151)return String(fg*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,s=n+r*6777216+i*6710656,a=r+i*8147497,u=i*2,l=1e7;return s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(u+=Math.floor(a/l),a%=l),u.toString()+UQ(a)+UQ(s)}function oNe(e,t){return{lo:e>>>0,hi:t>>>0}}function eF(e,t){return{lo:e|0,hi:t|0}}function xQ(e,t){return t=~t,e?e=~e+1:t+=1,eF(e,t)}var UQ=e=>{let t=String(e);return"0000000".slice(t.length)+t};function tF(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function MQ(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function uNe(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof S!="object"||typeof S.env!="object"||S.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),s=BigInt("9223372036854775807"),a=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let d=typeof l=="bigint"?l:BigInt(l);if(d>s||du||dgn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>gn(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),XR(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),XR(i)},dec(i,s){return kQ(i,s)},uDec(i,s){return ZR(i,s)}}}var pr=uNe();p();N();m();var Ee;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(Ee||(Ee={}));var Ea;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Ea||(Ea={}));function xo(e,t,n){if(t===n)return!0;if(e==Ee.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(dT(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return rp(t),tF(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){dg(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){dT(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){rp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return rp(t),t=(t<<1^t>>31)>>>0,tF(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=pr.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=pr.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=pr.enc(t);return pg(n.lo,n.hi,this.buf),this}sint64(t){let n=pr.enc(t),r=n.hi>>31,i=n.lo<<1^r,s=(n.hi<<1|n.lo>>>31)^r;return pg(i,s,this.buf),this}uint64(t){let n=pr.uEnc(t);return pg(n.lo,n.hi,this.buf),this}},Tg=class{constructor(t,n){this.varint64=BQ,this.uint32=MQ,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n!=null?n:new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t){let n=this.pos;switch(t){case nr.Varint:for(;this.buf[this.pos++]&128;);break;case nr.Bit64:this.pos+=4;case nr.Bit32:this.pos+=4;break;case nr.LengthDelimited:let r=this.uint32();this.pos+=r;break;case nr.StartGroup:let i;for(;(i=this.tag()[1])!==nr.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return pr.dec(...this.varint64())}uint64(){return pr.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,pr.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return pr.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return pr.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}};function VQ(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){let s=typeof r=="function"?r():r;s.name=t.split(".").pop(),s.jsonName=`[${t}]`,i=e.util.newFieldList([s]).list()[0]}return i},runtime:e}}function Eg(e){let t=e.field.localName,n=Object.create(null);return n[t]=cNe(e),[n,()=>n[t]]}function cNe(e){let t=e.field;if(t.repeated)return[];if(t.default!==void 0)return t.default;switch(t.kind){case"enum":return t.T.values[0].no;case"scalar":return ha(t.T,t.L);case"message":let n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function qQ(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}p();N();m();p();N();m();var Mo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),hg=[];for(let e=0;e>4,a=s,i=2;break;case 2:n[r++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:n[r++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let s=0;s>2],i=(r&3)<<4,n=1;break;case 1:t+=Mo[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=Mo[i|r>>6],t+=Mo[r&63],n=0;break}return n&&(t+=Mo[i],t+="=",n==1&&(t+="=")),t}};p();N();m();function $Q(e,t,n){KQ(t,e);let r=t.runtime.bin.makeReadOptions(n),i=qQ(e.getType().runtime.bin.listUnknownFields(e),t.field),[s,a]=Eg(t);for(let u of i)t.runtime.bin.readField(s,r.readerFactory(u.data),t.field,u.wireType,r);return a()}function jQ(e,t,n,r){KQ(t,e);let i=t.runtime.bin.makeReadOptions(r),s=t.runtime.bin.makeWriteOptions(r);if(rF(e,t)){let d=e.getType().runtime.bin.listUnknownFields(e).filter(f=>f.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let f of d)e.getType().runtime.bin.onUnknownField(e,f.no,f.wireType,f.data)}let a=s.writerFactory(),u=t.field;!u.opt&&!u.repeated&&(u.kind=="enum"||u.kind=="scalar")&&(u=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(u,n,a,s);let l=i.readerFactory(a.finish());for(;l.posr.no==t.field.no)}function KQ(e,t){gn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}p();N();m();function yg(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!mg(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function iF(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?ha(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}p();N();m();p();N();m();function ya(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Ce.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function Ig(e,t){return ya(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var S5e={"google.protobuf.DoubleValue":Ee.DOUBLE,"google.protobuf.FloatValue":Ee.FLOAT,"google.protobuf.Int64Value":Ee.INT64,"google.protobuf.UInt64Value":Ee.UINT64,"google.protobuf.Int32Value":Ee.INT32,"google.protobuf.UInt32Value":Ee.UINT32,"google.protobuf.BoolValue":Ee.BOOL,"google.protobuf.StringValue":Ee.STRING,"google.protobuf.BytesValue":Ee.BYTES};var GQ={ignoreUnknownFields:!1},QQ={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function lNe(e){return e?Object.assign(Object.assign({},GQ),e):GQ}function dNe(e){return e?Object.assign(Object.assign({},QQ),e):QQ}var vg=Symbol(),gg=Symbol();function HQ(){return{makeReadOptions:lNe,makeWriteOptions:dNe,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${Xa(t)}`);r=r!=null?r:new e;let i=new Map,s=n.typeRegistry;for(let[a,u]of Object.entries(t)){let l=e.fields.findJsonName(a);if(l){if(l.oneof){if(u===null&&l.kind=="scalar")continue;let d=i.get(l.oneof);if(d!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${d}", "${a}"`);i.set(l.oneof,a)}YQ(r,u,l,n,e)}else{let d=!1;if(s!=null&&s.findExtension&&a.startsWith("[")&&a.endsWith("]")){let f=s.findExtension(a.substring(1,a.length-1));if(f&&f.extendee.typeName==e.typeName){d=!0;let[E,h]=Eg(f);YQ(E,u,f.field,n,f),jQ(r,f,h(),n)}}if(!d&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${a}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},i;try{for(i of n.fields.byNumber()){if(!yg(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!pNe(i))continue}let a=i.oneof?e[i.oneof.localName].value:e[i.localName],u=JQ(i,a,t);u!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=u)}let s=t.typeRegistry;if(s!=null&&s.findExtensionFor)for(let a of n.runtime.bin.listUnknownFields(e)){let u=s.findExtensionFor(n.typeName,a.no);if(u&&rF(e,u)){let l=$Q(e,u,t),d=JQ(u.field,l,t);d!==void 0&&(r[u.field.jsonName]=d)}}}catch(s){let a=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,u=s instanceof Error?s.message:String(s);throw new Error(a+(u.length>0?`: ${u}`:""))}return r},readScalar(e,t,n){return fT(e,t,n!=null?n:Ea.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||mg(e,t)))return _g(e,t)},debug:Xa}}function Xa(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function YQ(e,t,n,r,i){let s=n.localName;if(n.repeated){if(gn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Xa(t)}`);let a=e[s];for(let u of t){if(u===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Xa(u)}`);switch(n.kind){case"message":a.push(n.T.fromJson(u,r));break;case"enum":let l=sF(n.T,u,r.ignoreUnknownFields,!0);l!==gg&&a.push(l);break;case"scalar":try{a.push(fT(n.T,u,n.L,!0))}catch(d){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Xa(u)}`;throw d instanceof Error&&d.message.length>0&&(f+=`: ${d.message}`),new Error(f)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Xa(t)}`);let a=e[s];for(let[u,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let d;try{d=fNe(n.K,u)}catch(f){let E=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${Xa(t)}`;throw f instanceof Error&&f.message.length>0&&(E+=`: ${f.message}`),new Error(E)}switch(n.V.kind){case"message":a[d]=n.V.T.fromJson(l,r);break;case"enum":let f=sF(n.V.T,l,r.ignoreUnknownFields,!0);f!==gg&&(a[d]=f);break;case"scalar":try{a[d]=fT(n.V.T,l,Ea.BIGINT,!0)}catch(E){let h=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${Xa(t)}`;throw E instanceof Error&&E.message.length>0&&(h+=`: ${E.message}`),new Error(h)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:s},s="value"),n.kind){case"message":let a=n.T;if(t===null&&a.typeName!="google.protobuf.Value")return;let u=e[s];ya(u)?u.fromJson(t,r):(e[s]=u=a.fromJson(t,r),a.fieldWrapper&&!n.oneof&&(e[s]=a.fieldWrapper.unwrapField(u)));break;case"enum":let l=sF(n.T,t,r.ignoreUnknownFields,!1);switch(l){case vg:iF(n,e);break;case gg:break;default:e[s]=l;break}break;case"scalar":try{let d=fT(n.T,t,n.L,!1);switch(d){case vg:iF(n,e);break;default:e[s]=d;break}}catch(d){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Xa(t)}`;throw d instanceof Error&&d.message.length>0&&(f+=`: ${d.message}`),new Error(f)}break}}function fNe(e,t){if(e===Ee.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return fT(e,t,Ea.BIGINT,!0).toString()}function fT(e,t,n,r){if(t===null)return r?ha(e,n):vg;switch(e){case Ee.DOUBLE:case Ee.FLOAT:if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==Ee.FLOAT&&dg(i),i;case Ee.INT32:case Ee.FIXED32:case Ee.SFIXED32:case Ee.SINT32:case Ee.UINT32:let s;if(typeof t=="number"?s=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(s=Number(t)),s===void 0)break;return e==Ee.UINT32||e==Ee.FIXED32?dT(s):rp(s),s;case Ee.INT64:case Ee.SFIXED64:case Ee.SINT64:if(typeof t!="number"&&typeof t!="string")break;let a=pr.parse(t);return n?a.toString():a;case Ee.FIXED64:case Ee.UINT64:if(typeof t!="number"&&typeof t!="string")break;let u=pr.uParse(t);return n?u.toString():u;case Ee.BOOL:if(typeof t!="boolean")break;return t;case Ee.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case Ee.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return nF.dec(t)}throw new Error}function sF(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:vg;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let i=e.findName(t);if(i!==void 0)return i.no;if(n)return gg;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${Xa(t)}`)}function pNe(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function JQ(e,t,n){if(e.kind=="map"){gn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[a,u]of i)r[a.toString()]=_g(e.V.T,u);break;case"message":for(let[a,u]of i)r[a.toString()]=u.toJson(n);break;case"enum":let s=e.V.T;for(let[a,u]of i)r[a.toString()]=aF(s,u,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){gn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return _g(e.T,t);case"enum":return aF(e.T,t,n.enumAsInteger);case"message":return Ig(e.T,t).toJson(n)}}function aF(e,t,n){var r;if(gn(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;let i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function _g(e,t){switch(e){case Ee.INT32:case Ee.SFIXED32:case Ee.SINT32:case Ee.FIXED32:case Ee.UINT32:return gn(typeof t=="number"),t;case Ee.FLOAT:case Ee.DOUBLE:return gn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case Ee.STRING:return gn(typeof t=="string"),t;case Ee.BOOL:return gn(typeof t=="boolean"),t;case Ee.UINT64:case Ee.FIXED64:case Ee.INT64:case Ee.SFIXED64:case Ee.SINT64:return gn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case Ee.BYTES:return gn(t instanceof Uint8Array),nF.enc(t)}}p();N();m();var ip=Symbol("@bufbuild/protobuf/unknown-fields"),zQ={readUnknownFields:!0,readerFactory:e=>new Tg(e)},WQ={writeUnknownFields:!0,writerFactory:()=>new Ng};function mNe(e){return e?Object.assign(Object.assign({},zQ),e):zQ}function NNe(e){return e?Object.assign(Object.assign({},WQ),e):WQ}function tY(){return{makeReadOptions:mNe,makeWriteOptions:NNe,listUnknownFields(e){var t;return(t=e[ip])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[ip]},writeUnknownFields(e,t){let r=e[ip];if(r)for(let i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){let i=e;Array.isArray(i[ip])||(i[ip]=[]),i[ip].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let s=e.getType(),a=i?t.len:t.pos+n,u,l;for(;t.pos0&&(l=ENe),s){let h=e[a];if(r==nr.LengthDelimited&&u!=Ee.STRING&&u!=Ee.BYTES){let A=t.uint32()+t.pos;for(;t.posya(h,E)?h:new E(h));else{let h=a[i];E.fieldWrapper?E.typeName==="google.protobuf.BytesValue"?s[i]=mT(h):s[i]=h:s[i]=ya(h,E)?h:new E(h)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],s=n[r.localName];if(r.repeated){if(i.length!==s.length)return!1;switch(r.kind){case"message":return i.every((a,u)=>r.T.equals(a,s[u]));case"scalar":return i.every((a,u)=>xo(r.T,a,s[u]));case"enum":return i.every((a,u)=>xo(Ee.INT32,a,s[u]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,s);case"enum":return xo(Ee.INT32,i,s);case"scalar":return xo(r.T,i,s);case"oneof":if(i.case!==s.case)return!1;let a=r.findField(i.case);if(a===void 0)return!0;switch(a.kind){case"message":return a.T.equals(i.value,s.value);case"enum":return xo(Ee.INT32,i.value,s.value);case"scalar":return xo(a.T,i.value,s.value)}throw new Error(`oneof cannot contain ${a.kind}`);case"map":let u=Object.keys(i).concat(Object.keys(s));switch(r.V.kind){case"message":let l=r.V.T;return u.every(f=>l.equals(i[f],s[f]));case"enum":return u.every(f=>xo(Ee.INT32,i[f],s[f]));case"scalar":let d=r.V.T;return u.every(f=>xo(d,i[f],s[f]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let s=e[i.localName],a;if(i.repeated)a=s.map(Og);else if(i.kind=="map"){a=r[i.localName];for(let[u,l]of Object.entries(s))a[u]=Og(l)}else i.kind=="oneof"?a=i.findField(s.case)?{case:s.case,value:Og(s.value)}:{case:void 0}:a=Og(s);r[i.localName]=a}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function Og(e){if(e===void 0)return e;if(ya(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function mT(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function iY(e,t,n){return{syntax:e,json:HQ(),bin:tY(),util:Object.assign(Object.assign({},rY()),{newFieldList:t,initFields:n}),makeMessageType(r,i,s){return CQ(this,r,i,s)},makeEnum:LQ,makeEnumType:WR,getEnumType:wQ,makeExtension(r,i,s){return VQ(this,r,i,s)}}}p();N();m();var bg=class{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){let n={};for(let r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){let n={};for(let r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,n;for(let r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}};p();N();m();p();N();m();p();N();m();function oF(e,t){let n=oY(e);return t?n:vNe(_Ne(n))}function sY(e){return oF(e,!1)}var aY=oY;function oY(e){let t=!1,n=[];for(let r=0;r`${e}$`,_Ne=e=>gNe.has(e)?uY(e):e,vNe=e=>INe.has(e)?uY(e):e;var Ag=class{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=sY(t)}addField(t){gn(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;nnew bg(e,t=>cY(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=ha(t.T,t.L);break;case"message":break}}});var sp;(function(e){e[e.OK=0]="OK",e[e.ERR=1]="ERR",e[e.ERR_NOT_FOUND=2]="ERR_NOT_FOUND",e[e.ERR_ALREADY_EXISTS=3]="ERR_ALREADY_EXISTS",e[e.ERR_INVALID_SUBGRAPH_SCHEMA=4]="ERR_INVALID_SUBGRAPH_SCHEMA",e[e.ERR_SUBGRAPH_COMPOSITION_FAILED=5]="ERR_SUBGRAPH_COMPOSITION_FAILED",e[e.ERR_SUBGRAPH_CHECK_FAILED=6]="ERR_SUBGRAPH_CHECK_FAILED",e[e.ERR_INVALID_LABELS=7]="ERR_INVALID_LABELS",e[e.ERR_ANALYTICS_DISABLED=8]="ERR_ANALYTICS_DISABLED",e[e.ERROR_NOT_AUTHENTICATED=9]="ERROR_NOT_AUTHENTICATED",e[e.ERR_OPENAI_DISABLED=10]="ERR_OPENAI_DISABLED",e[e.ERR_FREE_TRIAL_EXPIRED=11]="ERR_FREE_TRIAL_EXPIRED",e[e.ERROR_NOT_AUTHORIZED=12]="ERROR_NOT_AUTHORIZED",e[e.ERR_LIMIT_REACHED=13]="ERR_LIMIT_REACHED",e[e.ERR_DEPLOYMENT_FAILED=14]="ERR_DEPLOYMENT_FAILED",e[e.ERR_INVALID_NAME=15]="ERR_INVALID_NAME",e[e.ERR_UPGRADE_PLAN=16]="ERR_UPGRADE_PLAN",e[e.ERR_BAD_REQUEST=17]="ERR_BAD_REQUEST",e[e.ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL=18]="ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"})(sp||(sp={}));B.util.setEnumType(sp,"wg.cosmo.common.EnumStatusCode",[{no:0,name:"OK"},{no:1,name:"ERR"},{no:2,name:"ERR_NOT_FOUND"},{no:3,name:"ERR_ALREADY_EXISTS"},{no:4,name:"ERR_INVALID_SUBGRAPH_SCHEMA"},{no:5,name:"ERR_SUBGRAPH_COMPOSITION_FAILED"},{no:6,name:"ERR_SUBGRAPH_CHECK_FAILED"},{no:7,name:"ERR_INVALID_LABELS"},{no:8,name:"ERR_ANALYTICS_DISABLED"},{no:9,name:"ERROR_NOT_AUTHENTICATED"},{no:10,name:"ERR_OPENAI_DISABLED"},{no:11,name:"ERR_FREE_TRIAL_EXPIRED"},{no:12,name:"ERROR_NOT_AUTHORIZED"},{no:13,name:"ERR_LIMIT_REACHED"},{no:14,name:"ERR_DEPLOYMENT_FAILED"},{no:15,name:"ERR_INVALID_NAME"},{no:16,name:"ERR_UPGRADE_PLAN"},{no:17,name:"ERR_BAD_REQUEST"},{no:18,name:"ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"}]);var Vo;(function(e){e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS=0]="GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE=1]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST=2]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"})(Vo||(Vo={}));B.util.setEnumType(Vo,"wg.cosmo.common.GraphQLSubscriptionProtocol",[{no:0,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_WS"},{no:1,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE"},{no:2,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"}]);var qo;(function(e){e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO=0]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS=1]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS=2]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"})(qo||(qo={}));B.util.setEnumType(qo,"wg.cosmo.common.GraphQLWebsocketSubprotocol",[{no:0,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"},{no:1,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS"},{no:2,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"}]);Oe();p();N();m();var uF;(function(e){e[e.RENDER_ARGUMENT_DEFAULT=0]="RENDER_ARGUMENT_DEFAULT",e[e.RENDER_ARGUMENT_AS_GRAPHQL_VALUE=1]="RENDER_ARGUMENT_AS_GRAPHQL_VALUE",e[e.RENDER_ARGUMENT_AS_ARRAY_CSV=2]="RENDER_ARGUMENT_AS_ARRAY_CSV"})(uF||(uF={}));B.util.setEnumType(uF,"wg.cosmo.node.v1.ArgumentRenderConfiguration",[{no:0,name:"RENDER_ARGUMENT_DEFAULT"},{no:1,name:"RENDER_ARGUMENT_AS_GRAPHQL_VALUE"},{no:2,name:"RENDER_ARGUMENT_AS_ARRAY_CSV"}]);var od;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(od||(od={}));B.util.setEnumType(od,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var Kc;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(Kc||(Kc={}));B.util.setEnumType(Kc,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var NT;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RESOLVE=1]="RESOLVE",e[e.REQUIRES=2]="REQUIRES"})(NT||(NT={}));B.util.setEnumType(NT,"wg.cosmo.node.v1.LookupType",[{no:0,name:"LOOKUP_TYPE_UNSPECIFIED"},{no:1,name:"LOOKUP_TYPE_RESOLVE"},{no:2,name:"LOOKUP_TYPE_REQUIRES"}]);var TT;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(TT||(TT={}));B.util.setEnumType(TT,"wg.cosmo.node.v1.OperationType",[{no:0,name:"OPERATION_TYPE_UNSPECIFIED"},{no:1,name:"OPERATION_TYPE_QUERY"},{no:2,name:"OPERATION_TYPE_MUTATION"},{no:3,name:"OPERATION_TYPE_SUBSCRIPTION"}]);var zu;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(zu||(zu={}));B.util.setEnumType(zu,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var Gc;(function(e){e[e.STATIC_CONFIGURATION_VARIABLE=0]="STATIC_CONFIGURATION_VARIABLE",e[e.ENV_CONFIGURATION_VARIABLE=1]="ENV_CONFIGURATION_VARIABLE",e[e.PLACEHOLDER_CONFIGURATION_VARIABLE=2]="PLACEHOLDER_CONFIGURATION_VARIABLE"})(Gc||(Gc={}));B.util.setEnumType(Gc,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var ud;(function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e[e.OPTIONS=4]="OPTIONS"})(ud||(ud={}));B.util.setEnumType(ud,"wg.cosmo.node.v1.HTTPMethod",[{no:0,name:"GET"},{no:1,name:"POST"},{no:2,name:"PUT"},{no:3,name:"DELETE"},{no:4,name:"OPTIONS"}]);var $o=class $o extends Ce{constructor(n){super();v(this,"id","");v(this,"name","");v(this,"routingUrl","");B.util.initPartial(n,this)}static fromBinary(n,r){return new $o().fromBinary(n,r)}static fromJson(n,r){return new $o().fromJson(n,r)}static fromJsonString(n,r){return new $o().fromJsonString(n,r)}static equals(n,r){return B.util.equals($o,n,r)}};v($o,"runtime",B),v($o,"typeName","wg.cosmo.node.v1.Subgraph"),v($o,"fields",B.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"routing_url",kind:"scalar",T:9}]));var Rg=$o,jo=class jo extends Ce{constructor(n){super();v(this,"configByFeatureFlagName",{});B.util.initPartial(n,this)}static fromBinary(n,r){return new jo().fromBinary(n,r)}static fromJson(n,r){return new jo().fromJson(n,r)}static fromJsonString(n,r){return new jo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(jo,n,r)}};v(jo,"runtime",B),v(jo,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),v(jo,"fields",B.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:lF}}]));var cF=jo,Ko=class Ko extends Ce{constructor(n){super();v(this,"engineConfig");v(this,"version","");v(this,"subgraphs",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ko().fromBinary(n,r)}static fromJson(n,r){return new Ko().fromJson(n,r)}static fromJsonString(n,r){return new Ko().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ko,n,r)}};v(Ko,"runtime",B),v(Ko,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),v(Ko,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:ap},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Rg,repeated:!0}]));var lF=Ko,Go=class Go extends Ce{constructor(n){super();v(this,"engineConfig");v(this,"version","");v(this,"subgraphs",[]);v(this,"featureFlagConfigs");v(this,"compatibilityVersion","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Go().fromBinary(n,r)}static fromJson(n,r){return new Go().fromJson(n,r)}static fromJsonString(n,r){return new Go().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Go,n,r)}};v(Go,"runtime",B),v(Go,"typeName","wg.cosmo.node.v1.RouterConfig"),v(Go,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:ap},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Rg,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:cF,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var ET=Go,Qo=class Qo extends Ce{constructor(n){super();v(this,"code",sp.OK);v(this,"details");B.util.initPartial(n,this)}static fromBinary(n,r){return new Qo().fromBinary(n,r)}static fromJson(n,r){return new Qo().fromJson(n,r)}static fromJsonString(n,r){return new Qo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Qo,n,r)}};v(Qo,"runtime",B),v(Qo,"typeName","wg.cosmo.node.v1.Response"),v(Qo,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:B.getEnumType(sp)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var dF=Qo,Yo=class Yo extends Ce{constructor(n){super();v(this,"code",0);v(this,"message","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Yo().fromBinary(n,r)}static fromJson(n,r){return new Yo().fromJson(n,r)}static fromJsonString(n,r){return new Yo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Yo,n,r)}};v(Yo,"runtime",B),v(Yo,"typeName","wg.cosmo.node.v1.ResponseStatus"),v(Yo,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var lY=Yo,Jo=class Jo extends Ce{constructor(n){super();v(this,"accountLimits");v(this,"graphPublicKey","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Jo().fromBinary(n,r)}static fromJson(n,r){return new Jo().fromJson(n,r)}static fromJsonString(n,r){return new Jo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Jo,n,r)}};v(Jo,"runtime",B),v(Jo,"typeName","wg.cosmo.node.v1.RegistrationInfo"),v(Jo,"fields",B.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:pF},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var fF=Jo,Ho=class Ho extends Ce{constructor(n){super();v(this,"traceSamplingRate",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ho().fromBinary(n,r)}static fromJson(n,r){return new Ho().fromJson(n,r)}static fromJsonString(n,r){return new Ho().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ho,n,r)}};v(Ho,"runtime",B),v(Ho,"typeName","wg.cosmo.node.v1.AccountLimits"),v(Ho,"fields",B.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var pF=Ho,zo=class zo extends Ce{constructor(t){super(),B.util.initPartial(t,this)}static fromBinary(t,n){return new zo().fromBinary(t,n)}static fromJson(t,n){return new zo().fromJson(t,n)}static fromJsonString(t,n){return new zo().fromJsonString(t,n)}static equals(t,n){return B.util.equals(zo,t,n)}};v(zo,"runtime",B),v(zo,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),v(zo,"fields",B.util.newFieldList(()=>[]));var dY=zo,Wo=class Wo extends Ce{constructor(n){super();v(this,"response");v(this,"registrationInfo");B.util.initPartial(n,this)}static fromBinary(n,r){return new Wo().fromBinary(n,r)}static fromJson(n,r){return new Wo().fromJson(n,r)}static fromJsonString(n,r){return new Wo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Wo,n,r)}};v(Wo,"runtime",B),v(Wo,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),v(Wo,"fields",B.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:dF},{no:2,name:"registrationInfo",kind:"message",T:fF,opt:!0}]));var fY=Wo,Xo=class Xo extends Ce{constructor(n){super();v(this,"defaultFlushInterval",pr.zero);v(this,"datasourceConfigurations",[]);v(this,"fieldConfigurations",[]);v(this,"graphqlSchema","");v(this,"typeConfigurations",[]);v(this,"stringStorage",{});v(this,"graphqlClientSchema");B.util.initPartial(n,this)}static fromBinary(n,r){return new Xo().fromBinary(n,r)}static fromJson(n,r){return new Xo().fromJson(n,r)}static fromJsonString(n,r){return new Xo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Xo,n,r)}};v(Xo,"runtime",B),v(Xo,"typeName","wg.cosmo.node.v1.EngineConfiguration"),v(Xo,"fields",B.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:hT,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:gT,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:mF,repeated:!0},{no:6,name:"string_storage",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:7,name:"graphql_client_schema",kind:"scalar",T:9,opt:!0}]));var ap=Xo,Zo=class Zo extends Ce{constructor(n){super();v(this,"kind",Kc.STATIC);v(this,"rootNodes",[]);v(this,"childNodes",[]);v(this,"overrideFieldPathFromAlias",!1);v(this,"customGraphql");v(this,"customStatic");v(this,"directives",[]);v(this,"requestTimeoutSeconds",pr.zero);v(this,"id","");v(this,"keys",[]);v(this,"provides",[]);v(this,"requires",[]);v(this,"customEvents");v(this,"entityInterfaces",[]);v(this,"interfaceObjects",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Zo().fromBinary(n,r)}static fromJson(n,r){return new Zo().fromJson(n,r)}static fromJsonString(n,r){return new Zo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Zo,n,r)}};v(Zo,"runtime",B),v(Zo,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),v(Zo,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(Kc)},{no:2,name:"root_nodes",kind:"message",T:op,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:op,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:ST},{no:6,name:"custom_static",kind:"message",T:OF},{no:7,name:"directives",kind:"message",T:bF,repeated:!0},{no:8,name:"request_timeout_seconds",kind:"scalar",T:3},{no:9,name:"id",kind:"scalar",T:9},{no:10,name:"keys",kind:"message",T:ad,repeated:!0},{no:11,name:"provides",kind:"message",T:ad,repeated:!0},{no:12,name:"requires",kind:"message",T:ad,repeated:!0},{no:13,name:"custom_events",kind:"message",T:ld},{no:14,name:"entity_interfaces",kind:"message",T:up,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:up,repeated:!0}]));var hT=Zo,eu=class eu extends Ce{constructor(n){super();v(this,"name","");v(this,"sourceType",od.OBJECT_FIELD);B.util.initPartial(n,this)}static fromBinary(n,r){return new eu().fromBinary(n,r)}static fromJson(n,r){return new eu().fromJson(n,r)}static fromJsonString(n,r){return new eu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(eu,n,r)}};v(eu,"runtime",B),v(eu,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),v(eu,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:B.getEnumType(od)}]));var yT=eu,tu=class tu extends Ce{constructor(n){super();v(this,"requiredAndScopes",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new tu().fromBinary(n,r)}static fromJson(n,r){return new tu().fromJson(n,r)}static fromJsonString(n,r){return new tu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(tu,n,r)}};v(tu,"runtime",B),v(tu,"typeName","wg.cosmo.node.v1.Scopes"),v(tu,"fields",B.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var cd=tu,nu=class nu extends Ce{constructor(n){super();v(this,"requiresAuthentication",!1);v(this,"requiredOrScopes",[]);v(this,"requiredOrScopesByOr",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new nu().fromBinary(n,r)}static fromJson(n,r){return new nu().fromJson(n,r)}static fromJsonString(n,r){return new nu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(nu,n,r)}};v(nu,"runtime",B),v(nu,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),v(nu,"fields",B.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:cd,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:cd,repeated:!0}]));var IT=nu,ru=class ru extends Ce{constructor(n){super();v(this,"typeName","");v(this,"fieldName","");v(this,"argumentsConfiguration",[]);v(this,"authorizationConfiguration");v(this,"subscriptionFilterCondition");B.util.initPartial(n,this)}static fromBinary(n,r){return new ru().fromBinary(n,r)}static fromJson(n,r){return new ru().fromJson(n,r)}static fromJsonString(n,r){return new ru().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ru,n,r)}};v(ru,"runtime",B),v(ru,"typeName","wg.cosmo.node.v1.FieldConfiguration"),v(ru,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:yT,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:IT},{no:5,name:"subscription_filter_condition",kind:"message",T:Qc,opt:!0}]));var gT=ru,iu=class iu extends Ce{constructor(n){super();v(this,"typeName","");v(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new iu().fromBinary(n,r)}static fromJson(n,r){return new iu().fromJson(n,r)}static fromJsonString(n,r){return new iu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(iu,n,r)}};v(iu,"runtime",B),v(iu,"typeName","wg.cosmo.node.v1.TypeConfiguration"),v(iu,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var mF=iu,su=class su extends Ce{constructor(n){super();v(this,"typeName","");v(this,"fieldNames",[]);v(this,"externalFieldNames",[]);v(this,"requireFetchReasonsFieldNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new su().fromBinary(n,r)}static fromJson(n,r){return new su().fromJson(n,r)}static fromJsonString(n,r){return new su().fromJsonString(n,r)}static equals(n,r){return B.util.equals(su,n,r)}};v(su,"runtime",B),v(su,"typeName","wg.cosmo.node.v1.TypeField"),v(su,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0},{no:3,name:"external_field_names",kind:"scalar",T:9,repeated:!0},{no:4,name:"require_fetch_reasons_field_names",kind:"scalar",T:9,repeated:!0}]));var op=su,au=class au extends Ce{constructor(n){super();v(this,"fieldName","");v(this,"typeName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new au().fromBinary(n,r)}static fromJson(n,r){return new au().fromJson(n,r)}static fromJsonString(n,r){return new au().fromJsonString(n,r)}static equals(n,r){return B.util.equals(au,n,r)}};v(au,"runtime",B),v(au,"typeName","wg.cosmo.node.v1.FieldCoordinates"),v(au,"fields",B.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var _T=au,ou=class ou extends Ce{constructor(n){super();v(this,"fieldCoordinatesPath",[]);v(this,"fieldPath",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new ou().fromBinary(n,r)}static fromJson(n,r){return new ou().fromJson(n,r)}static fromJsonString(n,r){return new ou().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ou,n,r)}};v(ou,"runtime",B),v(ou,"typeName","wg.cosmo.node.v1.FieldSetCondition"),v(ou,"fields",B.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:_T,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var vT=ou,uu=class uu extends Ce{constructor(n){super();v(this,"typeName","");v(this,"fieldName","");v(this,"selectionSet","");v(this,"disableEntityResolver",!1);v(this,"conditions",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new uu().fromBinary(n,r)}static fromJson(n,r){return new uu().fromJson(n,r)}static fromJsonString(n,r){return new uu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(uu,n,r)}};v(uu,"runtime",B),v(uu,"typeName","wg.cosmo.node.v1.RequiredField"),v(uu,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8},{no:5,name:"conditions",kind:"message",T:vT,repeated:!0}]));var ad=uu,cu=class cu extends Ce{constructor(n){super();v(this,"interfaceTypeName","");v(this,"concreteTypeNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new cu().fromBinary(n,r)}static fromJson(n,r){return new cu().fromJson(n,r)}static fromJsonString(n,r){return new cu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(cu,n,r)}};v(cu,"runtime",B),v(cu,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),v(cu,"fields",B.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var up=cu,lu=class lu extends Ce{constructor(n){super();v(this,"url");v(this,"method",ud.GET);v(this,"header",{});v(this,"body");v(this,"query",[]);v(this,"urlEncodeBody",!1);v(this,"mtls");v(this,"baseUrl");v(this,"path");v(this,"httpProxyUrl");B.util.initPartial(n,this)}static fromBinary(n,r){return new lu().fromBinary(n,r)}static fromJson(n,r){return new lu().fromJson(n,r)}static fromJsonString(n,r){return new lu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(lu,n,r)}};v(lu,"runtime",B),v(lu,"typeName","wg.cosmo.node.v1.FetchConfiguration"),v(lu,"fields",B.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Ri},{no:2,name:"method",kind:"enum",T:B.getEnumType(ud)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:RF}},{no:4,name:"body",kind:"message",T:Ri},{no:5,name:"query",kind:"message",T:AF,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:FF},{no:9,name:"base_url",kind:"message",T:Ri},{no:10,name:"path",kind:"message",T:Ri},{no:11,name:"http_proxy_url",kind:"message",T:Ri,opt:!0}]));var NF=lu,du=class du extends Ce{constructor(n){super();v(this,"statusCode",pr.zero);v(this,"typeName","");v(this,"injectStatusCodeIntoBody",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new du().fromBinary(n,r)}static fromJson(n,r){return new du().fromJson(n,r)}static fromJsonString(n,r){return new du().fromJsonString(n,r)}static equals(n,r){return B.util.equals(du,n,r)}};v(du,"runtime",B),v(du,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),v(du,"fields",B.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var pY=du,fu=class fu extends Ce{constructor(n){super();v(this,"fetch");v(this,"subscription");v(this,"federation");v(this,"upstreamSchema");v(this,"customScalarTypeFields",[]);v(this,"grpc");B.util.initPartial(n,this)}static fromBinary(n,r){return new fu().fromBinary(n,r)}static fromJson(n,r){return new fu().fromJson(n,r)}static fromJsonString(n,r){return new fu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(fu,n,r)}};v(fu,"runtime",B),v(fu,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),v(fu,"fields",B.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:NF},{no:2,name:"subscription",kind:"message",T:wF},{no:3,name:"federation",kind:"message",T:LF},{no:4,name:"upstream_schema",kind:"message",T:FT},{no:6,name:"custom_scalar_type_fields",kind:"message",T:PF,repeated:!0},{no:7,name:"grpc",kind:"message",T:cp}]));var ST=fu,pu=class pu extends Ce{constructor(n){super();v(this,"mapping");v(this,"protoSchema","");v(this,"plugin");B.util.initPartial(n,this)}static fromBinary(n,r){return new pu().fromBinary(n,r)}static fromJson(n,r){return new pu().fromJson(n,r)}static fromJsonString(n,r){return new pu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(pu,n,r)}};v(pu,"runtime",B),v(pu,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),v(pu,"fields",B.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:EF},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:DT}]));var cp=pu,mu=class mu extends Ce{constructor(n){super();v(this,"repository","");v(this,"reference","");B.util.initPartial(n,this)}static fromBinary(n,r){return new mu().fromBinary(n,r)}static fromJson(n,r){return new mu().fromJson(n,r)}static fromJsonString(n,r){return new mu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(mu,n,r)}};v(mu,"runtime",B),v(mu,"typeName","wg.cosmo.node.v1.ImageReference"),v(mu,"fields",B.util.newFieldList(()=>[{no:1,name:"repository",kind:"scalar",T:9},{no:2,name:"reference",kind:"scalar",T:9}]));var TF=mu,Nu=class Nu extends Ce{constructor(n){super();v(this,"name","");v(this,"version","");v(this,"imageReference");B.util.initPartial(n,this)}static fromBinary(n,r){return new Nu().fromBinary(n,r)}static fromJson(n,r){return new Nu().fromJson(n,r)}static fromJsonString(n,r){return new Nu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Nu,n,r)}};v(Nu,"runtime",B),v(Nu,"typeName","wg.cosmo.node.v1.PluginConfiguration"),v(Nu,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"image_reference",kind:"message",T:TF,opt:!0}]));var DT=Nu,Tu=class Tu extends Ce{constructor(n){super();v(this,"enabled",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new Tu().fromBinary(n,r)}static fromJson(n,r){return new Tu().fromJson(n,r)}static fromJsonString(n,r){return new Tu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Tu,n,r)}};v(Tu,"runtime",B),v(Tu,"typeName","wg.cosmo.node.v1.SSLConfiguration"),v(Tu,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var mY=Tu,Eu=class Eu extends Ce{constructor(n){super();v(this,"version",0);v(this,"service","");v(this,"operationMappings",[]);v(this,"entityMappings",[]);v(this,"typeFieldMappings",[]);v(this,"enumMappings",[]);v(this,"resolveMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Eu().fromBinary(n,r)}static fromJson(n,r){return new Eu().fromJson(n,r)}static fromJsonString(n,r){return new Eu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Eu,n,r)}};v(Eu,"runtime",B),v(Eu,"typeName","wg.cosmo.node.v1.GRPCMapping"),v(Eu,"fields",B.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:5},{no:2,name:"service",kind:"scalar",T:9},{no:3,name:"operation_mappings",kind:"message",T:IF,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:gF,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:_F,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:SF,repeated:!0},{no:7,name:"resolve_mappings",kind:"message",T:hF,repeated:!0}]));var EF=Eu,hu=class hu extends Ce{constructor(n){super();v(this,"type",NT.UNSPECIFIED);v(this,"lookupMapping");v(this,"rpc","");v(this,"request","");v(this,"response","");B.util.initPartial(n,this)}static fromBinary(n,r){return new hu().fromBinary(n,r)}static fromJson(n,r){return new hu().fromJson(n,r)}static fromJsonString(n,r){return new hu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(hu,n,r)}};v(hu,"runtime",B),v(hu,"typeName","wg.cosmo.node.v1.LookupMapping"),v(hu,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:B.getEnumType(NT)},{no:2,name:"lookup_mapping",kind:"message",T:yF},{no:3,name:"rpc",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var hF=hu,yu=class yu extends Ce{constructor(n){super();v(this,"type","");v(this,"fieldMapping");B.util.initPartial(n,this)}static fromBinary(n,r){return new yu().fromBinary(n,r)}static fromJson(n,r){return new yu().fromJson(n,r)}static fromJsonString(n,r){return new yu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(yu,n,r)}};v(yu,"runtime",B),v(yu,"typeName","wg.cosmo.node.v1.LookupFieldMapping"),v(yu,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mapping",kind:"message",T:Fg}]));var yF=yu,Iu=class Iu extends Ce{constructor(n){super();v(this,"type",TT.UNSPECIFIED);v(this,"original","");v(this,"mapped","");v(this,"request","");v(this,"response","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Iu().fromBinary(n,r)}static fromJson(n,r){return new Iu().fromJson(n,r)}static fromJsonString(n,r){return new Iu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Iu,n,r)}};v(Iu,"runtime",B),v(Iu,"typeName","wg.cosmo.node.v1.OperationMapping"),v(Iu,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:B.getEnumType(TT)},{no:2,name:"original",kind:"scalar",T:9},{no:3,name:"mapped",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var IF=Iu,gu=class gu extends Ce{constructor(n){super();v(this,"typeName","");v(this,"kind","");v(this,"key","");v(this,"rpc","");v(this,"request","");v(this,"response","");B.util.initPartial(n,this)}static fromBinary(n,r){return new gu().fromBinary(n,r)}static fromJson(n,r){return new gu().fromJson(n,r)}static fromJsonString(n,r){return new gu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(gu,n,r)}};v(gu,"runtime",B),v(gu,"typeName","wg.cosmo.node.v1.EntityMapping"),v(gu,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"kind",kind:"scalar",T:9},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"rpc",kind:"scalar",T:9},{no:5,name:"request",kind:"scalar",T:9},{no:6,name:"response",kind:"scalar",T:9}]));var gF=gu,_u=class _u extends Ce{constructor(n){super();v(this,"type","");v(this,"fieldMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new _u().fromBinary(n,r)}static fromJson(n,r){return new _u().fromJson(n,r)}static fromJsonString(n,r){return new _u().fromJsonString(n,r)}static equals(n,r){return B.util.equals(_u,n,r)}};v(_u,"runtime",B),v(_u,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),v(_u,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:Fg,repeated:!0}]));var _F=_u,vu=class vu extends Ce{constructor(n){super();v(this,"original","");v(this,"mapped","");v(this,"argumentMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new vu().fromBinary(n,r)}static fromJson(n,r){return new vu().fromJson(n,r)}static fromJsonString(n,r){return new vu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(vu,n,r)}};v(vu,"runtime",B),v(vu,"typeName","wg.cosmo.node.v1.FieldMapping"),v(vu,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9},{no:3,name:"argument_mappings",kind:"message",T:vF,repeated:!0}]));var Fg=vu,Su=class Su extends Ce{constructor(n){super();v(this,"original","");v(this,"mapped","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Su().fromBinary(n,r)}static fromJson(n,r){return new Su().fromJson(n,r)}static fromJsonString(n,r){return new Su().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Su,n,r)}};v(Su,"runtime",B),v(Su,"typeName","wg.cosmo.node.v1.ArgumentMapping"),v(Su,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var vF=Su,Du=class Du extends Ce{constructor(n){super();v(this,"type","");v(this,"values",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Du().fromBinary(n,r)}static fromJson(n,r){return new Du().fromJson(n,r)}static fromJsonString(n,r){return new Du().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Du,n,r)}};v(Du,"runtime",B),v(Du,"typeName","wg.cosmo.node.v1.EnumMapping"),v(Du,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:DF,repeated:!0}]));var SF=Du,Ou=class Ou extends Ce{constructor(n){super();v(this,"original","");v(this,"mapped","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ou().fromBinary(n,r)}static fromJson(n,r){return new Ou().fromJson(n,r)}static fromJsonString(n,r){return new Ou().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ou,n,r)}};v(Ou,"runtime",B),v(Ou,"typeName","wg.cosmo.node.v1.EnumValueMapping"),v(Ou,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var DF=Ou,bu=class bu extends Ce{constructor(n){super();v(this,"consumerName","");v(this,"streamName","");v(this,"consumerInactiveThreshold",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new bu().fromBinary(n,r)}static fromJson(n,r){return new bu().fromJson(n,r)}static fromJsonString(n,r){return new bu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(bu,n,r)}};v(bu,"runtime",B),v(bu,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),v(bu,"fields",B.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9},{no:3,name:"consumer_inactive_threshold",kind:"scalar",T:5}]));var OT=bu,Au=class Au extends Ce{constructor(n){super();v(this,"engineEventConfiguration");v(this,"subjects",[]);v(this,"streamConfiguration");B.util.initPartial(n,this)}static fromBinary(n,r){return new Au().fromBinary(n,r)}static fromJson(n,r){return new Au().fromJson(n,r)}static fromJsonString(n,r){return new Au().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Au,n,r)}};v(Au,"runtime",B),v(Au,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),v(Au,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Wu},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:OT}]));var bT=Au,Ru=class Ru extends Ce{constructor(n){super();v(this,"engineEventConfiguration");v(this,"topics",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ru().fromBinary(n,r)}static fromJson(n,r){return new Ru().fromJson(n,r)}static fromJsonString(n,r){return new Ru().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ru,n,r)}};v(Ru,"runtime",B),v(Ru,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),v(Ru,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Wu},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var AT=Ru,Fu=class Fu extends Ce{constructor(n){super();v(this,"engineEventConfiguration");v(this,"channels",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Fu().fromBinary(n,r)}static fromJson(n,r){return new Fu().fromJson(n,r)}static fromJsonString(n,r){return new Fu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Fu,n,r)}};v(Fu,"runtime",B),v(Fu,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),v(Fu,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Wu},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var RT=Fu,wu=class wu extends Ce{constructor(n){super();v(this,"providerId","");v(this,"type",zu.PUBLISH);v(this,"typeName","");v(this,"fieldName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new wu().fromBinary(n,r)}static fromJson(n,r){return new wu().fromJson(n,r)}static fromJsonString(n,r){return new wu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(wu,n,r)}};v(wu,"runtime",B),v(wu,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),v(wu,"fields",B.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:B.getEnumType(zu)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var Wu=wu,Lu=class Lu extends Ce{constructor(n){super();v(this,"nats",[]);v(this,"kafka",[]);v(this,"redis",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Lu().fromBinary(n,r)}static fromJson(n,r){return new Lu().fromJson(n,r)}static fromJsonString(n,r){return new Lu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Lu,n,r)}};v(Lu,"runtime",B),v(Lu,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),v(Lu,"fields",B.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:bT,repeated:!0},{no:2,name:"kafka",kind:"message",T:AT,repeated:!0},{no:3,name:"redis",kind:"message",T:RT,repeated:!0}]));var ld=Lu,Pu=class Pu extends Ce{constructor(n){super();v(this,"data");B.util.initPartial(n,this)}static fromBinary(n,r){return new Pu().fromBinary(n,r)}static fromJson(n,r){return new Pu().fromJson(n,r)}static fromJsonString(n,r){return new Pu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Pu,n,r)}};v(Pu,"runtime",B),v(Pu,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),v(Pu,"fields",B.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Ri}]));var OF=Pu,Cu=class Cu extends Ce{constructor(n){super();v(this,"kind",Gc.STATIC_CONFIGURATION_VARIABLE);v(this,"staticVariableContent","");v(this,"environmentVariableName","");v(this,"environmentVariableDefaultValue","");v(this,"placeholderVariableName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Cu().fromBinary(n,r)}static fromJson(n,r){return new Cu().fromJson(n,r)}static fromJsonString(n,r){return new Cu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Cu,n,r)}};v(Cu,"runtime",B),v(Cu,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),v(Cu,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(Gc)},{no:2,name:"static_variable_content",kind:"scalar",T:9},{no:3,name:"environment_variable_name",kind:"scalar",T:9},{no:4,name:"environment_variable_default_value",kind:"scalar",T:9},{no:5,name:"placeholder_variable_name",kind:"scalar",T:9}]));var Ri=Cu,Uu=class Uu extends Ce{constructor(n){super();v(this,"directiveName","");v(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Uu().fromBinary(n,r)}static fromJson(n,r){return new Uu().fromJson(n,r)}static fromJsonString(n,r){return new Uu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Uu,n,r)}};v(Uu,"runtime",B),v(Uu,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),v(Uu,"fields",B.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var bF=Uu,Bu=class Bu extends Ce{constructor(n){super();v(this,"name","");v(this,"value","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Bu().fromBinary(n,r)}static fromJson(n,r){return new Bu().fromJson(n,r)}static fromJsonString(n,r){return new Bu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Bu,n,r)}};v(Bu,"runtime",B),v(Bu,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),v(Bu,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var AF=Bu,ku=class ku extends Ce{constructor(n){super();v(this,"values",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new ku().fromBinary(n,r)}static fromJson(n,r){return new ku().fromJson(n,r)}static fromJsonString(n,r){return new ku().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ku,n,r)}};v(ku,"runtime",B),v(ku,"typeName","wg.cosmo.node.v1.HTTPHeader"),v(ku,"fields",B.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Ri,repeated:!0}]));var RF=ku,xu=class xu extends Ce{constructor(n){super();v(this,"key");v(this,"cert");v(this,"insecureSkipVerify",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new xu().fromBinary(n,r)}static fromJson(n,r){return new xu().fromJson(n,r)}static fromJsonString(n,r){return new xu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(xu,n,r)}};v(xu,"runtime",B),v(xu,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),v(xu,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Ri},{no:2,name:"cert",kind:"message",T:Ri},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var FF=xu,Mu=class Mu extends Ce{constructor(n){super();v(this,"enabled",!1);v(this,"url");v(this,"useSSE");v(this,"protocol");v(this,"websocketSubprotocol");B.util.initPartial(n,this)}static fromBinary(n,r){return new Mu().fromBinary(n,r)}static fromJson(n,r){return new Mu().fromJson(n,r)}static fromJsonString(n,r){return new Mu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Mu,n,r)}};v(Mu,"runtime",B),v(Mu,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),v(Mu,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Ri},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:B.getEnumType(Vo),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:B.getEnumType(qo),opt:!0}]));var wF=Mu,Vu=class Vu extends Ce{constructor(n){super();v(this,"enabled",!1);v(this,"serviceSdl","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Vu().fromBinary(n,r)}static fromJson(n,r){return new Vu().fromJson(n,r)}static fromJsonString(n,r){return new Vu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Vu,n,r)}};v(Vu,"runtime",B),v(Vu,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),v(Vu,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var LF=Vu,qu=class qu extends Ce{constructor(n){super();v(this,"key","");B.util.initPartial(n,this)}static fromBinary(n,r){return new qu().fromBinary(n,r)}static fromJson(n,r){return new qu().fromJson(n,r)}static fromJsonString(n,r){return new qu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(qu,n,r)}};v(qu,"runtime",B),v(qu,"typeName","wg.cosmo.node.v1.InternedString"),v(qu,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var FT=qu,$u=class $u extends Ce{constructor(n){super();v(this,"typeName","");v(this,"fieldName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new $u().fromBinary(n,r)}static fromJson(n,r){return new $u().fromJson(n,r)}static fromJsonString(n,r){return new $u().fromJsonString(n,r)}static equals(n,r){return B.util.equals($u,n,r)}};v($u,"runtime",B),v($u,"typeName","wg.cosmo.node.v1.SingleTypeField"),v($u,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var PF=$u,ju=class ju extends Ce{constructor(n){super();v(this,"fieldPath",[]);v(this,"json","");B.util.initPartial(n,this)}static fromBinary(n,r){return new ju().fromBinary(n,r)}static fromJson(n,r){return new ju().fromJson(n,r)}static fromJsonString(n,r){return new ju().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ju,n,r)}};v(ju,"runtime",B),v(ju,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),v(ju,"fields",B.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var wT=ju,js=class js extends Ce{constructor(n){super();v(this,"and",[]);v(this,"in");v(this,"not");v(this,"or",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new js().fromBinary(n,r)}static fromJson(n,r){return new js().fromJson(n,r)}static fromJsonString(n,r){return new js().fromJsonString(n,r)}static equals(n,r){return B.util.equals(js,n,r)}};v(js,"runtime",B),v(js,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),v(js,"fields",B.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:js,repeated:!0},{no:2,name:"in",kind:"message",T:wT,opt:!0},{no:3,name:"not",kind:"message",T:js,opt:!0},{no:4,name:"or",kind:"message",T:js,repeated:!0}]));var Qc=js,Ku=class Ku extends Ce{constructor(n){super();v(this,"operations",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ku().fromBinary(n,r)}static fromJson(n,r){return new Ku().fromJson(n,r)}static fromJsonString(n,r){return new Ku().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ku,n,r)}};v(Ku,"runtime",B),v(Ku,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),v(Ku,"fields",B.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:CF,repeated:!0}]));var NY=Ku,Gu=class Gu extends Ce{constructor(n){super();v(this,"request");v(this,"client");B.util.initPartial(n,this)}static fromBinary(n,r){return new Gu().fromBinary(n,r)}static fromJson(n,r){return new Gu().fromJson(n,r)}static fromJsonString(n,r){return new Gu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Gu,n,r)}};v(Gu,"runtime",B),v(Gu,"typeName","wg.cosmo.node.v1.Operation"),v(Gu,"fields",B.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:UF},{no:2,name:"client",kind:"message",T:xF}]));var CF=Gu,Qu=class Qu extends Ce{constructor(n){super();v(this,"operationName","");v(this,"query","");v(this,"extensions");B.util.initPartial(n,this)}static fromBinary(n,r){return new Qu().fromBinary(n,r)}static fromJson(n,r){return new Qu().fromJson(n,r)}static fromJsonString(n,r){return new Qu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Qu,n,r)}};v(Qu,"runtime",B),v(Qu,"typeName","wg.cosmo.node.v1.OperationRequest"),v(Qu,"fields",B.util.newFieldList(()=>[{no:1,name:"operation_name",kind:"scalar",T:9},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"extensions",kind:"message",T:BF}]));var UF=Qu,Yu=class Yu extends Ce{constructor(n){super();v(this,"persistedQuery");B.util.initPartial(n,this)}static fromBinary(n,r){return new Yu().fromBinary(n,r)}static fromJson(n,r){return new Yu().fromJson(n,r)}static fromJsonString(n,r){return new Yu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Yu,n,r)}};v(Yu,"runtime",B),v(Yu,"typeName","wg.cosmo.node.v1.Extension"),v(Yu,"fields",B.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:kF}]));var BF=Yu,Ju=class Ju extends Ce{constructor(n){super();v(this,"sha256Hash","");v(this,"version",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ju().fromBinary(n,r)}static fromJson(n,r){return new Ju().fromJson(n,r)}static fromJsonString(n,r){return new Ju().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ju,n,r)}};v(Ju,"runtime",B),v(Ju,"typeName","wg.cosmo.node.v1.PersistedQuery"),v(Ju,"fields",B.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var kF=Ju,Hu=class Hu extends Ce{constructor(n){super();v(this,"name","");v(this,"version","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Hu().fromBinary(n,r)}static fromJson(n,r){return new Hu().fromJson(n,r)}static fromJsonString(n,r){return new Hu().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Hu,n,r)}};v(Hu,"runtime",B),v(Hu,"typeName","wg.cosmo.node.v1.ClientInfo"),v(Hu,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var xF=Hu;p();N();m();function MF(e){return new Error(`Normalization failed to return a ${e}.`)}function TY(e){return new Error(`Invalid router compatibility version "${e}".`)}p();N();m();var lp=Q_(ig(),1);function SNe(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let s=i.split(".");if(s.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new _T({fieldName:s[1],typeName:s[0]}))}t.push(new vT({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function VF(e,t,n){if(e)for(let r of e){let i=SNe(r);t.push(new ad(x(x({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function qF(e){switch(e){case"publish":return zu.PUBLISH;case"request":return zu.REQUEST;case"subscribe":return zu.SUBSCRIBE}}function EY(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new ld({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,s=[...r.fieldNames],a=new op({fieldNames:s,typeName:i});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(a.externalFieldNames=[...r.externalFieldNames]),r.requireFetchReasonsFieldNames&&r.requireFetchReasonsFieldNames.length>0&&(a.requireFetchReasonsFieldNames=[...r.requireFetchReasonsFieldNames]),r.isRootNode?t.rootNodes.push(a):t.childNodes.push(a),r.entityInterfaceConcreteTypeNames){let f=new up({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(f):t.entityInterfaces.push(f)}VF(r.keys,t.keys,i),VF(r.provides,t.provides,i),VF(r.requires,t.requires,i);let u=[],l=[],d=[];for(let f of(n=r.events)!=null?n:[])switch(f.providerType){case lp.PROVIDER_TYPE_KAFKA:{l.push(new AT({engineEventConfiguration:new Wu({fieldName:f.fieldName,providerId:f.providerId,type:qF(f.type),typeName:i}),topics:f.topics}));break}case lp.PROVIDER_TYPE_NATS:{u.push(new bT(x({engineEventConfiguration:new Wu({fieldName:f.fieldName,providerId:f.providerId,type:qF(f.type),typeName:i}),subjects:f.subjects},f.streamConfiguration?{streamConfiguration:new OT({consumerInactiveThreshold:f.streamConfiguration.consumerInactiveThreshold,consumerName:f.streamConfiguration.consumerName,streamName:f.streamConfiguration.streamName})}:{})));break}case lp.PROVIDER_TYPE_REDIS:{d.push(new RT({engineEventConfiguration:new Wu({fieldName:f.fieldName,providerId:f.providerId,type:qF(f.type),typeName:i}),channels:f.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...u),t.events.kafka.push(...l),t.events.redis.push(...d)}return t}function hY(e){var n,r;let t=[];for(let i of e){let s=i.argumentNames.map(f=>new yT({name:f,sourceType:od.FIELD_ARGUMENT})),a=new gT({argumentsConfiguration:s,fieldName:i.fieldName,typeName:i.typeName}),u=((n=i.requiredScopes)==null?void 0:n.map(f=>new cd({requiredAndScopes:f})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(f=>new cd({requiredAndScopes:f})))||[],d=u.length>0;if((i.requiresAuthentication||d)&&(a.authorizationConfiguration=new IT({requiresAuthentication:i.requiresAuthentication||d,requiredOrScopes:u,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let f=new Qc;wg(f,i.subscriptionFilterCondition),a.subscriptionFilterCondition=f}t.push(a)}return t}function wg(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new Qc;wg(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new wT({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new Qc,wg(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new Qc;wg(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}var dd;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(dd||(dd={}));var DNe=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new FT({key:n})},ONe=e=>{switch(e){case"ws":return Vo.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return Vo.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return Vo.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},bNe=e=>{switch(e){case"auto":return qo.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return qo.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return qo.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},yY=function(e){if(!dp.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw TY(e.routerCompatibilityVersion);let t=new ap({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw MF("ConfigurationDataByTypeName");if(!n.schema)throw MF("GraphQLSchema");let r={enabled:!0},i=DNe(t,bQ(Jm(n.schema))),{childNodes:s,entityInterfaces:a,events:u,interfaceObjects:l,keys:d,provides:f,requires:E,rootNodes:h}=EY(n.configurationDataByTypeName),_;switch(n.kind){case dd.Standard:{r.enabled=!0,r.protocol=ONe(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=bNe(n.websocketSubprotocol||"auto"),r.url=new Ri({kind:Gc.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case dd.Plugin:{_=new cp({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new DT({name:n.name,version:n.version,imageReference:n.imageReference})});break}case dd.GRPC:{_=new cp({mapping:n.mapping,protoSchema:n.protoSchema});break}}let A,U,q;if(u.kafka.length>0||u.nats.length>0||u.redis.length>0){A=Kc.PUBSUB,q=new ld({kafka:u.kafka,nats:u.nats,redis:u.redis});let re=ce=>dp.ROOT_TYPE_NAMES.has(ce.typeName),ee=0,me=0;for(;ee({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${dp.COMPOSITION_VERSION}`})};p();N();m();Oe();function IY(e){let t;try{t=Js(e.schema)}catch(n){throw new Error(`could not parse schema for Graph ${e.name}: ${n}`)}return{definitions:t,name:e.name,url:e.url}}function ANe(e){let t=(0,fd.federateSubgraphs)({subgraphs:e.map(IY),version:fd.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:Dt(t.federatedGraphAST)}}function RNe(e){let t=(0,fd.federateSubgraphs)({subgraphs:e.map(IY),version:fd.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return yY({federatedClientSDL:of(t.federatedGraphClientSchema),federatedSDL:of(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:fd.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,d;let s=t.subgraphConfigBySubgraphName.get(r.name),a=s==null?void 0:s.schema,u=s==null?void 0:s.configurationDataByTypeName;return{kind:dd.Standard,id:`${i}`,name:r.name,url:YR(r.url),sdl:r.schema,subscriptionUrl:YR((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(d=r.subscription_protocol)!=null?d:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:a,configurationDataByTypeName:u}})}).toJsonString()}return Ae(FNe);})(); /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: diff --git a/connect/package.json b/connect/package.json index 89fd9873a7..fc45088a3f 100644 --- a/connect/package.json +++ b/connect/package.json @@ -23,7 +23,7 @@ } }, "dependencies": { - "@bufbuild/protobuf": "^1.9.0", + "@bufbuild/protobuf": "1.9.0", "@connectrpc/connect-query": "^1.4.1" }, "devDependencies": { diff --git a/controlplane/package.json b/controlplane/package.json index da85bb58e1..f73760522e 100644 --- a/controlplane/package.json +++ b/controlplane/package.json @@ -92,7 +92,7 @@ "tiny-lru": "^11.2.11", "uid": "^2.0.2", "uuid": "^10.0.0", - "zod": "^3.22.4", + "zod": "^3.24.2", "zod-to-json-schema": "^3.22.4" }, "devDependencies": { diff --git a/package.json b/package.json index d2c58a36eb..b3c713ac90 100644 --- a/package.json +++ b/package.json @@ -69,13 +69,9 @@ "graphql": "16.9.0", "cross-spawn": "7.0.6", "next": "15.4.7", - "zod": "3.24.2", - "chalk": "<5.6.1", + "zod": "^3.24.2", "debug": "<4.4.2", - "ansi-styles": "<6.2.2", - "strip-ansi": "<7.1.1", "supports-color": "<10.2.1", - "ansi-regex": "<6.2.1", "wrap-ansi": "<9.0.1", "color-convert": "<3.1.1", "color-name": "<2.0.1", @@ -88,10 +84,10 @@ "has-ansi": "<6.0.1", "chalk-template": "<1.1.1", "backslash": "<0.2.1" - }, - "patchedDependencies": { - "graphql@16.9.0": "patches/graphql@16.9.0.patch" } }, + "patchedDependencies": { + "graphql@16.9.0": "patches/graphql@16.9.0.patch" + }, "packageManager": "pnpm@9.12.3" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index de34646a0c..f69f25c2a0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,13 +9,9 @@ overrides: graphql: 16.9.0 cross-spawn: 7.0.6 next: 15.4.7 - zod: 3.24.2 - chalk: <5.6.1 + zod: ^3.24.2 debug: <4.4.2 - ansi-styles: <6.2.2 - strip-ansi: <7.1.1 supports-color: <10.2.1 - ansi-regex: <6.2.1 wrap-ansi: <9.0.1 color-convert: <3.1.1 color-name: <2.0.1 @@ -29,24 +25,19 @@ overrides: chalk-template: <1.1.1 backslash: <0.2.1 -patchedDependencies: - graphql@16.9.0: - hash: hafdlc54qtxpqvetpefk646rly - path: patches/graphql@16.9.0.patch - importers: .: dependencies: '@graphiql/plugin-explorer': specifier: ^3.1.0 - version: 3.1.0(@graphiql/react@0.22.4(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 3.1.0(@graphiql/react@0.22.4(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@graphiql/toolkit': specifier: ^0.9.1 - version: 0.9.1(@types/node@22.17.0)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 0.9.1(@types/node@22.17.0)(graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3))(graphql@16.9.0) graphiql: specifier: ^3.3.2 - version: 3.3.2(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 3.3.2(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) devDependencies: '@bufbuild/buf': specifier: ^1.34.0 @@ -191,7 +182,7 @@ importers: version: 1.4.0(@bufbuild/protobuf@1.9.0)(@connectrpc/connect@1.4.0(@bufbuild/protobuf@1.9.0)) '@graphql-tools/utils': specifier: 10.2.2 - version: 10.2.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 10.2.2(graphql@16.9.0) '@modelcontextprotocol/sdk': specifier: 1.9.0 version: 1.9.0 @@ -251,7 +242,7 @@ importers: version: 11.3.0 graphql: specifier: 16.9.0 - version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + version: 16.9.0 https-proxy-agent: specifier: 7.0.5 version: 7.0.5 @@ -307,7 +298,7 @@ importers: specifier: 6.21.2 version: 6.21.2 zod: - specifier: 3.24.2 + specifier: ^3.24.2 version: 3.24.2 devDependencies: '@types/bun': @@ -381,19 +372,19 @@ importers: dependencies: '@graphql-tools/merge': specifier: ^9.0.0 - version: 9.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 9.0.0(graphql@16.9.0) '@graphql-tools/schema': specifier: ^10.0.0 - version: 10.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 10.0.0(graphql@16.9.0) '@graphql-tools/utils': specifier: ^10.10.2 - version: 10.10.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 10.10.2(graphql@16.9.0) core-js: specifier: ^3.41.0 version: 3.41.0 graphql: specifier: 16.9.0 - version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + version: 16.9.0 lodash: specifier: ^4.17.21 version: 4.17.21 @@ -424,7 +415,7 @@ importers: version: link:../../shared graphql: specifier: 16.9.0 - version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + version: 16.9.0 devDependencies: '@types/node': specifier: ^20.8.10 @@ -445,7 +436,7 @@ importers: connect: dependencies: '@bufbuild/protobuf': - specifier: ^1.9.0 + specifier: 1.9.0 version: 1.9.0 '@connectrpc/connect-query': specifier: ^1.4.1 @@ -480,13 +471,13 @@ importers: version: 9.0.1 '@graphql-eslint/eslint-plugin': specifier: ^3.20.1 - version: 3.20.1(@babel/core@7.24.5)(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 3.20.1(@babel/core@7.24.5)(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0) '@graphql-inspector/core': specifier: ^6.2.1 - version: 6.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 6.2.1(graphql@16.9.0) '@graphql-tools/utils': specifier: ^10.1.2 - version: 10.1.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 10.1.2(graphql@16.9.0) '@keycloak/keycloak-admin-client': specifier: 26.2.5 version: 26.2.5 @@ -561,7 +552,7 @@ importers: version: 4.3.0 graphql: specifier: 16.9.0 - version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + version: 16.9.0 ioredis: specifier: ^5.4.1 version: 5.4.1 @@ -617,7 +608,7 @@ importers: specifier: ^10.0.0 version: 10.0.0 zod: - specifier: 3.24.2 + specifier: ^3.24.2 version: 3.24.2 zod-to-json-schema: specifier: ^3.22.4 @@ -769,10 +760,10 @@ importers: version: 0.8.5 graphql: specifier: 16.9.0 - version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + version: 16.9.0 graphql-ws: specifier: ^5.16.0 - version: 5.16.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 5.16.0(graphql@16.9.0) lodash: specifier: ^4.17.21 version: 4.17.21 @@ -881,7 +872,7 @@ importers: version: link:../connect graphql: specifier: 16.9.0 - version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + version: 16.9.0 lodash-es: specifier: 4.17.21 version: 4.17.21 @@ -909,10 +900,10 @@ importers: version: 1.9.0 '@graphql-tools/schema': specifier: ^8.5.1 - version: 8.5.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 8.5.1(graphql@16.9.0) '@graphql-tools/utils': specifier: ^9.2.1 - version: 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 9.2.1(graphql@16.9.0) '@wundergraph/composition': specifier: workspace:* version: link:../composition @@ -921,7 +912,7 @@ importers: version: link:../connect graphql: specifier: 16.9.0 - version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + version: 16.9.0 pino: specifier: ^8.14.1 version: 8.14.1 @@ -963,8 +954,8 @@ importers: specifier: ^2.0.18 version: 2.0.18(react@18.3.1) '@hookform/resolvers': - specifier: ^3.3.1 - version: 3.3.1(react-hook-form@7.45.1(react@18.3.1)) + specifier: ^4.1.3 + version: 4.1.3(react-hook-form@7.45.1(react@18.3.1)) '@markdoc/markdoc': specifier: ^0.4.0 version: 0.4.0(@types/react@18.3.3)(react@18.3.1) @@ -1123,10 +1114,10 @@ importers: version: 7.0.0 graphql: specifier: 16.9.0 - version: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + version: 16.9.0 graphql-ws: specifier: ^5.14.1 - version: 5.14.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + version: 5.14.1(graphql@16.9.0) js-cookie: specifier: ^3.0.5 version: 3.0.5 @@ -1141,7 +1132,7 @@ importers: version: 0.45.0 monaco-graphql: specifier: ^1.4.0 - version: 1.4.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(monaco-editor@0.45.0)(prettier@3.6.2) + version: 1.4.0(graphql@16.9.0)(monaco-editor@0.45.0)(prettier@3.6.2) next: specifier: 15.4.7 version: 15.4.7(@babel/core@7.24.5)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1221,7 +1212,7 @@ importers: specifier: ^1.8.1 version: 1.8.1(react@18.3.1) zod: - specifier: 3.24.2 + specifier: ^3.24.2 version: 3.24.2 devDependencies: '@tailwindcss/typography': @@ -1638,10 +1629,6 @@ packages: resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==} engines: {node: '>=6.9.0'} - '@babel/generator@7.27.0': - resolution: {integrity: sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==} - engines: {node: '>=6.9.0'} - '@babel/generator@7.28.0': resolution: {integrity: sha512-lJjzvrbEeWrhB4P3QBsH7tey117PjLZnDbLiQEKjQ/fNJTjuq4HSqgFA+UNSwZT8D7dxxbnuSBMsa1lrWzKlQg==} engines: {node: '>=6.9.0'} @@ -1692,14 +1679,6 @@ packages: resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@7.24.1': - resolution: {integrity: sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==} - engines: {node: '>=6.9.0'} - - '@babel/helper-string-parser@7.25.9': - resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} - engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@7.27.1': resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} engines: {node: '>=6.9.0'} @@ -1708,10 +1687,6 @@ packages: resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@7.24.5': - resolution: {integrity: sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==} - engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@7.25.9': resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} engines: {node: '>=6.9.0'} @@ -1746,21 +1721,6 @@ packages: engines: {node: '>=6.0.0'} hasBin: true - '@babel/parser@7.25.0': - resolution: {integrity: sha512-CzdIU9jdP0dg7HdyB+bHvDJGagUv+qtzZt5rYCWwW6tITNqV9odjp6Qu41gkG0ca5UfdDUWrKkiAnHHdGRnOrA==} - engines: {node: '>=6.0.0'} - hasBin: true - - '@babel/parser@7.26.2': - resolution: {integrity: sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==} - engines: {node: '>=6.0.0'} - hasBin: true - - '@babel/parser@7.27.0': - resolution: {integrity: sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==} - engines: {node: '>=6.0.0'} - hasBin: true - '@babel/parser@7.28.0': resolution: {integrity: sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==} engines: {node: '>=6.0.0'} @@ -1808,10 +1768,6 @@ packages: resolution: {integrity: sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==} engines: {node: '>=6.9.0'} - '@babel/template@7.27.0': - resolution: {integrity: sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==} - engines: {node: '>=6.9.0'} - '@babel/template@7.27.2': resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==} engines: {node: '>=6.9.0'} @@ -1836,18 +1792,6 @@ packages: resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==} engines: {node: '>=6.9.0'} - '@babel/types@7.24.5': - resolution: {integrity: sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==} - engines: {node: '>=6.9.0'} - - '@babel/types@7.26.0': - resolution: {integrity: sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==} - engines: {node: '>=6.9.0'} - - '@babel/types@7.27.0': - resolution: {integrity: sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==} - engines: {node: '>=6.9.0'} - '@babel/types@7.28.2': resolution: {integrity: sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==} engines: {node: '>=6.9.0'} @@ -3957,8 +3901,8 @@ packages: peerDependencies: hono: ^4 - '@hookform/resolvers@3.3.1': - resolution: {integrity: sha512-K7KCKRKjymxIB90nHDQ7b9nli474ru99ZbqxiqDAWYsYhOsU3/4qLxW91y+1n04ic13ajjZ66L3aXbNef8PELQ==} + '@hookform/resolvers@4.1.3': + resolution: {integrity: sha512-Jsv6UOWYTrEFJ/01ZrnwVXs7KDvP8XIo115i++5PWvNkNvkrsTfGiLS6w+eJ57CYtUtDQalUWovCZDHFJ8u1VQ==} peerDependencies: react-hook-form: ^7.0.0 @@ -7354,6 +7298,9 @@ packages: '@socket.io/component-emitter@3.1.2': resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==} + '@standard-schema/utils@0.3.0': + resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==} + '@stripe/stripe-js@2.2.2': resolution: {integrity: sha512-LvFZRZEBoMe6vXC6RoOAIbXWo/0JDdndq43ekL9M6affcM7PtF5KALmwt91BazW7q49sbSl0l7TunWhhSwEW4w==} @@ -7364,13 +7311,13 @@ packages: resolution: {integrity: sha512-JZI8vxlHwtiZO7OYS3qSX9Ngt7UcdqsugLwhBwx7UVi5wp1PtRo2tzMyNoBEGbfHdmkd2QU9IbvYjqtaLUA7TQ==} peerDependencies: typescript: '>=4.7.2' - zod: 3.24.2 + zod: ^3.24.2 '@t3-oss/env-nextjs@0.4.1': resolution: {integrity: sha512-lDbewJvZwOW7bFwHzdKtAH4+YcVTvGU7UEJfHwlb1RqVe9ejPrKn6ax2OGv/nFji1JXGKecKYHz3Xkpru6TFbw==} peerDependencies: typescript: '>=4.7.2' - zod: 3.24.2 + zod: ^3.24.2 '@tailwindcss/typography@0.5.13': resolution: {integrity: sha512-ADGcJ8dX21dVVHIwTRgzrcunY6YY9uSlAHHGVKvkA+vLc5qLwEszvKts40lx7z0qc4clpjclwLeK5rVCV2P/uw==} @@ -8311,8 +8258,8 @@ packages: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} - ansi-regex@6.0.1: - resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + ansi-regex@6.2.2: + resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==} engines: {node: '>=12'} ansi-styles@3.2.1: @@ -8327,8 +8274,8 @@ packages: resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} engines: {node: '>=10'} - ansi-styles@6.2.1: - resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + ansi-styles@6.2.3: + resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} engines: {node: '>=12'} any-promise@1.3.0: @@ -8899,16 +8846,10 @@ packages: codemirror@5.65.14: resolution: {integrity: sha512-VSNugIBDGt0OU9gDjeVr6fNkoFQznrWEUdAApMlXQNbfE8gGO19776D6MwSqF/V/w/sDwonsQ0z7KmmI9guScg==} - color-convert@1.9.3: - resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} - color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} - color-name@1.1.3: - resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} - color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} @@ -9300,32 +9241,6 @@ packages: resolution: {integrity: sha512-Xks6RUDLZFdz8LIdR6q0MTH44k7FikOmnh5xkSjMig6ch45afc8sjTjRQf3P6ax8dMgcQrYO/AR2RGWURrruqw==} engines: {node: '>=18'} - debug@3.2.7: - resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - debug@4.3.4: - resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - debug@4.3.5: - resolution: {integrity: sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - debug@4.3.7: resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} @@ -9335,24 +9250,6 @@ packages: supports-color: optional: true - debug@4.4.0: - resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - - debug@4.4.1: - resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - decamelize-keys@1.1.1: resolution: {integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==} engines: {node: '>=0.10.0'} @@ -10360,6 +10257,10 @@ packages: resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} engines: {node: '>=14'} + foreground-child@3.3.1: + resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} + engines: {node: '>=14'} + form-data-encoder@1.7.2: resolution: {integrity: sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==} @@ -10709,10 +10610,6 @@ packages: has-bigints@1.0.2: resolution: {integrity: sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==} - has-flag@3.0.0: - resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} - engines: {node: '>=4'} - has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} @@ -11074,10 +10971,6 @@ packages: resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==} engines: {node: '>=12'} - is-fullwidth-code-point@5.0.0: - resolution: {integrity: sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==} - engines: {node: '>=18'} - is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -11993,9 +11886,6 @@ packages: monaco-editor: '>= 0.20.0 < 1' prettier: ^2.8.0 || ^3.0.0 - ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} @@ -12308,7 +12198,7 @@ packages: hasBin: true peerDependencies: ws: ^8.18.0 - zod: 3.24.2 + zod: ^3.24.2 peerDependenciesMeta: ws: optional: true @@ -13681,10 +13571,6 @@ packages: resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==} engines: {node: '>=12'} - slice-ansi@7.1.0: - resolution: {integrity: sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==} - engines: {node: '>=18'} - smart-buffer@4.2.0: resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} @@ -13865,8 +13751,8 @@ packages: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} - strip-ansi@7.1.0: - resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + strip-ansi@7.1.2: + resolution: {integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==} engines: {node: '>=12'} strip-bom@3.0.0: @@ -13953,10 +13839,6 @@ packages: engines: {node: '>=16 || 14 >=14.17'} hasBin: true - supports-color@5.5.0: - resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} - engines: {node: '>=4'} - supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -14864,9 +14746,9 @@ packages: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} - wrap-ansi@9.0.0: - resolution: {integrity: sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==} - engines: {node: '>=18'} + wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} @@ -15021,12 +14903,12 @@ packages: zod-to-json-schema@3.22.4: resolution: {integrity: sha512-2Ed5dJ+n/O3cU383xSY28cuVi0BCQhF8nYqWU5paEpl7fVdqdAmiLdqLyfblbNdfOFwFfi/mqU4O1pwc60iBhQ==} peerDependencies: - zod: 3.24.2 + zod: ^3.24.2 zod-to-json-schema@3.24.5: resolution: {integrity: sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g==} peerDependencies: - zod: 3.24.2 + zod: ^3.24.2 zod@3.24.2: resolution: {integrity: sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==} @@ -15065,7 +14947,7 @@ snapshots: '@apm-js-collab/tracing-hooks@0.3.1': dependencies: '@apm-js-collab/code-transformer': 0.8.2 - debug: 4.4.1 + debug: 4.3.7 module-details-from-path: 1.0.4 transitivePeerDependencies: - supports-color @@ -16017,7 +15899,7 @@ snapshots: '@babel/traverse': 7.28.0 '@babel/types': 7.28.2 convert-source-map: 2.0.0 - debug: 4.4.1 + debug: 4.3.7 gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -16026,19 +15908,11 @@ snapshots: '@babel/generator@7.23.6': dependencies: - '@babel/types': 7.23.6 + '@babel/types': 7.28.2 '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.25 jsesc: 2.5.2 - '@babel/generator@7.27.0': - dependencies: - '@babel/parser': 7.27.0 - '@babel/types': 7.27.0 - '@jridgewell/gen-mapping': 0.3.8 - '@jridgewell/trace-mapping': 0.3.25 - jsesc: 3.1.0 - '@babel/generator@7.28.0': dependencies: '@babel/parser': 7.28.0 @@ -16060,13 +15934,13 @@ snapshots: '@babel/helper-function-name@7.23.0': dependencies: '@babel/template': 7.24.0 - '@babel/types': 7.24.5 + '@babel/types': 7.28.2 '@babel/helper-globals@7.28.0': {} '@babel/helper-hoist-variables@7.22.5': dependencies: - '@babel/types': 7.24.5 + '@babel/types': 7.28.2 '@babel/helper-module-imports@7.27.1': dependencies: @@ -16090,20 +15964,14 @@ snapshots: '@babel/helper-split-export-declaration@7.22.6': dependencies: - '@babel/types': 7.23.6 + '@babel/types': 7.28.2 '@babel/helper-string-parser@7.23.4': {} - '@babel/helper-string-parser@7.24.1': {} - - '@babel/helper-string-parser@7.25.9': {} - '@babel/helper-string-parser@7.27.1': {} '@babel/helper-validator-identifier@7.22.20': {} - '@babel/helper-validator-identifier@7.24.5': {} - '@babel/helper-validator-identifier@7.25.9': {} '@babel/helper-validator-identifier@7.27.1': {} @@ -16118,13 +15986,13 @@ snapshots: '@babel/highlight@7.23.4': dependencies: '@babel/helper-validator-identifier': 7.25.9 - chalk: 5.3.0 + chalk: 2.4.2 js-tokens: 4.0.0 '@babel/highlight@7.24.5': dependencies: '@babel/helper-validator-identifier': 7.25.9 - chalk: 5.3.0 + chalk: 2.4.2 js-tokens: 4.0.0 picocolors: 1.0.0 @@ -16134,19 +16002,7 @@ snapshots: '@babel/parser@7.24.5': dependencies: - '@babel/types': 7.27.0 - - '@babel/parser@7.25.0': - dependencies: - '@babel/types': 7.24.5 - - '@babel/parser@7.26.2': - dependencies: - '@babel/types': 7.26.0 - - '@babel/parser@7.27.0': - dependencies: - '@babel/types': 7.27.0 + '@babel/types': 7.28.2 '@babel/parser@7.28.0': dependencies: @@ -16184,14 +16040,8 @@ snapshots: '@babel/template@7.24.0': dependencies: '@babel/code-frame': 7.24.2 - '@babel/parser': 7.25.0 - '@babel/types': 7.24.5 - - '@babel/template@7.27.0': - dependencies: - '@babel/code-frame': 7.26.2 - '@babel/parser': 7.27.0 - '@babel/types': 7.27.0 + '@babel/parser': 7.28.0 + '@babel/types': 7.28.2 '@babel/template@7.27.2': dependencies: @@ -16207,21 +16057,21 @@ snapshots: '@babel/helper-function-name': 7.23.0 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.23.6 + '@babel/parser': 7.28.0 '@babel/types': 7.23.6 - debug: 4.4.1 + debug: 4.3.7 globals: 11.12.0 transitivePeerDependencies: - supports-color '@babel/traverse@7.25.6': dependencies: - '@babel/code-frame': 7.26.2 - '@babel/generator': 7.27.0 - '@babel/parser': 7.27.0 - '@babel/template': 7.27.0 - '@babel/types': 7.27.0 - debug: 4.4.0 + '@babel/code-frame': 7.27.1 + '@babel/generator': 7.28.0 + '@babel/parser': 7.28.0 + '@babel/template': 7.27.2 + '@babel/types': 7.28.2 + debug: 4.3.7 globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -16234,7 +16084,7 @@ snapshots: '@babel/parser': 7.28.0 '@babel/template': 7.27.2 '@babel/types': 7.28.2 - debug: 4.4.1 + debug: 4.3.7 transitivePeerDependencies: - supports-color @@ -16250,22 +16100,6 @@ snapshots: '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 - '@babel/types@7.24.5': - dependencies: - '@babel/helper-string-parser': 7.24.1 - '@babel/helper-validator-identifier': 7.24.5 - to-fast-properties: 2.0.0 - - '@babel/types@7.26.0': - dependencies: - '@babel/helper-string-parser': 7.25.9 - '@babel/helper-validator-identifier': 7.25.9 - - '@babel/types@7.27.0': - dependencies: - '@babel/helper-string-parser': 7.25.9 - '@babel/helper-validator-identifier': 7.25.9 - '@babel/types@7.28.2': dependencies: '@babel/helper-string-parser': 7.27.1 @@ -17935,7 +17769,7 @@ snapshots: '@eslint/eslintrc@2.1.4': dependencies: ajv: 6.12.6 - debug: 4.4.1 + debug: 4.3.7 espree: 9.6.1 globals: 13.24.0 ignore: 5.3.1 @@ -17981,17 +17815,17 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@graphiql/plugin-explorer@3.1.0(@graphiql/react@0.22.4(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@graphiql/plugin-explorer@3.1.0(@graphiql/react@0.22.4(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@graphiql/react': 0.22.4(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - graphiql-explorer: 0.9.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphiql/react': 0.22.4(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + graphiql-explorer: 0.9.0(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + graphql: 16.9.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@graphiql/react@0.22.4(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@graphiql/react@0.22.4(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@graphiql/toolkit': 0.9.1(@types/node@22.17.0)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphiql/toolkit': 0.9.1(@types/node@22.17.0)(graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3))(graphql@16.9.0) '@headlessui/react': 1.7.15(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-dialog': 1.0.5(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-dropdown-menu': 2.0.5(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -18000,11 +17834,11 @@ snapshots: '@types/codemirror': 5.60.13 clsx: 1.2.1 codemirror: 5.65.14 - codemirror-graphql: 2.0.12(@codemirror/language@6.0.0)(codemirror@5.65.14)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + codemirror-graphql: 2.0.12(@codemirror/language@6.0.0)(codemirror@5.65.14)(graphql@16.9.0) copy-to-clipboard: 3.3.3 framer-motion: 6.5.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) - graphql-language-service: 5.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + graphql: 16.9.0 + graphql-language-service: 5.2.1(graphql@16.9.0) markdown-it: 14.1.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) @@ -18016,28 +17850,28 @@ snapshots: - '@types/react-dom' - graphql-ws - '@graphiql/toolkit@0.9.1(@types/node@22.17.0)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphiql/toolkit@0.9.1(@types/node@22.17.0)(graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3))(graphql@16.9.0)': dependencies: '@n1ru4l/push-pull-async-iterable-iterator': 3.2.0 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 meros: 1.3.0(@types/node@22.17.0) optionalDependencies: - graphql-ws: 6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3) + graphql-ws: 6.0.6(graphql@16.9.0)(ws@8.18.3) transitivePeerDependencies: - '@types/node' - '@graphql-eslint/eslint-plugin@3.20.1(@babel/core@7.24.5)(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-eslint/eslint-plugin@3.20.1(@babel/core@7.24.5)(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0)': dependencies: '@babel/code-frame': 7.23.5 - '@graphql-tools/code-file-loader': 7.3.23(@babel/core@7.24.5)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.24.5)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/code-file-loader': 7.3.23(@babel/core@7.24.5)(graphql@16.9.0) + '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.24.5)(graphql@16.9.0) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) chalk: 4.1.2 - debug: 4.3.4 + debug: 4.3.7 fast-glob: 3.3.1 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) - graphql-config: 4.5.0(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql-depth-limit: 1.1.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + graphql: 16.9.0 + graphql-config: 4.5.0(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0) + graphql-depth-limit: 1.1.0(graphql@16.9.0) lodash.lowercase: 4.3.0 tslib: 2.6.2 transitivePeerDependencies: @@ -18049,51 +17883,51 @@ snapshots: - supports-color - utf-8-validate - '@graphql-inspector/core@6.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-inspector/core@6.2.1(graphql@16.9.0)': dependencies: dependency-graph: 1.0.0 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 object-inspect: 1.13.2 tslib: 2.6.2 - '@graphql-tools/batch-execute@8.5.22(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/batch-execute@8.5.22(graphql@16.9.0)': dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) dataloader: 2.2.2 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 tslib: 2.8.1 value-or-promise: 1.0.12 - '@graphql-tools/code-file-loader@7.3.23(@babel/core@7.24.5)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/code-file-loader@7.3.23(@babel/core@7.24.5)(graphql@16.9.0)': dependencies: - '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.24.5)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.24.5)(graphql@16.9.0) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) globby: 11.1.0 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 tslib: 2.8.1 unixify: 1.0.0 transitivePeerDependencies: - '@babel/core' - supports-color - '@graphql-tools/delegate@9.0.35(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/delegate@9.0.35(graphql@16.9.0)': dependencies: - '@graphql-tools/batch-execute': 8.5.22(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/executor': 0.0.20(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/schema': 9.0.19(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/batch-execute': 8.5.22(graphql@16.9.0) + '@graphql-tools/executor': 0.0.20(graphql@16.9.0) + '@graphql-tools/schema': 9.0.19(graphql@16.9.0) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) dataloader: 2.2.2 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 tslib: 2.8.1 value-or-promise: 1.0.12 - '@graphql-tools/executor-graphql-ws@0.0.14(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/executor-graphql-ws@0.0.14(graphql@16.9.0)': dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) '@repeaterjs/repeater': 3.0.4 '@types/ws': 8.5.10 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) - graphql-ws: 5.12.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + graphql: 16.9.0 + graphql-ws: 5.12.1(graphql@16.9.0) isomorphic-ws: 5.0.0(ws@8.13.0) tslib: 2.8.1 ws: 8.13.0 @@ -18101,25 +17935,25 @@ snapshots: - bufferutil - utf-8-validate - '@graphql-tools/executor-http@0.1.10(@types/node@18.19.21)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/executor-http@0.1.10(@types/node@18.19.21)(graphql@16.9.0)': dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) '@repeaterjs/repeater': 3.0.5 '@whatwg-node/fetch': 0.8.8 dset: 3.1.3 extract-files: 11.0.0 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 meros: 1.3.0(@types/node@18.19.21) tslib: 2.8.1 value-or-promise: 1.0.12 transitivePeerDependencies: - '@types/node' - '@graphql-tools/executor-legacy-ws@0.0.11(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/executor-legacy-ws@0.0.11(graphql@16.9.0)': dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) '@types/ws': 8.5.10 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 isomorphic-ws: 5.0.0(ws@8.13.0) tslib: 2.8.1 ws: 8.13.0 @@ -18127,114 +17961,114 @@ snapshots: - bufferutil - utf-8-validate - '@graphql-tools/executor@0.0.20(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/executor@0.0.20(graphql@16.9.0)': dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0) '@repeaterjs/repeater': 3.0.5 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 tslib: 2.8.1 value-or-promise: 1.0.12 - '@graphql-tools/graphql-file-loader@7.5.17(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/graphql-file-loader@7.5.17(graphql@16.9.0)': dependencies: - '@graphql-tools/import': 6.7.18(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/import': 6.7.18(graphql@16.9.0) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) globby: 11.1.0 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 tslib: 2.8.1 unixify: 1.0.0 - '@graphql-tools/graphql-tag-pluck@7.5.2(@babel/core@7.24.5)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/graphql-tag-pluck@7.5.2(@babel/core@7.24.5)(graphql@16.9.0)': dependencies: '@babel/parser': 7.23.6 '@babel/plugin-syntax-import-assertions': 7.23.3(@babel/core@7.24.5) '@babel/traverse': 7.23.7 '@babel/types': 7.23.6 - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) + graphql: 16.9.0 tslib: 2.8.1 transitivePeerDependencies: - '@babel/core' - supports-color - '@graphql-tools/import@6.7.18(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/import@6.7.18(graphql@16.9.0)': dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) + graphql: 16.9.0 resolve-from: 5.0.0 tslib: 2.8.1 - '@graphql-tools/json-file-loader@7.4.18(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/json-file-loader@7.4.18(graphql@16.9.0)': dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) globby: 11.1.0 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 tslib: 2.8.1 unixify: 1.0.0 - '@graphql-tools/load@7.8.14(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/load@7.8.14(graphql@16.9.0)': dependencies: - '@graphql-tools/schema': 9.0.19(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphql-tools/schema': 9.0.19(graphql@16.9.0) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) + graphql: 16.9.0 p-limit: 3.1.0 tslib: 2.8.1 - '@graphql-tools/merge@8.3.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/merge@8.3.1(graphql@16.9.0)': dependencies: - '@graphql-tools/utils': 8.9.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphql-tools/utils': 8.9.0(graphql@16.9.0) + graphql: 16.9.0 tslib: 2.8.1 - '@graphql-tools/merge@8.4.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/merge@8.4.2(graphql@16.9.0)': dependencies: - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) + graphql: 16.9.0 tslib: 2.8.1 - '@graphql-tools/merge@9.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/merge@9.0.0(graphql@16.9.0)': dependencies: - '@graphql-tools/utils': 10.10.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphql-tools/utils': 10.10.2(graphql@16.9.0) + graphql: 16.9.0 tslib: 2.6.1 - '@graphql-tools/schema@10.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/schema@10.0.0(graphql@16.9.0)': dependencies: - '@graphql-tools/merge': 9.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 10.10.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphql-tools/merge': 9.0.0(graphql@16.9.0) + '@graphql-tools/utils': 10.10.2(graphql@16.9.0) + graphql: 16.9.0 tslib: 2.6.1 value-or-promise: 1.0.12 - '@graphql-tools/schema@8.5.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/schema@8.5.1(graphql@16.9.0)': dependencies: - '@graphql-tools/merge': 8.3.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 8.9.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphql-tools/merge': 8.3.1(graphql@16.9.0) + '@graphql-tools/utils': 8.9.0(graphql@16.9.0) + graphql: 16.9.0 tslib: 2.6.1 value-or-promise: 1.0.11 - '@graphql-tools/schema@9.0.19(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/schema@9.0.19(graphql@16.9.0)': dependencies: - '@graphql-tools/merge': 8.4.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphql-tools/merge': 8.4.2(graphql@16.9.0) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) + graphql: 16.9.0 tslib: 2.8.1 value-or-promise: 1.0.12 - '@graphql-tools/url-loader@7.17.18(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/url-loader@7.17.18(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0)': dependencies: '@ardatan/sync-fetch': 0.0.1(encoding@0.1.13) - '@graphql-tools/delegate': 9.0.35(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/executor-graphql-ws': 0.0.14(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/executor-http': 0.1.10(@types/node@18.19.21)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/executor-legacy-ws': 0.0.11(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/wrap': 9.4.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/delegate': 9.0.35(graphql@16.9.0) + '@graphql-tools/executor-graphql-ws': 0.0.14(graphql@16.9.0) + '@graphql-tools/executor-http': 0.1.10(@types/node@18.19.21)(graphql@16.9.0) + '@graphql-tools/executor-legacy-ws': 0.0.11(graphql@16.9.0) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) + '@graphql-tools/wrap': 9.4.2(graphql@16.9.0) '@types/ws': 8.5.10 '@whatwg-node/fetch': 0.8.8 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 isomorphic-ws: 5.0.0(ws@8.16.0) tslib: 2.8.1 value-or-promise: 1.0.12 @@ -18245,53 +18079,53 @@ snapshots: - encoding - utf-8-validate - '@graphql-tools/utils@10.1.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/utils@10.1.2(graphql@16.9.0)': dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0) cross-inspect: 1.0.0 dset: 3.1.3 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 tslib: 2.6.2 - '@graphql-tools/utils@10.10.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/utils@10.10.2(graphql@16.9.0)': dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0) '@whatwg-node/promise-helpers': 1.3.2 cross-inspect: 1.0.1 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 tslib: 2.8.1 - '@graphql-tools/utils@10.2.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/utils@10.2.2(graphql@16.9.0)': dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0) cross-inspect: 1.0.0 dset: 3.1.3 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 tslib: 2.8.1 - '@graphql-tools/utils@8.9.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/utils@8.9.0(graphql@16.9.0)': dependencies: - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 tslib: 2.8.1 - '@graphql-tools/utils@9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/utils@9.2.1(graphql@16.9.0)': dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0) + graphql: 16.9.0 tslib: 2.6.2 - '@graphql-tools/wrap@9.4.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/wrap@9.4.2(graphql@16.9.0)': dependencies: - '@graphql-tools/delegate': 9.0.35(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/schema': 9.0.19(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + '@graphql-tools/delegate': 9.0.35(graphql@16.9.0) + '@graphql-tools/schema': 9.0.19(graphql@16.9.0) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) + graphql: 16.9.0 tslib: 2.8.1 value-or-promise: 1.0.12 - '@graphql-typed-document-node/core@3.2.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-typed-document-node/core@3.2.0(graphql@16.9.0)': dependencies: - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 '@headlessui/react@1.7.15(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: @@ -18307,14 +18141,15 @@ snapshots: dependencies: hono: 4.10.6 - '@hookform/resolvers@3.3.1(react-hook-form@7.45.1(react@18.3.1))': + '@hookform/resolvers@4.1.3(react-hook-form@7.45.1(react@18.3.1))': dependencies: + '@standard-schema/utils': 0.3.0 react-hook-form: 7.45.1(react@18.3.1) '@humanwhocodes/config-array@0.13.0': dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.4.1 + debug: 4.3.7 minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -18435,7 +18270,7 @@ snapshots: cli-width: 4.1.0 mute-stream: 2.0.0 signal-exit: 4.1.0 - wrap-ansi: 9.0.0 + wrap-ansi: 8.1.0 yoctocolors-cjs: 2.1.2 optionalDependencies: '@types/node': 22.17.0 @@ -18447,7 +18282,7 @@ snapshots: '@types/node': 20.12.12 '@types/wrap-ansi': 3.0.0 ansi-escapes: 4.3.2 - chalk: 5.3.0 + chalk: 4.1.2 cli-spinners: 2.9.2 cli-width: 4.1.0 figures: 3.2.0 @@ -18496,9 +18331,9 @@ snapshots: dependencies: string-width: 5.1.2 string-width-cjs: string-width@4.2.3 - strip-ansi: 7.1.0 + strip-ansi: 7.1.2 strip-ansi-cjs: strip-ansi@6.0.1 - wrap-ansi: 9.0.0 + wrap-ansi: 8.1.0 wrap-ansi-cjs: wrap-ansi@7.0.0 '@isaacs/fs-minipass@4.0.1': @@ -18512,7 +18347,7 @@ snapshots: '@jridgewell/gen-mapping@0.3.13': dependencies: '@jridgewell/sourcemap-codec': 1.5.5 - '@jridgewell/trace-mapping': 0.3.30 + '@jridgewell/trace-mapping': 0.3.31 '@jridgewell/gen-mapping@0.3.3': dependencies: @@ -22514,6 +22349,8 @@ snapshots: '@socket.io/component-emitter@3.1.2': {} + '@standard-schema/utils@0.3.0': {} + '@stripe/stripe-js@2.2.2': {} '@swc/helpers@0.5.15': @@ -22780,7 +22617,7 @@ snapshots: '@types/babel__template@7.4.4': dependencies: - '@babel/parser': 7.23.6 + '@babel/parser': 7.28.0 '@babel/types': 7.23.4 '@types/babel__traverse@7.20.5': @@ -23219,7 +23056,7 @@ snapshots: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/type-utils': 5.62.0(eslint@8.57.1)(typescript@5.5.2) '@typescript-eslint/utils': 5.62.0(eslint@8.57.1)(typescript@5.5.2) - debug: 4.4.1 + debug: 4.3.7 eslint: 8.57.1 graphemer: 1.4.0 ignore: 5.3.1 @@ -23236,7 +23073,7 @@ snapshots: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.2) - debug: 4.3.4 + debug: 4.3.7 eslint: 8.57.1 optionalDependencies: typescript: 5.5.2 @@ -23252,7 +23089,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.2) '@typescript-eslint/utils': 5.62.0(eslint@8.57.1)(typescript@5.5.2) - debug: 4.4.1 + debug: 4.3.7 eslint: 8.57.1 tsutils: 3.21.0(typescript@5.5.2) optionalDependencies: @@ -23266,7 +23103,7 @@ snapshots: dependencies: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/visitor-keys': 5.62.0 - debug: 4.4.1 + debug: 4.3.7 globby: 11.1.0 is-glob: 4.0.3 semver: 7.7.1 @@ -23298,7 +23135,7 @@ snapshots: '@typescript/vfs@1.5.0': dependencies: - debug: 4.4.1 + debug: 4.3.7 transitivePeerDependencies: - supports-color @@ -23331,7 +23168,7 @@ snapshots: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 ast-v8-to-istanbul: 0.3.8 - debug: 4.4.1 + debug: 4.3.7 istanbul-lib-coverage: 3.2.2 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 5.0.6 @@ -23426,7 +23263,7 @@ snapshots: '@vue/compiler-core@3.4.34': dependencies: - '@babel/parser': 7.26.2 + '@babel/parser': 7.28.0 '@vue/shared': 3.4.34 entities: 4.5.0 estree-walker: 2.0.2 @@ -23614,7 +23451,7 @@ snapshots: agent-base@6.0.2: dependencies: - debug: 4.4.1 + debug: 4.3.7 transitivePeerDependencies: - supports-color @@ -23688,11 +23525,11 @@ snapshots: ansi-regex@5.0.1: {} - ansi-regex@6.0.1: {} + ansi-regex@6.2.2: {} ansi-styles@3.2.1: dependencies: - color-convert: 1.9.3 + color-convert: 2.0.1 ansi-styles@4.3.0: dependencies: @@ -23700,7 +23537,7 @@ snapshots: ansi-styles@5.2.0: {} - ansi-styles@6.2.1: {} + ansi-styles@6.2.3: {} any-promise@1.3.0: {} @@ -23845,7 +23682,7 @@ snapshots: dependencies: '@fastify/error': 3.4.0 archy: 1.0.0 - debug: 4.4.0 + debug: 4.3.7 fastq: 1.17.1 transitivePeerDependencies: - supports-color @@ -23920,7 +23757,7 @@ snapshots: dependencies: bytes: 3.1.2 content-type: 1.0.5 - debug: 4.4.1 + debug: 4.3.7 http-errors: 2.0.0 iconv-lite: 0.6.3 on-finished: 2.4.1 @@ -23945,7 +23782,7 @@ snapshots: string-width: 5.1.2 type-fest: 2.19.0 widest-line: 4.0.1 - wrap-ansi: 9.0.0 + wrap-ansi: 8.1.0 bplist-parser@0.2.0: dependencies: @@ -23970,14 +23807,14 @@ snapshots: browserslist@4.21.9: dependencies: - caniuse-lite: 1.0.30001517 + caniuse-lite: 1.0.30001735 electron-to-chromium: 1.4.471 node-releases: 2.0.13 update-browserslist-db: 1.0.11(browserslist@4.21.9) browserslist@4.23.0: dependencies: - caniuse-lite: 1.0.30001621 + caniuse-lite: 1.0.30001735 electron-to-chromium: 1.4.780 node-releases: 2.0.14 update-browserslist-db: 1.0.16(browserslist@4.23.0) @@ -24154,7 +23991,7 @@ snapshots: dependencies: ansi-styles: 3.2.1 escape-string-regexp: 1.0.5 - supports-color: 5.5.0 + supports-color: 8.1.1 chalk@3.0.0: dependencies: @@ -24327,26 +24164,20 @@ snapshots: transitivePeerDependencies: - '@types/react' - codemirror-graphql@2.0.12(@codemirror/language@6.0.0)(codemirror@5.65.14)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)): + codemirror-graphql@2.0.12(@codemirror/language@6.0.0)(codemirror@5.65.14)(graphql@16.9.0): dependencies: '@codemirror/language': 6.0.0 '@types/codemirror': 0.0.90 codemirror: 5.65.14 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) - graphql-language-service: 5.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + graphql: 16.9.0 + graphql-language-service: 5.2.1(graphql@16.9.0) codemirror@5.65.14: {} - color-convert@1.9.3: - dependencies: - color-name: 1.1.3 - color-convert@2.0.1: dependencies: color-name: 1.1.4 - color-name@1.1.3: {} - color-name@1.1.4: {} color-support@1.1.3: {} @@ -24717,30 +24548,10 @@ snapshots: debounce@2.2.0: {} - debug@3.2.7: - dependencies: - ms: 2.1.3 - - debug@4.3.4: - dependencies: - ms: 2.1.2 - - debug@4.3.5: - dependencies: - ms: 2.1.2 - debug@4.3.7: dependencies: ms: 2.1.3 - debug@4.4.0: - dependencies: - ms: 2.1.3 - - debug@4.4.1: - dependencies: - ms: 2.1.3 - decamelize-keys@1.1.1: dependencies: decamelize: 1.2.0 @@ -25056,7 +24867,7 @@ snapshots: base64id: 2.0.0 cookie: 0.7.2 cors: 2.8.5 - debug: 4.4.1 + debug: 4.3.7 engine.io-parser: 5.2.3 ws: 8.17.1 transitivePeerDependencies: @@ -25192,7 +25003,7 @@ snapshots: esbuild-register@3.5.0(esbuild@0.19.11): dependencies: - debug: 4.3.5 + debug: 4.3.7 esbuild: 0.19.11 transitivePeerDependencies: - supports-color @@ -25455,7 +25266,7 @@ snapshots: eslint-import-resolver-node@0.3.7: dependencies: - debug: 3.2.7 + debug: 4.3.7 is-core-module: 2.12.1 resolve: 1.22.8 transitivePeerDependencies: @@ -25463,7 +25274,7 @@ snapshots: eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint-import-resolver-node@0.3.7)(eslint-plugin-import@2.27.5(eslint@8.57.1))(eslint@8.57.1): dependencies: - debug: 4.3.4 + debug: 4.3.7 enhanced-resolve: 5.15.0 eslint: 8.57.1 eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) @@ -25481,7 +25292,7 @@ snapshots: eslint-import-resolver-typescript@3.5.5(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint-plugin-import@2.27.5)(eslint@8.57.1): dependencies: - debug: 4.3.4 + debug: 4.3.7 enhanced-resolve: 5.15.0 eslint: 8.57.1 eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1) @@ -25499,7 +25310,7 @@ snapshots: eslint-module-utils@2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint-import-resolver-node@0.3.7)(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1): dependencies: - debug: 4.4.1 + debug: 4.3.7 optionalDependencies: '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.5.2) eslint: 8.57.1 @@ -25510,7 +25321,7 @@ snapshots: eslint-module-utils@2.8.0(@typescript-eslint/parser@5.62.0(eslint@8.57.1)(typescript@5.5.2))(eslint-import-resolver-typescript@3.5.5)(eslint@8.57.1): dependencies: - debug: 4.4.1 + debug: 4.3.7 optionalDependencies: '@typescript-eslint/parser': 5.62.0(eslint@8.57.1)(typescript@5.5.2) eslint: 8.57.1 @@ -25536,7 +25347,7 @@ snapshots: array-includes: 3.1.6 array.prototype.flat: 1.3.1 array.prototype.flatmap: 1.3.1 - debug: 3.2.7 + debug: 4.3.7 doctrine: 2.1.0 eslint: 8.57.1 eslint-import-resolver-node: 0.3.7 @@ -25561,7 +25372,7 @@ snapshots: array-includes: 3.1.6 array.prototype.flat: 1.3.1 array.prototype.flatmap: 1.3.1 - debug: 3.2.7 + debug: 4.3.7 doctrine: 2.1.0 eslint: 8.57.1 eslint-import-resolver-node: 0.3.7 @@ -25706,9 +25517,9 @@ snapshots: '@nodelib/fs.walk': 1.2.8 '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 - chalk: 5.3.0 + chalk: 4.1.2 cross-spawn: 7.0.6 - debug: 4.4.1 + debug: 4.3.7 doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -25733,7 +25544,7 @@ snapshots: minimatch: 3.1.2 natural-compare: 1.4.0 optionator: 0.9.3 - strip-ansi: 7.1.0 + strip-ansi: 6.0.1 text-table: 0.2.0 transitivePeerDependencies: - supports-color @@ -25849,7 +25660,7 @@ snapshots: content-type: 1.0.5 cookie: 0.7.2 cookie-signature: 1.2.2 - debug: 4.4.1 + debug: 4.3.7 encodeurl: 2.0.0 escape-html: 1.0.3 etag: 1.8.1 @@ -26041,7 +25852,7 @@ snapshots: finalhandler@2.1.0: dependencies: - debug: 4.4.1 + debug: 4.3.7 encodeurl: 2.0.0 escape-html: 1.0.3 on-finished: 2.4.1 @@ -26102,6 +25913,11 @@ snapshots: cross-spawn: 7.0.6 signal-exit: 4.1.0 + foreground-child@3.3.1: + dependencies: + cross-spawn: 7.0.6 + signal-exit: 4.1.0 + form-data-encoder@1.7.2: {} form-data@4.0.4: @@ -26319,7 +26135,7 @@ snapshots: glob@10.3.4: dependencies: - foreground-child: 3.1.1 + foreground-child: 3.3.1 jackspeak: 2.3.6 minimatch: 9.0.5 minipass: 7.1.2 @@ -26409,18 +26225,18 @@ snapshots: graphemer@1.4.0: {} - graphiql-explorer@0.9.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + graphiql-explorer@0.9.0(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - graphiql@3.3.2(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + graphiql@3.3.2(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - '@graphiql/react': 0.22.4(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@graphiql/toolkit': 0.9.1(@types/node@22.17.0)(graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3))(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) - graphql-language-service: 5.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphiql/react': 0.22.4(@codemirror/language@6.0.0)(@types/node@22.17.0)(@types/react-dom@18.3.0)(@types/react@18.3.3)(graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@graphiql/toolkit': 0.9.1(@types/node@22.17.0)(graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3))(graphql@16.9.0) + graphql: 16.9.0 + graphql-language-service: 5.2.1(graphql@16.9.0) markdown-it: 14.1.0 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) @@ -26435,16 +26251,16 @@ snapshots: dependencies: lodash: 4.17.21 - graphql-config@4.5.0(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)): + graphql-config@4.5.0(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0): dependencies: - '@graphql-tools/graphql-file-loader': 7.5.17(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/json-file-loader': 7.4.18(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/load': 7.8.14(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/merge': 8.3.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/url-loader': 7.17.18(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 9.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/graphql-file-loader': 7.5.17(graphql@16.9.0) + '@graphql-tools/json-file-loader': 7.4.18(graphql@16.9.0) + '@graphql-tools/load': 7.8.14(graphql@16.9.0) + '@graphql-tools/merge': 8.3.1(graphql@16.9.0) + '@graphql-tools/url-loader': 7.17.18(@types/node@18.19.21)(encoding@0.1.13)(graphql@16.9.0) + '@graphql-tools/utils': 9.2.1(graphql@16.9.0) cosmiconfig: 8.0.0 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 jiti: 1.17.1 minimatch: 4.2.3 string-env-interpolation: 1.0.1 @@ -26455,43 +26271,43 @@ snapshots: - encoding - utf-8-validate - graphql-depth-limit@1.1.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)): + graphql-depth-limit@1.1.0(graphql@16.9.0): dependencies: arrify: 1.0.1 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 - graphql-language-service@5.2.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)): + graphql-language-service@5.2.0(graphql@16.9.0): dependencies: - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 nullthrows: 1.1.1 vscode-languageserver-types: 3.17.3 - graphql-language-service@5.2.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)): + graphql-language-service@5.2.1(graphql@16.9.0): dependencies: - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 nullthrows: 1.1.1 vscode-languageserver-types: 3.17.3 - graphql-ws@5.12.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)): + graphql-ws@5.12.1(graphql@16.9.0): dependencies: - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 - graphql-ws@5.14.1(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)): + graphql-ws@5.14.1(graphql@16.9.0): dependencies: - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 - graphql-ws@5.16.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)): + graphql-ws@5.16.0(graphql@16.9.0): dependencies: - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 - graphql-ws@6.0.6(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(ws@8.18.3): + graphql-ws@6.0.6(graphql@16.9.0)(ws@8.18.3): dependencies: - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 optionalDependencies: ws: 8.18.3 optional: true - graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly): {} + graphql@16.9.0: {} handlebars@4.7.8: dependencies: @@ -26506,8 +26322,6 @@ snapshots: has-bigints@1.0.2: {} - has-flag@3.0.0: {} - has-flag@4.0.0: {} has-property-descriptors@1.0.0: @@ -26692,21 +26506,21 @@ snapshots: http-proxy-agent@7.0.2: dependencies: agent-base: 7.1.4 - debug: 4.4.1 + debug: 4.3.7 transitivePeerDependencies: - supports-color https-proxy-agent@5.0.1: dependencies: agent-base: 6.0.2 - debug: 4.4.1 + debug: 4.3.7 transitivePeerDependencies: - supports-color https-proxy-agent@7.0.5: dependencies: agent-base: 7.1.4 - debug: 4.4.1 + debug: 4.3.7 transitivePeerDependencies: - supports-color @@ -26814,9 +26628,9 @@ snapshots: run-async: 3.0.0 rxjs: 7.8.1 string-width: 4.2.3 - strip-ansi: 7.1.0 + strip-ansi: 6.0.1 through: 2.3.8 - wrap-ansi: 9.0.0 + wrap-ansi: 6.2.0 internal-slot@1.0.5: dependencies: @@ -26840,7 +26654,7 @@ snapshots: dependencies: '@ioredis/commands': 1.2.0 cluster-key-slot: 1.1.2 - debug: 4.3.4 + debug: 4.3.7 denque: 2.1.0 lodash.defaults: 4.2.0 lodash.isarguments: 3.1.0 @@ -26928,10 +26742,6 @@ snapshots: is-fullwidth-code-point@4.0.0: {} - is-fullwidth-code-point@5.0.0: - dependencies: - get-east-asian-width: 1.2.0 - is-glob@4.0.3: dependencies: is-extglob: 2.1.1 @@ -27074,12 +26884,12 @@ snapshots: dependencies: istanbul-lib-coverage: 3.2.2 make-dir: 4.0.0 - supports-color: 8.1.1 + supports-color: 7.2.0 istanbul-lib-source-maps@5.0.6: dependencies: '@jridgewell/trace-mapping': 0.3.30 - debug: 4.4.1 + debug: 4.3.7 istanbul-lib-coverage: 3.2.2 transitivePeerDependencies: - supports-color @@ -27304,7 +27114,7 @@ snapshots: eventemitter3: 5.0.1 log-update: 6.1.0 rfdc: 1.4.1 - wrap-ansi: 9.0.0 + wrap-ansi: 8.1.0 load-json-file@7.0.1: {} @@ -27380,9 +27190,9 @@ snapshots: dependencies: ansi-escapes: 7.0.0 cli-cursor: 5.0.0 - slice-ansi: 7.1.0 - strip-ansi: 7.1.0 - wrap-ansi: 9.0.0 + slice-ansi: 5.0.0 + strip-ansi: 7.1.2 + wrap-ansi: 8.1.0 long@5.3.2: {} @@ -27857,7 +27667,7 @@ snapshots: micromark@4.0.0: dependencies: '@types/debug': 4.1.12 - debug: 4.4.1 + debug: 4.3.7 decode-named-character-reference: 1.0.2 devlop: 1.1.0 micromark-core-commonmark: 2.0.0 @@ -28001,16 +27811,14 @@ snapshots: monaco-editor@0.45.0: {} - monaco-graphql@1.4.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))(monaco-editor@0.45.0)(prettier@3.6.2): + monaco-graphql@1.4.0(graphql@16.9.0)(monaco-editor@0.45.0)(prettier@3.6.2): dependencies: - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) - graphql-language-service: 5.2.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + graphql: 16.9.0 + graphql-language-service: 5.2.0(graphql@16.9.0) monaco-editor: 0.45.0 picomatch-browser: 2.2.6 prettier: 3.6.2 - ms@2.1.2: {} - ms@2.1.3: {} msgpackr-extract@3.0.2: @@ -28040,7 +27848,7 @@ snapshots: '@types/cookie': 0.6.0 '@types/statuses': 2.0.5 chalk: 4.1.2 - graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) + graphql: 16.9.0 headers-polyfill: 4.0.3 is-node-process: 1.2.0 outvariant: 1.4.2 @@ -28428,7 +28236,7 @@ snapshots: log-symbols: 6.0.0 stdin-discarder: 0.2.2 string-width: 7.2.0 - strip-ansi: 7.1.0 + strip-ansi: 7.1.2 orderedmap@2.1.1: {} @@ -28833,7 +28641,7 @@ snapshots: postcss@8.4.31: dependencies: nanoid: 3.3.11 - picocolors: 1.1.1 + picocolors: 1.0.0 source-map-js: 1.2.1 postcss@8.4.38: @@ -29591,7 +29399,7 @@ snapshots: require-in-the-middle@7.5.2: dependencies: - debug: 4.4.1 + debug: 4.3.7 module-details-from-path: 1.0.3 resolve: 1.22.10 transitivePeerDependencies: @@ -29738,7 +29546,7 @@ snapshots: router@2.2.0: dependencies: - debug: 4.4.1 + debug: 4.3.7 depd: 2.0.0 is-promise: 4.0.0 parseurl: 1.3.3 @@ -29833,7 +29641,7 @@ snapshots: send@1.2.0: dependencies: - debug: 4.4.1 + debug: 4.3.7 encodeurl: 2.0.0 escape-html: 1.0.3 etag: 1.8.1 @@ -29999,14 +29807,9 @@ snapshots: slice-ansi@5.0.0: dependencies: - ansi-styles: 6.2.1 + ansi-styles: 6.2.3 is-fullwidth-code-point: 4.0.0 - slice-ansi@7.1.0: - dependencies: - ansi-styles: 6.2.1 - is-fullwidth-code-point: 5.0.0 - smart-buffer@4.2.0: {} snake-case@3.0.4: @@ -30016,7 +29819,7 @@ snapshots: socket.io-adapter@2.5.5: dependencies: - debug: 4.4.1 + debug: 4.3.7 ws: 8.17.1 transitivePeerDependencies: - bufferutil @@ -30026,7 +29829,7 @@ snapshots: socket.io-parser@4.2.4: dependencies: '@socket.io/component-emitter': 3.1.2 - debug: 4.4.1 + debug: 4.3.7 transitivePeerDependencies: - supports-color @@ -30047,7 +29850,7 @@ snapshots: socks-proxy-agent@8.0.5: dependencies: agent-base: 7.1.4 - debug: 4.4.1 + debug: 4.3.7 socks: 2.8.4 transitivePeerDependencies: - supports-color @@ -30163,13 +29966,13 @@ snapshots: dependencies: eastasianwidth: 0.2.0 emoji-regex: 9.2.2 - strip-ansi: 7.1.0 + strip-ansi: 7.1.2 string-width@7.2.0: dependencies: emoji-regex: 10.3.0 get-east-asian-width: 1.2.0 - strip-ansi: 7.1.0 + strip-ansi: 7.1.2 string.prototype.matchall@4.0.8: dependencies: @@ -30217,9 +30020,9 @@ snapshots: dependencies: ansi-regex: 5.0.1 - strip-ansi@7.1.0: + strip-ansi@7.1.2: dependencies: - ansi-regex: 6.0.1 + ansi-regex: 6.2.2 strip-bom@3.0.0: {} @@ -30310,10 +30113,6 @@ snapshots: pirates: 4.0.6 ts-interface-checker: 0.1.13 - supports-color@5.5.0: - dependencies: - has-flag: 3.0.0 - supports-color@7.2.0: dependencies: has-flag: 4.0.0 @@ -30682,7 +30481,7 @@ snapshots: bundle-require: 4.0.1(esbuild@0.19.11) cac: 6.7.14 chokidar: 3.5.3 - debug: 4.3.4 + debug: 4.3.7 esbuild: 0.19.11 execa: 5.1.1 globby: 11.1.0 @@ -30731,7 +30530,7 @@ snapshots: tuf-js@3.0.1: dependencies: '@tufjs/models': 3.0.1 - debug: 4.4.1 + debug: 4.3.7 make-fetch-happen: 14.0.3 transitivePeerDependencies: - supports-color @@ -30915,7 +30714,7 @@ snapshots: dependencies: browserslist: 4.21.9 escalade: 3.1.1 - picocolors: 1.1.1 + picocolors: 1.0.0 update-browserslist-db@1.0.16(browserslist@4.23.0): dependencies: @@ -31057,7 +30856,7 @@ snapshots: vite-node@3.2.4(@types/node@18.19.21)(terser@5.43.1): dependencies: cac: 6.7.14 - debug: 4.4.1 + debug: 4.3.7 es-module-lexer: 1.7.0 pathe: 2.0.3 vite: 5.4.21(@types/node@18.19.21)(terser@5.43.1) @@ -31075,7 +30874,7 @@ snapshots: vite-node@3.2.4(@types/node@20.12.12)(terser@5.43.1): dependencies: cac: 6.7.14 - debug: 4.4.1 + debug: 4.3.7 es-module-lexer: 1.7.0 pathe: 2.0.3 vite: 5.4.21(@types/node@20.12.12)(terser@5.43.1) @@ -31093,7 +30892,7 @@ snapshots: vite-node@3.2.4(@types/node@20.3.1)(terser@5.43.1): dependencies: cac: 6.7.14 - debug: 4.4.1 + debug: 4.3.7 es-module-lexer: 1.7.0 pathe: 2.0.3 vite: 5.4.21(@types/node@20.3.1)(terser@5.43.1) @@ -31111,7 +30910,7 @@ snapshots: vite-node@3.2.4(@types/node@22.17.0)(terser@5.43.1): dependencies: cac: 6.7.14 - debug: 4.4.1 + debug: 4.3.7 es-module-lexer: 1.7.0 pathe: 2.0.3 vite: 5.4.21(@types/node@22.17.0)(terser@5.43.1) @@ -31258,7 +31057,7 @@ snapshots: '@vitest/spy': 3.2.4 '@vitest/utils': 3.2.4 chai: 5.2.1 - debug: 4.4.1 + debug: 4.3.7 expect-type: 1.2.1 magic-string: 0.30.17 pathe: 2.0.3 @@ -31298,7 +31097,7 @@ snapshots: '@vitest/spy': 3.2.4 '@vitest/utils': 3.2.4 chai: 5.2.1 - debug: 4.4.1 + debug: 4.3.7 expect-type: 1.2.1 magic-string: 0.30.17 pathe: 2.0.3 @@ -31338,7 +31137,7 @@ snapshots: '@vitest/spy': 3.2.4 '@vitest/utils': 3.2.4 chai: 5.2.1 - debug: 4.4.1 + debug: 4.3.7 expect-type: 1.2.1 magic-string: 0.30.17 pathe: 2.0.3 @@ -31378,7 +31177,7 @@ snapshots: '@vitest/spy': 3.2.4 '@vitest/utils': 3.2.4 chai: 5.2.1 - debug: 4.4.1 + debug: 4.3.7 expect-type: 1.2.1 magic-string: 0.30.17 pathe: 2.0.3 @@ -31568,19 +31367,19 @@ snapshots: dependencies: ansi-styles: 4.3.0 string-width: 4.2.3 - strip-ansi: 7.1.0 + strip-ansi: 6.0.1 wrap-ansi@7.0.0: dependencies: - ansi-styles: 6.2.1 + ansi-styles: 4.3.0 string-width: 4.2.3 - strip-ansi: 7.1.0 + strip-ansi: 6.0.1 - wrap-ansi@9.0.0: + wrap-ansi@8.1.0: dependencies: - ansi-styles: 6.2.1 - string-width: 7.2.0 - strip-ansi: 7.1.0 + ansi-styles: 6.2.3 + string-width: 5.1.2 + strip-ansi: 7.1.2 wrappy@1.0.2: {} diff --git a/router/internal/graphiql/graphiql.html b/router/internal/graphiql/graphiql.html index 41b3ff0756..ca28b7068e 100644 --- a/router/internal/graphiql/graphiql.html +++ b/router/internal/graphiql/graphiql.html @@ -9,7 +9,7 @@ href="data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1080 1080' width='35' height='35' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M447.099 231.913C405.967 244.337 367.742 264.878 334.682 292.323C320.832 268.71 298.796 251.002 272.754 242.557C313.865 205.575 362.202 177.525 414.709 160.178C467.216 142.832 522.751 136.567 577.803 141.781C632.855 146.994 686.227 163.571 734.544 190.465C746.769 197.27 758.603 204.698 770.004 212.711C770.394 212.542 770.785 212.376 771.179 212.213C785.976 206.085 802.259 204.482 817.967 207.607C833.676 210.733 848.105 218.446 859.429 229.771C870.754 241.096 878.465 255.525 881.589 271.233C884.712 286.941 883.107 303.223 876.976 318.018C870.845 332.814 860.464 345.459 847.146 354.355C833.828 363.252 818.171 367.999 802.154 367.997C791.52 367.997 780.991 365.902 771.167 361.833C761.343 357.763 752.417 351.799 744.898 344.28C737.379 336.76 731.415 327.834 727.347 318.01C723.279 308.186 721.186 297.657 721.187 287.024C721.187 282.871 721.506 278.742 722.135 274.672C713.657 268.849 704.889 263.426 695.859 258.426C658.269 237.612 616.889 224.541 574.163 219.988C531.437 215.434 488.232 219.489 447.099 231.913ZM319.489 348.564C319.489 363.809 315.185 378.728 307.094 391.613L323.693 420.326C307.59 439.476 285.501 452.638 260.995 457.683L244.582 429.298C237.31 429.844 229.959 429.408 222.73 427.971C207.024 424.848 192.597 417.138 181.273 405.816C169.949 394.495 162.237 380.069 159.112 364.365C155.986 348.661 157.588 332.382 163.715 317.588C169.841 302.794 180.217 290.149 193.531 281.251C206.845 272.354 222.498 267.604 238.511 267.601C249.145 267.6 259.674 269.693 269.499 273.761C279.324 277.829 288.251 283.793 295.77 291.311C303.29 298.829 309.255 307.755 313.325 317.578C317.394 327.402 319.489 337.931 319.489 348.564ZM260.998 457.685L400.599 699.132L442.692 772.036L484.794 699.132L537.279 608.237L589.621 698.805L631.691 771.687L673.783 698.794L744.391 576.462H859.708C861.079 564.36 861.767 552.19 861.769 540.01C861.771 527.83 861.08 515.66 859.697 503.558H702.288L694.971 516.229L631.67 625.857L579.327 535.278L537.235 462.374L495.208 535.289L442.692 626.184L323.7 420.328C307.596 439.478 285.506 452.64 260.998 457.685ZM861.77 540.003C861.768 552.183 861.08 564.353 859.709 576.455H937.128V503.551H859.709C861.088 515.653 861.776 527.823 861.77 540.003ZM937.154 503.558H938.332C939.411 515.563 940 527.721 940 540.01C940 760.902 760.967 940 540.027 940C319.088 940 140 760.924 140 540.031C139.942 500.879 145.66 461.933 156.968 424.449C175.493 444.394 200.696 456.845 227.794 459.44C221.851 485.163 218.231 515.061 218.231 540.01C218.231 717.668 362.259 861.764 540.038 861.764C705.462 861.764 841.629 736.99 859.731 576.462H937.154V503.558Z' fill='white' %3E%3C/path%3E%3C/svg%3E" /> WunderGraph Playground - - + \*********************************************************************************************************************/.graphiql-container{background-color:hsl(var(--color-base));display:flex;height:100%;margin:0;overflow:hidden;width:100%}.graphiql-container .graphiql-sidebar{display:flex;flex-direction:column;justify-content:space-between;padding:var(--px-8);width:var(--sidebar-width)}.graphiql-container .graphiql-sidebar .graphiql-sidebar-section{display:flex;flex-direction:column;gap:var(--px-8)}.graphiql-container .graphiql-sidebar button{display:flex;align-items:center;justify-content:center;color:hsla(var(--color-neutral),var(--alpha-secondary));height:calc(var(--sidebar-width) - (2 * var(--px-8)));width:calc(var(--sidebar-width) - (2 * var(--px-8)))}.graphiql-container .graphiql-sidebar button.active{color:hsl(var(--color-neutral))}.graphiql-container .graphiql-sidebar button:not(:first-child){margin-top:var(--px-4)}.graphiql-container .graphiql-sidebar button>svg{height:var(--px-20);width:var(--px-20)}.graphiql-container .graphiql-main{display:flex;flex:1;min-width:0}.graphiql-container .graphiql-sessions{background-color:hsla(var(--color-neutral),var(--alpha-background-light));border-radius:calc(var(--border-radius-12) + var(--px-8));display:flex;flex-direction:column;flex:1;max-height:100%;margin:var(--px-16);margin-left:0;min-width:0}.graphiql-container .graphiql-session-header{align-items:center;display:flex;justify-content:space-between;height:var(--session-header-height)}button.graphiql-tab-add{height:100%;padding:var(--px-4)}button.graphiql-tab-add>svg{color:hsla(var(--color-neutral),var(--alpha-secondary));display:block;height:var(--px-16);width:var(--px-16)}.graphiql-container .graphiql-session-header-right{align-items:center;display:flex}.graphiql-container .graphiql-logo{color:hsla(var(--color-neutral),var(--alpha-secondary));font-size:var(--font-size-h4);font-weight:var(--font-weight-medium);padding:var(--px-12) var(--px-16)}.graphiql-container .graphiql-logo .graphiql-logo-link{color:hsla(var(--color-neutral),var(--alpha-secondary));text-decoration:none}.graphiql-container .graphiql-session{display:flex;flex:1;padding:0 var(--px-8) var(--px-8)}.graphiql-container .graphiql-editors{background-color:hsl(var(--color-base));border-radius:calc(var(--border-radius-12));box-shadow:var(--popover-box-shadow);display:flex;flex:1;flex-direction:column}.graphiql-container .graphiql-editors.full-height{margin-top:calc(var(--px-8) - var(--session-header-height))}.graphiql-container .graphiql-query-editor{border-bottom:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));padding:var(--px-16);-moz-column-gap:var(--px-16);column-gap:var(--px-16);display:flex;width:100%}.graphiql-container .graphiql-toolbar{width:var(--toolbar-width)}.graphiql-container .graphiql-toolbar>*+*{margin-top:var(--px-8)}.graphiql-toolbar-icon{color:hsla(var(--color-neutral),var(--alpha-tertiary));display:block;height:calc(var(--toolbar-width) - (var(--px-8) * 2));width:calc(var(--toolbar-width) - (var(--px-8) * 2))}.graphiql-container .graphiql-editor-tools{cursor:row-resize;display:flex;width:100%;-moz-column-gap:var(--px-8);column-gap:var(--px-8);padding:var(--px-8)}.graphiql-container .graphiql-editor-tools button{color:hsla(var(--color-neutral),var(--alpha-secondary))}.graphiql-container .graphiql-editor-tools button.active{color:hsl(var(--color-neutral))}.graphiql-container .graphiql-editor-tools>button:not(.graphiql-toggle-editor-tools){padding:var(--px-8) var(--px-12)}.graphiql-container .graphiql-editor-tools .graphiql-toggle-editor-tools{margin-left:auto}.graphiql-container .graphiql-editor-tool{flex:1;padding:var(--px-16)}.graphiql-container .graphiql-toolbar,.graphiql-container .graphiql-editor-tools,.graphiql-container .graphiql-editor-tool{position:relative}.graphiql-container .graphiql-response{--editor-background: transparent;display:flex;width:100%;flex-direction:column}.graphiql-container .graphiql-response .result-window{position:relative;flex:1}.graphiql-container .graphiql-footer{border-top:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy))}.graphiql-container .graphiql-plugin{border-left:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));flex:1;overflow-y:auto;padding:var(--px-16)}.graphiql-horizontal-drag-bar{width:var(--px-12);cursor:col-resize}.graphiql-horizontal-drag-bar:hover:after{border:var(--px-2) solid hsla(var(--color-neutral),var(--alpha-background-heavy));border-radius:var(--border-radius-2);content:"";display:block;height:25%;margin:0 auto;position:relative;top:37.5%;width:0}.graphiql-container .graphiql-chevron-icon{color:hsla(var(--color-neutral),var(--alpha-tertiary));display:block;height:var(--px-12);margin:var(--px-12);width:var(--px-12)}.graphiql-spin{animation:spin .8s linear 0s infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.graphiql-dialog .graphiql-dialog-header{align-items:center;display:flex;justify-content:space-between;padding:var(--px-24)}.graphiql-dialog .graphiql-dialog-title{font-size:var(--font-size-h3);font-weight:var(--font-weight-medium);margin:0}.graphiql-dialog .graphiql-dialog-section{align-items:center;border-top:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));display:flex;justify-content:space-between;padding:var(--px-24)}.graphiql-dialog .graphiql-dialog-section>:not(:first-child){margin-left:var(--px-24)}.graphiql-dialog .graphiql-dialog-section-title{font-size:var(--font-size-h4);font-weight:var(--font-weight-medium)}.graphiql-dialog .graphiql-dialog-section-caption{color:hsla(var(--color-neutral),var(--alpha-secondary))}.graphiql-dialog .graphiql-warning-text{color:hsl(var(--color-warning));font-weight:var(--font-weight-medium)}.graphiql-dialog .graphiql-table{border-collapse:collapse;width:100%}.graphiql-dialog .graphiql-table :is(th,td){border:1px solid hsla(var(--color-neutral),var(--alpha-background-heavy));padding:var(--px-8) var(--px-12)}.graphiql-dialog .graphiql-key{background-color:hsla(var(--color-neutral),var(--alpha-background-medium));border-radius:var(--border-radius-4);padding:var(--px-4)}.graphiql-container svg{pointer-events:none}.docExplorerWrap{height:unset!important;min-width:unset!important;width:unset!important}.docExplorerWrap svg{display:unset}.doc-explorer-title{font-size:var(--font-size-h2);font-weight:var(--font-weight-medium)}.doc-explorer-rhs{display:none}.graphiql-explorer-root{font-family:var(--font-family-mono)!important;font-size:var(--font-size-body)!important;padding:0!important}.graphiql-explorer-root>div>div{border-color:hsla(var(--color-neutral),var(--alpha-background-heavy))!important;padding-top:var(--px-16)}.graphiql-explorer-root input{background:unset}.graphiql-explorer-root select{background:hsl(var(--color-base))!important;border:1px solid hsla(var(--color-neutral),var(--alpha-secondary));border-radius:var(--border-radius-4);color:hsl(var(--color-neutral))!important;margin:0 var(--px-8);padding:var(--px-4) var(--px-6)}.graphiql-operation-title-bar .toolbar-button{line-height:0;margin-left:var(--px-8);color:hsla(var(--color-neutral),var(--alpha-secondary, .6));font-size:var(--font-size-h3);vertical-align:middle}.graphiql-explorer-graphql-arguments input{line-height:0}.graphiql-explorer-actions{border-color:hsla(var(--color-neutral),var(--alpha-background-heavy))!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--gray-200),1)}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:hsl(var(--gray-400),1)}input::placeholder,textarea::placeholder{opacity:1;color:hsl(var(--gray-400),1)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}@supports (-moz-appearance:none){*{scrollbar-color:initial;scrollbar-width:initial}}html{--background: var(--gray-950);--foreground: 300, 5%, 96%;--muted: var(--gray-850);--muted-foreground: var(--gray-400);--popover: var(--gray-900);--popover-foreground: var(--gray-50);--tooltip: var(--gray-50);--tooltip-foreground: var(--gray-950);--card: var(--gray-900);--card-foreground: var(--gray-50);--border: var(--gray-850);--input: var(--gray-850);--input-active: var(--gray-800);--primary: 330, 81%, 60%;--primary-foreground: var(--gray-50);--secondary: var(--gray-850);--secondary-foreground: var(--gray-50);--accent: var(--gray-850);--accent-foreground: var(--gray-50);--destructive: 0 72% 51%;--destructive-foreground: 0 85.7% 97.3%;--success: 142 76% 36%;--success-foreground: 0 85.7% 97.3%;--ring: 217.2 32.6% 17.5%;--chart-primary-gradient: 200, 100%, 15%}html .trace-ul>ul:before{border-left:1px solid #374151}html .trace-ul>ul>li:before{background-color:#374151}:root{--white: 0 0% 100%;--gray-50: 258, 16%, 94%;--gray-100: 258, 14%, 91%;--gray-200: 258, 12%, 83%;--gray-300: 258, 10%, 71%;--gray-400: 258, 10%, 57%;--gray-500: 258, 10%, 45%;--gray-600: 258, 10%, 36%;--gray-700: 258, 12%, 29%;--gray-800: 258, 14%, 24%;--gray-850: 258, 14%, 17%;--gray-900: 258, 21%, 9%;--gray-950: 273, 52%, 4%;--background: var(--white);--foreground: var(--gray-950);--muted: var(--gray-50);--muted-foreground: var(--gray-500);--popover: var(--white);--popover-foreground: var(--gray-950);--tooltip: var(--gray-950);--tooltip-foreground: var(--white);--card: var(--white);--card-foreground: var(--gray-950);--border: var(--gray-100);--input: var(--gray-100);--input-active: var(--gray-200);--primary: 330, 81%, 60%;--primary-foreground: var(--white);--secondary: var(--gray-100);--secondary-foreground: var(--gray-950);--accent: var(--gray-50);--accent-foreground: var(--gray-950);--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--success: 142 71% 45%;--success-foreground: 210 40% 98%;--ring: 215 20.2% 65.1%;--chart-primary: 199, 89%, 48%;--chart-primary-gradient: 200, 100%, 90%;--radius: .5rem}.\!dark{--background: var(--gray-950) !important;--foreground: 300, 5%, 96% !important;--muted: var(--gray-850) !important;--muted-foreground: var(--gray-400) !important;--popover: var(--gray-900) !important;--popover-foreground: var(--gray-50) !important;--tooltip: var(--gray-50) !important;--tooltip-foreground: var(--gray-950) !important;--card: var(--gray-900) !important;--card-foreground: var(--gray-50) !important;--border: var(--gray-850) !important;--input: var(--gray-850) !important;--input-active: var(--gray-800) !important;--primary: 330, 81%, 60% !important;--primary-foreground: var(--gray-50) !important;--secondary: var(--gray-850) !important;--secondary-foreground: var(--gray-50) !important;--accent: var(--gray-850) !important;--accent-foreground: var(--gray-50) !important;--destructive: 0 72% 51% !important;--destructive-foreground: 0 85.7% 97.3% !important;--success: 142 76% 36% !important;--success-foreground: 0 85.7% 97.3% !important;--ring: 217.2 32.6% 17.5% !important;--chart-primary-gradient: 200, 100%, 15% !important}.dark{--background: var(--gray-950);--foreground: 300, 5%, 96%;--muted: var(--gray-850);--muted-foreground: var(--gray-400);--popover: var(--gray-900);--popover-foreground: var(--gray-50);--tooltip: var(--gray-50);--tooltip-foreground: var(--gray-950);--card: var(--gray-900);--card-foreground: var(--gray-50);--border: var(--gray-850);--input: var(--gray-850);--input-active: var(--gray-800);--primary: 330, 81%, 60%;--primary-foreground: var(--gray-50);--secondary: var(--gray-850);--secondary-foreground: var(--gray-50);--accent: var(--gray-850);--accent-foreground: var(--gray-50);--destructive: 0 72% 51%;--destructive-foreground: 0 85.7% 97.3%;--success: 142 76% 36%;--success-foreground: 0 85.7% 97.3%;--ring: 217.2 32.6% 17.5%;--chart-primary-gradient: 200, 100%, 15%}*{border-color:hsl(var(--border))!important}body{background-color:hsl(var(--background));color:hsl(var(--foreground));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}body::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}body::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}body::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}body::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}body::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}body::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}body::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}body::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}@supports (-moz-appearance:none){body{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}}body::-webkit-scrollbar{display:block;width:8px;height:8px}body{--scrollbar-thumb: hsl(var(--secondary), .8);--scrollbar-thumb-radius: .375rem;--scrollbar-thumb-hover: hsl(var(--muted), 1)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-3{bottom:.75rem}.left-0{left:0}.left-\[50\%\]{left:50%}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-3{top:.75rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.-z-10{z-index:-10}.-z-50{z-index:-50}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.col-span-full{grid-column:1 / -1}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-1{margin-bottom:.25rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.ml-\[-9px\]{margin-left:-9px}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.\!h-full{height:100%!important}.h-10{height:2.5rem}.h-12{height:3rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-3\/5{height:60%}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1px\]{height:1px}.h-\[520px\]{height:520px}.h-\[90vh\]{height:90vh}.h-full{height:100%}.h-min{height:-moz-min-content;height:min-content}.h-px{height:1px}.max-h-6{max-height:1.5rem}.max-h-\[var\(--radix-select-content-available-height\)\]{max-height:var(--radix-select-content-available-height)}.min-h-0{min-height:0px}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-60{width:15rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[2px\]{width:2px}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.w-px{width:1px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-2xl{max-width:42rem}.max-w-\[90vw\]{max-width:90vw}.max-w-\[calc\(42rem_-_3rem\)\]{max-width:39rem}.max-w-\[var\(--radix-select-content-available-width\)\]{max-width:var(--radix-select-content-available-width)}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-y-px{--tw-translate-y: -1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-moz-user-select:none;-webkit-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-1\.5{-moz-column-gap:.375rem;column-gap:.375rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.gap-y-6{row-gap:1.5rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-none{border-style:none}.\!border-destructive{border-color:hsl(var(--destructive))!important}.border-input{border-color:hsl(var(--input))}.border-primary{--tw-border-opacity: 1;border-color:hsl(var(--primary),var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-accent{--tw-bg-opacity: 1;background-color:hsl(var(--accent),var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-input{background-color:hsl(var(--input))}.bg-muted{--tw-bg-opacity: 1;background-color:hsl(var(--muted),var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{--tw-bg-opacity: 1;background-color:hsl(var(--primary),var(--tw-bg-opacity, 1))}.bg-primary\/50{background-color:hsl(var(--primary),.5)}.bg-secondary{--tw-bg-opacity: 1;background-color:hsl(var(--secondary),var(--tw-bg-opacity, 1))}.bg-secondary\/30{background-color:hsl(var(--secondary),.3)}.bg-stone-300{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity, 1))}.bg-success{background-color:hsl(var(--success))}.bg-tooltip{background-color:hsl(var(--tooltip))}.bg-transparent{background-color:transparent}.fill-foreground{fill:hsl(var(--foreground))}.fill-tooltip{fill:hsl(var(--tooltip))}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-6{padding:1.5rem}.p-px{padding:1px}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-1\.5{padding-left:.375rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.\!text-foreground{color:hsl(var(--foreground))!important}.\!text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-accent-foreground\/80{color:hsl(var(--accent-foreground) / .8)}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{--tw-text-opacity: 1;color:hsl(var(--primary),var(--tw-text-opacity, 1))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-success{color:hsl(var(--success))}.text-success-foreground{color:hsl(var(--success-foreground))}.text-tooltip-foreground{color:hsl(var(--tooltip-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.scrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}@supports (-moz-appearance:none){.scrollbar{scrollbar-width:auto;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}}.scrollbar::-webkit-scrollbar{display:block;width:var(--scrollbar-width, 16px);height:var(--scrollbar-height, 16px)}.scrollbar-custom{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.scrollbar-custom::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-custom::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-custom::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-custom::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-custom::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-custom::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-custom::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-custom::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-custom::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}@supports (-moz-appearance:none){.scrollbar-custom{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}}.scrollbar-custom::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-custom{--scrollbar-thumb: hsl(var(--secondary), .8);--scrollbar-thumb-radius: .375rem;--scrollbar-thumb-hover: hsl(var(--muted), 1)}@media (prefers-color-scheme: dark){body:not(.graphiql-light) .graphiql-container,body:not(.graphiql-light) .CodeMirror-info,body:not(.graphiql-light) .CodeMirror-lint-tooltip,body:not(.graphiql-light) .graphiql-dialog,body:not(.graphiql-light) .graphiql-dialog-overlay,body:not(.graphiql-light) .graphiql-tooltip,body:not(.graphiql-light) [data-radix-popper-content-wrapper]{--color-base: var(--background)}}body.graphiql-dark .graphiql-container,body.graphiql-dark .CodeMirror-info,body.graphiql-dark .CodeMirror-lint-tooltip,body.graphiql-dark .graphiql-dialog,body.graphiql-dark .graphiql-dialog-overlay,body.graphiql-dark .graphiql-tooltip,body.graphiql-dark [data-radix-popper-content-wrapper]{--color-base: var(--background)}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.CodeMirror-vscrollbar::-webkit-scrollbar-track,.CodeMirror-hscrollbar::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.CodeMirror-vscrollbar::-webkit-scrollbar-track:hover,.CodeMirror-hscrollbar::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.CodeMirror-vscrollbar::-webkit-scrollbar-track:active,.CodeMirror-hscrollbar::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.CodeMirror-vscrollbar::-webkit-scrollbar-thumb,.CodeMirror-hscrollbar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.CodeMirror-vscrollbar::-webkit-scrollbar-thumb:hover,.CodeMirror-hscrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.CodeMirror-vscrollbar::-webkit-scrollbar-thumb:active,.CodeMirror-hscrollbar::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.CodeMirror-vscrollbar::-webkit-scrollbar-corner,.CodeMirror-hscrollbar::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.CodeMirror-vscrollbar::-webkit-scrollbar-corner:hover,.CodeMirror-hscrollbar::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.CodeMirror-vscrollbar::-webkit-scrollbar-corner:active,.CodeMirror-hscrollbar::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}@supports (-moz-appearance:none){.CodeMirror-vscrollbar,.CodeMirror-hscrollbar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}}.CodeMirror-vscrollbar::-webkit-scrollbar,.CodeMirror-hscrollbar::-webkit-scrollbar{display:block;width:8px;height:8px}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar{--scrollbar-thumb: hsl(var(--secondary), .8);--scrollbar-thumb-radius: .375rem;--scrollbar-thumb-hover: hsl(var(--muted), 1)}.graphiql-history-header,.graphiql-doc-explorer-title,.doc-explorer-title{font-size:1.5rem;line-height:2rem;font-weight:700;color:hsl(var(--foreground))}.doc-explorer-title{margin-bottom:2rem}.graphiql-container{height:100vh!important;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"!important}.graphiql-plugin,.graphiql-tabs{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.graphiql-plugin::-webkit-scrollbar-track,.graphiql-tabs::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.graphiql-plugin::-webkit-scrollbar-track:hover,.graphiql-tabs::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.graphiql-plugin::-webkit-scrollbar-track:active,.graphiql-tabs::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.graphiql-plugin::-webkit-scrollbar-thumb,.graphiql-tabs::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.graphiql-plugin::-webkit-scrollbar-thumb:hover,.graphiql-tabs::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.graphiql-plugin::-webkit-scrollbar-thumb:active,.graphiql-tabs::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.graphiql-plugin::-webkit-scrollbar-corner,.graphiql-tabs::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.graphiql-plugin::-webkit-scrollbar-corner:hover,.graphiql-tabs::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.graphiql-plugin::-webkit-scrollbar-corner:active,.graphiql-tabs::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}@supports (-moz-appearance:none){.graphiql-plugin,.graphiql-tabs{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}}.graphiql-plugin::-webkit-scrollbar,.graphiql-tabs::-webkit-scrollbar{display:block;width:8px;height:8px}.graphiql-plugin,.graphiql-tabs{--scrollbar-thumb: hsl(var(--secondary), .8);--scrollbar-thumb-radius: .375rem;--scrollbar-thumb-hover: hsl(var(--muted), 1)}.graphiql-button{padding-left:1.5rem!important;padding-right:1.5rem!important}.graphiql-dialog{background-color:hsl(var(--background) / .3);--tw-backdrop-blur: blur(40px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.graphiql-dialog-overlay{background-color:hsl(var(--background) / .8);--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.graphiql-explorer-root>:first-child{overflow:hidden!important}.loader{width:64px;height:64px;border:3px solid hsl(var(--foreground));border-radius:50%;display:inline-block;position:relative;box-sizing:border-box;animation:rotation 1s linear infinite}.loader:after{content:"";box-sizing:border-box;position:absolute;left:50%;top:50%;opacity:100%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;border:3px solid;border-color:hsl(var(--primary)) transparent}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.trace-ul>ul:before{border-left:1px solid #d1d5db;display:inline-block;content:"";position:absolute;left:-1px}.trace-ul>ul>li:before{position:absolute;left:-1rem;top:18px;content:"";height:1px;width:1rem;background-color:#d1d5db}.dark .trace-ul>ul:before{border-left:1px solid #374151}.dark .trace-ul>ul>li:before{background-color:#374151}.animation{animation:bounce .6s;animation-direction:alternate;animation-iteration-count:infinite}@keyframes bounce{0%{transform:translateZ(0)}to{transform:translate3d(10px,0,0)}}.graphiql-session-header-right{flex-shrink:0}.graphiql-tabs{z-index:10}.graphiql-container .CodeMirror-cursor{border-left:2px solid gray!important}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.before\:-top-4:before{content:var(--tw-content);top:-1rem}.before\:top-0:before{content:var(--tw-content);top:0}.before\:\!h-full:before{content:var(--tw-content);height:100%!important}.before\:h-\[18px\]:before{content:var(--tw-content);height:18px}.before\:h-\[34px\]:before{content:var(--tw-content);height:34px}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\:content-\[\'\\200b\'\]:after{--tw-content: "​";content:var(--tw-content)}.last\:border-none:last-child{border-style:none}.group:hover .group-hover\:bg-accent{--tw-bg-opacity: 1;background-color:hsl(var(--accent),var(--tw-bg-opacity, 1))}.group:hover .group-hover\:text-accent-foreground{color:hsl(var(--accent-foreground))}.group:hover .group-hover\:brightness-90{--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{--tw-bg-opacity: 1;background-color:hsl(var(--primary),var(--tw-bg-opacity, 1))}.data-\[state\=open\]\:bg-accent[data-state=open]{--tw-bg-opacity: 1;background-color:hsl(var(--accent),var(--tw-bg-opacity, 1))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-input-active:hover{border-color:hsl(var(--input-active))}.hover\:bg-accent\/80:hover{background-color:hsl(var(--accent),.8)}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted\/80:hover{background-color:hsl(var(--muted),.8)}.hover\:bg-primary:hover{--tw-bg-opacity: 1;background-color:hsl(var(--primary),var(--tw-bg-opacity, 1))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary),.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary),.9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary),.8)}.hover\:bg-stone-400:hover{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity, 1))}.hover\:bg-success\/80:hover{background-color:hsl(var(--success) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:bg-accent:focus{--tw-bg-opacity: 1;background-color:hsl(var(--accent),var(--tw-bg-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.dark\:bg-secondary:is(.dark *){--tw-bg-opacity: 1;background-color:hsl(var(--secondary),var(--tw-bg-opacity, 1))}.dark\:hover\:bg-muted:hover:is(.dark *){--tw-bg-opacity: 1;background-color:hsl(var(--muted),var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:.5rem}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:w-auto{width:auto}.md\:w-full{width:100%}.md\:max-w-2xl{max-width:42rem}}@media (min-width: 1024px){.lg\:max-w-none{max-width:none}}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
diff --git a/studio/package.json b/studio/package.json index f23fdb2830..37f0c51e7d 100644 --- a/studio/package.json +++ b/studio/package.json @@ -32,7 +32,7 @@ "@connectrpc/connect-web": "^1.4.0", "@headlessui/react": "^1.7.15", "@heroicons/react": "^2.0.18", - "@hookform/resolvers": "^3.3.1", + "@hookform/resolvers": "^4.1.3", "@markdoc/markdoc": "^0.4.0", "@markdoc/next.js": "^0.3.6", "@monaco-editor/react": "^4.6.0", @@ -118,7 +118,7 @@ "tiptap-markdown": "^0.8.8", "use-debounce": "^10.0.0", "use-deep-compare-effect": "^1.8.1", - "zod": "^3.22.4" + "zod": "^3.24.2" }, "devDependencies": { "@tailwindcss/typography": "^0.5.9",